Skip to main content

A simple Python wrapper of the Netatmo Connect API

Project description

netatmoapi

This is a simple Python 3 wrapper of the Netatmo Connect API.

It contains user authentication and nearly the full functionality of the Netatmo Connect API.

Installation

You can install the library using pip:

pip install netatmoapi

Preparations

  • Netatmo account
  • Netatmo Connect App (read more)
  • At least one Netatmo device

How to use

# import the API
from netatmoapi import Client
from netatmoapi import Station

# create a client
c = Client(
    "xxxxxxxxxxxxxxxxxxxxxxxx",  # client id
    "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",  # client secret
    "user@mail",
    "password",
)

# add a weather station
ws = Station.Weather(c)

# 'getstationsdata()' returns a <requests.Response object>
print(
    ws.getstationsdata("70:ee:50:XX:XX:XX").text
)  # turn it into text using the '.text' attribute

Note

This is not in any way an official software made by Netatmo. I've made this purely for personal use and decided to share it to the community.

This is still a very early version and is still missing all the documentation. I would recommend only using this library if you know your way around Python classes. Feel free to edit the code to your needs.

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

netatmoapi-1.1.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netatmoapi-1.1.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file netatmoapi-1.1.1.tar.gz.

File metadata

  • Download URL: netatmoapi-1.1.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for netatmoapi-1.1.1.tar.gz
Algorithm Hash digest
SHA256 e458309644dea15180eade346a2468294dcedbef6fa68e7e77d4e503daba6ba7
MD5 f3adce6b36f4f855397eac18b25e3f52
BLAKE2b-256 41d42cffabee1fd85bb5ec0a06c7f540f85eb11396bbd60a8b53d740731a8679

See more details on using hashes here.

File details

Details for the file netatmoapi-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: netatmoapi-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for netatmoapi-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 52221b0d5429436da539f8c5f72217e4763227f46f129d23737c624f3c2610ea
MD5 4189cab0dbcf80e3e6723348cbbb7389
BLAKE2b-256 56b5355259596911be71691631709de22af08227940903237a7f26db6c2ecd22

See more details on using hashes here.

Supported by

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