# Station data in returned JSON - values using wrong units

**URL:** <https://community.tempest.earth/t/station-data-in-returned-json-values-using-wrong-units/13281>\
**Category:** Developers\
**Created:** [April 21, 2021, 9:28pm UTC](https://community.tempest.earth/t/station-data-in-returned-json-values-using-wrong-units/13281 "2021-04-21T21:28:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wb1dx](https://avatars.discourse-cdn.com/v4/letter/w/f05b48/32.png) [@wb1dx](https://community.tempest.earth/u/wb1dx)\
**Post date:** [April 21, 2021, 9:28pm UTC](https://community.tempest.earth/t/station-data-in-returned-json-values-using-wrong-units/13281/1 "2021-04-21T21:28:48Z")

</div>

Building out a NodeRed dashboard for station control and want to add weather data, particularly lightening strikes. I’ve got the REST API working just fine but I noticed that several fields in the JSON metric when they should be imperial. Example, the air temperature is F, but the JSON value is C. Is this a bug?

{  
“station\_id”: xxxxxx,  
“station\_name”: “xxxxxxxx”,  
“public\_name”: “xxxxxxx”,  
“latitude”: xxxxxxxx,  
“longitude”: -xxxxxxx,  
“timezone”: “America/New\_York”,  
“elevation”: 195.1725769042969,  
“is\_public”: true,  
“status”: {  
“status\_code”: 0,  
“status\_message”: “SUCCESS”  
},  
“station\_units”: {  
“units\_temp”: “f”,  
“units\_wind”: “mph”,  
“units\_precip”: “in”,  
“units\_pressure”: “mb”,  
“units\_distance”: “mi”,  
“units\_direction”: “cardinal”,  
“units\_other”: “imperial”  
},  
“outdoor\_keys”: [  
“timestamp”,  
“air\_temperature”,  
“barometric\_pressure”,  
“station\_pressure”,  
“pressure\_trend”,  
“sea\_level\_pressure”,  
“relative\_humidity”,  
“precip”,  
“precip\_accum\_last\_1hr”,  
“precip\_accum\_local\_day”,  
“precip\_accum\_local\_yesterday\_final”,  
“precip\_minutes\_local\_day”,  
“precip\_minutes\_local\_yesterday\_final”,  
“wind\_avg”,  
“wind\_direction”,  
“wind\_gust”,  
“wind\_lull”,  
“solar\_radiation”,  
“uv”,  
“brightness”,  
“lightning\_strike\_last\_epoch”,  
“lightning\_strike\_last\_distance”,  
“lightning\_strike\_count”,  
“lightning\_strike\_count\_last\_1hr”,  
“lightning\_strike\_count\_last\_3hr”,  
“feels\_like”,  
“heat\_index”,  
“wind\_chill”,  
“dew\_point”,  
“wet\_bulb\_temperature”,  
“delta\_t”,  
“air\_density”  
],  
“obs”: [  
{  
“timestamp”: 1619039848,  
“air\_temperature”: 8.7,  
“barometric\_pressure”: 975.2,  
“station\_pressure”: 975.2,  
“sea\_level\_pressure”: 999.5,  
“relative\_humidity”: 91,  
“precip”: 0,  
“precip\_accum\_last\_1hr”: 3.742291,  
“precip\_accum\_local\_day”: 4.367481,  
“precip\_accum\_local\_yesterday”: 0,  
“precip\_accum\_local\_yesterday\_final”: 0,  
“precip\_minutes\_local\_day”: 69,  
“precip\_minutes\_local\_yesterday”: 0,  
“precip\_minutes\_local\_yesterday\_final”: 0,  
“precip\_analysis\_type\_yesterday”: 1,  
“wind\_avg”: 0.9,  
“wind\_direction”: 152,  
“wind\_gust”: 2.4,  
“wind\_lull”: 0,  
“solar\_radiation”: 128,  
“uv”: 0.66,  
“brightness”: 15312,  
“lightning\_strike\_last\_epoch”: 1619039549,  
“lightning\_strike\_last\_distance”: 40,  
“lightning\_strike\_count”: 0,  
“lightning\_strike\_count\_last\_1hr”: 107,  
“lightning\_strike\_count\_last\_3hr”: 175,  
“feels\_like”: 8.7,  
“heat\_index”: 8.7,  
“wind\_chill”: 8.7,  
“dew\_point”: 7.3,  
“wet\_bulb\_temperature”: 8,  
“delta\_t”: 0.7,  
“air\_density”: 1.20533,  
“pressure\_trend”: “steady”  
}  
]  
}

---

<div class="post-metadata">

**Author:** ![wb1dx](https://avatars.discourse-cdn.com/v4/letter/w/f05b48/32.png) [@wb1dx](https://community.tempest.earth/u/wb1dx)\
**Post date:** [April 21, 2021, 9:35pm UTC](https://community.tempest.earth/t/station-data-in-returned-json-values-using-wrong-units/13281/2 "2021-04-21T21:35:08Z")

</div>

Just re-read the REST docs and see “the station\_units values represent the units of the Station’s owner, _not the units of the observation values in the API response_.”

Problem solved.  
Thanks
