Go to advanced search

by ilfra
Fri Apr 22, 2016 9:10 am
Forum: Python
Topic: Python script fail @reboot
Replies: 6
Views: 1081

Re: Python script fail @reboot

Great!! It was the lan connection! The bulbs to switch on/off are wifi bulbs and without a lan connection probably the script hangs.
Yes, I have to put a try catch inside the loop (or somewere else) to check the lan connection.
Thank you very much, you give me my sleep back :D
by ilfra
Thu Apr 21, 2016 12:10 pm
Forum: Python
Topic: Python script fail @reboot
Replies: 6
Views: 1081

Python script fail @reboot

Hello to everyone, I hope someone can help me to solve my issue that make me crazy. This is my simple code in python, if I run it in console (with or without sudo), it works perfectly: it does the http get and turn on the light. But if I configure it to automatically start at boot, by cron or /etc/r...

Go to advanced search