Simple API to access Netatmo weather station data from any Python 3 script. Design for Home-Assitant (but not only)
Project description
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
Simple API to access Netatmo devices and data like weather station or camera data from Python 3. For more detailed information see http://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.
### Testing ###
To run the pytest testsuite you need to install the following dependencies:
pip install pytest pytest-mock pytest-cov requests-mock freezegun
To run the full suite simply type in
pytest
or
python -m pytest
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/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pyatmo-2.3.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3ba51f6556d948ec72f62aa95945e7d6a90aee9afb48a86749bcb181801c69b |
|
MD5 | 504e70f87b6a1db1c973a9a8fb9aa282 |
|
BLAKE2b-256 | 1956c7250a17459f0d689a12ba0e4666f8887e04a57425dda06fd53cb80545e0 |