Sensor IDs and Values

Discussion about generation of graphs and tables
Post Reply
Edzo1
Posts: 1
Joined: Sat Mar 23, 2013 3:03 pm

Sensor IDs and Values

Post by Edzo1 » Sat Mar 23, 2013 3:52 pm

When creating charts/graphs/tables, can MeteoPlug display in inches, mph, degrees fahrenheit, etc like Meteohub does? Thank you.

wendybilger
Posts: 1
Joined: Wed Aug 28, 2013 6:50 am

Re: Sensor IDs and Values

Post by wendybilger » Wed Aug 28, 2013 7:06 am

Meteoplug makes use of amcharts for interactive graphing and fusionwidgets for live displays with meters and gauges. Yes Meteoplug displays Sensor IDs and Values but in degree Celsius and mps.You can then convert it.

User avatar
admin
Site Admin
Posts: 332
Joined: Sun Feb 07, 2010 9:22 pm

Re: Sensor IDs and Values

Post by admin » Wed Aug 28, 2013 3:08 pm

yes, imperial units can be used for graphing and templating.

1) Graphing
There is a predefined chart definition named "_temp-hum-day1-F" that displays a days temperature, dew point and humidity in an imperial style.

Code: Select all

timeframe=3D    # set total time frame to 3 days before today until today
zoom=1D            # select actual day 

gtitle=Temp/Hum    # name of graph
gheight=400       # height in pixels of graph
gwidth=550         # width in pixels of graph
glunit=°F            # unit of left y-axis
grunit=%            # unit of right y-axis 
gtype=line          # type of graph
gtrim=0              

sid0=th0 sname0=temp ssel0=temp soffset0=32 sfactor0=1.8      # sensor 0, temperature
sid1=th0 sname1=dew ssel1=dew soffset1=32 sfactor1=1.8        # sensor 1, dew point
sid2=th0 syaxis2=r  sname2=hum ssel2=hum   # sensor 2, humidity

You can see that an offset and a factor are applied to sensor definitions of temperature and dew point. Offset and factor do the computation from Celsius to Fahrenheit: Clesius * 1.8 + 32 = Fahrenheit

2) Templating:
When using templates to fill HTML files with recent weather data, you can also make use of the factor/offset technique explained above. Please have a look at the example below, where various imperial conversions are applied in brackets:

Code: Select all

<html>
  <head>
    <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
    <title>Meteoplug HTML Mini-Dashboard</title>
  </head>
  <body bgcolor="#ffffff">
    <table border="1" cellpadding="0" cellspacing="2" width="550">
      <tr>
        <td>Actual Temperature</td>
        <td>[actual_min5_th0_temp_1:--] °C ([actual_min5_th0_temp_1_1.8_32:--] °F)</td>
      </tr>
      <tr>
        <td>Todays Max Temperature</td>
        <td>[actual_day1_th0_tempmax_1:--] °C ([actual_day1_th0_tempmax_1_1.8_32:--] °F)
           at [actual_day1_th0_tempmaxtime_11_5:--]</td>
      </tr>
      <tr>
        <td>Todays Min Temperature</td>
        <td>[actual_day1_th0_tempmin_1:--] °C ([actual_day1_th0_tempmin_1_1.8_32:--] °F) 
          at [actual_day1_th0_tempmintime_11_5:--]</td>
      </tr>
      <tr>                      
        <td>This Month's Max Temperature</td>
        <td>[actual_month1_th0_tempmax_1:--] °C ([actual_month1_th0_tempmax_1_1.8_32:--] °F) 
          at [actual_month1_th0_tempmaxtime:--]</td>
      </tr>
      <tr>
        <td>This Month's Min Temperature</td>
        <td>[actual_month1_th0_tempmin_1:--] °C ([actual_month1_th0_tempmin_1_1.8_32:--] °F)
           at [actual_month1_th0_tempmintime:--]</td>
      </tr>
      <tr>
        <td>Actual Humidity</td>
        <td>[actual_min5_th0_hum_0:--] %</td>
      </tr>
      <tr>
        <td>Actual Pressure</td>
        <td>[actual_min5_thb0_seapress_1:--] hPa ([actual_min5_thb0_seapress_2_0.02952] in/Hg)</td>
      </tr>
      <tr>
        <td>Actual Average Wind Speed</td>
        <td>[actual_min5_wind0_wind_1_3.6] km/h ([actual_min5_wind0_wind_1_2.237] mp/h)</td>
      </tr>
      <tr>
        <td>Todays Rainfall</td>
        <td>[actual_day1_rain0_total_1:--] mm ([actual_day1_rain0_total_2_0.0394:--] in)</td>
      </tr>
      <tr>
        <td>This Month's Rainfall</td>
        <td>[actual_month1_rain0_total_1:--] mm ([actual_month1_rain0_total_2_0.0394:--] in)</td>
      </tr>
    </table>
  </body>
</html>
So you don't have a simple "imperial" switch to flip, but a flexible conversion mechanism.

reeja
Posts: 1
Joined: Wed Dec 31, 2014 11:08 am

Re: Sensor IDs and Values

Post by reeja » Wed Dec 31, 2014 11:35 am

Leider ist Wasser aus der Beregnungsanlage in den Regenmesser gekommen.
Ich habe die betroffenen Datensätze nun gemäss Anleitung gelöscht, sie sind markiert.
In den Grafiken erscheinen die "Regenmengen" immer noch.
Was habe ich nicht gemacht?
You can try out our vce manager and latest vce software to get high flying success in final open vce files and www.loyola.edu Our Miami International University of Art & Design is also very useful tool.

User avatar
admin
Site Admin
Posts: 332
Joined: Sun Feb 07, 2010 9:22 pm

Re: Sensor IDs and Values

Post by admin » Wed Dec 31, 2014 11:51 am

Der erste nicht gelöschte Regendatensatz muss "genullt" werden, damit Meteoplug
den Sprung in der Regenmenge ignoriert. "Genullte" Datensätze erscheinen in der
Datenansicht mit einem "z".

Post Reply