How To Raspberry Pi

Sunrise / Sunset switch Raspberry Pi with Python

After I rediscovered my PiFace Digital, I wanted to play with it a bit. I thought that I could switch a night light with one of the relays. But I didn’t want to estimate roughly when it is dark, I wanted to orientate by the current sunrise and sunset. Of course, it doesn’t matter what…