hankhank10 / music-screen-api

Display the playing Sonos track in real time on an e-ink display - also includes functionality for last.fm
120 stars 17 forks source link

no longer autostarts after reboot #36

Closed habra-cadabra closed 4 years ago

habra-cadabra commented 4 years ago

hello!

music-screen-api doesn't launch at startup starting at commit #33. I reverted back to #32 and everything starts as normal.

running "DISPLAY=:0 /usr/bin/python3 /home/pi/music-screen-api/go_sonos_highres.py" on #33 or #34 starts music-screen-api normally.

jjlawren commented 4 years ago

Any logs or tracebacks?

habra-cadabra commented 4 years ago

yep, sorry! got sidetracked.

2020-08-13 22:09:56,112 ERROR - Task exception was never retrieved future: <Task finished coro=<main() done, defined at /home/pi/music-screen-api/go_sonos_highres.py:171> exception=CalledProcessError(128, ['git', 'describe'])> Traceback (most recent call last): File "/home/pi/music-screen-api/go_sonos_highres.py", line 174, in main log_git_hash() File "/home/pi/music-screen-api/go_sonos_highres.py", line 129, in log_git_hash git_hash = subprocess.check_output(["git", "describe"], text=True).strip() File "/usr/lib/python3.7/subprocess.py", line 395, in check_output **kwargs).stdout File "/usr/lib/python3.7/subprocess.py", line 487, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['git', 'describe']' returned non-zero exit status 128.

jjlawren commented 4 years ago

Ok thanks, the reason is clear. I'll try to take a look at it tomorrow.