From 9b32359759add8feba8702131d23878f8e3e5d88 Mon Sep 17 00:00:00 2001 From: fredericvl Date: Wed, 6 Jan 2021 17:55:05 +0100 Subject: [PATCH] Add requirements.txt + example in README --- README.md | 14 ++++++++++++++ requirements.txt | 2 ++ setup.py | 6 +++++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/README.md b/README.md index b8cecdd..2d50bf0 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,17 @@ # pyevacalor pyevacalor provides controlling Eva Calor heating devices connected via the IOT Agua platform of Micronova. + +## Example usage + +``` +from pyevacalor import evacalor + +# 1c3be3cd-360c-4c9f-af15-1f79e9ccbc2a = random UUID +# You can generate one here: https://www.uuidgenerator.net/version4 +connection = evacalor("john.smith@gmail.com", "mysecretpassword", "1c3be3cd-360c-4c9f-af15-1f79e9ccbc2a") + +# Print the current air temperature for each device +for device in connection.devices: + print(device.name + ": " + str(device.air_temperature)) +``` diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..df40997 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +PyJWT==1.7.1 +requests==2.25.1 diff --git a/setup.py b/setup.py index bb61040..4b81050 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="pyevacalor", - version="0.0.9", + version="0.0.10", author="Frederic Van Linthoudt", author_email="frederic.van.linthoudt@gmail.com", description="pyevacalor provides controlling Eva Calor heating devices connected via the IOT Agua platform of Micronova", @@ -18,4 +18,8 @@ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", ], + install_requires=[ + "PyJWT==1.7.1", + "requests==2.25.1", + ], )