Skip to main content

A prometheus exporter for you smart meter.

Project description

https://travis-ci.org/nrocco/smeterd_exporter.svg?branch=master

A prometheus exporter for your smart meter.

installation

smeterd_exporter is fully python 2.7 and python 3.4 compatible.

It is highly recommended to use virtual environemnts for this:

$ pyvenv my_virtual_env
$ cd my_virtual_env
$ . bin/activate

After having your virtual environment installed and activated run the following command to install the smeterd package directly from pypi (using pip):

$ pip install smeterd_exporter

Alternatively you can manually clone smeterd_exporter and run setupttools setup.py:

$ git clone https://github.com/nrocco/smeterd_exporter.git
$ cd smeterd_exporter
$ python setup.py install

This will install the needed python libraries which are needed to start reading P1 packets.

If you don’t want to install smeterd_exporter as a package you can run it directly from the root directory of the git repository using the following command but you are responsible for manually installing dependencies:

$ python -m smeterd_exporter

To install the required dependencies manually see requirements.txt or simply run:

$ pip install -r requirements.txt

usage

TODO

contribute

  1. Fork it

  2. Create your feature branch (git checkout -b my-new-feature)

  3. Commit your changes (git commit -am ‘Add some feature’)

  4. Make sure that tests pass (make test)

  5. Push to the branch (git push origin my-new-feature)

  6. Create new Pull Request

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smeterd_exporter-0.9.2.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file smeterd_exporter-0.9.2.tar.gz.

File metadata

File hashes

Hashes for smeterd_exporter-0.9.2.tar.gz
Algorithm Hash digest
SHA256 ddbf866be789e4672450d5bf0ddaa978e024460fde318f59e909b477ce25b065
MD5 e99aeb8e380f742507310b978ce4c58e
BLAKE2b-256 4c7ea56f189b06905ec93959cb27a1220e541697da7f73937937d93eac2becf4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page