node-red-contrib-dwd

0.9.0 • Public • Published

node-red-contrib-dwd

NPM version dependencies Status Build Status XO code style License

Node-RED Nodes zum abfragen von Wetterwarnungen des Deutschen Wetterdienstes (DWD)

These Nodes are only useful if you're interested in weather warnings for Germany, can't be used in other countries.

msg Attribute

  • payload - Maximale Warnstufe aktueller Warnungen
  • count - Anzahl der Warnungen
  • events - Kommagetrennte Aufzählungen der Warnungs-Kategorien
  • warnings - Array mit den detaillierten Daten der Warnungen
  • html - HTML zur Anzeige im Dashboard

Dashboard Template

<style>
    .dwd-icon-container {
        display: inline-block;    
    }
    .dwd-event {
        display: inline-block;
        vertical-align: 60px;
        font-weight: bold;
        padding-left: 20px;
    }
    .dwd-icon.dwd-icon-frame {
        position: absolute;
    }
    .dwd-icon-container.dwd-icon.dwd-icon-frame {
        width: 100px;
        height: 100px;
    }
    .dwd-time {
        color: grey;
    }
    
</style> 
<div ng-bind-html="msg.html"></div>

License

MIT (c) Sebastian Raff

Package Sidebar

Install

npm i node-red-contrib-dwd

Weekly Downloads

24

Version

0.9.0

License

MIT

Unpacked Size

48.6 kB

Total Files

7

Last publish

Collaborators

  • hobbyquaker