Skip to main content

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:

  1. Fetch the meters from your SmartUTIL account
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

city_of_saskatoon_smart_util-0.0.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file city_of_saskatoon_smart_util-0.0.2.tar.gz.

File metadata

File hashes

Hashes for city_of_saskatoon_smart_util-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f43f7981e58c3c3c0bcb01a342ea10d2abacf4e4b8140468d60172b31bde7977
MD5 8c21e1739981ef12ce335500cff902b8
BLAKE2b-256 0ce0a26dff54b797f9c93918d12ef03ade938da4a09724fdd17d8926f1f3d68b

See more details on using hashes here.

File details

Details for the file city_of_saskatoon_smart_util-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for city_of_saskatoon_smart_util-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba5f4513563a334b8100a70d9f49086d395b19571c6756b9634d3df327b345bc
MD5 a8d43c5ae1bf5156b2899a97ba4393d2
BLAKE2b-256 cc714ab667113561713bb21498133878e8409d3a56bb89b15a564a266a8a68f7

See more details on using hashes here.

Supported by

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