How to plot UV-max instead of UV-avg in allinone-iso.chart?

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
WS Heinenoord
Junior Boarder
Junior Boarder
Posts: 36
Joined: Sun Dec 22, 2019 2:08 pm

How to plot UV-max instead of UV-avg in allinone-iso.chart?

Post by WS Heinenoord »

I'm using the allinone-iso.chart to plot data for year period. All data seem to represent day-averages. Which is logical for most parameters over such long period. But for UV-index it's not that relevant. I would prefer to see the maximum UV-index of the day. How to change that?
There's this section in the allinone-iso.chart where parameters to plot are defined:
"fromField": "u",
"toField": "uv"

I tried changing "u" to "uh" or "hu" but that's not working. What is the proper code to get the UV maximun for the day?
Like for wind there's the windgust as maximum.
User avatar
Gyvate
Platinum Boarder
Platinum Boarder
Posts: 453
Joined: Thu May 14, 2020 4:36 pm
Location: Saarbrücken, Germany

Re: How to plot UV-max instead of UV-avg in allinone-iso.chart?

Post by Gyvate »

I don't know the details of your request (background, context), but when the sensor-selector in the allinone-iso.chart is [uv0index-avg.1:void], then I would try to replace it by [uv0index-max.1:void].
Create a copy of allinone-iso.chart and rename that copy to allinone-iso-UVmax.chart and change the uv selector as described above

there is a line starting with
#METEOBRIDGE#DATA
where the sensors with their selectors are listed - and they are all "-avg" - change the uv sensor to "-max" and that should do the job
WH4000SE 1.6.6/1 x DP1500/4 x GW1000 1.7.7/GW1100 2.3.0/HP1000SE Pro 1.9.3//2 x WH2650 1.7.7/GW2000 3.1.0
2xMeteobridge Pro [B+R] 15161, 2xRPi4B-2GB/16/32 3139,VM128 1704
Weather Landing page: https://meshka.eu
Ecowitt WiKi: https://meshka.eu/Ecowitt/dokuwiki
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1387
Joined: Mon Sep 22, 2014 3:24 am

Re: How to plot UV-max instead of UV-avg in allinone-iso.chart?

Post by Mattk »

WS Heinenoord wrote: Sun Feb 25, 2024 5:02 pm ...... I tried changing "u" to "uh" or "hu" but that's not working. What is the proper code to get the UV maximun for the day?
This is a good place to start in understanding the Sensor/Selector relationship https://www.meteobridge.com/wiki/index.php/Templates

Selector of maximum value of today (if this is what you require?) is: dmax
WS Heinenoord
Junior Boarder
Junior Boarder
Posts: 36
Joined: Sun Dec 22, 2019 2:08 pm

Re: How to plot UV-max instead of UV-avg in allinone-iso.chart?

Post by WS Heinenoord »

Thanks Gyvate for pointing to that line: "#METEOBRIDGE#DATA". I completely missed that as data source. ( :oops: blame the small laptop screen...)
Changing the selector as suggested by Mattk worked.
Thanks again for the quick help!
Post Reply