Categories
How To Raspberry Pi

Astral — calculate sunrise, sunset, moon phases, golden / blue hour with Python

Now that I have taken a closer look at astral, I really like it, I must say. So far, I have been able to get the data for sunrise and sunset online. But since the calculations with Astral hardly differ from the online results, I prefer an offline solution. I would like to emphasize again…

Categories
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…