Skip to content

Instantly share code, notes, and snippets.

@cgtobi
Last active January 20, 2021 08:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cgtobi/5601aa88efba2cce30a98aeae50582a2 to your computer and use it in GitHub Desktop.
Save cgtobi/5601aa88efba2cce30a98aeae50582a2 to your computer and use it in GitHub Desktop.
Testing pyatmo against your personal Netatmo account

Prerequisits

Install the pyatmo module (I suggest to do this in a virtual environment python3 -m venv venv; . venv/bin/activate)

python3 -m pip install --upgrade pyatmo

Download the test script

wget https://gist.githubusercontent.com/cgtobi/703b8e1ebc465424df1625213dfb44c9/raw/e8b4a29dc91edd9a342b8ef3fc34e4b82ef18743/gen_test_data_4.py -O gen_test_data.py

Testing

Run the script

  python gen_test_data.py --CLIENT_ID <YOUR_CLIENT_ID> --CLIENT_SECRET <YOUR_CLIENT_SECRET> --USERNAME '<YOUR@MAIL.COM>' --PASSWORD '<YOUR_SECRET_PASSWORD>' --mode long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment