This is program template written in Javascript that can be used to send SIA-events from the SPC panel by Notify My Android. You need to have a NMA account and a API-key from http://www.notifymyandroid.com.
To be able to run the program you need to install NodeJS and some NodeJS addon modules.
cd <INSTALL_DIR>
tar xzvf spc-notify-nma.tar.gz
cd spc-notify-nma
Modify the settings in config.json according your environment and NMA API-key.
In spc-notify-nma.js, function manageSiaEvent() you have to add all SIA-event types you want to be managed by the program. Look in the SPC documentation for definitions of the SIA-event types.
The script (node-spc-notify-nma.js) did not work for me. I had to change the last function nmaMessage(subject, text).
I got an "TypeError: callback is not a function" until I changed the nma command.
It seems like the nma command is expecting an callback at the end which I set to null in the code below. https://github.com/randallagordon/node-nma