Git Product home page Git Product logo

pronestheus's People

Contributors

dependabot[bot] avatar grdl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pronestheus's Issues

How to get PRONESTHEUS_NEST_TOKEN

Hi,

This looks like a cool project but I'm not sure how to find the PRONESTHEUS_NEST_TOKEN. Any advice? Note: I've migrated to a Google account

Failed Collecting Nest Data No Valid Thermostats

I see the following message. I guess this is because I have the older Nest Thermostat, but wanted to check if anyone else was having issue.

ts=2022-08-04T22:52:49.9432Z level=error message="Failed collecting Nest data" stack="no valid thermostats in devices list: failed unmarshalling Nest API response body"

OpenWeatherMap data stopped

The OpenWeatherMap stopped working suddenly. It stopped working since 2022-01-03 00:00
In the docker container logs i get the following error.

ts=2022-01-02T23:02:29.61505793Z level=debug message="Successfully collected Nest data"
ts=2022-01-02T23:03:27.818025661Z level=debug message="Successfully collected OpenWeatherMap data"
ts=2022-01-02T23:03:29.616760538Z level=debug message="Successfully collected Nest data"
ts=2022-01-02T23:04:27.974567045Z level=error message="Failed collecting OpenWeatherMap data" stack="invalid character '<' looking for beginning of value: failed unmarshalling OpenWeatherMap API response body"

docker-compose up fails on "chunked"

docker-compose up
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 214, in _retrieve_server_version
return self.version(api_version=False)["ApiVersion"]
File "/usr/lib/python3/dist-packages/docker/api/daemon.py", line 181, in version
return self._result(self._get(url), json=True)
File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 46, in inner
return f(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 237, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File "/home/dennis/.local/lib/python3.10/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
File "/home/dennis/.local/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/home/dennis/.local/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/home/dennis/.local/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/home/dennis/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 790, in urlopen
response = self._make_request(
File "/home/dennis/.local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 496, in _make_request
conn.request(
TypeError: HTTPConnection.request() got an unexpected keyword argument 'chunked'

Support multiple Nest devices

Summary
I've configured this tool against a home that has two Nest devices: First Floor and Second Floor. While the data seems to be harvested properly, the labels in the dashboard are inside for both First Floor and Second Floor. The data coming back from google does have the name of the Nest devices in it. I'm hoping there is a way to present that out with the pronestheus exporter.

Questions

  • How does pronestheus let prometheus know there are two Nest devices at harvest time? It's not clear to me how two data sets are returned. I think I only see data for one of the Nests when I curl localhost:9777/metrics
  • Where do the ID's (shown in the prometheus screen capture below) come from?

image

image

PS

  • Pronestheus is brilliant. Great idea!

Is this still working?

The Google NEST API requires a 5$ payment. Just want to know if it works before buying.

Thank you

Possible to build for ARM64?

Thanks for a great & useful tool!

I'm trying to integrate this within my house and the lack of an ARM64 docker image is bringing me down. Any possibility to build one?

Stops working after a while?

ProNestheus seems to be unable to continue working after successful initial setup. Twice now, I've had it working well for a few days and then start failing by itself with invalid_grant:

ts=2021-09-30T08:41:39.014363968Z level=error message="Failed collecting Nest data" stack="Get \"https://smartdevicemanagement.googleapis.com/v1/enterprises/**********************/devices/\": oauth2: cannot fetch token: 400 Bad Request\nResponse: {\n  \"error\": \"invalid_grant\",\n  \"error_description\": \"Token has been expired or revoked.\"\n}: failed Nest API request"

In neither case have I revoked any token. Is there a way to prevent this from happening?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.