Hi DirkdeDraak,
I’m not able to get the app working.
I have define the IP and Port number.
The port number is the default 7094, but the textbox Type is empty after saving the configuration.
The security code is the code I use to arm the Alarm.
When I look into your code I think the Type must be 1, I have a Integra 32 central.
2018-10-10 20:27:36 [log] [integraAlarm] undefined
2018-10-10 20:27:36 [log] [integraAlarm] Error: Error: connect ECONNREFUSED 172.16.240.253:7094
2018-10-10 20:27:36 [log] [integraAlarm] Connection to 172.16.240.253 closed.
2018-10-10 20:27:36 [log] [integraAlarm]
Port number
English Menu:
Service mode > Structure > Hardware > LCD Keypads > Settings > ETHM-1 > Port (Integr.): 7094
Dutch Menu:
Service mode > Structuur > Hardware > Bediendelen > Instellingen > ETHM-1 > Poort (Integr.): 7094
Is this the correct port number?
And why is the textbox Type empty after saving the configuration and reloading the page?
EDIT
I apparently got one time a short connection on port 7091
2018-10-10 20:51:04 [log] [integraAlarm] org.myalarm.integra running...
2018-10-10 20:51:04 [log] [integraAlarm] Alarm accessible at: 172.16.240.253 @ 7091
2018-10-10 20:51:06 [log] [integraAlarm] Connected to 172.16.240.253:7091
2018-10-10 20:51:06 [log] [integraAlarm] Received data from alarm...
2018-10-10 20:51:06 [log] [integraAlarm] - incorrect answer
2018-10-10 20:51:06 [log] [integraAlarm] - payload: 69,E1,AB,6B,4C,AA,BD,4A,2D,3F
2018-10-10 20:51:06 [log] [integraAlarm] - command: 69
2018-10-10 20:51:06 [log] [integraAlarm] Connection to 172.16.240.253 closed.
2018-10-10 20:51:06 [log] [integraAlarm]
2018-10-10 20:51:09 [log] [integraAlarm] *** Monitor alarm status: 0
2018-10-10 20:51:09 [log] [integraAlarm] undefined
2018-10-10 20:51:10 [log] [integraAlarm] Connected to 172.16.240.253:7091
2018-10-10 20:51:10 [log] [integraAlarm] Received data from alarm...
2018-10-10 20:51:10 [log] [integraAlarm] - incorrect answer
2018-10-10 20:51:10 [log] [integraAlarm] - payload: 0F,23,44,F6,BF,F8,AE,7E,4B,83
2018-10-10 20:51:10 [log] [integraAlarm] - command: 0F
2018-10-10 20:51:10 [log] [integraAlarm] Connection to 172.16.240.253 closed.
2018-10-10 20:51:10 [log] [integraAlarm]
2018-10-10 20:51:15 [log] [integraAlarm] *** Monitor alarm status: 1
2018-10-10 20:51:15 [log] [integraAlarm] undefined
2018-10-10 20:51:15 [log] [integraAlarm] Connected to 172.16.240.253:7091
2018-10-10 20:51:15 [log] [integraAlarm] Received data from alarm...
2018-10-10 20:51:15 [log] [integraAlarm] - incorrect answer
2018-10-10 20:51:15 [log] [integraAlarm] - payload: A5,77,A6,75,57,7D,CA,D1,B5,5D
2018-10-10 20:51:15 [log] [integraAlarm] - command: A5
2018-10-10 20:51:15 [log] [integraAlarm] Connection to 172.16.240.253 closed.
2018-10-10 20:51:15 [log] [integraAlarm]
2018-10-10 20:51:20 [log] [integraAlarm] *** Monitor alarm status: 2
2018-10-10 20:51:20 [log] [integraAlarm] undefined
2018-10-10 20:51:20 [log] [integraAlarm] Error: Error: connect ECONNREFUSED 172.16240.253:7091
2018-10-10 20:51:20 [log] [integraAlarm] Connection to 172.16.240.253 closed.
2018-10-10 20:51:20 [log] [integraAlarm]
2018-10-10 20:51:25 [log] [integraAlarm] *** Monitor alarm status: 3
2018-10-10 20:51:25 [log] [integraAlarm] undefined
2018-10-10 20:51:25 [log] [integraAlarm] Error: Error: connect ECONNREFUSED 172.16.240.253:7091
2018-10-10 20:51:25 [log] [integraAlarm] Connection to 172.16.240.253 closed.
2018-10-10 20:51:25 [log] [integraAlarm]
2018-10-10 20:51:30 [log] [integraAlarm] *** Monitor alarm status: 4
2018-10-10 20:51:30 [log] [integraAlarm] undefined
2018-10-10 20:51:30 [log] [integraAlarm] Error: Error: connect ECONNREFUSED 172.16.240.253:7091
2018-10-10 20:51:30 [log] [integraAlarm] Connection to 172.16.240.253 closed.
2018-10-10 20:51:30 [log] [integraAlarm]
2018-10-10 20:51:35 [log] [integraAlarm] *** Monitor alarm status: 5
2018-10-10 20:51:35 [log] [integraAlarm] undefined
2018-10-10 20:51:35 [log] [integraAlarm] Error: Error: connect ECONNREFUSED 172.16.240.253:7091
2018-10-10 20:51:35 [log] [integraAlarm] Connection to 172.16.240.253 closed.
2018-10-10 20:51:35 [log] [integraAlarm]
2018-10-10 20:51:37 [log] [integraAlarm] Arm alarm
2018-10-10 20:51:37 [log] [integraAlarm] - Arguments =[object Object]
2018-10-10 20:51:37 [log] [integraAlarm] - State =[object Object]
2018-10-10 20:51:37 [log] [integraAlarm] Execute command Arm2 with delay (0x80)
2018-10-10 20:51:37 [log] [integraAlarm] Error: Error: connect ECONNREFUSED 172.16.240.253:7091
2018-10-10 20:51:37 [log] [integraAlarm] Connection to 172.16.240.253 closed.
2018-10-10 20:51:37 [log] [integraAlarm]
2018-10-10 20:51:40 [log] [integraAlarm] *** Monitor alarm status: 6
2018-10-10 20:51:40 [log] [integraAlarm] undefined
2018-10-10 20:51:40 [log] [integraAlarm] Error: Error: connect ECONNREFUSED 172.16.240.253:7091
2018-10-10 20:51:40 [log] [integraAlarm] Connection to 172.16.240.253 closed.
After this action I got no responses anymore, not even after a restart or a port change from 7091 to 7094 and back to 7091.