• SFTP access to Neuron directories

    12
    0 Votes
    12 Posts
    7k Views
    M
    ok I will try to use the /home/pi/ folder.
  • Open source PLC with UniPi

    4
    0 Votes
    4 Posts
    5k Views
    R
    OSCAT An overview Basic Functions Network Functions Building Fuctions
  • unipi + Raspberry Pi 7” Touchscreen Display

    3
    0 Votes
    3 Posts
    2k Views
    Kuba MejtskýK
    If I want to connect 7" display via ribbon cable by slot on PI 3B, not by pins on GPIO, is there any option how to use display in same time with UniPi? Display needs to be connected to 5V, GND and SDA, SCL pin (I2C). What I see in pictures, GPIO is used to connection UniPI so I think that display can be connected to UniPI. I hope that it is possible.
  • Neuron on Node.js over modbus (with MQTT)

    2
    1 Votes
    2 Posts
    2k Views
    T
    @wesleydv Nice work and thank you for sharing!
  • 0 Votes
    4 Posts
    3k Views
    T
    @KaniaGandzowski The easies API for Mervis is TCP Modbus. What about my comment: It might NOT work if you have all three softwares on one system running at the same time..
  • Modbus, send REAL data

    2
    0 Votes
    2 Posts
    2k Views
    G
    I find it! Modbus data order: 1234. Example: In C program header: typedef unsigned long DWORD; typedef unsigned short WORD; union u_DWORD_TO_FLOAT{ DWORD i; float f; }; and in the code: union u_DWORD_TO_FLOAT AI01; ... AI01.i = (mb_mapping->tab_registers[20] << 16) + mb_mapping->tab_registers[21]; float value = AI01.f; Hope this help someone !
  • "True" Domoticz support for UniPi

    10
    0 Votes
    10 Posts
    7k Views
    zorro_66Z
    Ok thanks check there
  • Wiki

    2
    0 Votes
    2 Posts
    3k Views
    T
    @zeus Hello, we have moved with the rest of our portal here: https://www.unipi.technology/helpcenter/
  • Charlyplexing or matrix

    19
    0 Votes
    19 Posts
    11k Views
    T
    @Wim-Stockman I will take a look at it during the next week. Thanks for the tip. I did not check the code much but there should be some time buffer while decoding the correct input. The messages does not always come at the same time, there might be a tens of ms gap between each and you shoudl tie those together...
  • Lots of documentation missing

    8
    0 Votes
    8 Posts
    4k Views
    T
    @Havor thats how we do it. Howeve some developers are not interrested in all the extensions since they are doing it for their own needs....
  • Which software should I use for 13 blinds and shutters?

    17
    0 Votes
    17 Posts
    9k Views
    T
    According to the manual: https://files.unipi.technology/index.php/s/zTmrEbQEvifNd6W?path=%2FProducts%2FNeuron%2FDocumentation#pdfviewer chapter 2.2.1 LED diodedescription and later MWD description. It means you do not communicate with the devices. Which is also notable that there is no output when you run the server by hand.
  • 0 Votes
    2 Posts
    2k Views
    T
    You are missing ; at the end of $host ="myhostip"
  • Raspian vs Evok?

    5
    0 Votes
    5 Posts
    3k Views
    M
    @rmoore I started off figuring out the GPIO pins on the bare Raspberry Pi, and once you get your head around that, moving to the Unipi is the next logical step. I did'nt use this article, but it explains just about all that you need. http://makezine.com/projects/tutorial-raspberry-pi-gpio-pins-and-python/ The Evok "platform" can be used as well, and I use it via the restful calls for setting some of the relays. If you've not got a Pi already, get a Pi and try the small tutorial above. After that it's straight forward enough. Merv.
  • wifi dongle if unit is mounted in a steel cabinet

    2
    0 Votes
    2 Posts
    2k Views
    T
    Hello, if the internal wifi wont work, you can use USB wifi modem and use external antena. There are plenty models that will work well.
  • UniPi, RPi3 and Onewire 2 bus masters

    2
    0 Votes
    2 Posts
    2k Views
    T
    Hello, can you paste output of i2cdetect -y 1 on the second unit?
  • Create temperature webpage with node red

    6
    0 Votes
    6 Posts
    12k Views
    B
    Here is an example of the flow with Tomas flow as well. You must edit the nodes to match with your installation. My evok listens at port 8181 so you must edit that also edit make http responce node with your own ip installation and the nodes for temp sensors…........... Select all and import it to nodered ! [image: ;)] After edit, visit http:// your_unipi_ip:1880/temp and see the temperature page. You must wait a few seconds until evok reads the sensors. Just refresh the page. [{"id":"348bbeef.fe7752","type":"websocket-listener","path":"/admin/ws/temp","wholemsg":"false"},{"id":"fca23e4f.a8ce2","type":"websocket-client","z":"","path":"ws://127.0.0.1:8181/ws","wholemsg":"false"},{"id":"7b46b282.7c3d4c","type":"websocket out","z":"4505aa70.04b544","name":"","server":"","client":"fca23e4f.a8ce2","x":621,"y":57,"wires":[]},{"id":"235e84c1.5908bc","type":"inject","z":"4505aa70.04b544","name":"R1 ON","topic":"","payload":"{\"dev\":\"relay\", \"circuit\":\"1\", \"value\":\"1\"}","payloadType":"string","repeat":"","crontab":"","once":false,"x":315,"y":72,"wires":[["7b46b282.7c3d4c"]]},{"id":"e7fe6581.4261f8","type":"inject","z":"4505aa70.04b544","name":"R1 OFF","topic":"","payload":"{\"dev\":\"relay\", \"circuit\":\"1\", \"value\":\"0\"}","payloadType":"string","repeat":"","crontab":"","once":false,"x":308,"y":116,"wires":[["7b46b282.7c3d4c"]]},{"id":"aa9371be.e0d55","type":"inject","z":"4505aa70.04b544","name":"AO set 5V a","topic":"","payload":"{\"dev\":\"ao\", \"circuit\":\"1\", \"value\":\"5\"}","payloadType":"string","repeat":"","crontab":"","once":false,"x":293,"y":27,"wires":[["7b46b282.7c3d4c"]]},{"id":"97e446ec.817df8","type":"websocket in","z":"4505aa70.04b544","name":"","server":"","client":"fca23e4f.a8ce2","x":105,"y":198,"wires":[["7218830.9bb6d7c","6b66ea3a.2589b4","12af52a9.85b71d","3f1016b9.ceee9a","d97ae6ba.727c78","c6ef55a5.4e3838"]]},{"id":"7218830.9bb6d7c","type":"debug","z":"4505aa70.04b544","name":"","active":true,"console":"false","complete":"payload","x":377,"y":288,"wires":[]},{"id":"6b66ea3a.2589b4","type":"function","z":"4505aa70.04b544","name":"IN 1-7 -> RELAY 1-7","func":"var status = JSON.parse(msg.payload);\nvar msg = {};\nif (status.dev == \"input\" && status.circuit<8) {\n\t//leave the relay 8 to the temp control node\n\tif (status.value == 0) {\n\t\tmsg.payload = {\"dev\":\"relay\", \"circuit\":\"\", \"value\":\"0\"};\n\t\tmsg.payload[\"circuit\"] = status.circuit;\n\t}\n\telse {\n\t\tmsg.payload = {\"dev\":\"relay\", \"circuit\":\"\", \"value\":\"1\"};\n\t\tmsg.payload[\"circuit\"] = status.circuit;\n\t}\n\treturn msg;\n}\nelse return;\n","outputs":1,"x":364,"y":178,"wires":[["7b46b282.7c3d4c"]]},{"id":"12af52a9.85b71d","type":"function","z":"4505aa70.04b544","name":"Temp >= 26 -> R8 On","func":"var status = JSON.parse(msg.payload);\nvar newMsg = {};\nif (status.dev == \"temp\" && status.address==\"28C70460070000F1\") {\n\tnewMsg.payload = {\"dev\":\"relay\", \"circuit\":\"8\"}\n\tif (status.value>=26) newMsg.payload[\"value\"]=1;\n\telse newMsg.payload[\"value\"]=0;\n\treturn newMsg;\n}\nelse return;","outputs":1,"noerr":0,"x":367.5,"y":222,"wires":[["7b46b282.7c3d4c"]]},{"id":"490890a6.d198a","type":"http in","z":"4505aa70.04b544","name":"allow request on localhost:1880/temp","url":"/temp","method":"get","x":526,"y":708,"wires":[["69116356.458b4c","5f32dd6.45a9124"]]},{"id":"69116356.458b4c","type":"template","z":"4505aa70.04b544","name":"make HTTP response","field":"payload","fieldType":"msg","syntax":"mustache","template":"<!DOCTYPE HTML>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>Temp</title>\n\n <!-- Bootstrap -->\n <link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css\">\n\n <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->\n <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->\n <!--[if lt IE 9]>\n <script src=\"https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js\"></script>\n <script src=\"https://oss.maxcdn.com/respond/1.4.2/respond.min.js\"></script>\n <![endif]-->\n \n </head>\n <script type=\"text/javascript\">\n var server = window.location.hostname;\n var topics = {};\n var wsUriC = \"ws://192.168.1.79:1880/admin/ws/temp\";\n function wsConnectC() {\n console.log(\"connect\",wsUriC);\n var ws = new WebSocket(wsUriC);\n ws.onmessage = function(msg) {\n \n var payloadObj = JSON.parse(msg.data);\n console.log(payloadObj);\n\t\t\t\tvar output = \"\";\n\t\t\t\t\tfor (var property in payloadObj) {\n \t\t\t\t\t\toutput += '<li class=\"list-group-item\"><strong>' +property + '</strong>' + ': ' + payloadObj[property]+'°C</li>';\n\t\t\t\t\t\t}\n document.getElementById('messages').innerHTML = output; \n \n }\n ws.onopen = function() {\n document.getElementById('status').innerHTML = \"<small>connected</small>\";\n console.log(\"connected\");\n }\n ws.onclose = function() {\n document.getElementById('status').innerHTML = \"not connected\";\n setTimeout(wsConnectC,1000);\n }\n }\n </script>\n <body onload=\"wsConnectC();\" onunload=\"ws.disconnect;\">\n <div class=\"container\">\n <div class=\"panel panel-default\" margin: 15px;>\n \t\t\t\t\t<div class=\"panel-heading\"><h3>Temperature Page</h3></div>\n \t\t\t\t\t <div class=\"panel-body\" id=\"messages\">\n \t\t\t\t\t <ul class=\"list-item\" id=\"messages\">\n \t\t\t\t\t </ul>\n \t\t\t\t\t \n \t\t\t\t\t </div>\n \t\t <div class=\"panel-footer\" id=\"status\"><small>disconnected</small></div>\n </div> \t\n </div> \n <script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js\"></script> \n \n </body>\n</html>","x":585,"y":792,"wires":[["66bd018b.be7e7"]]},{"id":"66bd018b.be7e7","type":"http response","z":"4505aa70.04b544","name":"","x":844,"y":792,"wires":[]},{"id":"672b0cd2.571414","type":"websocket out","z":"4505aa70.04b544","name":"","server":"348bbeef.fe7752","x":1167,"y":531,"wires":[]},{"id":"2435b548.02275a","type":"function","z":"4505aa70.04b544","name":"set topic Bedroom","func":"msg.topic=\"Bedroom\";\nreturn msg;","outputs":1,"x":588,"y":376,"wires":[["5a48d307.8e9f4c"]]},{"id":"1baeb6cd.95a5c9","type":"function","z":"4505aa70.04b544","name":"set topic Kitchen","func":"msg.topic=\"Kitchen\";\nreturn msg;","outputs":1,"x":588,"y":430,"wires":[["5a48d307.8e9f4c"]]},{"id":"e2ce9dd9.58d24","type":"debug","z":"4505aa70.04b544","name":"","active":true,"console":"false","complete":"false","x":1159,"y":475,"wires":[]},{"id":"5a48d307.8e9f4c","type":"function","z":"4505aa70.04b544","name":"Add together all payloads and send over as JSON","func":"context.temp = context.temp || new Object();\n\nif (msg.payload == \"\") {\n\tmsg2 = new Object();\n\tmsg2 = context.temp;\n\tmsg.payload=JSON.stringify(msg2);\n\t} else {\n\tcontext.temp[msg.topic] = msg.payload; \n\tmsg2 = new Object();\n\tmsg2 = context.temp;\n\tmsg.payload=JSON.stringify(msg2);\n\t};\n\n\treturn msg;\n\n","outputs":1,"x":992,"y":420,"wires":[["e2ce9dd9.58d24","672b0cd2.571414"]]},{"id":"e00c33f0.a4ca6","type":"function","z":"4505aa70.04b544","name":"set topic Basement","func":"msg.topic=\"Basement\";\nreturn msg;","outputs":1,"x":589,"y":486,"wires":[["5a48d307.8e9f4c"]]},{"id":"5f32dd6.45a9124","type":"function","z":"4505aa70.04b544","name":"send empty payload to send last known temperatures","func":"msg.payload=\"\";\nreturn msg;","outputs":1,"x":515,"y":634,"wires":[["6f707012.a69b3"]]},{"id":"6f707012.a69b3","type":"delay","z":"4505aa70.04b544","name":"Delay so websocket is started before sending","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":512,"y":554,"wires":[["5a48d307.8e9f4c"]]},{"id":"3f1016b9.ceee9a","type":"function","z":"4505aa70.04b544","name":"map_sensors","func":"var status = JSON.parse(msg.payload);\nif (status.dev == \"temp\" && status.circuit==\"28CB515F07000019\") {\n msg.topic=\"Bedroom\";\n msg.payload=status.value.toString();\n\treturn msg;\n}","outputs":1,"noerr":0,"x":380.5,"y":376,"wires":[["2435b548.02275a"]]},{"id":"d97ae6ba.727c78","type":"function","z":"4505aa70.04b544","name":"map_sensors","func":"var status = JSON.parse(msg.payload);\nif (status.dev == \"temp\" && status.circuit==\"28A94860070000E9\") {\n msg.topic=\"Kitchen\";\n msg.payload=status.value.toString();\n\treturn msg;\n}","outputs":1,"noerr":0,"x":386,"y":430,"wires":[["1baeb6cd.95a5c9"]]},{"id":"c6ef55a5.4e3838","type":"function","z":"4505aa70.04b544","name":"map_sensors","func":"var status = JSON.parse(msg.payload);\nif (status.dev == \"temp\" && status.circuit==\"28CD2460070000C6\") {\n msg.topic=\"Basement\";\n msg.payload=status.value.toString();\n\treturn msg;\n}","outputs":1,"noerr":0,"x":389,"y":486,"wires":[["e00c33f0.a4ca6"]]}]
  • Raspberry Pi Zero

    3
    0 Votes
    3 Posts
    3k Views
    ?
    Hello, I did not have a chance to test it but it definitely should! If you need a standalone PLC like, then it is a perfect match [image: :)] Let me know if you got one in hands and test it with UniPi [image: ;)]
  • Unipi, Raspberry B, and ribbon cable

    3
    0 Votes
    3 Posts
    2k Views
    ?
    Hello, it is not a silly question at all. We have removed the old B cables from our shop because not many people were using it. But we still have some cables left. Please put a note to your order that you want the model B accessories. Best regards, Tomas
  • Domoticz

    8
    0 Votes
    8 Posts
    6k Views
    ?
    I would really like to help you out with the domoticz implementation but I still do not have enough time for that… But domoticz is a really interresting project which I think should have a full support for UniPi.
  • PiDome

    3
    0 Votes
    3 Posts
    3k Views
    ?
    Hello, the Pidome looks interresting. I will take a closer look at it. You shall have no problems at all. The UART pins are wired out directly to one the RJ11 connectors of UniPi.