Meteobridge Client -- Graphs in Metric

Discussion about generation of graphs and tables
Post Reply
RickNY
Posts: 1
Joined: Fri Aug 16, 2013 10:02 pm

Meteobridge Client -- Graphs in Metric

Post by RickNY » Fri Aug 16, 2013 10:05 pm

Im using Meteobridge as the Meteoplug client. When I view any of the graphs, they are in metric format. How do I easily make them show up with imperial units?

Thanks,
Rick

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

Re: Meteobridge Client -- Graphs in Metric

Post by admin » Sat Aug 17, 2013 7:41 am

This will need you to change the graph definition.

As anexample, there is a definition called "*t"

Code: Select all

timeframe=1D    # set total time frame of today
zoom=MAX            # select actual day 

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

sid0=th* sname0=temp ssel0=temp      # sensor 0, temperature
sid1=th* sname1=dew ssel1=dew         # sensor 1, dew point
sid2=th* syaxis2=r  sname2=hum ssel2=hum   # sensor 2, humidity
# sid3=wind* sname3=chill ssel3=chill
# sid4=th* sname4=heat ssel4=heat
When you want imperial units, you change lines to

Code: Select all

glunit=°F            # unit of left y-axis
and

Code: Select all

sid0=th* sname0=temp ssel0=temp sfactor0=1.8 soffset0=32      # sensor 0, temperature
sid1=th* sname1=dew ssel1=dew sfactor1=1.8 soffset1=32         # sensor 1, dew point
That applies formular °F = (°C x 1.8°) + 32° to temp and dew.

Post Reply