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

Updating UV index in strings.ini

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
canlab@sasktel.net
Posts: 8
Joined: Thu 18 Mar 2021 2:12 pm
Weather Station: Ecowitt
Operating System: Windows 10

Updating UV index in strings.ini

Post by canlab@sasktel.net »

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?
User avatar
mcrossley
Posts: 12756
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

Post by mcrossley »

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.
User avatar
ConligWX
Posts: 1619
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

Post by ConligWX »

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.
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir • CumulusMX v4.0.0

Image
Post Reply