• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • Y

      mycontroller.yaml config

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      9
      0 Votes
      9 Posts
      472 Views
      Y
      I expressed myself badly, I have the secret in my config file. I voluntarily deleted it by copying my file on this forum. Sorry
    • S

      [Solved] Unable to add Nodes

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      8
      0 Votes
      8 Posts
      4k Views
      jkandasaJ
      Myself and @s_vankuik discussed offline about this issue and problem was identified in MySensors sketch. Erase EEPROM configuration resolved this issue.
    • imediaI

      Node Reboot

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      8
      0 Votes
      8 Posts
      3k Views
      jkandasaJ
      @imedia This is commands I used to follow, to write MYSBootloader, avrdude -cusbasp -Pusb -b115200 -pm328p -e -u -Ulock:w:0x3f:m -qq -Uefuse:w:0x06:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xF7:m -Ulock:w:0x0f:m avrdude -cusbasp -Pusb -b115200 -pm328p -V -q -s -Uflash:w:MYSBootloaderV13pre.hex avrdude -cusbasp -Pusb -b115200 -pm328p
    • A

      W5100 Gateway frustration

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      8
      0 Votes
      8 Posts
      4k Views
      A
      No worries... Whenever you get the time. FYI, I tested with a W5100 MQTT sketch last night and that seems to work fine, so I guess you can eliminate the W5100 as a potential source of the problem. Let me know if I can help in any other way. Cheers.
    • MacGyverM

      ZWave support?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      8
      0 Votes
      8 Posts
      3k Views
      Stephan35S
      Coninued on github.
    • E

      How would I connect this, Raspberry Pi, RFM69 and Arduino

      Watching Ignoring Scheduled Pinned Locked Moved MyControllerDevice (ESP8266) gateway serial pro mini
      8
      0 Votes
      8 Posts
      5k Views
      E
      Thank you @jkandasa
    • S

      How to set sensor value with javascript

      Watching Ignoring Scheduled Pinned Locked Moved Developers Zone
      8
      0 Votes
      8 Posts
      3k Views
      D
      Maybe I missed something, but I have fake sensors defined on real nodes, and I update them thru scripts, and I have ack enabled. Everything works fine! The message goes thru the gateway, the node receives it and replies with ack, even if it doesn't anything with it. Is your nose sleeping maybe?
    • jkandasaJ

      Help to send email when node goes down

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion script javascript email
      8
      0 Votes
      8 Posts
      2k Views
      R
      @jkandasa No I hadn't, thanks, of course now its working. Great tool I'm enjoying getting to grips with the scripts and templates.
    • M

      Help logging data?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      8
      0 Votes
      8 Posts
      2k Views
      jkandasaJ
      @wkwj00 MyController does not have any direct support for REST API endpoints. You may use MQTT, or other REST API like Sparkfun, etc.,
    • S

      How to start at all

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      8
      0 Votes
      8 Posts
      2k Views
      jkandasaJ
      @staffan Hi, Did you check the user manual file? available on download section? If your MySensors gateway is USB, select as follows, [image: 1508474314826-0d214ad7-684c-4384-86b0-053807ee98b3-image.png] Tx message processing delay: Transmission delay between on each message from MyController to this gateway to avoid the collision on MySensors network. Driver: Keep it as Auto Port name: default /dev/ttyUSB0 Baud rate: default 115200 Retry frequency: For some reason, if your gateway goes down. MyController attempt to reconnect every X seconds once. Connect your gateway on RPI USB port, run this command to know your USB port name: ls -lh /dev/ttyUSB* Once you setup the gateway on MyController, your gateway should show UP. now click on Action button on gateway and select Discover, [Note: You should have added about your node data on presentation() block of your node code.] [image: 1508475340514-f531a78d-46ca-4c88-8698-38bd375eecd3-image.png]. Now you can see your gateway and nodes on MyController.
    • M

      Converting Distance to Volume with MyController (water tank)

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      8
      0 Votes
      8 Posts
      1k Views
      jkandasaJ
      @mtbhuw https://forum.mycontroller.org/topic/146/how-to-set-sensor-value-with-javascript
    • S

      Gateway Error: Unable to open!

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      8
      0 Votes
      8 Posts
      1k Views
      T
      @samuelmills great work!!
    • bmanosB

      Battery level error on email

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      8
      0 Votes
      8 Posts
      1k Views
      bmanosB
      thanks @jkandasa
    • S

      how do I make the build-in MQTT broker work ?

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      8
      0 Votes
      8 Posts
      1k Views
      jkandasaJ
      @storepeter said in how do I make the build-in MQTT broker work ?: There is one minor difference - when using the serial gateway all my repeaters were interconnected with lines, now they are all islands. Before I believe that only non-repeater showed as unconnected. I kind of liked that distinction - Why is this so ? There is no difference in MyController side for MQTT or Serial. On gateway, page select the gateway and execute Discover. [image: 1525272976811-1a98f50c-8784-4b84-9f4c-5a5e37b3662e-image-resized.png] Discover job will be executed 30 minutes once I guess(default). [image: 1525272844235-ce0d2348-e066-4966-93eb-8a833563164a-image-resized.png] Your MQTT gateway RF may be weaker than serial gateway RF. When enabling ack for your gateway might resolve this issue. If the message failed to send, MyController retries N(in this image 5 times) times in the interval of 1 second(1000 ms). [image: 1525273083297-4ee37fa4-470d-4af9-a8e2-ad2fd4684493-image.png]
    • C

      Unable to change node or sensor names

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      8
      0 Votes
      8 Posts
      951 Views
      jkandasaJ
      @chrismills59 0.0.3.Alpha2 is too old, after this, I can see 3 more releases. can you try with the SNAPSHOT version and check this error? Kindly backup everything before moving into latest version.
    • skywatchS

      Heartbeat and smartSleep questions.

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      8
      0 Votes
      8 Posts
      973 Views
      skywatchS
      Aha! - That was the problem (and now I know who to blame for it) Thanks for the clarification Onwards and upwards !
    • skywatchS

      Getting V_FORECAST on a node from controller?

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      8
      0 Votes
      8 Posts
      918 Views
      skywatchS
      @skywatch Just a quick update - ...... Keep the receive section clean - I took all the 'if' and 'elseif' out of receive and into the main loop - This is good practice. So now it looks like this...... // process incoming message void receive(const MyMessage &message) { if (message.sensor == CHILD_ID_GETFORECAST && message.type == V_FORECAST) { forecast = (message.getString()); NewForecast = 1; } } The NewForecast is there to alert the main loop to a new incomming value to be tested and updated.
    • M

      OTA on DualOptiBoot mysensors nodes?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      8
      0 Votes
      8 Posts
      856 Views
      jkandasaJ
      @manutremo OTA works in the following way, send available firmware details(version, checksum, etc.,) to the node If node thinks, it is a different sketch, it will request block by block. MyController sends firmware block data(requested block)
    • N

      1.3 not working for me...

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      8
      0 Votes
      8 Posts
      959 Views
      N
      Ok, downgraded the java version by using the JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java" line in /etc/environment - AND NOW IT WORKS FINE! Thanks again!
    • D

      notification on node down status

      Watching Ignoring Scheduled Pinned Locked Moved Developers Zone
      8
      0 Votes
      8 Posts
      1k Views
      jkandasaJ
      @Daniele Your code looks super cool and awesome. I just added few HTML template style (you may not like ) and minor tune. Thanks for the awesome code!! var myImports = new JavaImporter(java.io, java.lang, java.util,java.lang.Object, org.mycontroller.standalone.utils.McUtils); with(myImports) { var options = new HashMap(); options.put("orderBy", "Eui"); options.put("order", "asc"); options.put("pageLimit", new Long(-1)); // -1 to list all the nodes var nodes = mcApi.node().getAll(options); var nodesVar = mcApi.variable().get("nodes_state"); // It is good to have key in lowercase and no space var nodesOU = JSON.parse(nodesVar.value); var nodesOD = JSON.parse(nodesVar.value2); var nodesU = []; var nodesD = []; var subject = "[MyController] Nodes status"; var tableBody = ""; for (i = 0; i < nodes.data.length; i++) { var nodeStatus = { }; var _nodeId = nodes.data[i].getId(); // nodeId is unique and internal // but still if you want to refer node EUI and gateway id, use the following line and comment above line. //var _nodeId = nodes.data[i].getGatewayTable().getId() + '-' + nodes.data[i].getEui(); var _nodeState = nodes.data[i].getState(); nodeStatus[_nodeId] = _nodeState; // update in to our common map if (_nodeState == "UP") { nodesU.push(_nodeId); var prevState = ""; for (j = 0; j < nodesOU.length; j++){ if (nodesOU[j] == _nodeId) prevState = "UP"; } if (prevState != "UP") tableBody += "<tr style='color: green;'><td>" + _nodeId + "</td><td>" + nodes.data[i].getName() + "</td><td>" + nodes.data[i].getEui() + "</td><td>" + _nodeState + "</td><td>" + mcApi.utils().friendlyTime(nodes.data[i].getLastSeen()) + "</td></tr>"; } if (_nodeState == "DOWN") { nodesD.push(_nodeId); var prevState = ""; for (j = 0; j < nodesOD.length; j++){ if (nodesOD[j] == nodeId) prevState = "DOWN"; } if (prevState != "DOWN") tableBody += "<tr style='color: red;'><td>" + _nodeId + "</td><td>" + nodes.data[i].getName() + "</td><td>" + nodes.data[i].getEui() + "</td><td>" + _nodeState + "</td><td>" + mcApi.utils().friendlyTime(nodes.data[i].getLastSeen()) + "</td></tr>"; } } if (tableBody.length > 0){ var pageStart = "Hello,<BR><BR>"; var tableStyle = '<table border = "1" cellpadding = "5" style="border-collapse: collapse;border: none;"><tbody><tr><th align="left">Id</th><th align="left">Name</th><th align="left">EUI</th><th align="left">State</th><th align="left">Since</th></tr>'; var tableEnd = '</tbody></table>'; var pageEnd = "<BR><BR>--MyController.org<BR>"; // mcApi.operation().sendPushbulletNote(null, "abc@xyz.com", null, subject, message); mcApi.operation().sendEmail("abc@xyz.com", subject, pageStart + tableStyle + tableBody + tableEnd + pageEnd); } nodesVar.value = JSON.stringify(nodesU); nodesVar.value2 = JSON.stringify(nodesD); nodesVar.save(); } Email will be looking like this, [image: 1548079561113-310032a4-3e1b-4191-9c0e-c42d7a1ff5f0-image.png]