WeatherCat to Indigo Data  (Miscellaneous)

Contributed by: Matthew Jenkins


WeatherCat monitors your current weather using a sensor array and a console, like a Davis Envoy. There are many other sensors and consoles that it supports.

Using the XML file below as a template, WeatherCat populates another file with realtime data. Please see the WeatherCat documentation for details. There are many more values you could add or delete to suit your situation. The .py file is used by Indigo to push the realtime data into indigo variables.


Install the XML template first:

Step 1: Adjust the XML template by adding/deleting any of the values to suit you.. See the WeatherCat instructions (Web Tags) as there are hundreds of options to get the data you want.

Step 2: Store the XML template in a folder, and note that the processed file will be store in another folder. I put the XML template in .../Weather/tagFiles and the processed file in .../Weather/processedFiles. Change the WeatherCat preferences to process the XML template. To do this, open WeatherCat preferences and click on "On-Line", then "Custom Web" . On "Main" click "Enable Custom Web Pages", and click on "Set HTML Source". Choose the folder for the XML template. Click on "Set Save Path" and choose the directory for processed file to be stored (WeatherCat creates this file with the same name as the template).

Step 3: Finally, on the same page as where you selected the Source, click on "Additional Files" which is next to "Main". Click on "Add" and select the XML template for "Set Path" and "Enabled". Choose the period (I use 1.0). Click "OK" and close preferences. Verify that data is being populated in the processed file.

Getting data into Indigo:

Step 1: Create all the variables that will be imported! I use the prefix WC_ and then the description of the data (WC_Temp).

Step 2: Copy each variable number ID to the .py file corresponding to the correct variable. This is very tedious and arduous, but it is only once!

Step 3: Create a schedule in Indigo to "Execute Script". Choose File and select the .py. Mine runs every 2 minutes.


For the python file, if you run into any import errors, which happened to me, install PIP and install the lxml library which fixed it. There is information on the web to do this. This is not the xml library!

You may want to create a web page to see these values to check out what's happening at home!