Page 4 of 4

Re: Moon phase

Posted: Wednesday 13 September 2017 22:50
by elmortero
You could also skip the second IF.
If moonriseHour is nil then moonriseMinutes is also nil so:

Code: Select all

if moonriseHour == nil then 
moonriseHour = '--'
moonriseMinute = '--'
end

Re: Moon phase

Posted: Saturday 23 December 2017 22:49
by timyboyb
Hello,

Try to get this moonphase script working but the script is not reading the API. When I call it the results are OK but Domoticz is not adjusting the virtual devices. Any ideas?
Domoticz.png
Domoticz.png (190.35 KiB) Viewed 1321 times

Re: Moon phase

Posted: Sunday 11 February 2018 17:38
by florisi
Hi,

installed the MoonPhase LUA scripts.
All variables are getting the right values but I can't get a picture on my dashboard.

What I'm doing wrong.

Here is a part of my config:

config['idx_moonpicture'] = 1; //idx of variable MoonPicture
buttons.moon = {width:12, isimage:true, refreshimage:60000, image: 'moon'}

var columns = {}
columns['bar'] = {}
columns['bar']['blocks'] = ['logo','miniclock','settings']

columns[1] = {}
columns[1]['blocks'] = ['currentweather_big','weather','garbage', buttons.moon, calendars.business]
columns[1]['width'] = 6;

The calendars.business does show up.

Re: Moon phase

Posted: Thursday 15 February 2018 15:43
by ycahome
Yihaaa wrote: Friday 19 July 2013 20:25 Hereby my suggestion to add a "moon phase" feature.
On a lot a standard weather stations the phase of the moon can be seen and it looks me a good idea that it would be nice to have this implemented also in Domoticz 8-)
Hello,

just got into your suggestion post.

Checkout a plugin with similar functionality

http://www.domoticz.com/forum/viewtopic ... 65&t=21993

Re: Moon phase

Posted: Tuesday 10 September 2019 16:17
by Jackb
I've created a new MoonPhase dzEvents script that does not use Weather Underground but HERE, which is a free astronomy API.

For more info:
https://github.com/JoopIdema/Domoticz-MoonPhases