07.05.2023, 19:44
Hi, I'm very new to the world of LM and scripting.
Im trying to use the LM in a building were we're running KNX and Modbus. I was hoping to get the LM to send a email when i get a error/alarm in any part of the building.
I've set up using the example script (https://openrb.com/example-sending-email-from-lm2/) and i get it so send an email but the value i get is 'nil'
"KNX object 1/2/2 value is: nil"
Tested adding 'res, err'
And got this result, telling me nothing
Im trying to use the LM in a building were we're running KNX and Modbus. I was hoping to get the LM to send a email when i get a error/alarm in any part of the building.
I've set up using the example script (https://openrb.com/example-sending-email-from-lm2/) and i get it so send an email but the value i get is 'nil'
"KNX object 1/2/2 value is: nil"
Tested adding 'res, err'
Code:
res, err = mail('mail@mail.nu', 'Alert', 'KNX object 1/2/2 value is: ' .. tostring(value))
log(res, err)
And got this result, telling me nothing
Code:
email_alarm 07.05.2023 21:41:14
* arg: 1
* number: 1
* arg: 2
* nil