node-red-contrib-dwd

Node-RED Nodes that fetch weather warnings from DWD

Usage no npm install needed!

<script type="module">
  import nodeRedContribDwd from 'https://cdn.skypack.dev/node-red-contrib-dwd';
</script>

README

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