Open Urs-Eppenberger opened 3 years ago
Both is possible. moonPhaseNumber is a value between 0 and 1. 0 = New moon and 1 = Full moon. But the value is always positive, so Increasing sickle and Decreasing sickle have the same numeric value. moonAge allows you to differentiate.
Many thanks. I went with moonAge and it looks quite nice on my display. Your node made it very easy for me. The hardware is from thingpulse.ch and the graphics library too. They did the heavy thinking and I can do the playing. I used your node to generate the data (moon, sun rise & set) and stored it in a retained MQTT topic. From there the display is fetching the values every 10 minutes and goes to sleep.
Thanks for this node. It is probably exactly what I need. I have a display where I monitor different parameters from my home automation system. I'd like to display the moon phase, ideally as close to the reality as possible. I think one of the values msg.moonPhaseNumber or msg.moonAge could be used, but I do not understand their meaning exactly. Which one should I use? What value corresponds to which moon phase? Thanks for your help. Kind regards, Urs.