weewx - how to add newly added soil moisture and temp sensors

543 views
Skip to first unread message

Frank von Thienen

unread,
May 9, 2015, 5:20:08 PM5/9/15
to weewx...@googlegroups.com
Hi all,
sorry for bothering, but this forum let me out of some questions once a while.
Unfortunately, this time I could not get the requested info ....

I got a new set of 4 soil moisture and 4 additional temp sensors for the vantage pro2.
The data of the newly added sensors are appearing on the console. so far so good :-)

I read, that the weewx software can handle those 8 new sensors automatically. so far so good 


Question:
What I am supposed to do to get those newly added sensors displayed in the skins? 
I am not using the standard skin but the blue3 something.

If one can tell me what to do or where I find some info about the skins, I would appreciate this.

I can switch to the standard skin, if this is displayed by default if provided.

Do I have to add anything to the whew.config?
Do I have to add anything to the standard skin?
Do I have to do anything else to get it displayed


So ... any help appreciated.

Best
Frank

Frank von Thienen

unread,
May 9, 2015, 5:24:31 PM5/9/15
to weewx...@googlegroups.com
It is not Blue xxx but Byteweather3, sorry....

Michael Walker

unread,
May 9, 2015, 6:46:29 PM5/9/15
to weewx...@googlegroups.com
I wish I had the answer, but I am stuck at the same place.  I at least have a graph on my page, but I am unsure how to link in the raw data.

Mike

vince

unread,
May 9, 2015, 7:29:08 PM5/9/15
to weewx...@googlegroups.com
On Saturday, May 9, 2015 at 2:20:08 PM UTC-7, Frank von Thienen wrote:
So ... any help appreciated.



Read the Users' Guide.
Read the Customization Guide

Take a look at your skin template files to see the general form for referencing data there.

Which 4 moisture and additional temp sensors did you get for the VP2 ?
Is any data from them being saved in your archive table in weewx.sdb ? 

Which version of weewx are you running ?
Are you running sqlite3 or mysql for your database ?

It's very hard to help with very skeletal info and 'what do I need to do' kind of questions like yours....

 

Frank von Thienen

unread,
May 10, 2015, 7:41:17 AM5/10/15
to weewx...@googlegroups.com
Hi all,

I took the hint from vince and read the manuals again.
I found some new information and tried it.
Finally it worked for me in the way, that tI got everything  like to see.
So far so good.

thanks for putting me on the manuals again, even so I have read them a couple of times... but nut deep enough I guess.


Question remains:
In the plots I see the CB for centibar for the moisture.
I like to display each sensor soilTemp1 and soilMoist1 in one plot.
That is done and I can read the data....

BUT!!!! in the upper left corner, I see a "cb" which is not correct since I have soilTemp and soilMoist in one plot.
So how do I change the unit of that plot.
I tried a few things, but it did not work

Any hints on that please.

@Michael: I will post my changes after I have solved all issues.
but just some info:
skin.con
adding
        # This one is probably specific to my station!
        soilTemp1     = Soil Temp 1
        soilTemp2     = Soil Temp 2
        soilTemp3     = Soil Temp 3
        soilTemp4     = Soil Temp 4
        
        soilMoist1 = Soil Moist 1
        soilMoist2 = Soil Moist 2
        soilMoist3 = Soil Moist 3
        soilMoist4 = Soil Moist 4

for the daily images
 [[[daysoilsensor1]]]
            yscale = None, None, 0.5
            [[[[soilTemp1]]]]
            [[[[soilMoist1]]]]
            
        [[[daysoilsensor2]]]
            yscale = None, None, 0.5
            [[[[soilTemp2]]]]
            [[[[soilMoist2]]]]
             
        [[[daysoilsensor3]]]
            yscale = None, None, 0.5
            [[[[soilTemp3]]]]
            [[[[soilMoist3]]]]   
                        
        [[[daysoilsensor4]]]
            yscale = None, None, 0.5
            [[[[soilTemp4]]]]
            [[[[soilMoist4]]]]

This has to be done for week, month and year

index.html.template you have to do something like this:
              #if $day.soilTemp1.has_data
                <tr>
                  <td class="stats_label">
                    High Soil Temp. 1<br/>
                    Low Soil Temp. 1
                  </td>
                  <td class="stats_data">
                    $day.soilTemp1.max at $day.soilTemp1.maxtime<br/>
                    $day.soilTemp1.min at $day.soilTemp1.mintime
                  </td>
                </tr>
              #end if
              #if $day.soilMoist1.has_data
                <tr>
                  <td class="stats_label">
                    High Soil Moist. 1<br/>
                    Low Soil Moist. 1
                  </td>
                  <td class="stats_data">
                    $day.soilMoist1.max at $day.soilMoist1.maxtime<br/>
                    $day.soilMoist1.min at $day.soilMoist1.mintime
                  </td>
                </tr>
              #end if


and for the plots in index.html.tmpl
        </div><div class="plots">   
          <img class="grid_4 alpha" src="daysoilsensor1.png"    alt="Soil Sensor 1" />
          <img class="grid_4 omega"  src="daysoilsensor2.png"   alt="Soil Sensor 2" />
          <div class="clr"></div>
        </div><div class="plots">   
          <img class="grid_4 alpha" src="daysoilsensor3.png"    alt="Soil Sensor 3" />
          <img class="grid_4 omega"  src="daysoilsensor4.png"   alt="Soil Sensor 4" />
          <div class="clr"></div>


Hope that gives you a direction to look for

Best
Frank



Am Samstag, 9. Mai 2015 23:20:08 UTC+2 schrieb Frank von Thienen:

Frank von Thienen

unread,
May 10, 2015, 11:40:23 AM5/10/15
to weewx...@googlegroups.com
Hi again,

what I am looking for, is setting the Unit Label in the plot manually.
It is the text in the upper left corner of the plot

Andrew Milner

unread,
May 10, 2015, 12:29:45 PM5/10/15
to weewx...@googlegroups.com
I tyhink they are in the [[Labels]] section of skin.conf

Frank von Thienen

unread,
May 10, 2015, 5:42:15 PM5/10/15
to weewx...@googlegroups.com
Hi Andrew,
I have found a lot of entries which may be ok,
but I am looking for the connection between the text and the plot. So I have set up a few more defines, but I did not get the point, where the LABEL centibar in the plot is set.
As soon as I get the info, I know what to do, or at least I can imagine what to do.
So my question is, where are the labels of the plots are set?
That's all, if I get this position, I know how to handle it.

Best
Frank
Reply all
Reply to author
Forward
0 new messages