title : my.GasBuddy
filename: my.gasbuddy.txt
version: 0.3
description: report preferred station using GasBuddy.com data
author: Dan (electron)
email: dan at marstracker dot org
changelog:
This script is far from done, but it's a start, so figured I would post it anyways. Go to gasbuddy.com, and look up the local gasbudy site (i.e. chicagogasprices.com). Then look up your gas station in that list, and look at the link which allows you to update the price for that gas station, it contains an ID. Copy & Paste that ID into the script (sPreferredStationID variable), and update the sSite variable as well, pointing to the new gasbudy site. Select the homeseer device you want to assign for use with this script (don't forget to create that device!), and create a recurring event running this script.
This script will update the device string with the latest price, and also store it in the device value (but the value has been multiplied by 100 since the devicevalue doesn't support decimals). This allows you to trigger events based on any changes to the price, eventho the script will allow you to to do this soon as well. I personally use this to automatically announce (TTS) and email any price changes to my cellphone.
Download
I will post better instructions, and an update, in a few days.
filename: my.gasbuddy.txt
version: 0.3
description: report preferred station using GasBuddy.com data
author: Dan (electron)
email: dan at marstracker dot org
changelog:
- version 0.3 (09032005): include 'last updated' timestamp
- version 0.2 (09032005): due to complex HTML code, switched code to use regular expressions
- version 0.1 (09012005): created script
- [1] Copy this script to the Homeseer scripts directory.
- [2] Go to the GasBuddy.com site, pick your local GasBuddy site, and 'search' for your gas station. Try to narrow down the search as much as possible by specifying an Area and the type of gas station (you want to avoid your preferred station not showing up in the list).
- [3] Set the variables in the 'User definable Settings' section, follow the provided example.
This script is far from done, but it's a start, so figured I would post it anyways. Go to gasbuddy.com, and look up the local gasbudy site (i.e. chicagogasprices.com). Then look up your gas station in that list, and look at the link which allows you to update the price for that gas station, it contains an ID. Copy & Paste that ID into the script (sPreferredStationID variable), and update the sSite variable as well, pointing to the new gasbudy site. Select the homeseer device you want to assign for use with this script (don't forget to create that device!), and create a recurring event running this script.
This script will update the device string with the latest price, and also store it in the device value (but the value has been multiplied by 100 since the devicevalue doesn't support decimals). This allows you to trigger events based on any changes to the price, eventho the script will allow you to to do this soon as well. I personally use this to automatically announce (TTS) and email any price changes to my cellphone.
Download
I will post better instructions, and an update, in a few days.