Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Simple API to access Netatmo weather station data from any python script (for Netatmo information, see www.netatmo.com)

License

Notifications You must be signed in to change notification settings

jabesq/netatmo-api-python

 
 

Repository files navigation

⚠️ The repo has been moved to https://github.com/jabesq/pyatmo ⚠️

netatmo-api-python

Code style: black GitHub Actions PyPi PyPi

Simple API to access Netatmo devices and data like weather station or camera data from Python 3. For more detailed information see dev.netatmo.com

This project has no relation with the Netatmo company.

Install

To install pyatmo simply run:

pip install pyatmo

Depending on your permissions you might be required to use sudo. Once installed you can simple add pyatmo to your Python 3 scripts by including:

import pyatmo

Note

The module requires a valid user account and a registered application. See usage.md for further information. Be aware that the module may stop working if Netatmo decides to change their API.

Development

Clone the repo and install dependencies:

git clone
cd netatmo-api-python
pipenv install --dev

To add the pre-commit hook to your environment run:

pip install pre-commit
pre-commit install

Testing

To run the full suite simply run the following command from within the virtual environment:

pytest

or

python -m pytest tests/

To generate code coverage xml (e.g. for use in VSCode) run

python -m pytest --cov-report xml:cov.xml --cov smart_home --cov-append tests/

Another way to run the tests is by using tox. This runs the tests against the installed package and multiple versions of python.

tox

or by specifying a python version

tox -e py38

About

Simple API to access Netatmo weather station data from any python script (for Netatmo information, see www.netatmo.com)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%