Current UVindex value display for stations without UV hardware

Post Reply
User avatar
meteocaldas
Language Admin
Language Admin
Posts: 111
Joined: Fri Aug 25, 2017 7:56 pm
Location: Caldas da Rainha, Portugal
Station model: OS WMR-88A
Software: Cumulus
Contact:

Current UVindex value display for stations without UV hardware

Post by meteocaldas » Thu Nov 30, 2017 11:09 pm

Both Wu .json and Darksky .Json used in MT have hourly forecasts for the UVindex value.
I have been testing both UVi forecasts, for some time now, comparing these forecasted values with the realtime values of some weather stations in my neighborhood..

WU is not very precise, because it gives the value for the next hour, lets say, at 10am it displays the value forecasted for 11am, (usually higher than realtime), and in the afternoon it is the opposite as value at 3pm will show 4pm value, (usually lower). These errors are not very important because they tend to be only +/- 1, maximum +/-2. The problem with WU, is always the same: it goes offline very often and sometimes, for long periods of time.

DarkSky however, is fantastic. (don't take this as an advertisement! :) )
During the testing weeks it never failed, and most of all, it always gave very accurate values of UVIndex.

Since my station has no UV and no Solar hardware (like the majority of MT users), I can't denny my frustration for not having that info in my site, but...
as MT already uses DarkSky .json (it is stored in /pages/forecast/cache/current.txt), I played around with it for sometime and I finally managed to succed in adding the current UVI forecasted value to the uvForecastBlock.
It looks like this:
Image Image
The Block is a little customized, (don't take that into account) but the idea worked and I feel very happy with this solution, specially because it is very accurate.
I am showing this, as it may be of the interest to many other users without UV hardware, and if that is the case, I am sure Jachym will not take long to include this feature as an option in the next version of uvForecastBlock... and I will be the first to download the update :D

Image
Last edited by meteocaldas on Fri Dec 01, 2017 1:49 pm, edited 3 times in total.

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Forecasted UV hourly value for stations without UV hardware

Post by Jachym » Fri Dec 01, 2017 10:10 am

Hi,
Im a bit confused as to what exactly you did :D Are we talking about forecast or current conditions?

User avatar
meteocaldas
Language Admin
Language Admin
Posts: 111
Joined: Fri Aug 25, 2017 7:56 pm
Location: Caldas da Rainha, Portugal
Station model: OS WMR-88A
Software: Cumulus
Contact:

Re: Current UVindex value display for stations without UV hardware

Post by meteocaldas » Fri Dec 01, 2017 1:08 pm

Hi Jachym, please excuse me! I have reread my explanation and you are right, it is not clear at all :-)
To avoid further confusion, I have already edited the subject of the post.
In fact, where I wrote "hourly value" I should have written "current hour value" because the UVindex value is parsed from the "currently" part of current.txt

"currently":{"time":1512130922,"summary":"Clean","icon":"clearday","precipIntensity":0,"precipProbability":0,"temperature":13.47,"apparentTemperature":13.47,"dewPoint":6.03,"humidity":0.61,"pressure":1024.85,"windSpeed":4.67,"windGust":6.57,"windBearing":352,"cloudCover":0,"uvIndex":2,"ozone":280}

The Darksky forecasted UVindex current values are really very accurate (tested for several weeks at my location), and it would be fantastic if you could add them as an option to be displayed in a future version of uvForecastBlock :-)
Thanks in advance.

Image
Last edited by meteocaldas on Fri Dec 01, 2017 1:50 pm, edited 2 times in total.

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Forecasted current UVindex value for stations without UV hardware

Post by Jachym » Fri Dec 01, 2017 1:19 pm

Hi,
ok so if I understand this correctly, you mean using value of UV index from DarkSky as if you had your own UV sensor and showing it in current conditions?

User avatar
meteocaldas
Language Admin
Language Admin
Posts: 111
Joined: Fri Aug 25, 2017 7:56 pm
Location: Caldas da Rainha, Portugal
Station model: OS WMR-88A
Software: Cumulus
Contact:

Re: Current UVindex value display for stations without UV hardware

Post by meteocaldas » Fri Dec 01, 2017 1:26 pm

Jachym wrote: Fri Dec 01, 2017 1:19 pm Hi,
ok so if I understand this correctly, you mean using value of UV index from DarkSky as if you had your own UV sensor and showing it in current conditions?
Yessssssss please ;)

Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Current UVindex value display for stations without UV hardware

Post by Jachym » Fri Dec 01, 2017 1:54 pm

OK, well this is a major thing because we are basically talking about using external data as our data. This is not used anywhere else in the template and I am a bit undecided about whether I like this idea or not. On one hand it is nice to have a UV sensor, on the other hand, everyone assumes your data is your data - what you measured. I have seen Darksky being very inaccurate in their forecasts, especially for some locations so this could be misleading.

I guess I will have to see what others think about this. If majority of people like this idea it could be implemented in some blocks, if not, then not :D

User avatar
meteocaldas
Language Admin
Language Admin
Posts: 111
Joined: Fri Aug 25, 2017 7:56 pm
Location: Caldas da Rainha, Portugal
Station model: OS WMR-88A
Software: Cumulus
Contact:

Re: Current UVindex value display for stations without UV hardware

Post by meteocaldas » Fri Dec 01, 2017 2:05 pm

That is what I call a very wise decision!
Am I the first one to vote? My vote=Yes :D

Image

