Thank you xKing for the myq script.
In order to update the garage door status, I use ISY network resource to initiate an update, instead of polling. Basically, ISY will call a network resource, that will initiate your script, pull the status and update an ISY variable. Can ISY do the same thing with node server, eliminating the need to poll?
here's my script, exposed as a network resource:
#!/bin/bash
echo "Content-Type: text/html"
echo ""
echo "<!DOCTYPE html><html><body>"
ga=$(curl -s "http://rpi/automation/myq.cgi?user=MYQUSER&pass=MYQPASS&cmd=status" | grep Status | awk '{print $3;}')
echo "updating ISY with status $ga<br />"
curl -u ISYUSER:ISYPASS http://isy/rest/vars/set/1/VAR/$ga
echo "</body></html>"