Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run from command line on startup + add module visibility in system tray icon #9

Open
VirenMohindra opened this issue Sep 10, 2018 · 3 comments

Comments

@VirenMohindra
Copy link
Contributor

What would be the easiest way to run this on startup? A bash script?

./aw-qt is just fantastic, do you think this script should be made executable? Not sure how to proceed.

Also, if this can be added to the system tray that would really make it easier to see if its actually running.

@ErikBjare
Copy link
Member

ErikBjare commented Sep 11, 2018

This would be semi-fixed by ActivityWatch/aw-qt#27 if aw-watcher-spotify was also available on the PATH somehow.

The issue is that you need to do the API authentication thing which can't really be done without running it in a terminal window.

@VirenMohindra
Copy link
Contributor Author

VirenMohindra commented Sep 11, 2018

Is there no way to package this after the credentials have been created and stored in the configuration directory in the respective environment? Its a bit cumbersome running two terminal windows for essentially one program.

On another note - I've been running this for ~16 hours with a combined total of 1112 requests (from Spotify's dashboard), which comes out to around 1 request per minute.

I can see from the terminal output that its grabbing the song every 5 seconds, I'm just curious as to why it isn't accurate on the Spotify end.

Also - the token expired and I had to restart the program from the terminal, anything I can do to mitigate this or is this a Spotify problem?

@ErikBjare
Copy link
Member

Is there no way to package this after the credentials have been created and stored in the configuration directory in the respective environment?

There could be, but it'd be work that I'm not interested in at the moment. Feel free to give it a shot. You could just run it from the terminal the first time (to get the credentials) and then hopefully use the changes in the aw-qt PR.

On another note - I've been running this for ~16 hours with a combined total of 1112 requests (from Spotify's dashboard), which comes out to around 1 request per minute. I can see from the terminal output that its grabbing the song every 5 seconds, I'm just curious as to why it isn't accurate on the Spotify end.

I have no idea.

Also - the token expired and I had to restart the program from the terminal, anything I can do to mitigate this or is this a Spotify problem?

This should be fixable, although I don't have the time to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants