GithubHelp home page GithubHelp logo

mccollam / ecobee_prometheus_exporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrala/ecobee_prometheus_exporter

0.0 1.0 0.0 29 KB

Export Ecobee metrics for Prometheus

License: MIT License

Python 98.51% Dockerfile 1.49%

ecobee_prometheus_exporter's Introduction

Ecobee Prometheus Exporter

Requirements

You will need a developer account from ecobee and need to generate an API key. Follow the documentation from ecobee to create an account and generate an API key. Create an app and use the ecobee PIN authorization method.

Install

Install ecobee_exporter script:

> python setup.py install
> python setup.py install_scripts

Usage

> ecobee_exporter --api_key [your_api_key] --port [optional_port] --bind_address [optional_bind_address]

At first run, you will see a message to authorize the app with a PIN at https://www.ecobee.com/consumer/portal/index.html. The app will wait for 60 seconds for authorization. By default, this will begin serving metrics at http://localhost:9756

Docker Usage

To build:

> docker build -t ecobee_prometheus_exporter .

Or pull from Docker Hub:

> docker pull mrala/ecobee_prometheus_exporter

Run:

> docker run -it --rm -p 9756:9756 \
>   -e "APIKEY=<your_api_key>" \
>   -e "AUTH=/pyecobee_db.db" \
>   -v $(pwd)/pyecobee_db:/pyecobee_db \
>   --name ecobee_prometheus_exporter \
>   ecobee_prometheus_exporter

Credits

Based on ecobee_exporter by sbrudenell.

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.