This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
[APP] Prometheus.io export
As a means of learning how to interact with the Homey API, I decided to put together a basic exporter for Prometheus.io (partly because I want to understand how to subscribe to device changes, and partly because I miss the Grafana dashboards I had with Openhab).
If anyone wants to try it out it is here
https://github.com/rickardp/homey-prometheus-exporter
If there is enough interest, I might find some time to finalize and publish it.
If anyone wants to try it out it is here
https://github.com/rickardp/homey-prometheus-exporter
If there is enough interest, I might find some time to finalize and publish it.
Comments
Just installed the app, but it keeps on crashing
I created the app yesterday and I’ve only tested it with my own Homey, so it’s not yet exactly stable. But with your help it will improve <span></span>
Any ideas on what to show?
But indeed that fixed the issue Thanks!
EDIT: Apparenly I am supposed to check in my node_modules directory. Although I strongly disagree with the practice, I have now done so.
I am not ruling out Influx but it would likely take a little more time to implement.
What would you do with influx that you lack with Prometheus?
But as I have recently read about Prometheus, I am starting to like it. I will try it out.
I will publish the dashboards I created once I get them cleaned up.
I started a container running Prometheus, and installed your app using the Athom CLI.
The app is running on my Homey, but for some reason I cannot connect to http://<homey ip>:9414/metrics .
I get the following error:
This site can’t be reached
192.168.0.202 refused to connect
Do you've got any clue what's going wrong? I already tried to reboot my Homey but that didn't solve this.
I am running version 0.1.1 of your app, and Homey version 1.5.7
The docker containers are running fine and the webinterfaces of Prometheus and Grafana can be reached.
The IP of my Homey is 192.168.0.202. Visiting http://192.168.0.202:9414/metrics shows an error the site cannot be reached.
To install the App to my Homey i downloaded and installed Node.js 8.9.4 on my mac.
After installing Node.js i used the command "npm install -g athom-cli" to install the Athom CLI software.
Then i used git to download the app, moved into the directory containing the app and issued the "Athom app install" command to install the app to my Homey.
Should I've done something differently? I've removed the app and installed it again but unfortunately it didn't make a difference.
Is there a way to export the "presence" status as well? I can see it in insights but it doesn't show up in the Metrics page.
Great suggestion. I will look into if there is an API for it.