Stand alone d1 mini with sunrise sunset automation

Hello is it possible to program a D1 mini to run without a home assistant instance, to turn a output pin on at sunset then back off at sunrise.
I am wanting to add a light at my parents to turn on and off when dark, but a light sensor is not not an option due to other issues.
It would have a wifi connection so getting the time and other info is ok.
Any pointers to get me started would be appreciated (if what I want is possible)
Thanks

Ideas:

The hardest bit will probably be parsing the date strings and comparing them to times :slight_smile:

Just use a hardware RTC (or a local or remote NTP source you have available) together with the esphome sun component :sunny:

@Andy_Allsopp don’t need to invent the wheel again :wink:

2 Likes

Jeebs. Don’t mind me over here. I’m making this roundy roundy thing with a, yes, an axle. Hmmm. What to call it??? :slight_smile: