hubitat-maker-to-influxdb
v0.1.9
Published
Hubitat MakerAPI to InfluxDB Statistics/Logging/Graphing Tool
Downloads
10
Readme
- A Bridge from Hubitat Maker API to InfluxDB
This is very alpha, and there's many places it may crash. Running from pm2 so it can loop and restart is important for now.
How to Use:
- On the Hubitat install a new instance of the MakerAPI
- Select devices you want to log data from. Ex: Motion Sensors that send temperature data, power or energy sensors
- Create a config.json described below for each hub
- Install influxdb locally and bind it to 127.0.0.1, don't turn on auth
- Run hubitat-maker-to-influxdb
Place a config file in: ~/.hubitat-maker-to-influxdb/config.json
An example is:
{
"local_config" : {
"local_url": "http://<ip address of nodejs server>"
"hostname": "0.0.0.0",
"base_port": 8567,
"influxdb_port": 8086,
"influxdb_host": "127.0.0.1",
"influxdb_db_name": "hubitatMaker",
},
"hubs" : {
"homeTester": {
"url": "http://<hub-ip>/apps/api/<maker-app-number>",
"token": "<ACCESS_TOKEN>",
"influxdb_db_name": "HubitatTester"
},
"home": {
"url": "http://192.168.7.97/apps/api/769",
"token": "abcd-12345-etc",
"locationName": "Home",
"locationId": "0",
"hubId": "0"
}
}
}