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.
Data Feed plugin needs to offer Farenheit
- Jachym
- 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
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.
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.