Closed Almansio closed 2 years ago
@Almansio Sorry for the late reply. I had some problems with updating my Pi. Anyways. I think what you are looking for is to run BeoLightControl as a service. Here you can see how: https://gist.github.com/emxsys/a507f3cad928e66f6410e7ac28e2990f
I tried it my self and created a service file called lightcontrol.service with the following content:
[Unit]
Description=BeoLightControl
After=multi-user.target
[Service]
Type=simple
WorkingDirectory=/home/pi/BeoLightControl
ExecStart=/usr/bin/python3 /home/pi/BeoLightControl/BeoLightControl.py -l
Restart=on-abort
[Install]
WantedBy=multi-user.target
Please remember to change the paths to where you downloaded BeoLightControl.
With this BeoLightControl will be loaded on every boot. Do remeber to stop the service and run the script manually if you want to change settings.
Hope it makes sense? otherwise let me know.
Works like a charm!!!!! Many thanks!
Hi Micheal,
Don’t be sorry at all! Much appreciated for your input! I’m gone for a few days but when I’m back I will give at a try.
And again thank you for your thoughts!👊🏽
Op 25 apr. 2022 om 19:43 heeft Michael Jakobsen Højgaard @.***> het volgende geschreven:
@Almansio Sorry for the late reply. I had some problems with updating my Pi. Anyways. I think what you are looking for is to run BeoLightControl as a service. Here you can see how: https://gist.github.com/emxsys/a507f3cad928e66f6410e7ac28e2990f
I tried it my self and created a service file called lightcontrol.service with the following content:
[Unit] Description=BeoLightControl After=multi-user.target
[Service] Type=simple WorkingDirectory=/home/pi/BeoLightControl ExecStart=/usr/bin/python3 /home/pi/BeoLightControl/BeoLightControl.py -l Restart=on-abort
[Install] WantedBy=multi-user.target Please remember to change the paths to where you downloaded BeoLightControl.
With this BeoLightControl will be loaded on every boot. Do remeber to stop the service and run the script manually if you want to change settings.
Hope it makes sense? otherwise let me know.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
Hero! 😉
Op 20 apr. 2022 om 07:50 heeft Michael Jakobsen Højgaard @.***> het volgende geschreven:
Hi @Almansio. I'll try and see if I can update the guide soon to cover this case. Thanks for reaching out. 👍
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
Hi @Almansio. I'll try and see if I can update the guide soon to cover this case. Thanks for reaching out. :+1: