Sineos / node-red-contrib-weatherman

Parse Weathermans's JSON in a Node Red flow
GNU General Public License v3.0
7 stars 0 forks source link

Beispiele im ui funktionieren nicht #1

Closed Hypnos3 closed 6 years ago

Hypnos3 commented 6 years ago

image

Wohin müssen die Dateien von Steelseries Gauges denn hinkopiert werden, damit die Anzeige im Ui funtioniert?

Sineos commented 6 years ago

Sorry, bin noch nicht dazu gekommen, ein kleines Tutorial zu schreiben. Für die zusätzlichen Skript Bibliotheken brauchst du ein httpStatic Verzeichnis für NR. Ich hab meines unter /usr/local/sdcard/www/addons/red/static/ angelegt. Dazu dann noch die httpStatic Einstellung in /usr/local/addons/redmatic/etc/sttings.json

{
    "uiPort": 1880,
    "uiHost": "127.0.0.1",
    "flowFile": "flows.json",
    "userDir": "/usr/local/addons/redmatic/var",
    "httpRoot": "/addons/red",
    "httpStatic": "/usr/local/sdcard/www",
    "logging": {
        "ain": {
            "level": "info",
            "metrics": false,
            "audit": false
        }
    }
} 

Damit sind zusätzlich Dateien, wie Bilder, Skripte usw. unter http://<ccu-adresse>/addons/red/static/... erreichbar.

Die einzelnen Bibliotheken liegen dann in einem scripts Ordner:

<script type="text/javascript" src="/addons/red/static/scripts/steelseries-min.js"></script>
<script type="text/javascript" src="/addons/red/static/scripts/tween-min.js"></script>
<script type="text/javascript" src="/addons/red/static/scripts/RGraph.common.core.js"></script>
<script type="text/javascript" src="/addons/red/static/scripts/RGraph.radar.js"></script>

Mit dem Update, dass ich gerade hoch geschoben haben sind noch RGraph Libs dazugekommen: https://www.rgraph.net/

Hypnos3 commented 6 years ago

Ok, Besten Dank.

Sineos commented 6 years ago

Hier jetzt ein bisschen ausführlicher: https://github.com/Sineos/node-red-contrib-weatherman/blob/master/README_DE.md