inside humidity graph

999 views
Skip to first unread message

Pete Geenhuizen

unread,
Jan 27, 2014, 8:25:10 AM1/27/14
to weewx...@googlegroups.com
I've been trying to figure out how to create a graph of the inside
humidity similar to the inside temperature graph, but for the life of
me I can't seem to figure out how any of the graphs are created let
alone a new one.

So what's the secret?

Pete

--
Unencumbered by the thought process.
-- Click and Clack the Tappet brothers

Steve

unread,
Jan 27, 2014, 8:37:41 AM1/27/14
to weewx...@googlegroups.com, pe...@geenhuizen.net
In the file skin.conf

Add something like:

Under

[ImageGenerator]

...

 [[day_images]]

...

  [[[dayhumidity]]]
    [[[[outHumidity]]]]
    [[[[inHumidity]]]]

Do the same for wee, month & year image sections if you want data graphed for those periods too.

In your index.html.tmpl or whatever template file you want to use to display the graph add:

<img src="dayhumidity.png" alt="humidity" />

(if you used dayhumidity as the name in skin.conf)

Add weehumdity.png, month, year etc wherever you want them displayed too i.e. week.html.tmpl etc.

I hope this helps.

Steve.

Steve

unread,
Jan 27, 2014, 8:44:34 AM1/27/14
to weewx...@googlegroups.com, pe...@geenhuizen.net
Have a look here for the proper information http://weewx.com/docs/customizing.htm#[ImageGenerator]


On Tuesday, 28 January 2014 00:25:10 UTC+11, pgeenhuizen wrote:

Bob Geddes

unread,
Jan 27, 2014, 9:05:44 AM1/27/14
to weewx...@googlegroups.com, pe...@geenhuizen.net
first edit the file /home/weewx/skins/Standard/skin.conf

Around line 183 there is are 2 lines

        inHumidity     = Inside Humidity
        inTemp         = Inside Temperature

these defines the title of the graphs.

Around line 477 there is are two lines

        [[[dayinside]]]
            [[[[inTemp]]]]

Add the following below them

        [[[dayhumidity]]]
            [[[[inHumidity]]]]

that will be enough to generate the graph every 5 minutes without any other changes

To display the graph you need to edit /home/weewx/skins/Standard/index.html.tmpl

around line 495 you will find and entry

          <img src="dayinside.png"    alt="Inside Temperatures" />

add the following line below it line

          <img src="dayhumidity.png"      alt="humidity" />

dayhumidity was a name I invented that does not clash and makes sense.
having got day working you need to do something similar for week month and year

good luck
Bob

Andrew Milner

unread,
Jan 27, 2014, 9:33:15 AM1/27/14
to weewx...@googlegroups.com, pe...@geenhuizen.net
Or, again in skin.conf, you can have inside and outside humidity on the same graph just by adding [[[[inHumidity]]]] underneath [[[[outHumidity]]]] for the daily, weekly and yearly humidity graphs.

Pete Geenhuizen

unread,
Jan 27, 2014, 11:18:53 AM1/27/14
to weewx...@googlegroups.com, wot...@gmail.com
Steve,
Thanks for the fast response, and you excellent instructions and boy do I feel stupid, I guess I just didn't look close enough.

Thanks to all for the other responses as well.

Pete

On 01/27/2014 08:44 AM, Steve wrote:
Have a look here for the proper information http://weewx.com/docs/customizing.htm#[ImageGenerator]

On Tuesday, 28 January 2014 00:25:10 UTC+11, pgeenhuizen wrote:
--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Damjan Hajsek

unread,
Aug 23, 2018, 8:29:46 AM8/23/18
to weewx-user
I have tried this but there is no week, month and year graph, only daily graph works.
where is the catch?

Dne ponedeljek, 27. januar 2014 14.25.10 UTC+1 je oseba pgeenhuizen napisala:

Andrew Milner

unread,
Aug 23, 2018, 9:09:51 AM8/23/18
to weewx-user
there is no catch

