Page 1 of 1

Graphs > Wind : Change from km/h to m/s ?

Posted: Wed Sep 29, 2021 9:59 am
by cphMichael
In the Graphs > allinone-iso

Is it possible to change the Wind messurement from km/h to m/s ?

Re: Graphs > Wind : Change from km/h to m/s ?

Posted: Wed Sep 29, 2021 11:34 am
by Mattk
Sure. Wind speed by default is m/s, allinone-iso uses the "kmh" convertor to output km/h. Remove all references of =kmh from any wind related data AND edit/change any textual reference from km/h to m/s

Re: Graphs > Wind : Change from km/h to m/s ?

Posted: Wed Sep 29, 2021 12:52 pm
by cphMichael
I am using the Saratoga-weather templates.

My "MBtags.php" looks like this:

- - - - -

$WXsoftware = 'MB';
$defsFile = 'MB-defs.php'; // filename with $varnames = $WX['MB-varnames']; equivalents

$rawdatalines = '
date|2021-09-29|// local date:|:
time|12:43:00|// local time:|:
dateUTC|2021-09-29|// UTC date:|:
timeUTC|10:43:00|// UTCtime:|:
uomTemp|°C|// UOM temperature:|:
uomWind| m/s|// UOM wind:|:
uomBaro| hPa|// UOM barometer:|:
uomRain| mm|// UOM rain:|:

- - - - -

Is that what changes the Wind graphs to m/s ?

You can see my graphs here:

https://frederiksberg-vejret.dk/ChartTodayHour.php

Re: Graphs > Wind : Change from km/h to m/s ?

Posted: Sat Oct 23, 2021 8:48 am
by svampen
Hej!
On the top of your site, the alternating values are already m/s.

I say it is only the graph you need to change. Am I right?
The chart is generated in the meteobridge from a template-file.

To change the graph, you will need to change the template-file.
Log on to your meteobridge file system. Go to data -> templates. There you find a file called allinone-iso.chart.

I have myself already made this change to m/s , so feel free to just copy my file. Download this and put it in the same template-folder.
https://fishmoose.se/slask/allinone-iso-mps.chart

Now go to the web interface of your meteobridge, go to services -> events and change the chart generating template to this new allinone-iso-mps

...
I do not know if you also use the min-max chart, but feel free to download also that template, I have changed also this to m/s:
https://fishmoose.se/slask/allinoneminmax-iso-mps.chart

....
NOTE! Another option is to use the metachart option in the meteobridge. With that you can make the layout and contents of the graph the way you want. (See attached screenshot) The name you enter at the top, you then choose as template in the settings->events.
(However, I think that using my file above is the fastest solution)