User avatar
Fraggboy
Forecaster
Forecaster
Posts: 193
Joined: Wed Sep 27, 2017 2:45 pm
Location: Sunny California
Station model: Bloomsky II + Storm
Software: Bloomsky
Contact:

Re: Current UVindex value display for stations without UV hardware

Post by Fraggboy » Fri Dec 01, 2017 5:43 pm

There are blocks that retrieve information directly from your instrumentation, or an external source. The individual blocks stay 'true' to one or the other. The data is not mixed.

That would be misleading/confusing since we all know the current block retrieves the data locally. I have to disagree with this update. I think if you choose to display external data on your current block, that it should stay customized for your page (And others who might feel this would benefit their webpage).

It's very cut and dry as to which blocks receive data locally or externally (Properly marked on the bottom "Data from Darksky".) There's no clean way to decipher which data in the current block is external/local.

. . . Just my $0.02 worth.
Image

User avatar
meteocaldas
Language Admin
Language Admin
Posts: 111
Joined: Fri Aug 25, 2017 7:56 pm
Location: Caldas da Rainha, Portugal
Station model: OS WMR-88A
Software: Cumulus
Contact:

Re: Current UVindex value display for stations without UV hardware

Post by meteocaldas » Fri Dec 01, 2017 7:48 pm

Fraggboy wrote: Fri Dec 01, 2017 5:43 pm ... I have to disagree with this update. I think if you choose to display external data on your current block, ... t's very cut and dry as to which blocks receive data locally or externally (Properly marked on the bottom "Data from Darksky".) There's no clean way to decipher which data in the current block is external/local.
Hi Fraggboy, I absolutely agree with you. I never had the idea of including the current UV forecast in the current block as it would lead to confusion. As you can see in my first post, the current UVindex value (forecasted) is included in the uvForecastBlock, marked on the bottom exactly as you said, so there is no doubt that it is just a forecast, not a station real reading.

Image

When Jachym asked
Hi, ok so if I understand this correctly, you mean using value of UV index from DarkSky as if you had your own UV sensor and showing it in current conditions?
I answered Yes, without understanding that Jachym was referring to "current conditions" (block), I just read it as "current conditions" for the UVindex value, I didn´t notice he might be referring to "current conditions block".
You guys pease forgive me, but english is not my native language and it is very easy for me to fall into these tricky language misinterpretations :D
To make it perfectly clear:
My idea is to include UVindex current value (forecasted) in the UVForecast block (as the pic shows) and only there! If you check my site, my current conditions block doesn't even show the UV icon.
I am sure this would be an interesting addon for the stations without uv hardware, cause the viewers could have an idea of what the UVindex value (forecasted) is at that specific hour, along with the maximum UVindex value for that day (also forecasted).
Thanks guys, and once again my apologies for creating all this mess... but my intentions were good :)

Image

User avatar
Fraggboy
Forecaster
Forecaster
Posts: 193
Joined: Wed Sep 27, 2017 2:45 pm
Location: Sunny California
Station model: Bloomsky II + Storm
Software: Bloomsky
Contact:

Re: Current UVindex value display for stations without UV hardware

Post by Fraggboy » Fri Dec 01, 2017 8:23 pm

I'm on the same page as you. With you clarifying that for me, I agree on the change since that block is clearly marked as external data.. :)
Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Current UVindex value display for stations without UV hardware

Post by Jachym » Sat Dec 02, 2017 2:26 am

OK, now I get it... I thought you mean the Current block. Yes, this change is possible.

User avatar
meteocaldas
Language Admin
Language Admin
Posts: 111
Joined: Fri Aug 25, 2017 7:56 pm
Location: Caldas da Rainha, Portugal
Station model: OS WMR-88A
Software: Cumulus
Contact:

Re: Current UVindex value display for stations without UV hardware

Post by meteocaldas » Sat Dec 02, 2017 12:02 pm

Thank you soooo much Jachym!
The update for the uvForecastBlock that you have just released, is exactly what I was looking for! PERFECT! :D

Image

User avatar
meteoesine
Forecaster
Forecaster
Posts: 186
Joined: Sun Aug 20, 2017 4:08 pm
Location: Esine, Valcamonica (BS) - Italy
Station model: Davis Pro2+
Software: Meteobridge nano
Contact:

Re: Current UVindex value display for stations without UV hardware

Post by meteoesine » Tue Dec 05, 2017 3:54 pm

Hi,
is it possible to include the UV forecast also into the UV block (for those uses UV sensor data from the API file)?
cheers
:arrow: https://meteoesine.it
ham wx aprs/cwop: IW2LAO-13

Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Current UVindex value display for stations without UV hardware

Post by Jachym » Tue Dec 05, 2017 5:03 pm

Hi,
I would rather there are no duplicates. If you want both then use both blocks, as soon as I start combining blocks into one people will start asking for merging hundreds of different combinations. Each block does something different and I would rather it stayed that way

User avatar
meteocaldas
Language Admin
Language Admin
Posts: 111
Joined: Fri Aug 25, 2017 7:56 pm
Location: Caldas da Rainha, Portugal
Station model: OS WMR-88A
Software: Cumulus
Contact:

Re: Current UVindex value display for stations without UV hardware

Post by meteocaldas » Tue Dec 05, 2017 7:11 pm

meteoesine wrote: Tue Dec 05, 2017 3:54 pm is it possible to include the UV forecast also into the UV block (for those uses UV sensor data from the API file)?
If you want to have both current UV value (API) and next days forecast, you can use the new version of the uvForecast block (v3.0). It does exactly what you want. ;)

Image

Image

Post Reply