Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stas-dovgodko/mqtt-influx
https://github.com/stas-dovgodko/mqtt-influx
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stas-dovgodko/mqtt-influx
- Owner: stas-dovgodko
- License: mit
- Created: 2017-06-05T19:33:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-13T19:07:52.000Z (over 7 years ago)
- Last Synced: 2024-04-17T08:04:47.997Z (9 months ago)
- Language: PHP
- Size: 2.57 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mqtt-influx
PHP-React based mqtt to influxdb gateway.
For IoT diy stuff to upload and visualize data in grafana
Please add local config just like _config/default.yml_ somewhere near and run:
`php daemon.phar --config=my_config.yml`or put config to _config.local.yml_
`php daemon.phar`
Can use plain daemon.php instead of phar too
Config example:
```
influxdb:
database: test_db
server:
host: influxdb
port: 8086
mqtt:
broker:
host: m12.cloudmqtt.com
port: 14775
user: zxcsec
password: xcvdx5xcvsubscribe:
- topic: "#"
qos: 0
topics:
- {pattern: "'(.*?\/vq_0)'", measurement: "$1", tags: {}, type: percent}
- {pattern: "'(.*?\/rms_0)'", measurement: "$1", tags: {}, type: int}
- {pattern: "'(.*?\/trms_0)'", measurement: "$1", tags: {}, type: int}
- {pattern: "'(.*?\/wifi-signal)'", measurement: "$1", tags: {}, type: float}
```