did you add the inHumidity to all of the graphs - or only daily??

maybe you should attach the skin you are using to your next post!!  Impossible to guess otherwise
daily.png
weekimages.png
monthimages.png
yearimages.png

Damjan Hajsek

unread,
Aug 23, 2018, 9:18:29 AM8/23/18
to weewx-user
Yes I did that, here is my conf file.


 # Default plot and aggregation. Can get overridden at any level.
    plot_type = line
    aggregate_type = none
    width = 1
    time_length = 86400    # == 24 hours
    [[day_images]]
        x_label_format = %H:%M
        bottom_label_format = %x %X
        time_length = 97200    # == 27 hours
       
        [[[daybarometer]]]
            [[[[barometer]]]]
       
        [[[daytempdew]]]
            [[[[outTemp]]]]
            [[[[dewpoint]]]]
       
        [[[daytempchill]]]
            [[[[windchill]]]]
            [[[[heatindex]]]]
       
        [[[dayrain]]]
            # Make sure the y-axis increment is at least 0.02 for the rain plot
            yscale = None, None, 0.02
            plot_type = bar
            [[[[rain]]]]
                aggregate_type = sum
                aggregate_interval = 3600
                label = Rain (hourly total)
               
        [[[dayrx]]]
            [[[[rxCheckPercent]]]]
       
        [[[daypond]]]
            yscale = None, None, 0.5
            [[[[extraTemp1]]]]
       
        [[[daywind]]]
            [[[[windSpeed]]]]
            [[[[windGust]]]]
       
        [[[dayinside]]]
            [[[[inTemp]]]]
       
        [[[dayhumidity]]]
            [[[[inHumidity]]]]
           [[[[outHumidity]]]]

        [[[daywinddir]]]
            # Hardwire in the y-axis scale for wind direction
            yscale = 0.0, 360.0, 45.0
            [[[[windDir]]]]
   
        [[[daywindvec]]]
            [[[[windvec]]]]
                plot_type = vector

        [[[dayradiation]]]
            [[[[radiation]]]]

        [[[dayuv]]]
            yscale = 0, 16, 1
            [[[[UV]]]]
           
    [[week_images]]
        x_label_format = %d
        bottom_label_format = %x %X
        time_length = 604800    # == 7 days
        aggregate_type = avg
        aggregate_interval = 3600
       
        [[[weekbarometer]]]
            [[[[barometer]]]]
       
        [[[weektempdew]]]
            [[[[outTemp]]]]
            [[[[dewpoint]]]]
       
        [[[weektempchill]]]
            [[[[windchill]]]]
            [[[[heatindex]]]]
       
        [[[weekrain]]]
            yscale = None, None, 0.02
            plot_type = bar
            [[[[rain]]]]
                aggregate_type = sum
                aggregate_interval = 86400
                label = Rain (daily total)
       
        [[[weekpond]]]
            yscale = None, None, 0.5
            [[[[extraTemp1]]]]
       
        [[[weekrx]]]
            [[[[rxCheckPercent]]]]
       
        [[[weekwind]]]
            [[[[windSpeed]]]]
            [[[[windGust]]]]
                aggregate_type = max
       
        [[[weekinside]]]
            [[[[inTemp]]]]

        [[[weekhumidity]]]
            [[[[inHumidity]]]]
           [[[[outHumidity]]]]

       
        [[[weekwinddir]]]
            yscale = 0.0, 360.0, 45.0
            [[[[windDir]]]]
   
        [[[weekwindvec]]]
            [[[[windvec]]]]
                plot_type = vector

        [[[weekradiation]]]
            [[[[radiation]]]]

        [[[weekuv]]]
            yscale = 0, 16, 1
            [[[[UV]]]]

    [[month_images]]
        x_label_format = %d
        bottom_label_format = %x %X
        time_length = 2592000    # == 30 days
        aggregate_type = avg
        aggregate_interval = 10800    # == 3 hours
        show_daynight = false
       
        [[[monthbarometer]]]
            [[[[barometer]]]]
       
        [[[monthtempdew]]]
            [[[[outTemp]]]]
            [[[[dewpoint]]]]
       
        [[[monthtempchill]]]
            [[[[windchill]]]]
            [[[[heatindex]]]]
       
        [[[monthrain]]]
            yscale = None, None, 0.02
            plot_type = bar
            [[[[rain]]]]
                aggregate_type = sum
                aggregate_interval = 86400
                label = Rain (daily total)
       
        [[[monthpond]]]
            yscale = None, None, 0.5
            [[[[extraTemp1]]]]
       
        [[[monthrx]]]
            [[[[rxCheckPercent]]]]
       
        [[[monthwind]]]
            [[[[windSpeed]]]]
            [[[[windGust]]]]
                aggregate_type = max
       
        [[[monthinside]]]
            [[[[inTemp]]]]

        [[[monthhumidity]]]
            [[[[inHumidity]]]]
           [[[[outHumidity]]]]

       
        [[[monthwinddir]]]
            yscale = 0.0, 360.0, 45.0
            [[[[windDir]]]]
   
        [[[monthwindvec]]]
            [[[[windvec]]]]
                plot_type = vector

        [[[monthradiation]]]
            [[[[radiation]]]]
           
        [[[monthuv]]]
            yscale = 0, 16, 1
            [[[[UV]]]]

    [[year_images]]
        x_label_format = %m/%d
        bottom_label_format = %x %X
        time_length = 31536000    # == 365 days
        aggregate_type = avg
        aggregate_interval = 86400
        show_daynight = false
       
        [[[yearbarometer]]]
            [[[[barometer]]]]
       
        [[[yeartempdew]]]
            [[[[outTemp]]]]
            [[[[dewpoint]]]]
       
        # Daily high/lows:
        [[[yearhilow]]]
            [[[[hi]]]]
                data_type = outTemp
                aggregate_type = max
                label = High
            [[[[low]]]]
                data_type = outTemp
                aggregate_type = min
                label = Low Temperature
               
        [[[yearwind]]]
            [[[[windSpeed]]]]
            [[[[windGust]]]]
                aggregate_type = max
       
        [[[yeartempchill]]]
            [[[[windchill]]]]
            [[[[heatindex]]]]
       
        [[[yearrain]]]
            yscale = None, None, 0.02
            plot_type = bar
            [[[[rain]]]]
                aggregate_type = sum
                # aggregate_interval = 2629800 # Magic number: the length of a nominal month
                aggregate_interval = 604800    # == 1 week
                label = Rain (weekly total)
       
        [[[yearpond]]]
            yscale = None, None, 0.5
            [[[[extraTemp1]]]]
       
        [[[yearrx]]]
            [[[[rxCheckPercent]]]]
       
        [[[yearinside]]]
            [[[[inTemp]]]]
       
        [[[yearhumidity]]]
            [[[[inHumidity]]]]
           [[[[outHumidity]]]]


        [[[yearwinddir]]]
            yscale = 0.0, 360.0, 45.0
            [[[[windDir]]]]

        [[[yearwindvec]]]
            [[[[windvec]]]]
                plot_type = vector

        [[[yearradiation]]]
            [[[[radiation]]]]
           
        [[[yearuv]]]
            yscale = 0, 16, 1
            [[[[UV]]]]

