Thread Closed
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5

4Pro Dual Band Compact Receiver - General Usage Guide
#4

Fetching Weather data from the receiver using JSON

You can fetch a large amount of weather data from the receiver by using the receiver IP address followed by /json (example http://192.168.0.20/json). The receiver will respond with a JSON formatted string which contains most of the weather data available on the receiver.

The units of the data follow the user defined units on the receiver. i.e if your receiver is set to use temperature in ºC then temperature data in the JSON string will be in ºC. Same applies to atmospheric pressure, rainfall etc.

Bellow is a example of the data you will get, JSON formatted.

Quote:{
"ID": "4P_U32",
"TID": 161,
"ts": 1682901184,
"Tin": 208,
"Hin": 674,
"Tout": 155,
"Hout": 882,
"P": 10198,
"Wsp": 122,
"Wgs": 122,
"Wdir": 290,
"Rtd": 0,
"Rfr": 0,
"SR": 0,
"UV": 0,
"C02": 807,
"PM25": 19,
"PM100": 25,
"AQI": 8,
"ES1T": 130,
"ES1H": 0,
"ES2T": 223,
"ES2H": 657,
"ES3T": 0,
"ES3H": 0,
"ES4T": 219,
"ES4H": 632,
"So1T": 211,
"So1M": 36,
"So2T": 0,
"So2M": 0
}

Meaning of the variables:

ID: Receiver ID
TID: Receiver type
ts: Time stamp with receiver local time
Tin: Inside Temperature (value is times 10)
Hin: Inside Humidity (value is times 10)
Tout: Outside Temperature (value is times 10)
Hout: Outside Humidity (value is times 10)
P: Atmospheric Pressure (value is times 10)
Wsp: Wind Speed (value is times 10)
Wgs: Wind Gust (value is times 10)
Wdir: Wind direction (0 - 359)
Rtd: Rain today (value is times 10)
Rfr: Rainfall rate (value is times 10)
SR: Solar Radiation
UV: UV Index,
C02: CO2 from WeatherDuino Air Quality Monitor (value is times 10)
PM25: PM2.5 from WeatherDuino Air Quality Monitor (value is times 10)
PM100: PM2.5 from WeatherDuino Air Quality Monitor (value is times 10)
AQI: Air Quality Index from WeatherDuino Air Quality Monitor
ES1T: Temperature from extra sensor 1 (value is times 10)
ES1H: Humidity from extra sensor 1 (value is times 10)
ES2T: Temperature from extra sensor 2 (value is times 10)
ES2H: Humidity from extra sensor 1 (value is times 10)
ES3T: Temperature from extra sensor 3 (value is times 10)
ES3H: Humidity from extra sensor 1 (value is times 10)
ES4T: Temperature from extra sensor 4 (value is times 10)
ES4H: Humidity from extra sensor 1 (value is times 10)
So1T: Soil temperature from soil sensor 1 (value is times 10)
So1M: Soil moisture from soil sensor 1 (value is times 10)
So2T: Soil temperature from soil sensor 2 (value is times 10)
So2M: Soil moisture from soil sensor 1 (value is times 10)

This feature is intended to allow integration of weather data with other types of software which can fetch data using JSON (Home Assistant and others).
Thread Closed


Messages In This Thread
4Pro Dual Band Compact Receiver - General Usage Guide - by werk_ag - 30-07-2021, 02:37
RE: 4Pro Dual Band Compact Receiver - General Usage Guide - by werk_ag - 01-05-2023, 01:15
RE: 4Pro Dual Band Compact Receiver - Overview - by werk_ag - 30-07-2021, 02:53
RE: 4Pro Dual Band Compact Receiver - Overview - by werk_ag - 30-07-2021, 03:38



Users browsing this thread: 1 Guest(s)