• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. juntiedt
    3. Posts
    J
    • Profile
    • Following 0
    • Followers 1
    • Topics 36
    • Posts 101
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by juntiedt

    • RE: http://localhost:8080/json/all - node-red Problems

      @juntiedt Problem solved!

      posted in Official API - Evok
      J
      juntiedt
    • http://localhost:8080/json/all - node-red Problems

      Hallo,
      I have installed EVOK on Raspian bullseye with no problems.
      I am running node-red and there is one problem with EVOK.
      websocket works ok and all http requests are working except http://localhost:8080/json/all.
      Sometimes it works once after rebooting but then it looses connection to the server and node-red hangs up.
      What causes this problem?
      Any help appreciated!

      posted in Official API - Evok
      J
      juntiedt
    • 8-Relay Addon EMO-R8 on unipi 1.1.light

      is it possible to connect the 8-Relay Addon EMO-R8 to unipi light via the GPIO Connector and using evok?

      posted in Unipi 1 - First Generation
      J
      juntiedt
    • RE: Bullseye and evok running?

      I went back to buster. Now evok works ok!
      Bullseye definitely needs some work.

      posted in Official API - Evok
      J
      juntiedt
    • Bullseye and evok running?

      I want to install evok on raspi with bullseye.
      Does EVOK run on bullseye?
      If so, can I use the EVOK version on github?

      posted in Official API - Evok
      J
      juntiedt
    • Unipi 1.1 light Raspi Node-Red SW Image: wrong password

      I cannot connect to the new SW image with user "unipi" and pw "unipi.technology"
      I tried it with putty and directly connected to the Raspi

      What is the problem?

      posted in Official API - Evok
      J
      juntiedt
    • RE: filter websocket input in order to get all devices except temp

      one important thing at the end:
      as soon as you apply a filter the received msg.payload from websocket comes in an array.
      this means:
      before the applied filter you could your device with msg.payload.dev
      with applied filter you must read the device as msg.payload[0].dev !!!

      posted in Official API - Evok
      J
      juntiedt
    • RE: filter websocket input in order to get all devices except temp

      I have solved the problem. Sorry for the quick post.
      Attached please find the command flow for filter

      [{"id":"46e364e3.e7c2ec","type":"function","z":"cad50249.94c0e","name":"","func":"msg.payload = {\"cmd\":\"filter\", \"devices\":[\"ai\",\"input\",\"ao\",\"relay\"]}; \nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":280,"y":860,"wires":[["a3e4b046.69f93","c16f715d.8fbe1"]]},{"id":"c16f715d.8fbe1","type":"websocket out","z":"cad50249.94c0e","name":"ws://localhost:8080/ws","server":"","client":"84e45387.411c2","x":540,"y":860,"wires":[]},{"id":"418d6f8c.c0e61","type":"inject","z":"cad50249.94c0e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"5","topic":"","payload":"","payloadType":"date","x":110,"y":860,"wires":[["46e364e3.e7c2ec"]]},{"id":"84e45387.411c2","type":"websocket-client","z":"","path":"ws://localhost:8080/ws","tls":"","wholemsg":"false"}]
      
      posted in Official API - Evok
      J
      juntiedt
    • filter websocket input in order to get all devices except temp

      I want to receive all devices via websocket except one wire sensors. How has the filter command to look like?
      All devices but temp or temp and no other device.

      I am using node-red with the websocket set command which works ok, but the filter command seems not to work.

      Any help appreciated.

      posted in Official API - Evok
      J
      juntiedt
    • RE: one-wire sensor with 3 cables versus one wire sensors with 4 cables

      thanks for your information.

      I have connected a 4 wire cable very close to the three wire sensor and connected the data line to 2 wires in order to use the hub. At the moment it works.

      posted in Other Peripherals
      J
      juntiedt
    • Extension xG18 on unipi 1.1

      Hallo Unipi Team,
      I am new to Modbus and now want to connect Extension xG18 to my unipi 1.1.
      What is the evok interface to modbus?
      How can I access modbus through evok?
      Is there a connection cable coming with the Extension xG18 device?
      The Extension xG18 will be about 5 to 6 meter away from my unipi 1.1.
      Any info/help appreciated

      posted in Official API - Evok
      J
      juntiedt
    • 1-Wire pipeline surface temperature sensor

      I have a question regarding the above mentioned sensor, Does it come as a sensor with 4 wire cable (Data in + Data Out) in order to use it with Unipi HUb?

      posted in Other Peripherals
      J
      juntiedt
    • one-wire sensor with 3 cables versus one wire sensors with 4 cables

      Hello Unipi Team,

      I currently have 4 temp sensors from unipi which have 4 cables. Now I have got a one wire sensor (3 m) with only 3 cables (seems to be standard).
      How do I connect this sensor with unipi 8 port hub (old model with all ports on one side). As far as I know, on your 4 cable sensors the data line goes to the sensor and then back to the hub on another pin of the RJ plug which the goes to the next port of the hub. This would mean, that I have to bridge somehow this two pins. Result seems to be an unstable bus.

      Any idea how to connect 3 cable sensors professionally to your hub/bus?

      posted in Other Peripherals
      J
      juntiedt
    • RE: Unipi 1.1 Lite - read from 1W-Sensor in NODERED

      this flow gets data from unipi 1.1. unipi lite does not have ai ao. Just skip it. temp input is one wire sensor data. the json all node initializes all variables and then websocket delivers actual data.

      [{"id":"cad50249.94c0e","type":"tab","label":"unipi1.1 to MQTT","disabled":false,"info":""},{"id":"9d58b57c.1dc5c8","type":"websocket in","z":"cad50249.94c0e","name":"","server":"","client":"84e45387.411c2","x":150,"y":340,"wires":[["f1646973.6f0b08"]]},{"id":"f1646973.6f0b08","type":"json","z":"cad50249.94c0e","name":"","property":"payload","action":"","pretty":false,"x":330,"y":340,"wires":[["317506aa.3aa32a","fa0726fd.a44fb8"]]},{"id":"cdd4d544.02a9f8","type":"mqtt out","z":"cad50249.94c0e","name":"home/ug/Buero/unipi/1","topic":"","qos":"","retain":"","broker":"e78c6663.280d38","x":1180,"y":400,"wires":[]},{"id":"bc4f4c59.0d206","type":"trigger","z":"cad50249.94c0e","op1":"","op2":"1 Stunde keine Meldung von One-Wire Sensoren!","op1type":"nul","op2type":"str","duration":"1","extend":true,"units":"hr","reset":"","bytopic":"all","name":"","x":290,"y":180,"wires":[["1e8f1bff.5ff404"]]},{"id":"7b4c23b3.9cfebc","type":"function","z":"cad50249.94c0e","name":"","func":"msg.payload = msg.topic + \" ---> \" + msg.payload;\nmsg.topic = \"Zeitüberschreitung One-Wire Sensoren\";\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":180,"wires":[["c4704b1c.ce25d8","8e60f8f7.3d3ee8"]]},{"id":"317506aa.3aa32a","type":"switch","z":"cad50249.94c0e","name":"","property":"payload.dev","propertyType":"msg","rules":[{"t":"eq","v":"temp","vt":"str"},{"t":"eq","v":"input","vt":"str"},{"t":"eq","v":"relay","vt":"str"},{"t":"eq","v":"ao","vt":"str"},{"t":"eq","v":"ai","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":490,"y":340,"wires":[["bc4f4c59.0d206","c0a56553.2502e8"],["6168748d.9395fc"],["ec9fec9a.b8bb8"],["bf29c465.fd0b98"],["6ec28c7b.7a5854"]]},{"id":"c4704b1c.ce25d8","type":"debug","z":"cad50249.94c0e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":830,"y":220,"wires":[]},{"id":"e7b77d5b.681fb","type":"inject","z":"cad50249.94c0e","name":"","topic":"test","payload":"Testmail unipi-big","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":620,"y":140,"wires":[["8e60f8f7.3d3ee8"]]},{"id":"c0a56553.2502e8","type":"function","z":"cad50249.94c0e","name":"temp","func":"var t_loc = \"home/ug/Buero/unipi/1/\";\nmsg.topic = t_loc + msg.payload.dev + \"/\" + msg.payload.circuit;\nmsg.payload = parseFloat(msg.payload.value).toFixed(2);\nreturn msg;","outputs":1,"noerr":0,"x":910,"y":280,"wires":[["cdd4d544.02a9f8"]]},{"id":"6168748d.9395fc","type":"function","z":"cad50249.94c0e","name":"input","func":"var t_loc = \"home/ug/Buero/unipi/1/\";\nmsg.topic = t_loc + msg.payload.dev + \"/\" + msg.payload.circuit;\nmsg.payload = msg.payload.value;\nreturn msg;","outputs":1,"noerr":0,"x":910,"y":320,"wires":[["cdd4d544.02a9f8"]]},{"id":"ec9fec9a.b8bb8","type":"function","z":"cad50249.94c0e","name":"relay","func":"var t_loc = \"home/ug/Buero/unipi/1/\";\nmsg.topic = t_loc + msg.payload.dev + \"/\" + msg.payload.circuit;\nmsg.payload = msg.payload.value;\nreturn msg;","outputs":1,"noerr":0,"x":910,"y":360,"wires":[["cdd4d544.02a9f8"]]},{"id":"bf29c465.fd0b98","type":"function","z":"cad50249.94c0e","name":"ao","func":"var t_loc = \"home/ug/Buero/unipi/1/\";\nmsg.topic = t_loc + msg.payload.dev + \"/\" + msg.payload.circuit;\nmsg.payload = parseFloat(msg.payload.value).toFixed(2);\nreturn msg;","outputs":1,"noerr":0,"x":910,"y":400,"wires":[["cdd4d544.02a9f8"]]},{"id":"6ec28c7b.7a5854","type":"switch","z":"cad50249.94c0e","name":"","property":"payload.circuit","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":650,"y":460,"wires":[["a14e1ae1.a92608"],["dad4982a.d5fe18"]]},{"id":"a14e1ae1.a92608","type":"function","z":"cad50249.94c0e","name":"ai 1","func":"var t_loc = \"home/ug/Buero/unipi/1/\";\nmsg.topic = t_loc + msg.payload.dev + \"/\" + msg.payload.circuit;        \nmsg.payload = parseFloat(msg.payload.value).toFixed(2);\nreturn msg;","outputs":1,"noerr":0,"x":790,"y":440,"wires":[["7095cd82.073ff4"]]},{"id":"dad4982a.d5fe18","type":"function","z":"cad50249.94c0e","name":"ai 2","func":"var t_loc = \"home/ug/Buero/unipi/1/\";\nmsg.topic = t_loc + msg.payload.dev + \"/\" + msg.payload.circuit;        \nmsg.payload = (10.0 - parseFloat(msg.payload.value)).toFixed(2);\n//msg.payload = msg.payload.toFixed(2);\nreturn msg;","outputs":1,"noerr":0,"x":790,"y":480,"wires":[["6749874e.7eb638"]]},{"id":"8e60f8f7.3d3ee8","type":"e-mail","z":"cad50249.94c0e","server":"smtp.gmail.com","port":"465","secure":true,"tls":false,"name":"juntiedt2@gmail.com","dname":"juntiedt2@gmail.com","x":860,"y":180,"wires":[]},{"id":"1e8f1bff.5ff404","type":"moment","z":"cad50249.94c0e","name":"HH:mm:ss DD-MM-YYYY","topic":"","input":"xyz","inputType":"flow","inTz":"Europe/Berlin","adjAmount":0,"adjType":"days","adjDir":"add","format":"HH:mm:ss DD-MM-YYYY","locale":"de_DE","output":"topic","outputType":"msg","outTz":"Europe/Berlin","x":490,"y":180,"wires":[["7b4c23b3.9cfebc"]]},{"id":"fa0726fd.a44fb8","type":"debug","z":"cad50249.94c0e","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":350,"y":400,"wires":[]},{"id":"5de6d555.65fd4c","type":"inject","z":"cad50249.94c0e","name":"Ubig","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"onceDelay":"1.0","x":110,"y":580,"wires":[["1ec43156.0d3ecf"]]},{"id":"1ec43156.0d3ecf","type":"http request","z":"cad50249.94c0e","name":"http://localhost:8080/json/all","method":"GET","ret":"txt","paytoqs":false,"url":"http://localhost:8080/json/all","tls":"","persist":false,"proxy":"","authType":"","x":320,"y":580,"wires":[["fadb47c7.8068d8"]]},{"id":"b0b395e7.71ed48","type":"catch","z":"cad50249.94c0e","name":"catch no success","scope":["1ec43156.0d3ecf","2dbeaf6.88fdf5"],"uncaught":false,"x":220,"y":640,"wires":[["1bbd0392.3fcfec","63a3399c.45f138"]]},{"id":"63a3399c.45f138","type":"delay","z":"cad50249.94c0e","name":"30 sec","pauseType":"delay","timeout":"30","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":390,"y":640,"wires":[["1ec43156.0d3ecf"]]},{"id":"1bbd0392.3fcfec","type":"debug","z":"cad50249.94c0e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"error","targetType":"msg","x":400,"y":680,"wires":[]},{"id":"2dbeaf6.88fdf5","type":"function","z":"cad50249.94c0e","name":"no success","func":"node.error(\"json/all no success\", msg);   ","outputs":1,"noerr":0,"x":630,"y":640,"wires":[[]]},{"id":"fadb47c7.8068d8","type":"json","z":"cad50249.94c0e","name":"","property":"payload","action":"","pretty":false,"x":510,"y":580,"wires":[["f4c43419.9505e8"]]},{"id":"f4c43419.9505e8","type":"switch","z":"cad50249.94c0e","name":"success","property":"payload.status","propertyType":"msg","rules":[{"t":"eq","v":"success","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":640,"y":580,"wires":[["34618e75.c993a2"],["2dbeaf6.88fdf5"]]},{"id":"34618e75.c993a2","type":"function","z":"cad50249.94c0e","name":"split","func":"var ar = msg.payload.data;\nvar i;\nfor (i = 0; i < ar.length; i++) {\n  node.send({payload:ar[i]});\n}\nreturn;","outputs":1,"noerr":0,"x":790,"y":580,"wires":[["a813b8d1.c4b208"]]},{"id":"a813b8d1.c4b208","type":"function","z":"cad50249.94c0e","name":"format","func":"/*\nvar t_loc = \"home/ug/Buero/unipi/1/\";\nmsg.topic = t_loc + msg.payload.dev + \"/\" + msg.payload.circuit;\nswitch (msg.payload.dev){\n    case \"temp\":\n        msg.payload = parseFloat(msg.payload.value).toFixed(2);\n        break;\n    case \"input\":\n        msg.payload = msg.payload.value;\n        break;        \n    case \"relay\":\n        msg.payload = msg.payload.value;\n}\nreturn msg;\n*/\n\nvar t_loc = \"home/ug/Buero/unipi/1/\";\nvar mqtt_topic = t_loc + msg.payload.dev + \"/\" + msg.payload.circuit;\nswitch (msg.payload.dev){\n    case \"temp\":\n        return{payload:parseFloat(msg.payload.value).toFixed(2),topic:mqtt_topic};\n    case \"input\":\n        return{payload:msg.payload.value,topic:mqtt_topic};\n    case \"relay\":\n        return{payload:msg.payload.value,topic:mqtt_topic};\n}\nreturn;","outputs":1,"noerr":0,"x":910,"y":580,"wires":[["cdd4d544.02a9f8"]]},{"id":"c52a64.b19355a","type":"comment","z":"cad50249.94c0e","name":"init input, relay, temp","info":"","x":1120,"y":580,"wires":[]},{"id":"6749874e.7eb638","type":"switch","z":"cad50249.94c0e","name":"","property":"payload","propertyType":"msg","rules":[{"t":"neq","v":"","vt":"prev"}],"checkall":"true","repair":false,"outputs":1,"x":910,"y":480,"wires":[["cdd4d544.02a9f8"]]},{"id":"7095cd82.073ff4","type":"switch","z":"cad50249.94c0e","name":"","property":"payload","propertyType":"msg","rules":[{"t":"neq","v":"","vt":"prev"}],"checkall":"true","repair":false,"outputs":1,"x":910,"y":440,"wires":[["cdd4d544.02a9f8"]]},{"id":"84e45387.411c2","type":"websocket-client","z":"","path":"ws://localhost:8080/ws","tls":"","wholemsg":"false"},{"id":"e78c6663.280d38","type":"mqtt-broker","z":"","broker":"10.0.0.43","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","willTopic":"","willQos":"0","willPayload":""}]
      
      posted in Node-RED
      J
      juntiedt
    • RE: nginx not running

      Hi Martin,

      thanks for your help and support.
      All running again!

      regards Hannes

      posted in Official API - Evok
      J
      juntiedt
    • RE: nginx not running

      requested file /etc/nginx/sites-enabled/evok file:

      installation legacy with script as on git hub

      installation 2 weeks ago

      upstream evok {
              server localhost:;
      }
      
      server {
      	listen  default_server;
      	server_name  _;
      
      	#ssl on;
      	#ssl_certificate      /etc/nginx/democert.pem;
      	#ssl_certificate_key  /etc/nginx/democert.key;
      
      	#access_log  /var/log/evok.access.log;
      	access_log  off;
      	root /var/www/evok;
      
      	location / {
      	    index index.html;	    
      	}
      	
      	location /favicon.ico {
      		alias /var/www/evok/favicon.ico;
      	}
      
      	location /ws {
      		proxy_pass http://evok;
      		proxy_set_header Host $host:$server_port;
      		proxy_http_version 1.1;
      		proxy_set_header Upgrade $http_upgrade;
      		proxy_set_header Connection "upgrade";
      		proxy_buffering off;
      		proxy_cache off;
      		proxy_read_timeout 180;
      	}
      
      	location /rest {
      		proxy_pass http://evok;
      		proxy_set_header Host      $host:$server_port;
      	}
      	
      	location /json {
      		proxy_pass http://evok;
      		proxy_set_header Host      $host:$server_port;
      	}
      	location /bulk {
      		proxy_pass http://evok;
      		proxy_set_header Host	$host:$server_port;
      	}
      	location /rpc {
      		proxy_pass http://evok;
      		proxy_set_header Host	$host:$server_port;
      	}
      	
      }
      
      posted in Official API - Evok
      J
      juntiedt
    • nginx not running

      I installed evok on rpi4 with buster. One wire, websocket runs ok but I am unable to run the control panel due to nginx problems.

      ● nginx.service - A high performance web server and a reverse proxy server
         Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
         Active: failed (Result: exit-code) since Thu 2020-02-27 10:18:03 CET; 46s ago
           Docs: man:nginx(8)
        Process: 11233 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
      
      Feb 27 10:18:03 raspberrypi systemd[1]: Starting A high performance web server and a reverse proxy server...
      Feb 27 10:18:03 raspberrypi nginx[11233]: nginx: [emerg] invalid port in upstream "localhost:" in /etc/nginx/sites-enabled/evok:2
      Feb 27 10:18:03 raspberrypi nginx[11233]: nginx: configuration file /etc/nginx/nginx.conf test failed
      Feb 27 10:18:03 raspberrypi systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
      Feb 27 10:18:03 raspberrypi systemd[1]: nginx.service: Failed with result 'exit-code'.
      Feb 27 10:18:03 raspberrypi systemd[1]: Failed to start A high performance web server and a reverse proxy server.
      

      Any idea how to fix it without reinstalling evok?

      posted in Official API - Evok
      J
      juntiedt
    • unipi1.1, Raspi 4, evok, Node_Red floor heating control.

      Per room you may set: Program or manuell temperature setting, boost for 1 hour, set temperature, display valve status and get graphical temperature curve.

      temperature sensors are shelly HT and in one room Netatmo

      0_1578408606136_Heizung.jpg

      posted in Node-RED
      J
      juntiedt
    • RE: unipi 1.1, Raspberry Pi 4, buster, evok, node-red

      Node-Red on Raspi 4 works perfect - no problems at all

      posted in Official API - Evok
      J
      juntiedt
    • unipi 1.1, Raspberry Pi 4, buster, evok, node-red

      does unipi 1.1, Raspberry Pi 4, buster, newest evok, node-red work correctly?
      I would like to ungrade my Pi to version 4 on my unipi 1.1.

      posted in Official API - Evok
      J
      juntiedt