Data Feed plugin needs to offer Farenheit

Post Reply
azchrisf
Observer
Observer
Posts: 46
Joined: Tue Jan 02, 2018 2:55 pm
Location: Phoenix, AZ
Station model: Davis Vantage Pro 2 Plus
Software: Meteobridge
Contact:

Data Feed plugin needs to offer Farenheit

Post by azchrisf » Thu Jan 25, 2018 1:38 pm

The Station Data Feed plugin only outputs in Celsius - it would be correct to offer it with the option of using C or F in the script or add $GET/POST variables that specifies which to use.

In the US we don't use Celsius, so having to have users convert it on there end gets complaints.
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: Data Feed plugin needs to offer Farenheit

Post by Jachym » Thu Jan 25, 2018 3:12 pm

Hi Chris,
I will have to disagree with you on this. Just like the API, which is also only in metric. The data feed is not intended for direct use. It is for developers who have to parse the data, then somehow process it and output it. And this processing should include unit conversion if necessary.
There are dozens of units, for example wind, you can convert it to kts, miles, km, m/s etc etc. So it is up to the developer to choose what they want, how many d.p. they want (accuracy) etc etc. and then output it.
All other blocks/plugins which are directly shown, use conversion. In this case it is not desirable.

Post Reply