unpoller / unpoller

Application: Collect ALL UniFi Controller, Site, Device & Client Data - Export to InfluxDB or Prometheus
https://unpoller.com
MIT License
2.06k stars 146 forks source link

Feature Request: USG (Pro) Temperature #106

Closed ChristophGoth closed 5 years ago

ChristophGoth commented 5 years ago

Just looked around to add some USG Environment Stats (Fan, Temperature) to the dashboard but cant find them in the database. Controller gives them in GUI so i think they should be available in the API (4 times temperature).

Same for Lan2 traffic stats @USG-Pro

If you tell me what kind of logs u need i can provide them to you.

davidnewhall commented 5 years ago

Hi Chris,

If you can show me where in the API the data you need is at, I can include it. I do not see temperatures or fan speeds for my USG Pro. Those stats are there for my USW though.

Try running this command:

unifi-poller -j devices -c /path/to/up.conf

This will print out the json blob for your devices. See if you can find temp/fan speed for the gateway. If you can, I may want your json blob. :D You can format it by piping to jq. Let me know if a more detailed explanation would be helpful.

Good luck!

davidnewhall commented 5 years ago

Were you able to find any temperature readings in the API output? I've been unable to figure it out..