ThingSpeak - weewx/weewx GitHub Wiki

ThingSpeak is "The open data platform for the Internet of Things."

This is an extension to weewx that uploads weather data to thingspeak.

Screenshot

screenshot

Download

wget -O weewx-thingspeak.zip https://github.com/matthewwall/weewx-thingspeak/archive/master.zip

How to Install

  1. Run the extension installer:
weectl extension install weewx-thingspeak.zip
  1. Modify weewx.conf:
[StdRESTful]
    [ThingSpeak](/weewx/weewx/wiki/ThingSpeak)
        api_key = API_KEY
  1. Restart weewx
sudo systemctl stop weewx
sudo systemctl start weewx

Options

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](/weewx/weewx/wiki/ThingSpeak)
        api_key = TOKEN
        [[fields](/weewx/weewx/wiki/[fields)]
            [[[field1](/weewx/weewx/wiki/[[field1)]]
                obs = outTemp
                units = degree_F
            [[[field2](/weewx/weewx/wiki/[[field2)]]
                obs = outTemp
                units = degree_C

The default map is:

[StdRESTful]
    [ThingSpeak](/weewx/weewx/wiki/ThingSpeak)
        api_key = TOKEN
        [[fields](/weewx/weewx/wiki/[fields)]
            [[[field1](/weewx/weewx/wiki/[[field1)]]
                obs = outTemp
            [[[field2](/weewx/weewx/wiki/[[field2)]]
                obs = outHumidity
            [[[field3](/weewx/weewx/wiki/[[field3)]]
                obs = windSpeed
            [[[field4](/weewx/weewx/wiki/[[field4)]]
                obs = windDir
            [[[field5](/weewx/weewx/wiki/[[field5)]]
                obs = windGust
            [[[field6](/weewx/weewx/wiki/[[field6)]]
                obs = barometer
            [[[field7](/weewx/weewx/wiki/[[field7)]]
                obs = rain