WeatherSnoop using AppleScript verbiage  (Script)

Contributed by: bobeast

Overview

This script pulls data from WeatherSnoop which is hopefully connected to weather station hardware

Installation

While WeatherSnoop serves its data via telnet, you can also get at it directly via AppleScript (in the current version) which is more appropriate (easier) for integration with Indigo. Thus, this script is intended to supersede my original script which pulled weatherSnoop's data via Telnet. and parsed the resulting XML.

-- To use this script, set it up to be called periodically via a Time/ Date Action. Then simply make whatever use of the

-- variables created in Indigo as you see fit.

-- This is intended as a an example and as such pulls every bit of data available via the WeatherSnoop AppleScript dictionary.

-- In real life you will want to comment out the extraction of those data you don't care about. I have commented out

-- extraTemperature2 as an example of how to ignore a particular data point.

Usage

To use this script, set it up to be called periodically via a Time/ Date Action. Then simply make whatever use of the variables created in Indigo as you see fit.

This is intended as a an example and as such probably pulls more data that you really need. In real life you will want to comment out the extraction of those data you don't care about. I have commented out extraTemperature2 as an example of how to ignore a particular data point.

This script was written by Bob Easterday. Use as you see fit, but please give credit where credit is due.