Control by moon phases

Heyas fellow home gadget enthusiasts,

I created a moon light that I want to hang in the bathroom that shows and transitions between different lighting set-ups, based on the current moon phase. I searched all apps for triggers I could use, I found that the Openweather API gives you the moonphase but I think it is the current phase in text, not a number indicating the transitional stage.
Also paying for another API is kind of not my thing at the moment.

Anyone know any other apps, or ways, or scripts or anyting?

This API is free for 500 requests/month.

3 Likes

Wonderful. Thank you!
Are there any apps using this?

Can’t find app store imfo, or forum topics regardig moon events.
But OpenWeather app provides for it.
This is an example of OpenWeather moondata:

"dt":1707130800,"sunrise":1707116380,"sunset":1707149293,"moonrise":1707104820,"moonset":1707128340,"moon_phase":0.83,"

Moon phase is presented as a number :wink:

It’s also present @ OpenWeather app, most probably as numeric value as well:

Just install it to find out, or ask in the OW app topic:

1 Like

Thank you for that!
The moon phase card in the app lets you check for 8 phases, it doesn’t pass on the gradient value. But in the end that will work out better, I think, I’m going with it. Thanks again!

1 Like

Heyhey @Peter_Kawa Peter,

coming back to this. If I want the numeric float moon phase I am going to have to start sending http calls to openweather or the moon api and parse the return json, correct?
The 8-slice moon pizza just doesn’t work for me, I need gradual color change in my moonlamp :-/ so I’m back here :slight_smile:

Edit01: I tried with the moon phase changed “when” card, but that also seems to trigger only 8 times a month, when it moves from one pizza slice to the next. I’ve been tracking since last weeks full moon, and it only triggered twice, at 0.59 and 0.7 phase number, to move to waning moon and waning half moon three days later.
image

Let me ask an actual question. Could anyone help me out and give me a starting point for how to query API’s with flow cards and how to parse the return JSON?

Hi, just read your post. Perhaps it’s better if I add a new numeric capability for the moon phase to OpenWeather app.
Just as tag and flow trigger hidden in device details.

Just as tag and flow trigger hidden in device details.

I don’t know exactly what a hidden trigger is, and I haven’t used tags so far, but if I can use it, I’m up for it. So thank you in advance, @RonnyW !!!

I will take a look at the moon phase next week. Still on :beach_umbrella:. So please be patient :slightly_smiling_face:

1 Like