Advertisement
NittyGritty

Auriol

May 24th, 2022
723
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [
  2.     {
  3.         "id": "8426234b5f907e85",
  4.         "type": "rflink in",
  5.         "z": "9e1907dfa62da951",
  6.         "device": "1b59f00c149d6177",
  7.         "name": "Auriol-Badfenster",
  8.         "x": 470,
  9.         "y": 1500,
  10.         "wires": [
  11.             [
  12.                 "c457bdea862bd687"
  13.             ]
  14.         ]
  15.     },
  16.     {
  17.         "id": "c457bdea862bd687",
  18.         "type": "function",
  19.         "z": "9e1907dfa62da951",
  20.         "name": "",
  21.         "func": "var Knoten = \"Auriol-Badfenster\"\n\nvar Temp = msg.payload.temp\nvar Hum  = msg.payload.hum\n\nvar temp = -1.0*Temp;\n    es = 6.112*Math.exp(-1.0*17.67*temp/(243.5 - temp));\n\ted = Hum/100.0*es;\n\teln = Math.log(ed/6.112);\n\ttd = -243.5*eln/(eln - 17.67 );\n\tDew = parseFloat( td.toFixed(1) );\n\nvar time = Date.now();\n\nvar Influx = [{\n    Room: Knoten,\n    Temp: Temp,\n    Hum: Hum,\n    Dew: Dew\n}]\n\nvar newMsg1 = {payload:time};\nvar newMsg2 = {payload:Influx};\n\nnode.status({fill:\"blue\",shape:\"ring\",text:\"Temp: \" + Temp + \"°C, Hum: \" + Hum + \"%, Dew: \" + Dew + \"°C\" });\n\nreturn [newMsg1, newMsg2];",
  22.         "outputs": 2,
  23.         "noerr": 0,
  24.         "initialize": "",
  25.         "finalize": "",
  26.         "libs": [],
  27.         "x": 680,
  28.         "y": 1500,
  29.         "wires": [
  30.             [
  31.                 "aeb4891857fda7e4"
  32.             ],
  33.             [
  34.                 "25c6a1d23c468d7d"
  35.             ]
  36.         ]
  37.     },
  38.     {
  39.         "id": "aeb4891857fda7e4",
  40.         "type": "moment",
  41.         "z": "9e1907dfa62da951",
  42.         "name": "",
  43.         "topic": "",
  44.         "input": "payload",
  45.         "inputType": "msg",
  46.         "inTz": "ETC/GMT",
  47.         "adjAmount": "0",
  48.         "adjType": "hours",
  49.         "adjDir": "subtract",
  50.         "format": "dd DD. MMMM YYYY HH:mm:ss ",
  51.         "locale": "de_DE",
  52.         "output": "",
  53.         "outputType": "msg",
  54.         "outTz": "Europe/Berlin",
  55.         "x": 1100,
  56.         "y": 1440,
  57.         "wires": [
  58.             [
  59.                 "4787e2b06c19396d"
  60.             ]
  61.         ]
  62.     },
  63.     {
  64.         "id": "4787e2b06c19396d",
  65.         "type": "debug",
  66.         "z": "9e1907dfa62da951",
  67.         "name": "",
  68.         "active": true,
  69.         "tosidebar": false,
  70.         "console": false,
  71.         "tostatus": true,
  72.         "complete": "payload",
  73.         "targetType": "msg",
  74.         "statusVal": "payload",
  75.         "statusType": "auto",
  76.         "x": 1150,
  77.         "y": 1480,
  78.         "wires": []
  79.     },
  80.     {
  81.         "id": "25c6a1d23c468d7d",
  82.         "type": "debug",
  83.         "z": "9e1907dfa62da951",
  84.         "name": "",
  85.         "active": false,
  86.         "tosidebar": true,
  87.         "console": false,
  88.         "tostatus": false,
  89.         "complete": "false",
  90.         "statusVal": "",
  91.         "statusType": "auto",
  92.         "x": 1150,
  93.         "y": 1540,
  94.         "wires": []
  95.     },
  96.     {
  97.         "id": "1b59f00c149d6177",
  98.         "type": "rflink device",
  99.         "devname": "Auriol V3",
  100.         "devid": "7403"
  101.     }
  102. ]
Advertisement
RAW Paste Data Copied
Advertisement