Important Message from Foscam Digital Technologies Regarding US Sales & Service

Foscam.US (aka Foscam Digital Technologies and now Amcrest Technologies) is an independent United States based distributor of "Foscam" branded products. We have been offering telephone support, US local warranty and building the Foscam brand in the US for the past 7 years. Based on our experiences with Foscam and feedback from end users we have launched our own new and improved line of wireless IP cameras and security systems under the Amcrest brand. Working in partnership with the second largest security camera manufacturer in the world, Amcrest was founded with a deep commitment to end-user privacy and security, highly reliable software and hardware as well a seamless and intuitive user experience. For more information, please visit www.Amcrest.com

If you are having trouble with your Foscam cameras, we sincerely apologize for this inconvenience and would love to help. For technical support, response to inquiries and for obtaining replacements for any Foscam IP Cameras or NVR products, please reach out to tech@foscam.com or call 1-844-344-1113.

If you are interested in exchanging your Foscam camera for an Amcrest camera, we can offer you a massive loyalty discount, even if you are out of warranty. Please send an email to support@amcrest.com, sales@amcrest.com or call 1-888-212-7538

If you are subscribed to Foscam Cloud (www.foscamcloud.com), please contact cloud@foscam.us for support.

If you currently use the manufacturer's cloud service (www.myfoscam.com or linked in any way to www.foscam.com), you will need to contact them directly for support, at www.myfoscam.com.


FI8918W HTML control/view - any browser (phones too) - FREE!

General discussion regarding Foscam IP Cameras

Re: FI8918W HTML control/view - any browser (phones too) - F

Postby zougas » Wed Sep 21, 2011 4:45 pm

:)
On snow leopard i wrote a applescript i tried and its work!!!! this :
Code: Select all
repeat
   tell application "Safari"
      activate
      -- open the locations in separate tabs
      tell window 1
         open location "http://xx.xxx.x.xx:xxxx/decoder_control.cgi?command=31/user=admin/pwd=xxxx"
         delay 20
         open location "http://xx.xxx.x.xx:xxxx/decoder_control.cgi?command=33/user=admin/pwd=xxxx"
         delay 20
         make new tab
         close tab 1
         open location "http://xx.xxx.x.xx:xxxx/decoder_control.cgi?command=35/user=admin/pwd=xxxx"
         delay 20
         make new tab
         close tab 1
         open location "http://xx.xxx.x.xx:xxxx/decoder_control.cgi?command=37/user=admin/pwd=xxxx"
         delay 20
         make new tab
         close tab 1
         open location "http://xx.xxx.x.xx:xxxx/decoder_control.cgi?command=39/user=admin/pwd=xxxx"
         delay 10
         make new tab
         close tab 1
         open location "http://xx.xxx.x.xx:xxxx/decoder_control.cgi?command=41/user=admin/pwd=xxxx"
         delay 10
         make new tab
         close tab 1
         open location "http://xx.xxx.x.xx:xxxx/decoder_control.cgi?command=43/user=admin/pwd=xxxx"
         delay 10
         make new tab
         close tab 1
         open location "http://xx.xxx.x.xx:xxxx/decoder_control.cgi?command=45/user=admin/pwd=xxxx"
         delay 20
         make new tab
         close tab 1
         open location "http://xx.xxx.x.xx:xxxx/decoder_control.cgi?command=47/user=admin/pwd=xxxx"
         delay 20
         close tab 1
      end tell
   end tell
end repeat

:D
zougas
 
Posts: 3
Joined: Wed Sep 14, 2011 10:57 am

Re: FI8918W HTML control/view - any browser (phones too) - F

Postby edelske » Thu Sep 22, 2011 6:32 pm

This is an "entry level" camera at a low price point. It has some great connectivity features. However, I'm not so sure that it would last as long as most users desire in 24x7 programmed constant (meaning every few minutes, or so) duty movement mode. I wrote my original script for use by a human, and my thought was "infrequent motion". Lately, I have noticed great interest in movement at regular intervals. As these cameras are quite cheap, and the supplied software is able to display multiple concurrent images, consider using a few stationary cameras. A full time display would not risk missing something that occurred "where the camera (at the moment) was not looking". Plus you get to "see all" at a glance. My real concern is my lack of confidence in the tilt/pan hardware with constant use. If Foscam thought they could handle such use, they "might" have supplied a robotic script. I understand that the "multiple view" sells more cameras; but at the low price point - consider that solution. If one of them "dies" you don't lose the entire surveillance. Individual cameras can be set to store in different places, notify in different ways, etc. I just don't think they can "keep moving" and last.
ken
edelske
 
