I have connected to www.openweathermap.org and am receiving weather data in json format. I've managed to split the data to individual items but pressure is making me wonder about units.
I'm getting 1017 for a reading and I'm used to 30.1.
I've set my units to imperial thinking it would be US units but maybe not(?).
My flow:
[{"id":"ee840f58.b446a8","type":"inject","z":"8892c80c.016f8","name":"","topic":"weather","payload":"{\"coord\":{\"lon\":-119.74,\"lat\":39.38},\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03n\"}],\"base\":\"stations\",\"main\":{\"temp\":88.03,\"pressure\":1017,\"humidity\":9,\"temp_min\":82.4,\"temp_max\":96.8},\"visibility\":16093,\"wind\":{\"speed\":16.11,\"deg\":300},\"clouds\":{\"all\":40},\"dt\":1534035300,\"sys\":{\"type\":1,\"id\":2068,\"message\":0.0037,\"country\":\"US\",\"sunrise\":1534079345,\"sunset\":1534129089},\"id\":420025494,\"name\":\"Reno\",\"cod\":200}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":220,"wires":[["c2f8b8bb.fef1f8"]]},{"id":"c2f8b8bb.fef1f8","type":"function","z":"8892c80c.016f8","name":"","func":"var temp = {topic:'temperature',payload: msg.payload.main.temp};\nvar hum = {topic:'humidity',payload: msg.payload.main.humidity};\nvar press = {topic:'pressure',payload: msg.payload.main.pressure};\nvar windd = {topic:'wind direction',payload: msg.payload.wind.deg};\nvar winds = {topic:'wind speed',payload: msg.payload.wind.speed};\n\n\nreturn [temp,hum,press,windd,winds];","outputs":5,"noerr":0,"x":370,"y":220,"wires":[["b8677ad.aca6888"],["a76ae0b3.f84eb8"],["fd4f399f.aa7ca"],["2d31a142.061086"],["e9124df0.50e62"]]},{"id":"a76ae0b3.f84eb8","type":"debug","z":"8892c80c.016f8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":710,"y":260,"wires":[]},{"id":"fd4f399f.aa7ca","type":"debug","z":"8892c80c.016f8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":710,"y":310,"wires":[]},{"id":"b8677ad.aca6888","type":"debug","z":"8892c80c.016f8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","x":710,"y":210,"wires":[]},{"id":"2d31a142.061086","type":"debug","z":"8892c80c.016f8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":710,"y":360,"wires":[]},{"id":"e9124df0.50e62","type":"debug","z":"8892c80c.016f8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":710,"y":410,"wires":[]}]
Can anyone cast some light on this issue?
I did not include the http request node because it has my key and i'm only allowed one request per 10 minutes or they'll block me.
If anyone is interested in the setup I'll edit it and post.