Graphing GW2000 Piezo rain

70 views
Skip to first unread message

Stephen Hocking

unread,
May 4, 2022, 3:40:26 AM5/4/22
to weewx...@googlegroups.com
Hi all,

I've obviously missed something here, but I thought adding a stanza of the form

       [[[dayprain]]]
            # Make sure the y-axis increment is at least 0.02 for the rain plot
            yscale = None, None, 0.02
            plot_type = bar
            [[[[p_rain]]]]
                aggregate_type = sum
                aggregate_interval = hour
                label = Piezo Rain (hourly total)


After the similar entry for dayrain in skins/Standard/skin.conf and adding the line

         <img src="dayprain.png"     alt="Piezo rain" />

after the similar entry for dayrain in skins/Standard/index.html.tmpl would be sufficient, but when I restart weewx and look at the result, I get the missing image graphic where I would expect to see the plot. Can anyone point me in  the right direction?

--
  "I and the public know
  what all schoolchildren learn
  Those to whom evil is done
  Do evil in return"		W.H. Auden, "September 1, 1939"

Message has been deleted

gjr80

unread,
May 4, 2022, 5:03:29 AM5/4/22
to weewx-user
First thing to check is does your archive have a field p_rain? If you want plot the observation p_rain it needs to be saved to archive. Have you done that? wee_database --add-column would do that for you. More detailed coverage on modifying the database schema can be found here in the Customisation Guide.

Gary

Stephen Hocking

unread,
May 4, 2022, 6:29:17 AM5/4/22
to weewx...@googlegroups.com
Hi Gary,

That seems to have worked - thank you very much! Now to find why the Seasons skin isn't plotting a lot of its stuff...

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/3fc40d71-ccb1-4a73-88cc-f9b932087e75n%40googlegroups.com.

gjr80

unread,
May 4, 2022, 7:50:34 AM5/4/22
to weewx-user
You will find Seasons is quite different to Standard. Seasons was parameterised in v4.6.0 and it now automatically picks up a wide variety of observations in thew view_extended schema. It won't pick up p_rain so you will need to make some changes, but these should be limited to skin.conf, in particular the [DisplayOptions] and [CheetahGenerator] stanza. If you follow the entries that include rain, and add in p_rain you should be pretty close. 

Gary

Stephen Hocking

unread,
May 6, 2022, 12:36:39 AM5/6/22
to weewx...@googlegroups.com
Turns out there was an error (which I still haven't quite tracked down) in the skins.conf for Seasons, where a lot of extra sensors that hardly anyone has were listed. This was stopping the images for windspeed, wind direction and quite a few others from being generated. When I moved their stanzas before those of the extraneous sensors, the images were being generated again.

gjr80

unread,
May 6, 2022, 3:02:20 AM5/6/22
to weewx-user
Stephen,

Seasons was recently 'parameterised' and it is designed to handle a lot of commonly used observations, but only report on/generate plots for those observations that are available. If it's giving an error out of the box then that's a bug and we would like to fix it. Can you please give us some details so we can look into it further.

Gary

Reply all
Reply to author
Forward
0 new messages