Posts: 56
Joined: Wed Mar 02, 2011 3:57 pm

Re: FI8918W HTML control/view - any browser (phones too) - F

Postby Victor » Thu Sep 22, 2011 7:56 pm

I also believe Foscam FI8908W or FI8918W will not last too much if a software send them commands each minute or so to move their head from one preset location to a different position.

However, they are pan/tilt camera so they should be able to switch from one orientation to another a few times a day or take a series of pictures in 4 - 10 preset positions, occasionally, when they are told to do so.

Normally Foscam pan/tilt camera should be able to switch between at least 50 preset positions a day without getting out of order in one year.
Victor
 
Posts: 46
Joined: Sat Aug 13, 2011 7:04 pm

Re: FI8918W HTML control/view - any browser (phones too) - F

Postby edelske » Wed Oct 12, 2011 6:09 pm

Victor,
That was come classy work on the script you submitted - wish I had your skills in that area - my script is simplistic - but designed to work with any and all browsers.

50 moves a day is 18,000+ moves a year. In three years (the minimum life I would want from such a device - there are 60,000+ moves to the hardware. I have real doubts that it would survive. You mention one year - not long enough for me - I hope for 3-5 years of service. But, I only move the camera about 3-5 times a week. My real use is to "take a look around" when I am out of town to see all is well, and have the motion detect alert me when there is a break-in. However, you might be more correct than me as I have not noticed any complaints about the movement aspect of the camera failing.

Has anyone out there had a problem with the mechanicals?
ken

edelske

Posts: 38
Joined: Wed Mar 02, 2011 3:57 pm
edelske
 
Posts: 56
Joined: Wed Mar 02, 2011 3:57 pm

Re: FI8918W HTML control/view - any browser (phones too) - F

Postby edelske » Sat Oct 29, 2011 10:57 pm

Cutoff for new feature requests will be Dec 31, 2011. I will try to include in the next release your requests. Not all are realistic. Sometimes it is better to use the supplied interface; especially for making configuration changes. I will do my best.
edelske
 
Posts: 56
Joined: Wed Mar 02, 2011 3:57 pm

Re: Little help for ben.8's control-javascript needed...

Postby tomde » Fri Nov 04, 2011 9:09 am

Very good idea and very useful!!! Many thanks to edelske for idea and to ben.8 for the javascript.

I tried to implement "get_log.cgi" into the javascript to see the log of the cam. But it returns the access table in one line like this:
Code: Select all
var log_text='Thu, 2011-11-03 15:29:58   user1        10.10.10.10   access\nFri, 2011-11-04 15:31:38   motion detect\n...';


How can I print this variable "log_text" with javascript into the iframe id="ifrResult" name="ifrResult" ...?

I tried with "document.write" and onLoad="log.value=log_text" but no good results.

Thanks Tom
tomde
 
Posts: 19
Joined: Sat Oct 22, 2011 3:25 am

Re: FI8918W HTML control/view - any browser (phones too) - F

Postby edelske » Sat Nov 19, 2011 7:43 am

Tom,
Sorry, your question is way above my javascript skills. However, if you do find a solution please share it here.
edelske
edelske
 
Posts: 56
Joined: Wed Mar 02, 2011 3:57 pm

Re: FI8918W HTML control/view - any browser (phones too) - F

Postby marlbrook » Wed Dec 14, 2011 11:20 am

Here is my amended htm script, with suitable acknowledgment to the original authors.
THIS WORKS WITH WINDOWS - NOT TESTED ON ANDROID.
Just a few changes but they are significant.
1. In Firefox the annoying, random open/save videostream.cgi window no longer appears.
2. The video appears immediately on load, in 'near' realtime.
3. The video is much more stable, no occasional black bars.
4. When you send a command the 'OK' result no longer appears,
and the video window does not need to be re-loaded.
5. I have added a Step Control to move the camera one step at a time.
6. The Menu order has been changed so that the camera movement
controls come first. This is useful if you wish to resize the
Firefox window so that it just shows the video and movement
controls.

The HTM may not be very elegant, but it works so I did not start re-editing it just for cosmetic reasons.

I hope you find this useful.

NOTES
-------
You have to change the URL/Port, User Name and Password in TWO places to match those of your camera.

You can edit the script in Notepad, but remember to save it as '.htm'.

I have made the default video window 220x160 (you can edit this).

This version does not work with Internet Explorer.

Personally I use I.E. for most of my surfing. I installed Firefox just for Foscam camera use. I changed the file association for .htm to point to Firefox, so my amended programme always opens in that Browser, and remembers the last used window size.

I also unchecked all the Toolbars in Firefox, and changed the window size just to show the camera video, and the Step Control, Pan Control and Preset lines, so the camera output always opens in a small window on the desktop. You can of course use the slider to access the other commands when required.

Code: Select all
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    <html>
    <head>
<title>FOSCAM FI8918W Control</title>
<meta http-equiv="content-type"content="text/html;charset=windows-1250">
    </head>
<body onload="resizeTo(670,800);">
    <!-- to show the video stream. you must change the url, the port, user and pwd in the next line - in URL include "http://"-->
    <img src ="http://192.168.1.1:700/videostream.cgi?user=admin&pwd=password"" width"220" height="160"/>  <br>
    <!--show the video end -->
    <script type="text/javascript">
   
   
   //******* Edit This *******
        var chrUser = 'admin' //User name
        var chrPassword = 'password' //Password
        var chrURL = '192.168.1.1:700' // do not include "http://" in this line
    //****** End of User Editing ******
   
      function doCam(arg, chrType) {   
            if(document.getElementById('ifrResult')){
                if(chrType == 1){       chrCGI = 'decoder_control'
               
                }else if(chrType == 3){ chrCGI = 'snapshot'
                }else if(chrType == 4){ chrCGI = 'set_alarm'
            }else if(chrType == 9){ chrCGI = 'reboot'
                }else{                  chrCGI = 'camera_control'
                }
             document.getElementById('ifrResult').src='http://'+chrURL+'/'+chrCGI+'.cgi?user='+chrUser+'&amp;pwd='+chrPassword+'&amp;'+arg;
            }
        }

function doCam1(arg, chrType) {   
            if(document.getElementById('ifrResult1')){
                if(chrType == 1){       chrCGI = 'decoder_control'
               
                }else if(chrType == 3){ chrCGI = 'snapshot'
                }else if(chrType == 4){ chrCGI = 'set_alarm'
            }else if(chrType == 9){ chrCGI = 'reboot'
                }else{                  chrCGI = 'camera_control'
                }
             document.getElementById('ifrResult1').src='http://'+chrURL+'/'+chrCGI+'.cgi?user='+chrUser+'&amp;pwd='+chrPassword+'&amp;'+arg;
            }
        }
    </script>
<body bgcolor="#333333" text="#CCCCCC" link="#FFFFFF" vlink="#FFFFFF" alink="#CCCCCC" leftmargin="0" marginwidth="0">
<td>
   
</td>   


<br>
   
<!--  You may need to transpose the values for up/down/right/left
       depending on your camera setup -->

    <table>
<tr>
            <td>Step Control:</td>
            <td>
      
<a <a href="javascript:doCam1('command=6&onestep=5',1)">Left</a>
<a href="javascript:doCam1('command=4&onestep=5',1)">Right</a>   
<a href="javascript:doCam1('command=0&onestep=5',1)">Up</a>
<a href="javascript:doCam1('command=2&onestep=5',1)">Down</a>
      
            </td>
        </tr>           
    <table>
<tr>
            <td>Pan Control:</td>
            <td>
   <a href="javascript:doCam1('command=1',1)">Stop</a>
   <a href="javascript:doCam1('command=6',1)">Left</a>
   <a href="javascript:doCam1('command=4',1)">Right</a>
   <a href="javascript:doCam1('command=0',1)">Up</a>
   <a href="javascript:doCam1('command=2',1)">Down</a>
            </td>
        </tr>           
</table>

</table>

   <table>
         <td>Preset:</td>
            <td>
                <a href="javascript:doCam1('command=31',1)">1</a>
                <a href="javascript:doCam1('command=33',1)">2</a>
                <a href="javascript:doCam1('command=35',1)">3</a>
                <a href="javascript:doCam1('command=37',1)">4</a>
                <a href="javascript:doCam1('command=39',1)">5</a>
                <a href="javascript:doCam1('command=41',1)">6</a>
                <a href="javascript:doCam1('command=43',1)">7</a>
                <a href="javascript:doCam1('command=45',1)">8</a>
            </td>
        </tr>
        <tr>
        <td>Image:</td>
        <td>
          <a href="javascript:doCam('',3)">SNAP</a>
            </td>
        <tr>
      

        <tr>
            <td>IR:</td>
            <td>
                <a href="javascript:doCam1('command=95',1)">ON</a>
                <a href="javascript:doCam1('command=94',1)">OFF</a>
            </td>
        </tr>
        <tr>
            <td>Mode:</td>
            <td>
                <a href="javascript:doCam1('param=3&amp;value=0')">50</a>
                <a href="javascript:doCam1('param=3&amp;value=1')">60</a>
                <a href="javascript:doCam1('param=3&amp;value=2')">OUTDOORS</a>
            </td>
        </tr>
        <tr>
            <td>Brightness:</td>
            <td>
                <a href="javascript:doCam1('param=1&amp;value=17')">1</a>
                <a href="javascript:doCam1('param=1&amp;value=34')">2</a>
                <a href="javascript:doCam1('param=1&amp;value=51')">3</a>
                <a href="javascript:doCam1('param=1&amp;value=68')">4</a>
                <a href="javascript:doCam1('param=1&amp;value=85')">5</a>
                <a href="javascript:doCam1('param=1&amp;value=102')">6</a>
                <a href="javascript:doCam1('param=1&amp;value=119')">7</a>
                <a href="javascript:doCam1('param=1&amp;value=136')">8</a>
                <a href="javascript:doCam1('param=1&amp;value=153')">9</a>
                <a href="javascript:doCam1('param=1&amp;value=170')">10</a>
                <a href="javascript:doCam1('param=1&amp;value=187')">11</a>
                <a href="javascript:doCam1('param=1&amp;value=204')">12</a>
                <a href="javascript:doCam1('param=1&amp;value=221')">13</a>
                <a href="javascript:doCam1('param=1&amp;value=238')">14</a>
                <a href="javascript:doCam1('param=1&amp;value=255')">15</a>
            </td>
        </tr>

        <tr>
            <td>Contrast:</td>
            <td>
                <a href="javascript:doCam1('param=2&amp;value=1')">1</a>
                <a href="javascript:doCam1('param=2&amp;value=2')">2</a>
                <a href="javascript:doCam1('param=2&amp;value=3')">3</a>
                <a href="javascript:doCam1('param=2&amp;value=4')">4</a>
                <a href="javascript:doCam1('param=2&amp;value=5')">5</a>
                <a href="javascript:doCam1('param=2&amp;value=6')">6</a>
            </td>
        </tr>
       
        <tr>
            <td>Resolution:</td>
            <td>
                <a href="javascript:doCam1('param=0&amp;value=8')">320x240</a>
                <a href="javascript:doCam1('param=0&amp;value=32')">640x480</a>
            </td>
        </tr>
       
      <tr>
         <td>Alarm:</td>
         <td>
         <a href="javascript:doCam1('motion_armed=1',4)">ON</a>
         <a href="javascript:doCam1('motion_armed=0',4)">OFF</a>
         </td>
      </tr>
       <!-- DAMAGED
      <tr>
            <td>Flip/Mirror:</td>
            <td>
                <a href="javascript:doCam1('param=5&amp;value=0')">DEFAULT</a>
                <a href="javascript:doCam1('param=5&amp;value=1')">FLIP</a>
                <a href="javascript:doCam1('param=5&amp;value=2')">MIRROR</a>
                <a href="javascript:doCam1('param=5&amp;value=3')">BOTH</a>
            </td>
             </tr>
       !-->
        <tr>
            <td>Alarm Sens:</td>
            <td>
                <a href="javascript:doCam1('motion_armed=0',4)">OFF</a>       
                <a href="javascript:doCam1('motion_armed=1&amp;motion_sensitivity=0',4)">10</a>
                <a href="javascript:doCam1('motion_armed=1&amp;motion_sensitivity=1',4)">9</a>
                <a href="javascript:doCam1('motion_armed=1&amp;motion_sensitivity=2',4)">8</a>
                <a href="javascript:doCam1('motion_armed=1&amp;motion_sensitivity=3',4)">7</a>
                <a href="javascript:doCam1('motion_armed=1&amp;motion_sensitivity=4',4)">6</a>
                <a href="javascript:doCam1('motion_armed=1&amp;motion_sensitivity=5',4)">5</a>
                <a href="javascript:doCam1('motion_armed=1&amp;motion_sensitivity=6',4)">4</a>
                <a href="javascript:doCam1('motion_armed=1&amp;motion_sensitivity=7',4)">3</a>
                <a href="javascript:doCam1('motion_armed=1&amp;motion_sensitivity=8',4)">2</a>
                <a href="javascript:doCam1('motion_armed=1&amp;motion_sensitivity=9',4)">1</a>
            </td>
        </tr>
       
        <tr>
            <td>Alarm IR:</td>
            <td>
                <a href="javascript:doCam1('iolinkage=0',4)">DISABLE ON ALARM</a>
                <a href="javascript:doCam1('iolinkage=1',4)">ENABLE</a>
            </td>
        </tr>
       
        <tr>
            <td>Alarm Upimage/Sec:</td>
            <td>
                <a href="javascript:doCam1('upload_interval=0',4)">OFF</a>
                <a href="javascript:doCam1('upload_interval=1',4)">1</a>
                <a href="javascript:doCam1('upload_interval=2',4)">2</a>
                <a href="javascript:doCam1('upload_interval=5',4)">5</a>
                <a href="javascript:doCam1('upload_interval=10',4)">10</a>
                <a href="javascript:doCam1('upload_interval=30',4)">30</a>
                <a href="javascript:doCam1('upload_interval=60',4)">60</a>
            </td>
        </tr>
        <tr>
            <td>Alarm Mail:</td>
            <td>
                <a href="javascript:doCam1('mail=1',4)">ENABLE</a>
                <a href="javascript:doCam1('mail=0',4)">DISABLE</a>
            </td>
        </tr>
       
    </table>
   <br>
   <a href="javascript:doCam1('',9)"> *REBOOT* (Starts with IR *on*)</a>
    <br>

<br>
<iframe  id="ifrResult1" name="ifrResult1" style="border:0pt;width:1px;height:1px;"></iframe>
<iframe  id="ifrResult" name="ifrResult" style="border:0pt;width:1px;height:1px;"></iframe>
</body>
</script>
    </html>

Last edited by marlbrook on Mon Dec 19, 2011 4:38 pm, edited 1 time in total.
marlbrook
 
Posts: 2
Joined: Wed Dec 14, 2011 10:43 am

Re: FI8918W HTML control/view - any browser (phones too) - F

Postby obryanjf » Sat Dec 17, 2011 1:13 pm

Has anyone had any luck with this on an android phone, specifically the video part of it.
obryanjf
 
Posts: 4
Joined: Sat Dec 17, 2011 1:11 pm

Re: FI8918W HTML control/view - any browser (phones too) - F

Postby edelske » Thu Feb 09, 2012 11:45 pm

My thanks to all who have added and expanded on my initial post. I have not received many requests for additional features. I consider my post mainly for use with cell phones. Thus, I did not think (considering the network delay time) the addition of directional control important. Your feedback has agreed with my initial opinion. One thing I really would like some feedback to. Does anyone know of a phone or other device where my original code does not function? I used only the most basic of HTML and intended that it works without any "helper" software. Your feedback is requested; and my thanks to those of you who have already replied to my post.
edelske
 
Posts: 56
Joined: Wed Mar 02, 2011 3:57 pm

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests