-
Notifications
You must be signed in to change notification settings - Fork 301
ThingSpeak
ThingSpeak is "The open data platform for the Internet of Things."
This is an extension to weewx that uploads weather data to thingspeak.
wget -O weewx-thingspeak.zip https://github.com/matthewwall/weewx-thingspeak/archive/master.zip
- Run the extension installer:
weectl extension install weewx-thingspeak.zip
- Modify weewx.conf:
[StdRESTful]
[[ThingSpeak]]
api_key = API_KEY
- Restart weewx
sudo systemctl stop weewx
sudo systemctl start weewx
unit_system - Unit system to which values should be converted before uploading. If nothing is specified, the units from StdConvert will be used. Possible values are US
, METRIC
, or METRICWX
. Default is None.
fields - Each thingspeak api_key is bound to a channel, and each channel has at most 7 fields. The fields option is a map that specifies which observations will upload as each of the 7 fields. For example, this map would upload outTemp
as field1
with units of degree Fahrenheit, and inTemp
as field2
with units of degree Celsius. The units are optional.
[StdRESTful]
[[ThingSpeak]]
api_key = TOKEN
[[[fields]]]
[[[[field1]]]]
obs = outTemp
units = degree_F
[[[[field2]]]]
obs = outTemp
units = degree_C
The default map is:
[StdRESTful]
[[ThingSpeak]]
api_key = TOKEN
[[[fields]]]
[[[[field1]]]]
obs = outTemp
[[[[field2]]]]
obs = outHumidity
[[[[field3]]]]
obs = windSpeed
[[[[field4]]]]
obs = windDir
[[[[field5]]]]
obs = windGust
[[[[field6]]]]
obs = barometer
[[[[field7]]]]
obs = rain