bpaauwe / udi-owm-poly

Other
0 stars 2 forks source link

OpenWeatherMaps

This is a node server to pull weather data from OpenWeatherMaps and make it available to a Universal Devices ISY994i Polyglot interface with Polyglot V2

OpenWeatherMaps requires you to create an API key that you will need to access the data via their API. See OpenWeatherMap

(c) 2018 Robert Paauwe MIT license.

Installation

  1. Backup Your ISY in case of problems!
    • Really, do the backup, please
  2. Go to the Polyglot Store in the UI and install.
  3. Add NodeServer in Polyglot Web
    • After the install completes, Polyglot will reboot your ISY, you can watch the status in the main polyglot log.
  4. Once your ISY is back up open the Admin Console.
  5. Configure the node server per configuration section below.

Node Settings

The settings for this node are:

Short Poll

APIkey

* Your API ID, needed to authorize connection to the OpenWeatherMap API.

Units

* 'metric' or 'imperial' request data in this units format.

Location

* by coordinates (lat=xx&lon=xxx)

Forecast Days

* The number of forecast nodes to create and populate. The range is 0 to 8.

Elevation

* Height above sea level, in meters, for the location specified above. 

Plant Type

* Crop coefficent for evapotranspiration calculation. Default is 0.23

Node substituion variables

Current condition node

Requirements

  1. Polyglot V2 itself should be run on Raspian Stretch. To check your version, cat /etc/os-release and the first line should look like PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)". It is possible to upgrade from Jessie to Stretch, but I would recommend just re-imaging the SD card. Some helpful links:
  2. This has only been tested with ISY 5.0.14 so it is not guaranteed to work with any other version.

Upgrading

Open the Polyglot web page, go to nodeserver store and click "Update" for "WeatherFlow".

For Polyglot 2.0.35, hit "Cancel" in the update window so the profile will not be updated and ISY rebooted. The install procedure will properly handle this for you. This will change with 2.0.36, for that version you will always say "No" and let the install procedure handle it for you as well.

Then restart the nodeserver by selecting it in the Polyglot dashboard and select Control -> Restart, then watch the log to make sure everything goes well.

The nodeserver keeps track of the version number and when a profile rebuild is necessary. The profile/version.txt will contain the profile_version which is updated in server.json when the profile should be rebuilt.

Release Notes