0.9.0 • Published 6 years ago

node-red-contrib-dwd v0.9.0

Weekly downloads
30
License
MIT
Repository
github
Last release
6 years ago

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