Mote example "" not working at boot


Hello, all you pirates, ninjas and robots!
I tried to light up my desk with a Pi Zero W, a MotePHAT and the Mote module when the Zero boots.
Well, everything works fine but the script “” does not!!! The other examples work!
Can anyone explain why?


I’m going to hazard a guess that it’s starting before networking is fully up, and just timing out. Sometimes a startup script with a few seconds delay can help- otherwise you’ll need some code to actively wait for network.

I’m sure I had code to this end somewhere, for a previous question like this, but I can’t seem to find it!

Edit: This may work:


Thanks for your help!
Gonna work on that script this weekend!