Autor Thema: Weather data via raspberry pi and node-red  (Gelesen 77 mal)

0 Mitglieder und 1 Gast betrachten dieses Thema.

Offline david

  • Newbie
  • *
  • Beiträge: 21
    • Profil anzeigen
Weather data via raspberry pi and node-red
« am: 26. Februar 2019, 09:11:30 »
Because of all the problems with the weather blocks: not supported, no free accounts, especially change of data, or only json...
I decided it would be much easier to use node-red to get the weather data and to send it to the PLC via spidercontrol web variables.
There are several nodes for different weather providers (openweathermap, darksky...)
Attached an example node-red flow where I get the weather data from DarkSky and send it to my Phoenix Contact plc. I keep using the Oscat_Yahoo struct inside the PLC (set as PDD), so in the plc I only had to disable the Yahoo weather function block call.