Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

High Priced Electricity SMS Alerts with Python and Twilio SMS

Blog post from Twilio

Post Details
Company
Date Published
Author
Ryan Kauffman
Word Count
2,355
Language
English
Hacker News Points
-
Summary

The author of this article created a Python script using Twilio SMS and ComEd's Hourly Pricing API to receive text alerts when the electricity price rises above a certain threshold. The script fetches real-time data from the API, calculates the average hourly price, and sends an SMS alert if the price exceeds the threshold. The script is triggered by a Windows Task Scheduler task that runs every 5 minutes, allowing the author to monitor their electricity prices in real-time and adjust their usage accordingly.