Closed legoadk closed 2 months ago
This is such a great suggestion. I'm embarassed to say that I've read that param (when used with other weather APIs) as baro-min
, like, minimum number that the barometer is at or something... not barom-in
:sweat_smile:
I will add that change in the next couple of days!
I do see some other people using cwop.rest in the CWOP data; be careful to ensure backwards-compatibility. I'm guessing those that have used it probably don't expect it to change :)
Added pressure
parameter to the existing baromin
parameter. Both will continue to work for the foreseeable future. If both are supplied, then pressure
wins. I'll maybe consider adding a deprecation notice sometime in the future, but it takes two lines of code to support the new parameters, so I'm not in a hurry :)
Thanks again for bringing this to my attention!
baromin
implies "barometer measured in inHg". It's supposed to be posted to CWOP in mbar/hPa, and in fact the documentation does indicate this properly. Therefore, I make the claim that the parameter namebaromin
is incorrect and should instead be something akin tobaromhpa
,barommb
, orbarommbar
- purely in the interest of reducing confusion for anyone wanting to write software that posts to this service.