Google Weather Sync  (Script)

Contributed by: Araik Grigoryan


The script runs as a background task (see Setup for details), polling for the current and forecast weather using Google Weather API. If successful in obtaining the weather data, the script populates Indigo variables with a prefix "Google_Weather_".


1. Save this file in /Library/Application Support/Perceptive Automation/Indigo [2 or 4]/Scripts/Background Tasks folder.

2. Open the Variable List window (Window > Variable List) and define a new variable with name  _Google_Weather_Location and value of your Zip Code or name of your town.

3. Create a new Trigger Action with the following properties:

  Trigger tab:

   Type = Indigo Server Startup

  Condition tab:

   Upon trigger do actions = Always

  Actions tab:

   Type: Execute AppleScript

   File: Choose... Point to this file located in the folder in step 1.

4. Wait for 10 minutes for Google weather data to appear in the Variable List window.


Create triggers or time/date actions based on the weather data.