All AbelCam functionality has been terminated October 8th 2019
 
 
 
Navigation

Edit detail for Script: is AbelCam Online? revision 1 of 1

1
Editor: sse
Time: 2009/02/16 12:42:57 GMT+1
Note:

changed:
-
<h1>Is your installation of AbelCam Online?</h1><br>To determine if your AbelCam installation is online, you may use the following Java Script code:<p>&lt;script src="http://www.abelcam.com/en/uidlid/online.js?uid=UID&amp;lid=LID&amp;cam=CAMNR&amp;offline=OFFLINEIMGURL" type="text/javascript" &gt;&lt;/script&gt;</p><h2>Variables</h2>
<ul>
<li>UID<br>User ID, this number is listed in the About Form once you have a AbelCam License<br></li><li>LID<br>License ID, this number is listed in the About Form once you have a AbelCam License</li><li>CAMNR<br>Camera Number, first camera is number 0</li>
<li>OFFLINEIMGURL<br><i>optional</i> Image URL to use when the camera is offline</li></ul><p>The script sets two variables:<br>
</p><ul>
<li>online<br>when the camera is online, this variable is set to 'y', otherwise to 'n'
</li><li>imgurl<br>URL for the image if the camera is online, to the offline image URL if the camera is offline</li></ul>Sample Usage:<br><br>&lt;script src="http://www.abelcam.com/en/uidlid/online.js?uid=99999&amp;lid=999&amp;cam=0&amp;offline=http://www.abelcam.com/img/offline.jpg" type="text/javascript"&gt;&lt;/script&gt;<br><br>&lt;script&gt; <br>if (online == 'n') {<br>&nbsp; document.write("The Camera is offline")<br>} else {<br>&nbsp; document.write('&lt;img src="' + imgurl + '"&gt;');<br>}<br>&lt;/script&gt;<br><br>

Is your installation of AbelCam Online?


To determine if your AbelCam installation is online, you may use the following Java Script code:

<script src="http://www.abelcam.com/en/uidlid/online.js?uid=UID&lid=LID&cam=CAMNR&offline=OFFLINEIMGURL" type="text/javascript" ></script>

Variables

  • UID
    User ID, this number is listed in the About Form once you have a AbelCam License
  • LID
    License ID, this number is listed in the About Form once you have a AbelCam License
  • CAMNR
    Camera Number, first camera is number 0
  • OFFLINEIMGURL
    optional Image URL to use when the camera is offline

The script sets two variables:

  • online
    when the camera is online, this variable is set to 'y', otherwise to 'n'
  • imgurl
    URL for the image if the camera is online, to the offline image URL if the camera is offline
Sample Usage:

<script src="http://www.abelcam.com/en/uidlid/online.js?uid=99999&lid=999&cam=0&offline=http://www.abelcam.com/img/offline.jpg" type="text/javascript"></script>

<script>
if (online == 'n') {
  document.write("The Camera is offline")
} else {
  document.write('<img src="' + imgurl + '">');
}
</script>