Re: [weewx-user] Tendency of the moon: increasing or decreasing

2018-11-08 Thread Thomas Sch
And a big thank you for your great work. And all the others who helped me or tried it :) -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@go

Re: [weewx-user] Tendency of the moon: increasing or decreasing

2018-11-08 Thread Thomas Sch
Wow. This is great!!! I tested it and its working :) I changed only 2 things: Line 13: #else if $almanac.next_full_moon.raw > $almanac.next_new_moon.raw -> #else if $almanac.next_full_moon.raw < $almanac.next_new_moon.raw Line 19: ->

Re: [weewx-user] Tendency of the moon: increasing or decreasing

2018-11-05 Thread gjr80
My apologies Thomas, my logic was reversed and you are quite correct about the almanac moon phase tags; I had clearly been staring at the almanac for too long, will teach me to reply early in the morning! i should also have pointed out the code was untested. Looking at your template you can cut

Re: [weewx-user] Tendency of the moon: increasing or decreasing

2018-11-05 Thread Michael Hornsby
I have 28 moon images http://www.standrewsbeach.net.au/weather/current/ and use this extension # # Find the Image name for the Current Moon # from datetime import datetime import ephem from weewx.cheetahgenerator import SearchList class MoonImage(SearchList): def __init__(self, gener

Re: [weewx-user] Tendency of the moon: increasing or decreasing

2018-11-05 Thread Thomas Sch
So I tested your solution but it says Waxing Moon. But we have waning Moon currently. And $almanac.moon.next_full_moon.raw / $almanc.moon.next_new_moon.raw didnt Work. I Gott the Error: cannot find "next_full_moon" while searching for "almanac.moon.next_full_moon.raw" I Had to use $almanac.ne

Re: [weewx-user] Tendency of the moon: increasing or decreasing

2018-11-03 Thread Thomas Sch
Hey and thanks for your answer. You understood it correctly. I will check your solution on monday. -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+uns

Re: [weewx-user] Tendency of the moon: increasing or decreasing

2018-11-02 Thread gjr80
Hi, I think a little bit is being lost in the translation but i think I understand you. When the moon is say 99% illuminated just before the full moon the moon_phase is 'Full', similarly when the moon is 99% illuminated just after the full moon the moon_phase is still 'Full' so you cannot disc

Re: [weewx-user] Tendency of the moon: increasing or decreasing

2018-11-02 Thread Thomas Sch
Am Freitag, 2. November 2018 17:19:35 UTC+1 schrieb Andrew Milner: > > can't you just combine the two approaches?: > > if moon index < 4 it is waxing and if moon index > 4 it is waning so you > know if it is increasing or decreasing and moon_fullness gives you the > percentage > > > > On Friday

Re: [weewx-user] Tendency of the moon: increasing or decreasing

2018-11-02 Thread Andrew Milner
can't you just combine the two approaches?: if moon index < 4 it is waxing and if moon index > 4 it is waning so you know if it is increasing or decreasing and moon_fullness gives you the percentage On Friday, 2 November 2018 17:30:30 UTC+2, Thomas Sch wrote: > > I created 200 images. 100 for

Re: [weewx-user] Tendency of the moon: increasing or decreasing

2018-11-02 Thread Thomas Sch
I created 200 images. 100 for increasing and 100 for decreasing. -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more

Re: [weewx-user] Tendency of the moon: increasing or decreasing

2018-11-02 Thread Thomas Sch
I have 100 Images for each percent ^^ -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://grou

Re: [weewx-user] Tendency of the moon: increasing or decreasing

2018-11-02 Thread Thomas Keffer
I guess I do not understand what you want. I assumed that you have seven images, and you want to select the correct image depending on whether the moon is waxing (growing) or waning (shrinking). Or, do you have 100 images, one for each percent? -tk On Fri, Nov 2, 2018 at 8:00 AM Thomas Sch wrot

Re: [weewx-user] Tendency of the moon: increasing or decreasing

2018-11-02 Thread Thomas Sch
Am Freitag, 2. November 2018 14:34:00 UTC+1 schrieb Thomas Keffer: > I can think of two ways of doing this.  > Use the text in $almanac.moon_phase > Use the undocumented tag $almanac.moon_index. It is the index into moon_phase > and varies from 0 to 7. > > Here's their relationship: > > > $alma

Re: [weewx-user] Tendency of the moon: increasing or decreasing

2018-11-02 Thread Thomas Keffer
I can think of two ways of doing this. 1. Use the text in $almanac.moon_phase 2. Use the undocumented tag $almanac.moon_index. It is the index into moon_phase and varies from 0 to 7. Here's their relationship: $almanac.moon_index $almanac.moon_phase 0 New

[weewx-user] Tendency of the moon: increasing or decreasing

2018-11-02 Thread Thomas Sch
I am working on a template that shows a picture of the moon for every percent of moon fullness. My Problem: for example: when I say #if $almanac.moon_fullness = 50 ... I will get 2 pictures of the moon. One of the increasing and one of the decreasing moon. Is there a solution that ephem show