An unofficial Python module for interacting with the City of Saskatoon's SmartUtil service
Project description
city-of-saskatoon-smart-util
An unofficial Python module for interacting with the City of Saskatoon's SmartUtil service.
Features:
- Fetch the meters from your SmartUTIL account
- Fetch the previous 24 hours of data from your SmartUTIL account
Usage
from city_of_saskatoon_smart_util import SmartUtil
su = SmartUtil('username', 'password')
su.login()
meters = su.get_meters()
usage = su.get_past_24_hour_usage(meters[0])
# [{'timestamp': '2022-10-26 21:15', 'value': 0.27}, {'timestamp': '2022-10-26 21:30', 'value': 0.29}, {'timestamp': '2022-10-26 21:45', 'value': 0.29}, ...]
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 Distribution
File details
Details for the file city_of_saskatoon_smart_util-0.0.2.tar.gz
.
File metadata
- Download URL: city_of_saskatoon_smart_util-0.0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f43f7981e58c3c3c0bcb01a342ea10d2abacf4e4b8140468d60172b31bde7977 |
|
MD5 | 8c21e1739981ef12ce335500cff902b8 |
|
BLAKE2b-256 | 0ce0a26dff54b797f9c93918d12ef03ade938da4a09724fdd17d8926f1f3d68b |
File details
Details for the file city_of_saskatoon_smart_util-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: city_of_saskatoon_smart_util-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba5f4513563a334b8100a70d9f49086d395b19571c6756b9634d3df327b345bc |
|
MD5 | a8d43c5ae1bf5156b2899a97ba4393d2 |
|
BLAKE2b-256 | cc714ab667113561713bb21498133878e8409d3a56bb89b15a564a266a8a68f7 |