###############################################################################


Dne četrtek, 23. avgust 2018 15.09.51 UTC+2 je oseba Andrew Milner napisala:

Andrew Milner

unread,
Aug 23, 2018, 9:30:47 AM8/23/18
to weewx-user
you should have files in /home/weewx/public_html/Images called
weekhumidity.png
monthhumidity.png
yearhumidity.png

these files should be inserted into the templates for the appropriate pages

if you have the files - just try and browse to them with a browser and display them in the browser

they should be the graphs you are looking for

If the files do not exist check the log and see if any errors are being thrown whilst the graphs are being generated

Andrew Milner

unread,
Aug 23, 2018, 9:39:36 AM8/23/18
to weewx-user
Your webpage for the week tries to reference image files called weekinhumidity.png and weekouthumidity.png but from your skin.conf there will only be one file which will be called weekhumidity.png - so either change the section in skin to say [[[weekinhumidity]]] or change the template.





I guess it will be the same for month and year

Antonis Katsonis

unread,
Aug 23, 2018, 9:57:44 AM8/23/18
to weewx-user
Open your file and correct this:

        [[[dayhumidity]]]
            [[[[inHumidity]]]]
           [[[[outHumidity]]]]

to this:

        [[[dayhumidity]]]
            [[[[inHumidity]]]]
            [[[[outHumidity]]]]


