https://github.com/chatch/mqtt2thingspeak
Subscribes to MQTT topics and pushes messages to Thingspeak channel fields based on a map of topic to channel/feed.
https://github.com/chatch/mqtt2thingspeak
Last synced: about 1 year ago
JSON representation
Subscribes to MQTT topics and pushes messages to Thingspeak channel fields based on a map of topic to channel/feed.
- Host: GitHub
- URL: https://github.com/chatch/mqtt2thingspeak
- Owner: chatch
- License: gpl-3.0
- Created: 2016-03-08T08:09:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-22T13:25:54.000Z (about 10 years ago)
- Last Synced: 2024-10-03T12:18:52.089Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mqtt2thingspeak
[](https://travis-ci.org/chatch/mqtt2thingspeak)
Subscribes to MQTT topics and pushes messages to Thingspeak channel fields based on a map of topic to channel/feed.
Define map of topics to channel/field combinations in config.yml:
```
mqtt:
broker:
host: 172.17.0.2
port: 1883
thingspeak:
channels:
11111:
write_key: 'xxxxxxxxxxxxxxxx'
topics:
/air/1/pm2.5:
channel: 11111
field: field1
/air/1/pm10:
channel: 11111
field: field2
/air/1/pm/csv:
type: csv
channel: 11111
fields:
1: field1
2: field2
```