@jkandasa Actually without going in edit you don't have anything telling you if this GW uses ack. Enabled / disabled would be enough for me.
Best posts made by Daniele
-
RE: MyController 1.2.0-SNAPSHOT version with major provider changes and supports for ack
-
RE: Your suggestions to choose naming for "sensor" and "variable"
@jkandasa Maybe I misunderstood the meaning of this class, but what about "message" instead of "field"?
-
RE: MyController 1.2.0-SNAPSHOT version with major provider changes and supports for ack
You're super-quick!!!
I updated the version, and now the issue is fixed.
For the time being everything is running fine, I'll let it run for a pair of days and let you know if I find any issue.By the way, I suggest adding something in this page to expose the ack flag status:
-
RE: Your suggestions to choose naming for "sensor" and "variable"
@skywatch source and value looks very good to me!
-
RE: automatic backup
I can confirm that with 23 hours the scheduler works perfectly now!
Thanks a lot! -
RE: notification on node down status
@jkandasa I managed to get the result using a slightly different approach. I saved previous node state in a repository variable, then looped over the nodes list and compared actual state with previous one, sending en email only when state changes.
I'm not a java programmer, so any suggestion on the code is more than welcome:
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"); var nodesOU = JSON.parse(nodesVar.value); var nodesOD = JSON.parse(nodesVar.value2); var nodesU = []; var nodesD = []; var subject = "[MyController] Nodes status"; var messageU2D = ""; var messageD2U = ""; var message = ""; for (i = 0; i < nodes.data.length; i++) { var nodeStatus = new Object(); nodeStatus['key'] = nodes.data[i].getGatewayTable().getId() + '-' + nodes.data[i].getEui(); nodeStatus['state'] = nodes.data[i].getState(); if (nodeStatus['state'] == "UP") { nodesU.push(nodeStatus['key']); var prevState = ""; for (j = 0; j < nodesOU.length; j++){ if (nodesOU[j] == nodeStatus['key']) prevState = "UP"; } if (prevState != "UP") messageD2U += nodes.data[i].getEui() + " : " + nodes.data[i].getName() + " : " + mcApi.utils().friendlyTime(nodes.data[i].getLastSeen()) + "<BR>"; } if (nodeStatus['state'] == "DOWN") { nodesD.push(nodeStatus['key']); var prevState = ""; for (j = 0; j < nodesOD.length; j++){ if (nodesOD[j] == nodeStatus['key']) prevState = "DOWN"; } if (prevState != "DOWN") messageU2D += nodes.data[i].getEui() + " : " + nodes.data[i].getName() + " : " + mcApi.utils().friendlyTime(nodes.data[i].getLastSeen()) + "<BR>"; } } if (messageU2D != ""){ message += "Nodes DOWN: <BR>"; message += messageU2D; } if (messageD2U != ""){ message += "Nodes UP: <BR>"; message += messageD2U; } if (message != "") // mcApi.operation().sendPushbulletNote(null, "abc@xyz.com", null, subject, message); mcApi.operation().sendEmail("abc@xyz.com", subject, message); nodesVar.value = JSON.stringify(nodesU); nodesVar.value2 = JSON.stringify(nodesD); nodesVar.save(); }
-
RE: Unique index or primary key violation: "CONSTRAINT_4B_INDEX_4 ON PUBLIC.METRICS_DOUBLE_TYPE_DEVICE
@jkandasa it's probably related to some gateway issue, probably connected to the issue I asked here
I made a hard restart of the gateway and now the error disappeared.
Thank you!
Latest posts made by Daniele
-
RE: Your suggestions to choose naming for "sensor" and "variable"
@jkandasa Maybe I misunderstood the meaning of this class, but what about "message" instead of "field"?
-
RE: Your suggestions to choose naming for "sensor" and "variable"
@skywatch source and value looks very good to me!
-
RE: Communication between 2 pi each running mycontroller
@skywatch you could probably exchange messages thru MQTT queues, but being you I'd really invest my energies understanding how to use 2 gateways, since this is the standard way and you'll probably get more support for the community.
By the way, I have 4 gateways in my home (due to connectivity issue caused by concrete walls) and I never had issues with that in MyController. -
RE: Communication between 2 pi each running mycontroller
@skywatch why do you need 2 instances?
If they are on the same ethernet netword, can't you configure one of them to use 2 gateways? -
Log full of javax.net.ssl.SSLException errors
Hi,
could someone help me understanding what this error means and how to get rid of it?
Every day my log is full of messages like this:IO error: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown in processing a request from /192.168.1.12:8443 / sun.security.ssl.SSLSocketImpl
I read other posts telling is was related to some script under "HTML additional headers", but that section is completely empty in my case.
It's probably something simple about https certificates, but I don't have any experience on this kind of things...Thanks
Daniele -
RE: Unique index or primary key violation: "CONSTRAINT_4B_INDEX_4 ON PUBLIC.METRICS_DOUBLE_TYPE_DEVICE
If others will arrive here searching for a similar issue: in my case the final solution has been changing the Arduino Uno I was using as ethernet gateway.
-
Rule status in dashboard
I'd like to be able to enable / disable a rule from my dashboard.
I could probably create a mock variable and then with a script change the status of the rule based on the variable value.
I was just wondering if there's a more elegant way to achieve the same result.
Thanks
Daniele -
RE: Unique index or primary key violation: "CONSTRAINT_4B_INDEX_4 ON PUBLIC.METRICS_DOUBLE_TYPE_DEVICE
@jkandasa sorry to re-open an hold discussion.
the same error appeared again, and this time the gateway hard reset did not solve it.
do you have any idea on how to better isolate the issue?
thanks
Daniele -
RE: Frequent errors related to Ethernet Gateways
@Avamander could you please post me an example of DHCP renewal?
I investigated the ICMP ping idea but I've not been able to get something working, since the ping seems to interfere with GW code. Did you manage to use it in a mysensors GW? -
RE: Frequent errors related to Ethernet Gateways
I can confirm, chinese nano bootloader does not support watchdog.
All my nanos have MySBootloader (for this reason and to be able to use OTA update), but I don't want to use it on GWs since it takes 10-15 seconds to start because it searches for a GW in order to chech new OTA updates.
What I tried is to enable watchdog on a Uno (which in my experiments seems to support watchdog), but till now I haven't found a good way to check ethernet connectivity without interfering with GW functioning.
Do you have any idea on that?
Thanks
Daniele