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 hashes)

Uploaded Source

Built Distribution

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