Re: [weewx-user] tag of the age of the moon (in days)

2021-03-30 Thread P C
Merci, #set $moonDays = int(round(($current.dateTime.raw - $almanac.previous_new_moon.raw)/86400,0)) est parfait ! Le mardi 30 mars 2021 à 12:52:48 UTC+2, gjr80 a écrit : > I have a similar requirement in WeeWX-WD. I use something along the lines > of: > > #set $moonAge =

Re: [weewx-user] tag of the age of the moon (in days)

2021-03-30 Thread gjr80
I have a similar requirement in WeeWX-WD. I use something along the lines of: #set $moonAge = $time.gmtime($current.dateTime.raw - $almanac.previous_new_moon.raw) #set $moonDays = int(round(($current.dateTime.raw - $almanac.previous_new_moon.raw)/86400,0)) $moonAge is the time since the

Re: [weewx-user] tag of the age of the moon (in days)

2021-03-30 Thread Blaise
This because I have 29 images of the moon in its different phases : #set $md = int (($almanac.moon_fullness / 3.45) +.5) #set $fmd = "/images/lune- "+ str ($md) +" .png "     Lune & NBSP;: & nbsp; $almanac.moon_phase $almanac.moon_fullness & nbsp;%     Le 30-03-21 à 11:05, Tom Keffer a

Re: [weewx-user] tag of the age of the moon (in days)

2021-03-30 Thread Blaise
Well no, Tom, This tag gives "the lighting" of the moon: 100% = full moon, 0% = new moon. So it goes from 0% to 0% (new moon) via 100% (full moon). It does not indicate the age of the moon, since we do not know where we come from and to what we are going. I had the same idea: "#set $md = int

Re: [weewx-user] tag of the age of the moon (in days)

2021-03-30 Thread Tom Keffer
Could you use #set $days=$almanac.moon.moon_fullness * .2953 The moon is $days days old. .2953 is the length of the lunar cycle, divided by 100. On Tue, Mar 30, 2021 at 1:41 AM P C wrote: > > Hello, again me ;) > > I am looking for the tag of the age of the moon (in days) that goes

[weewx-user] tag of the age of the moon (in days)

2021-03-30 Thread P C
Hello, again me ;) I am looking for the tag of the age of the moon (in days) that goes from New Moon in New Moon in 29 days. This means that the full moon is between the 14th and the 15th day. NB: Pyephem is installed Thank you ! -- You received this message because you are subscribed to