@Velo17
This script is here - http://forum.mycontroller.org/topic/77/battery-level-in-rules-or-chart-script-rule-to-check-battery-level/2
Posts made by DaTTcz
-
Battery level script and next testing
After some time I test again...
-
Battery level script - Your manual works. Using the timer, choose a time when the script started and it works. Can I transfer variables from script to email? Script gives me this result:
{
"myImports": {},
"mcResult": true,
"batteryLevel": "94"
} -
Where is a list of variables that can be used in e-mail? I only know this, from mc-default-rule-email-template. is there more?
${notification.ruleCondition}
${notification.actualValue}
${notification.triggeredAt}
${notification.ruleName}
3.Email does not support coding, for example, instead of Czech characters "ř" I must use the entity "&rcaron" ...etc
-
-
RE: Battery level in rules or chart? [Script Rule to check battery level]
Thank you for your response!
-
Battery level in rules or chart? [Script Rule to check battery level]
Hello, how can I work with an item Battery level? How do I keep track of battery usage nodes? It's going to add to the rules? It could based on the condition of batteries to generate rules for individual nodes? I Can add another item to the sensor, but why send another same item. thank you for the advice
-
MySensors 2.0 Serial Gateway
Do not be afraid to build your own MySensors Serial Gateway with NRF24L01 and use it with MyController server ! Just need to have the original Arduino Nano, or clone with FT232RL USB chip. Do not use the Arduino model with CH340 chip, it's not stable ! In Mycontroller server I used the driver: jSerialComm. And everything works as it should !
-
RE: Sensor is not added
@jkandasa This log is from tab - status/resources logs. I'm sorry, I do not know why I did not look into Mycontroller server log. Here I found ERROR. My serial port (Arduino Nano NRF24L01) had an automatic driver to pi4j. So I changed it to jSerialComm and now everything works as it should.
-
Sensor is not added
Hello, I built a Sensor (mysensors v2.0 with NRF24L01 on arduino). In the log I see that it is communicating with SerialGateway. But nothing is not automatically added... Do I have to add myself sensor? What am I doing wrong ? I see this in the log:
Nov 03, 2016 19:09:30 Notice Node GW01 0:N01 Received Interní[Inclusion mode] 0
Nov 03, 2016 19:09:05 Notice Node GW01 0:N01 Received Interní [Log message] TSP:MSG:READ 10-10-0 s=3,c=1,t=16,pt=2,l=2,sg=0:1
Nov 03, 2016 19:09:04 Notice Node GW01 0:N01 Received Interní [Log message] TSP:MSG:READ 10-10-0 s=3,c=1,t=16,pt=2,l=2,sg=0:0
Nov 03, 2016 19:08:52 Notice Node GW01 0:N01 Received Interní [Log message] TSP:MSG:READ 10-10-0 s=4,c=1,t=16,pt=2,l=2,sg=0:1
Nov 03, 2016 19:08:51 Notice Node GW01 0:N01 Received Interní [Log message] TSP:MSG:READ 10-10-0 s=4,c=1,t=16,pt=2,l=2,sg=0:0
Nov 03, 2016 19:08:49 Notice Node GW01 0:N01 Received Interní [Log message] TSP:SANCHK:OK
Nov 03, 2016 19:08:46 Notice Node GW01 0:N01 Received Interní [Log message] TSP:MSG:READ 10-10-0 s=255,c=3,t=11,pt=0,l=13,sg=0:Binary Sensor
Nov 03, 2016 19:08:44 Notice Node GW01 0:N01 Received Interní [Log message] TSP:MSG:READ 10-10-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1
Nov 03, 2016 19:08:42 Notice Node GW01 0:N01 Received Interní [Log message] TSP:MSG:SEND 0-0-10-10 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
Nov 03, 2016 19:08:42 Notice Node GW01 0:N01 Received Interní [Log message] TSP:MSG:READ 10-10-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
Nov 03, 2016 19:08:30 Notice Node GW01 0:N01 Received Interní [Inclusion mode] 1 -
RE: Timers ERROR
@jkandasa Thank you for the explanation. I tried to create an event when disconnecting Serial GW and it works fine. Email arrive correctly.
In this experiment, I found that if I unplug the USB Serial GW, MYCONTROLLER server shuts down. I do not know if it has something to do with the used hardware. I made a script that checks whether running proses java and if not then starts the server using your start.sh. Running it through CRON every minute. In practice, probably no one would ever use. But it checks whether MYCONTROLLER server runs, which is good for me.
Waiting now on radio modules 24L01, so I test things a little different ...
I like your program more and more. I tried several, but I like yours the most. I hope when I have built some Sensors will work as I need. I'm sorry that you lost your time for me.
Thank you -
RE: Timers ERROR
Hello, we can only send email by Rules? Based on some changes on GW, Nodes, Sensors ... I understand this correctly? Thank you.
-
RE: Timers ERROR
Hello, you're right. Timers not send email. But it starts operations. The operations would could be placed the test button.
I made images settings. Maybe I missed something ...
-
RE: Timers ERROR
Now, I recorded a version 0.0.3.Final-SNAPSHOT on Raspberry Pi 3 - same result ... a test email arrives. But email using Timers not leave. Any idea what is wrong?
-
Timers ERROR
Hello, does not send email using Timers. The log is this: ERROR [Quartz_Scheduler_Worker-8] [org.mycontroller.standalone.operation.model.OperationSendEmail:145] Timer will not support for this operation
Test email in settings was sent okay. Version 0.0.3.Alpha2
What is wrong?
Thank you and sorry for my english.