Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Updating UV index in strings.ini
Moderator: mcrossley
-
- Posts: 8
- Joined: Thu 18 Mar 2021 2:12 pm
- Weather Station: Ecowitt
- Operating System: Windows 10
Updating UV index in strings.ini
I currently have my website set up to display UV index. It currently shows as a number. I would like to change that to "low", "moderate", etc. Would that be done in the strings.ini file? If so how?
- mcrossley
- Posts: 12763
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Updating UV index in strings.ini
No, you would have to translate the index number into text either on your server using say PHP, or in the clients browser using a bit of JavaScript.
- ConligWX
- Posts: 1630
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 22.04 LTS
- Location: Bangor, NI
- Contact:
Re: Updating UV index in strings.ini
if you take a look at Saratoga templates code you should find how it is done.
Example:
https://www.conligwx.org/wxuvforecast.php
though the url its taken from is here: https://www.temis.nl/uvradiation/nrt/uvindex.php the value is then read and a Low, Medium, high value put in place.
Example:
https://www.conligwx.org/wxuvforecast.php
though the url its taken from is here: https://www.temis.nl/uvradiation/nrt/uvindex.php the value is then read and a Low, Medium, high value put in place.
Regards Simon
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0
https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0