draw user-defined lines in graphics

244 views
Skip to first unread message

jf42

unread,
Mar 4, 2020, 9:08:35 AM3/4/20
to weewx-user
Hi All,

is it possible to draw user-defined lines, e.g. for showing limits for wind speeds etc?
The only relevant info I found in an old post at the weewx-development group
by mwall many years ago. But it seems that this feature is not yet impemented
in the released software?

Thanks in advance for helpful hints.


Ralph Underwood

unread,
Mar 4, 2020, 10:42:05 AM3/4/20
to weewx-user
I like to see the freezing level on many of my charts so I set soilTemp4 to 32 degrees in the StdCalibrate section of weewx.conf

[StdCalibrate]
    
    [[Corrections]]
        # For each type, an arbitrary calibration expression can be given.
        # It should be in the units defined in the StdConvert section.
        # Example:
        foo = foo + 0.2
        soilTemp4 = 32

This allows me to add soilTemp4 to any chart.

Outside Temperature
Not sure about about setting a wind limit, but maybe this will get you started.

vince

unread,
Mar 4, 2020, 12:19:22 PM3/4/20
to weewx-user
On Wednesday, March 4, 2020 at 7:42:05 AM UTC-8, Ralph Underwood wrote:
I like to see the freezing level on many of my charts so I set soilTemp4 to 32 degrees in the StdCalibrate section of weewx.conf

That is absurdly clever !!!

Thomas Keffer

unread,
Mar 4, 2020, 5:32:42 PM3/4/20
to weewx-user
As user "Mic G77" pointed out, you can also do math in the configuration file, skin.conf:

 [[[dayPoid]]]
   yscale = None, None, None
   [[[[extraTemp2]]]]
   [[[[extraTest]]]]
     data_type = 18.3+0.03*extraHumid2

-tk

--
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/c57f23fa-9981-40cc-8c84-3c4f3d5b2bfe%40googlegroups.com.

jf42

unread,
Mar 5, 2020, 4:05:15 AM3/5/20
to weewx-user
I will use the method by "Mic G77" which is quite straightforward.

        [[[daywind]]]
            [[[[windSpeed]]]]
            [[[[windGust]]]]
            [[[[windMax]]]]
              data_type = 13.5
              label = ' '
              color = orange
              width = 3

Wind Speed

Thanks to all!


jf42

unread,
Mar 5, 2020, 4:28:51 AM3/5/20
to weewx-user

Update: when using the above settings in skin.conf, the y unit is lost. Changing the sequence of plots
and explicitly giving the colors for all plots solves the problem:


        [[[daywind]]]

            [[[[windMax]]]]
              data_type = 13.5
              label = ' '
              color = orange
              width = 3
            [[[[windSpeed]]]]
              color = 0xb48242
            [[[[windGust]]]]
              color = 0x4242b4



Wind Speed

jf42

unread,
Mar 5, 2020, 4:32:23 AM3/5/20
to weewx-user

... this was the old image, but anyway, it works :-)

Jeff A. D.

unread,
May 1, 2020, 3:50:51 AM5/1/20
to weewx-user
What's the best way to do this with WeeWX Version 4?  Doing it this way would give an error of " UnknownType: 13.5".

Thanks,

Tom Keffer

unread,
May 1, 2020, 8:43:04 AM5/1/20
to weewx-user
I think you'll have to use the solution pointed out farther up this thread. In weewx.conf

[StdCalibrate]
   
    [[Corrections]]
        # For each type, an arbitrary calibration expression can be given.
        # It should be in the units defined in the StdConvert section.
        windMax = 13.5

Unfortunately, that also means the value will end up in your database.

-tk

--
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.

Jeff A. D.

unread,
May 1, 2020, 12:56:28 PM5/1/20
to weewx-user
Thanks,

That's disappointing.  Could a better solution be considered in a future version?
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

Tom Keffer

unread,
May 1, 2020, 5:48:37 PM5/1/20
to weewx-user
I added it to the TODO list.

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/299b750c-d733-4b30-9096-4958536e05f9%40googlegroups.com.

Jeff A. D.

unread,
May 1, 2020, 9:12:39 PM5/1/20
to weewx-user

Jeff A. D.

unread,
May 26, 2020, 4:49:20 AM5/26/20
to weewx-user
Thanks!

Working again with 4.1.0 "Allow expressions to be used as a datatype when plotting."

TempCharts.png

Makes it easier to see how long my growing season is in case I decide to invest in tropical fruit crops. :)

Thanks again, and thanks to others here for the idea!

Remy Lavabre

unread,
May 26, 2020, 5:35:01 AM5/26/20
to weewx-user
Hi Jeff,

Hello,
Your curves are superb!
Could you tell me the parameters to retrieve the maximum, minimum and average values and be able to plot them in curve tables?
Thank you very much ! ;-)


Jeff A. D.

unread,
May 26, 2020, 1:06:19 PM5/26/20
to weewx-user
Thanks Remy,

I added this under "[[year_images]]" in the "skins.conf" file for the Seasons skin I''m using.

        # Plot of high/low temperatures
        [[[yearhilow]]]
            [[[[freezeLine]]]]
                data_type = 32
                label = ' '
                color = 0x42b442       
            [[[[hi]]]]
                data_type = outTemp
                aggregate_type = max
                label = High Outside Temperature
                color = 0x4242b4
            [[[[low]]]]
                data_type = outTemp
                aggregate_type = min
                label = Low Outside Temperature
                color = 0xb48242

