• How to add xS40 to Neuron L203 using custom software

    Moved
    46
    0 Votes
    46 Posts
    32k Views
    B
    Hi @martin-kudláček , sorry for the superlate response! I went on holiday the day after my last post. I will try to do the upgrade myself and otherwise we can still do a Teamviewer session. will let you know!
  • Manage Digital Input/Output of unipi neuron m103

    2
    0 Votes
    2 Posts
    2k Views
    Martin KudláčekM
    Hi @DSurname , if I understand it correctly, you are running your application on the M103 and you want to control the inputs/outputs on the M103? In that case, you cannot (or shouldn't) use ModbusRTU, because there is no Modbus Slave (Server) running on the M103 by default. To access those inputs/outputs, you can use many of the supported interfaces described in the official documentation: https://evok.api-docs.io/1.0/jKcTKe5aRBCNjt8Az/introduction Martin
  • Webhook

    3
    0 Votes
    3 Posts
    2k Views
    B
    @tomasknot Thanks. I had Unipian image with old version of EVOK. After flashing new image, everything works.
  • Alias on 1-wire fails

    5
    0 Votes
    5 Posts
    3k Views
    A
    For anybody else looking for the evok-alias.yaml file, I found it under /var/evok/evok-alias.yaml Andreas
  • 0 Votes
    10 Posts
    4k Views
    T
    It is possible, but it requires using our image instead of Raspbian. You should be able to use /sys/devices/platform/unipi_plc to find out more information about the system, or simply run "sudo dmesg" after boot, as the image driver performs automatic diagnostics.
  • How to update the EVOK API?

    2
    0 Votes
    2 Posts
    1k Views
    T
    Hi @d00773! Unfortunately there is no simple way of updating EVOK, as changes in the installation script cannot be easily applied retroactively to old installations. However for smaller updates you can replace the files in /opt/evok with the files in the evok directory of the latest release. Otherwise you will have to use a clean new image. We are working on a more modular installation procedure, but it most likely will not be backwards compatible.
  • evok start error

    6
    0 Votes
    6 Posts
    4k Views
    T
    @unix The issue should now be fixed both in Master and in the latest release. v.2.0.5f As a side note you can now query the version of your EVOK via /version/, though unfortunately it only applies from v.2.0.5f onwards.
  • Same evok start error

    4
    0 Votes
    4 Posts
    2k Views
    T
    @Bart-Delaere The issue should now be fixed both in Master and in the latest release. v.2.0.5f As a side note you can now query the version of your EVOK via /version/, though unfortunately it only applies from v.2.0.5f onwards.
  • Evok does not find all devices/ports after UniPian update

    2
    0 Votes
    2 Posts
    1k Views
    T
    Hello @Klaus-Wittstock, as stated in the readme file in the Firmware which is distributed in the image gets automatically updated at first boot? Did you wait a few minutes to let it flash correctly? If yes, there was some issue with FW for the analog boards, that caused such issue,s, but that should have been taken down. Anyway from what it seems, the FW on the group2 is damaged and currently the only way to fix it is to send it back to us... Please send me an email so we can discuss it in private.
  • Evok Does Not Recon Any Devices

    24
    0 Votes
    24 Posts
    15k Views
    T
    Hi @knebb. We use a modified kernel. You can use the commands apt-mark hold raspberrypi-bootloader apt-mark hold python-tornado apt-mark hold raspberrypi-kernel to prevent it being broken (also true for the Tornado webserver). As a side note you should generally not do apt-get upgrade regularly on a non-desktop Linux system. 90%+ servers in the world do not do so to avoid precisely such issues. The same goes with any custom software. It's really only "safe" to do on a desktop with only standard packages, and even then it can sometimes break things. This is in fact the reason why Linux keeps older versions of packages in the repositories in the first place. We plan to release packages, but all the above will still apply, functionally the differences will be a) possibility to update UniPi software via apt b) not needing to use the above commands manually (they will be instead done by the packages during installation) You are of course welcome to compile the kernel yourself against any version which you wish, it's openly available in our repository.
  • Wrong calculation of humidity

    6
    0 Votes
    6 Posts
    3k Views
    B
    Thank you!
  • API Listen PORT EVOK

    8
    0 Votes
    8 Posts
    4k Views
    T
    The configuration looks correct - are you sure that the address jumpers are set correctly? As per: https://forum.unipi.technology/topic/75/trying-to-connect-8-relay-addon-emo-r8/11
  • Input change not working

    7
    0 Votes
    7 Posts
    3k Views
    T
    @Eanna You can use the relays to send a pulse out, or the analog output
  • Can't change digital input state

    6
    0 Votes
    6 Posts
    3k Views
    T
    It might be best to try again with the latest version. The EVOK version cannot be easily found since it's done via GitHub versioning, the easiest via is by checking which installation file/image has been used. Apologies I did not get back to you earlier, but do try it with the latest version.
  • Reading input state

    3
    0 Votes
    3 Posts
    2k Views
    E
    Hi Im looking for a working example preferably. Not sure what goes into the gaps on the examples
  • DI Counter on Web, but not in /sys

    7
    0 Votes
    7 Posts
    3k Views
    T
    I'd rather send it directly, it's only in source code on git and compiling it is not trivial. You should have the link in your messages now.
  • get all doesnt get all ?!?

    5
    1 Votes
    5 Posts
    3k Views
    T
    We don't have an upgrade procedure yet. We plan to move to using debian packages, which will make the problem a lot easier, but for now you should just use a clean system. Installing EVOK twice on the same SD Card installation/image might break something, depending on various factors.
  • 1-Wire rpc Problem

    4
    0 Votes
    4 Posts
    2k Views
    T
    Hi @Raph7454, Yes you will need to reinstall EVOK. Please use a clean Raspbian installation if possible, which is to say reinstall both EVOK and Raspbian. EVOK makes a number of changes to Raspbian, and installing it twice on the same installation can potentially cause issues. Kind Regards, Tomas
  • SOAP request

    2
    0 Votes
    2 Posts
    2k Views
    T
    Device types come from the following list (and otherwise correspond to the device path in the Rest API): 'relay', 'input', 'ai', 'ao', 'ee', 'sensor', 'i2cbus', 'adchip', 'owbus', 'mcp', 'gpiobus', 'pca9685', 'ds2408', 'unipi2', 'uart', 'neuron', 'board', 'misc_output', 'led', 'watchdog', 'register', 'wifi', 'light_channel', 'light_device' and the "circuit" is the device name as specified in the configuration file. As an example for UniPi 1.1: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:unip="http://192.168.1.146:8081/UniPiQueryService"> <soapenv:Header/> <soapenv:Body> <unip1:SoapQueryInputList xmlns:unip1="http://127.0.1.1:8081/UniPiQueryService"> <!--1 or more repetitions:--> <single_query> <device_circuit>1</device_circuit> <device_type>relay</device_type> </single_query> </unip1:SoapQueryInputList> </soapenv:Body> </soapenv:Envelope> An example for setting relays: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:unip="http://127.0.1.1:8081/UniPiCommandService"> <soapenv:Header/> <soapenv:Body> <unip:SoapCommandInputList> <!--1 or more repetitions:--> <single_command> <device_circuit>1</device_circuit> <device_type>relay</device_type> <!--1 or more repetitions:--> <property_item> <property_name>value</property_name> <property_value>"0"</property_value> </property_item> </single_command> <single_command> <device_circuit>2</device_circuit> <device_type>relay</device_type> <!--1 or more repetitions:--> <property_item> <property_name>value</property_name> <property_value>"1"</property_value> </property_item> </single_command> <single_command> <device_circuit>3</device_circuit> <device_type>relay</device_type> <!--1 or more repetitions:--> <property_item> <property_name>value</property_name> <property_value>"1"</property_value> </property_item> </single_command> </unip:SoapCommandInputList> </soapenv:Body> </soapenv:Envelope> We'll try to provide the examples in the documentation in the next EVOK release.
  • Node Red / EVOK / Relay

    4
    0 Votes
    4 Posts
    3k Views
    M
    Example of Neuron M103 [{"id":"d00cb237.aa8ef","type":"websocket out","z":"d8745248.e4dc8","name":"UniPi","server":"","client":"42c23429.f210ec","x":410,"y":340,"wires":[]},{"id":"d6135772.91f508","type":"http request","z":"d8745248.e4dc8","name":"RO2.1","method":"POST","ret":"obj","url":"http://127.0.0.1/rest/relay/2_01","tls":"","x":990,"y":60,"wires":[[]]},{"id":"2a08d04b.e634e","type":"http request","z":"d8745248.e4dc8","name":"AO","method":"POST","ret":"obj","url":"http://127.0.0.1/rest/ao/1_01","tls":"","x":990,"y":240,"wires":[[]]},{"id":"9b46771e.365fe8","type":"inject","z":"d8745248.e4dc8","name":"","topic":"","payload":"value=1","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":690,"y":40,"wires":[["663acae1.ce50d4"]]},{"id":"663acae1.ce50d4","type":"function","z":"d8745248.e4dc8","name":"headers","func":"msg.headers = { \"Content-type\" : \"application/x-www-form-urlencoded\" };\n\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":60,"wires":[["d6135772.91f508"]]},{"id":"f7bd82a5.085bb","type":"inject","z":"d8745248.e4dc8","name":"","topic":"","payload":"value=0","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":690,"y":80,"wires":[["663acae1.ce50d4"]]},{"id":"f784d35.3de713","type":"http request","z":"d8745248.e4dc8","name":"DO1.1","method":"POST","ret":"obj","url":"http://127.0.0.1/rest/relay/1_01","tls":"","x":990,"y":160,"wires":[[]]},{"id":"b9c0113e.30434","type":"inject","z":"d8745248.e4dc8","name":"","topic":"","payload":"value=1","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":690,"y":140,"wires":[["594ef514.f3669c"]]},{"id":"898319f.8480ae8","type":"inject","z":"d8745248.e4dc8","name":"","topic":"","payload":"value=0","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":690,"y":180,"wires":[["594ef514.f3669c"]]},{"id":"11fff4b5.e8c97b","type":"inject","z":"d8745248.e4dc8","name":"","topic":"","payload":"value=10","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":700,"y":220,"wires":[["a2ed1886.9d2fc8"]]},{"id":"42d8069b.2ebfb8","type":"inject","z":"d8745248.e4dc8","name":"","topic":"","payload":"value=0","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":690,"y":260,"wires":[["a2ed1886.9d2fc8"]]},{"id":"4c35435.95a19bc","type":"http request","z":"d8745248.e4dc8","name":"LED X1","method":"POST","ret":"obj","url":"http://127.0.0.1/rest/led/1_01","tls":"","x":1000,"y":320,"wires":[[]]},{"id":"6d1f21f1.971e2","type":"inject","z":"d8745248.e4dc8","name":"","topic":"","payload":"value=1","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":690,"y":300,"wires":[["865b2970.05ec38"]]},{"id":"62763880.590d38","type":"inject","z":"d8745248.e4dc8","name":"","topic":"","payload":"value=0","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":690,"y":340,"wires":[["865b2970.05ec38"]]},{"id":"42a679dc.8230c8","type":"function","z":"d8745248.e4dc8","name":"DO1.1","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"relay\",\n \"circuit\": \"1_01\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":210,"y":40,"wires":[["d00cb237.aa8ef"]]},{"id":"2676b8df.4d9248","type":"function","z":"d8745248.e4dc8","name":"AO","func":"var msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"ao\",\n \"circuit\": \"1_01\",\n \"value\": msg.payload\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":210,"y":720,"wires":[["d00cb237.aa8ef"]]},{"id":"a4975ce0.83db","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"DO1.1","group":"ecb993e7.34161","order":1,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":70,"y":40,"wires":[["42a679dc.8230c8"]]},{"id":"a172aea9.84a5","type":"function","z":"d8745248.e4dc8","name":"DO1.2","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"relay\",\n \"circuit\": \"1_02\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":210,"y":80,"wires":[["d00cb237.aa8ef"]]},{"id":"24096848.61c818","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"DO1.2","group":"ecb993e7.34161","order":2,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":70,"y":80,"wires":[["a172aea9.84a5"]]},{"id":"82710bfc.c7e5f8","type":"function","z":"d8745248.e4dc8","name":"DO1.3","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"relay\",\n \"circuit\": \"1_03\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":210,"y":120,"wires":[["d00cb237.aa8ef"]]},{"id":"d8a75707.ef6b28","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"DO1.3","group":"ecb993e7.34161","order":3,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":70,"y":120,"wires":[["82710bfc.c7e5f8"]]},{"id":"a3ec5421.d070c8","type":"function","z":"d8745248.e4dc8","name":"DO1.4","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"relay\",\n \"circuit\": \"1_04\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":210,"y":160,"wires":[["d00cb237.aa8ef"]]},{"id":"a202fa74.e69f98","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"DO1.4","group":"ecb993e7.34161","order":4,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":70,"y":160,"wires":[["a3ec5421.d070c8"]]},{"id":"f823d331.ad471","type":"ui_slider","z":"d8745248.e4dc8","name":"","label":"Set","group":"85a021f3.1ea1c","order":3,"width":0,"height":0,"passthru":true,"topic":"","min":0,"max":"10","step":"0.1","x":70,"y":720,"wires":[["2676b8df.4d9248","7aec9c42.c7aa34"]]},{"id":"7aec9c42.c7aa34","type":"ui_text","z":"d8745248.e4dc8","group":"85a021f3.1ea1c","order":2,"width":0,"height":0,"name":"","label":"Analog out","format":"{{msg.payload}} V","layout":"row-spread","x":230,"y":760,"wires":[]},{"id":"2e46cc49.facfb4","type":"function","z":"d8745248.e4dc8","name":"RO2.1","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"relay\",\n \"circuit\": \"2_01\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":210,"y":200,"wires":[["d00cb237.aa8ef"]]},{"id":"6f80a924.70eff8","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"RO1.1","group":"ecb993e7.34161","order":5,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":70,"y":200,"wires":[["2e46cc49.facfb4"]]},{"id":"74131b5f.2740c4","type":"function","z":"d8745248.e4dc8","name":"RO2.2","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"relay\",\n \"circuit\": \"2_02\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":210,"y":240,"wires":[["d00cb237.aa8ef"]]},{"id":"cac53069.ca3e5","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"RO1.2","group":"ecb993e7.34161","order":6,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":70,"y":240,"wires":[["74131b5f.2740c4"]]},{"id":"9e27884a.5b1fc8","type":"function","z":"d8745248.e4dc8","name":"RO2.3","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"relay\",\n \"circuit\": \"2_03\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":210,"y":280,"wires":[["d00cb237.aa8ef"]]},{"id":"da635633.9d2878","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"RO1.3","group":"ecb993e7.34161","order":7,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":70,"y":280,"wires":[["9e27884a.5b1fc8"]]},{"id":"374d72a6.c86cde","type":"function","z":"d8745248.e4dc8","name":"RO2.4","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"relay\",\n \"circuit\": \"2_04\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":210,"y":320,"wires":[["d00cb237.aa8ef"]]},{"id":"a88fd625.e336a8","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"RO1.4","group":"ecb993e7.34161","order":8,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":70,"y":320,"wires":[["374d72a6.c86cde"]]},{"id":"90a40b67.b41e08","type":"function","z":"d8745248.e4dc8","name":"RO2.5","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"relay\",\n \"circuit\": \"2_05\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":210,"y":360,"wires":[["d00cb237.aa8ef"]]},{"id":"61931765.894488","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"RO1.5","group":"ecb993e7.34161","order":9,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":70,"y":360,"wires":[["90a40b67.b41e08"]]},{"id":"14048c85.f6bb93","type":"function","z":"d8745248.e4dc8","name":"RO2.6","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"relay\",\n \"circuit\": \"2_06\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":210,"y":400,"wires":[["d00cb237.aa8ef"]]},{"id":"c8c6378f.6f0108","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"RO1.6","group":"ecb993e7.34161","order":10,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":70,"y":400,"wires":[["14048c85.f6bb93"]]},{"id":"742f1f7b.45f5b","type":"function","z":"d8745248.e4dc8","name":"RO2.7","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"relay\",\n \"circuit\": \"2_07\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":210,"y":440,"wires":[["d00cb237.aa8ef"]]},{"id":"1cf66b67.960cd5","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"RO1.7","group":"ecb993e7.34161","order":11,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":70,"y":440,"wires":[["742f1f7b.45f5b"]]},{"id":"7838e9e0.a67008","type":"function","z":"d8745248.e4dc8","name":"RO2.8","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"relay\",\n \"circuit\": \"2_08\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":210,"y":480,"wires":[["d00cb237.aa8ef"]]},{"id":"de8fd511.180108","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"RO1.8","group":"ecb993e7.34161","order":12,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":70,"y":480,"wires":[["7838e9e0.a67008"]]},{"id":"d5561cde.35134","type":"function","z":"d8745248.e4dc8","name":"LED X1","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"led\",\n \"circuit\": \"1_01\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":220,"y":520,"wires":[["d00cb237.aa8ef"]]},{"id":"7bfe36aa.0d1fc8","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"LED X1","group":"2f32ad67.0b3f92","order":1,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":80,"y":520,"wires":[["d5561cde.35134"]]},{"id":"72c5978c.7468c8","type":"function","z":"d8745248.e4dc8","name":"LED X2","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"led\",\n \"circuit\": \"1_02\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":220,"y":560,"wires":[["d00cb237.aa8ef"]]},{"id":"e8ef39e0.b4a028","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"LED X2","group":"2f32ad67.0b3f92","order":2,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":80,"y":560,"wires":[["72c5978c.7468c8"]]},{"id":"41850f8c.22a1f","type":"function","z":"d8745248.e4dc8","name":"LED X3","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"led\",\n \"circuit\": \"1_03\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":220,"y":600,"wires":[["d00cb237.aa8ef"]]},{"id":"3885bb35.3c0de4","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"LED X3","group":"2f32ad67.0b3f92","order":3,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":80,"y":600,"wires":[["41850f8c.22a1f"]]},{"id":"6d673ee4.0919d","type":"function","z":"d8745248.e4dc8","name":"LED X4","func":"var data;\nif(msg.payload == 1){\n data = true;\n}\nelse{\n data = false; \n}\n\nvar msg = {\n payload:{\n \"cmd\": \"set\",\n \"dev\": \"led\",\n \"circuit\": \"1_04\",\n \"value\": data\n }\n};\n\nreturn msg;","outputs":1,"noerr":0,"x":220,"y":640,"wires":[["d00cb237.aa8ef"]]},{"id":"c18800f0.18ae8","type":"ui_switch","z":"d8745248.e4dc8","name":"","label":"LED X4","group":"2f32ad67.0b3f92","order":4,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":80,"y":640,"wires":[["6d673ee4.0919d"]]},{"id":"594ef514.f3669c","type":"function","z":"d8745248.e4dc8","name":"headers","func":"msg.headers = { \"Content-type\" : \"application/x-www-form-urlencoded\" };\n\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":160,"wires":[["f784d35.3de713"]]},{"id":"a2ed1886.9d2fc8","type":"function","z":"d8745248.e4dc8","name":"headers","func":"msg.headers = { \"Content-type\" : \"application/x-www-form-urlencoded\" };\n\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":240,"wires":[["2a08d04b.e634e"]]},{"id":"865b2970.05ec38","type":"function","z":"d8745248.e4dc8","name":"headers","func":"msg.headers = { \"Content-type\" : \"application/x-www-form-urlencoded\" };\n\nreturn msg;","outputs":1,"noerr":0,"x":840,"y":320,"wires":[["4c35435.95a19bc"]]},{"id":"42c23429.f210ec","type":"websocket-client","path":"ws://127.0.0.1/ws","wholemsg":"false"},{"id":"ecb993e7.34161","type":"ui_group","z":"","name":"出力","tab":"40d925f6.7f4edc","order":2,"disp":true,"width":"6","collapse":false},{"id":"85a021f3.1ea1c","type":"ui_group","z":"","name":"アナログ入出力","tab":"40d925f6.7f4edc","order":3,"disp":true,"width":"6","collapse":false},{"id":"2f32ad67.0b3f92","type":"ui_group","z":"","name":"LED","tab":"40d925f6.7f4edc","order":4,"disp":true,"width":"6","collapse":false},{"id":"40d925f6.7f4edc","type":"ui_tab","z":"","name":"UniPi Neuron M103","icon":"dashboard","order":1}]```