You should learn the Python Indentation.

https://docs.python.org/2.0/ref/indentation.html

Andrew Milner

unread,
Aug 23, 2018, 10:00:46 AM8/23/18
to weewx-user
whilst I agree I do not think that is the cause of his problem though as the daily graph is ok and shows both in and out humidity, and he has indented all - daily, weekly, mponthly, yearly in the same manner

Antonis Katsonis

unread,
Aug 23, 2018, 10:07:12 AM8/23/18
to weewx-user
Because the week, month and year have the aggregate_interval.

Week graph will appear after 1 hour.

Andrew Milner

unread,
Aug 23, 2018, 10:09:17 AM8/23/18
to weewx-user
It won't appear because the name is wrong if you look at the source code of the weekly page..

Antonis Katsonis

unread,
Aug 23, 2018, 10:10:28 AM8/23/18
to weewx-user
You mean html file?

Andrew Milner

unread,
Aug 23, 2018, 10:11:59 AM8/23/18
to weewx...@googlegroups.com
yes


On 23 August 2018 at 17:10, Antonis Katsonis <nafpakti...@gmail.com> wrote:
You mean html file?

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/mCHcu4DFUNA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Antonis Katsonis

unread,
Aug 23, 2018, 10:19:12 AM8/23/18
to weewx-user
you should have files in /home/weewx/public_html/Images called
weekhumidity.png
monthhumidity.png
yearhumidity.png


The right path is:

/home/weewx/public_html/

Antonis Katsonis

unread,
Aug 23, 2018, 10:21:59 AM8/23/18
to weewx-user
@Damjan

ls -l /home/weewx/public_html/ and post the results.

Andrew Milner

unread,
Aug 23, 2018, 10:24:24 AM8/23/18
to weewx...@googlegroups.com
depends on the skin, and it does not look as though he is using the default skin.  With the Bootstrap skin my images are in a separate skin and use a separate directory to the html pages.

only he knows the right path!!!

Antonis - no point in two of us doing this - you carry on and sort him out.  I'm not adding anything more to this thread




--
Message has been deleted

Antonis Katsonis

unread,
Aug 23, 2018, 11:11:17 AM8/23/18
to weewx-user
Andrew I wanted to say the png files current, week, month and year are stored to the same path.

/public_html/
Message has been deleted

Antonis Katsonis

unread,
Aug 23, 2018, 11:36:35 AM8/23/18
to weewx-user
Andrew has it exactly right.


" It won't appear because the name is wrong if you look at the source code of the weekly page. "

To fix the problem follow the next steps:

1)
Open and edit the week.html.tmpl

and add the yellow line:

                <div class="card cc graphs" >
                    <h1><i class="fa fa-line-chart m-gruen" ></i> Weekly Statistics and Plots</h1>
                    
                    <img src="weektempdew.png" alt="temperatures" />
                    <img src="weektempchill.png" alt="heatchill" />
                    <img src="weekrain.png" alt="rain" />
                    <img src="weekwind.png" alt="wind" />
                    <img src="weekbarometer.png" alt="barometer"/>
                    <img src="weekhumidity.png" alt="OutHumidity" />
                    <img src="weekwinddir.png" alt="Hi Wind" />
                    <img src="weekinside.png" alt="Inside" />
                    <img src="weekinhumidity.png" alt="InHumidity" />
                    <img src="weekwindvec.png" alt="Wind Vector" />
                    <img src="weekuv.png" alt="UV index" />
                    <img src="weekradiation.png" alt="Radiation" />
                    <img src="weekuv.png" alt="UV Index" />
                </div>