Assuming you don't want the freeze line you can just leave it and the "color" parameters out I think:

        [[[yearhilow]]]
            [[[[hi]]]]
                data_type = outTemp
                aggregate_type = max
                label = High Outside Temperature
            [[[[low]]]]
                data_type = outTemp
                aggregate_type = min
                label = Low Outside Temperature

I think that's all I did?  (I always forget and have to play with things to get them to do what I want.)

I also assume you could have all three variables (Out Temp, Hi Out Temp, and Lo Out Temp) on one plot if you wanted, but I didn't try it.

I think I got the example from some of the documentation, probably the Customization Guide.

Jeff A. D.

unread,
May 26, 2020, 2:27:23 PM5/26/20
to weewx-user
I just realized I didn't answer about the average value in the first plot.  That's just the [[[[outTemp]]]] under [[[yeartempdew]]] that was included in the original skin.conf that I commented out the dewpoint on for the yearly plot.

So normally it would have just looked like this:
        [[[yeartempdew]]]
            [[[[outTemp]]]]
            [[[[dewpoint]]]]




On Tuesday, May 26, 2020 at 3:35:01 AM UTC-6, Remy Lavabre wrote:

Remy LAVABRE

unread,
May 28, 2020, 4:58:06 AM5/28/20
to weewx...@googlegroups.com
Hi Jeff,
Thank you for your response. This allowed me to move forward and realize the graph I wanted! :-)
I'm sorry I didn't answer you earlier but I had a lot of work and didn't have too much time to take care of Weewx!
Thanks again for your information!

Another thing, if you had a solution, I'm looking to modify the "Steel Series" gauges for Weewx (https://github.com/mcrossley/SteelSeries-Weather-Gauges).
I would "simply" add 3 temperatures on the temperature gauge and 3 hygrometry on the hygrometry gauge.
Another solution, would be to a temperature gauge (in addition to that which exists) with these 3 temperatures and another of hygrometry jauge (in addition to that which already exists) with the 3 hygrometries ...
I managed to modify the Seasons skin well, but I can't find how to make this modification on the gauge skin ("ss" skin for steel series).

If you had an idea ... ;-)


Thank you very much !

Remy LAVABRE

 

--
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/c76820f0-580c-4d2c-b284-3f9de7432e9b%40googlegroups.com.

Jeff A. D.

unread,
May 29, 2020, 1:06:39 AM5/29/20
to weewx-user
Hi Remy,

I'm happy the plots worked out!

Sorry, but I've never worked with the SteelSeries Gauges.  I was hoping someone else might answer, but maybe you'd have better luck asking in a new topic.  Good luck!

On Thursday, May 28, 2020 at 2:58:06 AM UTC-6, Remy LAVABRE wrote:
Another thing, if you had a solution, I'm looking to modify the "Steel Series" gauges for Weewx (https://github.com/mcrossley/SteelSeries-Weather-Gauges).
I would "simply" add 3 temperatures on the temperature gauge and 3 hygrometry on the hygrometry gauge.
Another solution, would be to a temperature gauge (in addition to that which exists) with these 3 temperatures and another of hygrometry jauge (in addition to that which already exists) with the 3 hygrometries ...
I managed to modify the Seasons skin well, but I can't find how to make this modification on the gauge skin ("ss" skin for steel series).

If you had an idea ... ;-)

Thank you very much !

Remy LAVABRE

 

Le mar. 26 mai 2020 à 20:27, Jeff A. D. <jadav...@gmail.com> a écrit :
I just realized I didn't answer about the average value in the first plot.  That's just the [[[[outTemp]]]] under [[[yeartempdew]]] that was included in the original skin.conf that I commented out the dewpoint on for the yearly plot.

So normally it would have just looked like this:
        [[[yeartempdew]]]
            [[[[outTemp]]]]
            [[[[dewpoint]]]]




On Tuesday, May 26, 2020 at 3:35:01 AM UTC-6, Remy Lavabre wrote:
Hi Jeff,

Hello,
Your curves are superb!
Could you tell me the parameters to retrieve the maximum, minimum and average values and be able to plot them in curve tables?
Thank you very much ! ;-)


--
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...@googlegroups.com.

Graham Eddy

unread,
May 29, 2020, 2:52:53 AM5/29/20
to weewx...@googlegroups.com
modifying steelseries gauges, in particular changing or adding gauges.
there are three main areas to change:
 (1) html/css files. easy - weewx templates.
 (2) gauges data exchange file content. easy - weewx template.
 (3) javascript driving the gauges. not so easy - custom js coding.

i have been through deploying steelgauges twice, once for wview then for weewx.
i have added multiple extra gauges, including a river temperature (which was just copying and changing outside temperature gauge) and river level (which was entirely new gauge, closer to rainfall, with different data interface). even just adapting the outside temp gauge is not trivial (or perhaps my javascript skills are weak..) but it does work fine

in the long run i decided they were too resouce-hungry for the glam so went with my own light-weight version, which i have recently hooked up to mqtt for live feed (see weather.geddy.com.au).
cheers
g-eddy

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/9ef17682-7a21-422d-9ed8-06e4e322586a%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages