Not using my skin in all graphs (week, month, year)

113 views
Skip to first unread message

Joachim Graf

unread,
Mar 15, 2020, 9:12:50 AM3/15/20
to weewx-user
Hello,

i didn't understand this:
In week, month and year page the images are not all generated with my skin "neowx".
For the day everything is ok.


The values are ok in the grph, but not using the style i configred.

Any idea what i can check ?

Week _ WCH77 _ Weather.png

Config look normal:


    [[week_images]]

        x_label_format = %d

        bottom_label_format = %x %X

        # == 7 days

        time_length = 604800

        aggregate_type = avg

        aggregate_interval = 3600


        [[[weekbarometer]]]

            [[[[barometer]]]]


        [[[weekwatertemp]]]

            [[[[extraTemp1]]]]


        [[[weektempdew]]]

            [[[[outTemp]]]]

            [[[[dewpoint]]]]


        [[[weektempchill]]]

            [[[[windchill]]]]

            [[[[heatindex]]]]


        [[[weekhumidity]]]

            [[[[outHumidity]]]]


        [[[weekrain]]]

            yscale = None, None, 0.02

            plot_type = bar

            [[[[rain]]]]

                aggregate_type = sum

                aggregate_interval = 86400

                label = Rain (daily total)



Best regards

Joachim



Mikael Fredriksson

unread,
Mar 15, 2020, 4:01:22 PM3/15/20
to weewx-user
Not sure what I depends on but I can see that they are not generated at the same time if that can be to some help. Do you have another skin chosen in weewx.conf as well that could generate those images? And I think the latest is always used in the HTML file. So maybe take a look at that.
/Mikael

gjr80

unread,
Mar 15, 2020, 5:01:00 PM3/15/20
to weewx-user
Hi,

First of all we need to know exactly what WeeWX is doing. I would delete all plot image files from your WeeWX machine to force WeeWX to regenerate and then provide a startup debug log that will show what skins are running and which ones are producing plots. To do this:

1. stop WeeWX
2. delete all plot image files from your WeeWX machine
3. edit weewx.conf and set debug = 1
4. save weewx.conf
5. restart WeeWX
6. let WeeWX run for at least two archive periods and then take and post here a log extract from when you restarted WeeWX until the two archive periods elapsed

Gary

Joachim Graf

unread,
Mar 15, 2020, 6:07:44 PM3/15/20
to weewx-user
Thank you !!!
That was the right hint: I had this also enabled by default:
    [[SeasonsReport]]
So there was 2 reports active.
I disabled this report and everthing is fine.

Joachim

Mikael Fredriksson

unread,
Mar 15, 2020, 6:24:09 PM3/15/20
to weewx-user
Good to hear!
Isn't always easy to see those things, I've been looking at wrong places many times!
And I think Gary's answer is a good way to find out issues!

Mikael

Mikael Fredriksson

unread,
Mar 16, 2020, 7:25:51 AM3/16/20
to weewx-user
Btw, can you share how you setup your time shift, would like to make that on my page! Got a web camera and can take photos at interval and save to FTP.
Mikael

Joachim Graf

unread,
Mar 17, 2020, 5:04:59 PM3/17/20
to weewx-user
Yes, i can share this ;-)

Make a picture every minute and put this with name hh:mm.jpg (for the right order) in the folter "tovideo"
then this steps:

>>        ls /home/pi/tovideo/*.jpg > /home/pi/tovideo/stills.txt
>>        cat $(cat /home/pi/tovideo/stills.txt) | ffmpeg -r 10 -f image2pipe -i - /home/pi/upload/day.webm

Thats was it and you have the webm

Joachim

Greg from Oz

unread,
Mar 17, 2020, 6:14:40 PM3/17/20
to weewx-user
I like the clock you have on the video.
How did you do that?
Can you post the code?
I have overlaid the time and date but the clock would be nice feature.

My webcam below:

Thanks

Greg from Oz

unread,
Mar 17, 2020, 8:13:35 PM3/17/20
to weewx-user
I found a clock program here:

Then I resized it to the size I needed:
mogrify -resize 75x75 out.png

Then I overlaid that over my wecam picture:
convert  20200312-205401.jpg out.png -geometry +540+5 -composite out.png

Seems to work OK

Mikael Fredriksson

unread,
Mar 19, 2020, 2:43:14 AM3/19/20
to weewx-user
Great! Thank you!

Mikael

Joachim Graf

unread,
Mar 19, 2020, 7:07:55 AM3/19/20
to weewx-user
You can also decide between white and black image dependig on background with this code

MEAN=$(identify -format "%[fx:mean>0.60?1:0]\n" /home/pi/partwhereclockshouldgoto.png)
if [ $MEAN -lt 1 ]; then
        # White
        clock_img=/home/pi/Clock/V4/$(printf CHDK_Uhr_%04d.png $minutes)
else
        # Black
        clock_img=/home/pi/Clock/V2/$(printf CHDK_Uhr_%04d.png $minutes)
fi


Am Donnerstag, 19. März 2020 07:43:14 UTC+1 schrieb Mikael Fredriksson:
Great! Thank you!

Mikael

Reply all
Reply to author
Forward
0 new messages