Page 3 of 3

Re: UV index readings realtime

Posted: Thursday 06 August 2020 15:04
by FireWizard
@Benneton,

Hello Bernhard,

This thread is discussing the daily produced UV values, Max. UV values, Safe exposure time and the Ozone value.
In fact these are "Health" issues and indications to avoid skin burn or skin cancer.

It has nothing to do with the Solar forecast, so that you can predict what you Solar panels produce.
If you are interested in that, have a look at https://www.domoticz.com/forum/viewtopi ... r+forecast.

Here you will find also a dZVents script, that polls api.forecast.solar
I use this script for a couple of months and it works error free. However the forecast is often too optimistic.

Regards

Re: UV index readings realtime

Posted: Thursday 06 August 2020 17:26
by Benneton
Hi FireWizard,

Will look into that, and see if this bring additional value to my setup.
Solar panels monitoring still works fine :)

Bernard

Re: UV index readings realtime

Posted: Thursday 29 October 2020 16:30
by Toulon7559
With waaren's Open_UV script as basis looking for a new source of Ozone-information, to replace DarkSky's ozone info.

Equivalent to the devices for UV, added in Domoticz a virtual device, but as Custom Sensor to deal with ozone-level in Dobson-units, with a corresponding line in the 'data'-section of the script (see below)

Code: Select all

openUV_ozone_Dobson_device = {initial = 65                                  },
In the script already an item which seems applicable

Code: Select all

openUVResponse.result.ozone
Using that item, in de 'update'-section added one line equivalent to the readout & compilation of the UV-info, as shown below.

Code: Select all

            -- Update UV devices    
            dz.devices(dz.data.openUV_currentUV_device).updateUV(dz.utils.round(openUVResponse.result.uv,1))
            dz.devices(dz.data.openUV_maxUV_device).updateUV(dz.utils.round(openUVResponse.result.uv_max,1))
            -- Update Ozone device    
            dz.devices(dz.data.openUV_ozone_Dobson_device).updateUV(dz.utils.round(openUVResponse.result.ozone,1))
Unfortunately no update resulting for the new device.
Any hint?

Re: UV index readings realtime

Posted: Thursday 29 October 2020 17:27
by waaren
Toulon7559 wrote: Thursday 29 October 2020 16:30

Code: Select all

 dz.devices(dz.data.openUV_ozone_Dobson_device).updateUV(dz.utils.round(openUVResponse.result.ozone,1))
You have defined a custom sensor but try to update it with a method that is only available for UV type devices.
For custom sensors you need to use the method updateCustomSensor. See this wiki chapter on this device type.

Re: UV index readings realtime

Posted: Friday 30 October 2020 10:47
by Toulon7559
@waaren
Thanks!
;-) Still a lot to learn for use of dzVents ........