2)
Open and edit the month.html.tmpl

and add the yellow line:

<div class="card cc graphs" > <h1><i class="fa fa-line-chart m-gruen" ></i> Monthly Statistics and Plots</h1> <img src="monthtempdew.png" alt="temperatures" /> <img src="monthtempchill.png" alt="heatchill" /> <img src="monthrain.png" alt="rain" /> <img src="monthwind.png" alt="wind" /> <img src="monthbarometer.png" alt="barometer"/>
<img src="monthhumidity.png" alt="OutHumidity" />
<img src="monthwinddir.png" alt="Hi Wind" />
<img src="monthinside.png" alt="Inside" /> <img src="monthwindvec.png" alt="Wind Vector" /> <img src="monthuv.png" alt="UV Index" /> <img src="monthradiation.png" alt="Radiation" /> <img src="monthuv.png" alt="UV Index" /> </div>


3)
Open and edit the year.html.tmpl

and add the yellow line:

<div class="card cc graphs" > <h1><i class="fa fa-line-chart m-gruen" ></i> Yearly Statistics and Plots</h1> <img src="yeartempdew.png" alt="temperatures" /> <img src="yeartempchill.png" alt="heatchill" /> <img src="yearhilow.png" alt="Daily highs and lows for the year" title="Daily highs and lows for the year"/> <img src="yearrain.png" alt="rain" /> <img src="yearwind.png" alt="wind" /> <img src="yearbarometer.png" alt="barometer"/> <img src="yearhumidity.png" alt="OutHumidity" /> <img src="yearwinddir.png" alt="Hi Wind" /> <img src="yearinside.png" alt="Inside" /> <img src="yearinhumidity.png" alt="InHumidity" /> <img src="yearwindvec.png" alt="Wind Vector" /> <img src="yearuv.png" alt="UV Index" /> <img src="yearradiation.png" alt="Radiation" /> <img src="yearuv.png" alt="UV Index" /> </div>

Andrew Milner

unread,
Aug 23, 2018, 12:12:33 PM8/23/18
to weewx-user
…… and sorry Antonis - but you missed these:

also in each of the sections delete the line 3 lines below the yellow line which references …..inhumidity.png because you are not creating that file any more if you put in humidity and out humidity on the same graph

Damjan Hajsek

unread,
Aug 23, 2018, 12:37:33 PM8/23/18
to weewx-user
I use sofaskin template and these are my 3 files


Dne četrtek, 23. avgust 2018 18.12.33 UTC+2 je oseba Andrew Milner napisala:
month.html.tmpl
week.html.tmpl
year.html.tmpl

Damjan Hajsek

unread,
Aug 23, 2018, 12:59:53 PM8/23/18
to weewx-user
I found out where problem is, thank you for your help
I had to change this lines for week, month and year

                    <img src="monthouthumidity.png" alt="OutHumidity" />
                    <img src="monthinhumidity.png" alt="InHumidity" />


to this and now it works

                    <img src="monthhumidity.png" alt="OutHumidity" />
                    <img src="monthhumidity.png" alt="InHumidity" />


Dne četrtek, 23. avgust 2018 18.37.33 UTC+2 je oseba Damjan Hajsek napisala:

Andrew Milner

unread,
Aug 23, 2018, 1:10:44 PM8/23/18
to weewx-user
Your weekly page has the humidity graph appearing two times.  You need to DELETE the second occurrence from the template, and check monthly and yearly to make sure you only have one graph appearing.

Damjan Hajsek

unread,
Aug 23, 2018, 1:17:46 PM8/23/18
to weewx-user
thank you for notice.
I didn't see that, I have reparied and now work ok.


Dne četrtek, 23. avgust 2018 19.10.44 UTC+2 je oseba Andrew Milner napisala:
Reply all
Reply to author
Forward
0 new messages