DUDE!!! This addon freakin RULES!!! Thank you for all your efforts! I wanna share what I've learned after accidentally stumbling upon this gem. It may help some other people figure out their problem(s)
I got stuck right out of the gate with the image url. Thankfully, my parents gave me the gift of relentlessness. I have an X10 ip camera. (yeah, I know.... X10 is blah compared to zWave & so many other better & newer technologies but eh)
The url I use to get to my cameras webpage is 192.168.1.xxx/IPCameramob.htm and there it asks for username & password, so of course I thought that this is what I needed to enter into the config. WRONG!!! Did not work. Ultimately I had to blank the two fields for username & password and "construct" a url based on what I discovered by right-clicking on the webpage & selecting "view source"
My url ended up being:
http://192.168.1.xxx/snapshot.cgi?user=u...ut.value=4;
Of course, my username & password were used in place of my idiot markers above. Below is a portion of the "source" that led me to this url construct. Note that I can add more parameters after each semicolon if I choose to (or need to)
Good luck to all. I hope this helps out someone. Look for clues in the source of your webpage. Nobody ever uses my doorbell (I dont know why) so I will be setting up an infrared trip line hooked up to an Arduino that sends your json request when it is tripped (and I built an xbmc remote on my iPhone using iRule that will include a new button to initiate the same request, like a panic button on a security dvr) Now that I am thinking about it, two successive trip lines with logic so the request only gets sent when someone is coming & not when they are going. hmmmmmm Again.... MUCH thanks to the author of this addon! It was an exciting day for me
function body_onload()
{
imgDisplay.src="snapshot.cgi?user="+top.user+"&pwd="+top.pwd;
snap_href.href="snapshot.cgi?user="+top.user+"&pwd="+top.pwd;
brightness_input.value=6;
contrast_input.value=4;
resolution_sel.value=resolution;
mode_sel.value=mode;
brightness_input.value=Math.round(brightness / 16);
contrast_input.value=contrast;
image_reversal.checked=(flip&0x01)?true:false;
image_mirror.checked=(flip&0x02)?true:false;
window.status='';
}
function load_video()
{
window.status=" ";
setTimeout("reload_image()",40);
}
function reload_image()
{
var xx = new Image();
xx.src = "snapshot.cgi?user="+top.user+"&pwd="+top.pwd+"&count="+count;
count++;
document.getElementById("imgDisplay").src = xx.src;
window.status=" ";
}
function reset_image()
{
window.status=" ";
setTimeout("reload_image()",40);
}