Foscam Forum • View topic - FI8918W HTML control/view - any browser (phones too) - FREE!

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

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

Postby edelske » Wed Mar 02, 2011 4:40 pm

VERSION 5 RELEASED 3/16/12 ADDED:
(with help from Dan A - PAN & TILT support)


[img]
V5.jpg
[/img]

see IMAGE from my cell phone at bottom of THIS post

YES IT WORKS WITH: Foscam FI8910W


THIS "CODE" HAS THE SHORTEST INSTRUCTION PATH LENGTH POSSIBLE AND USES THE VERY LEAST AMOUNT OF BATTERY POWER. INSTRUCTION PATH LENGTH IS THE AMOUNT OF CODE NECESSARY TO PROCESS YOUR REQUEST - MY SCRIPT IS VERY GENTLE ON A CELL PHONE BATTERY - EVEN WITH FREQUENT USE.

NO "battery munching" Java, Active-X, Macros or any other complex hard to understand functions - you don't have to be a computer geek to read my "simplest possible" approach.

PLEASE PLEASE TAKE THE TIME TO REGISTER AND COMMENT ON MY POST. ON THE FORUM - please!

This script (as it is not really a program just HTML statements) will let ANY browser control:

GOTO PRESETS
TURN IR OFF/ON
PAN OR TILT THE CAMERA
GET A SNAPSHOT OR VIDEO STREAM (SLOW OR FAST)
SET THE MODE 50 60 OR OUTDOORS
SET THE BRIGHTNESS
SET THE CONTRAST
SET RESOLUTION
FLIP/MIRROR CONTROL
ALARM OFF/SENSITIVITY
ALARM IR ON OFF
ALARM UPLOAD IMAGE FREQUENCY
ALARM MAIL ON OFF (for logging only)
REBOOT the Camera

This code allows my Nokia E73 browser, using Opera 10.1 (and probably many other browsers) to access my camera and provides "full" functionality. Distributed as a single .txt file.

You MUST do 4 "global" renames to the .htm for this to work for you. With the assumption you are using and have working the DynDns feature....

(if you do not use DynDns just put in the IP address) and the first rename (below) changes to:
Rename YOUR to 123.456.123.456

If you do use DynDns it's rename YOUR to abc123.dyndns-mail.com, with abc123 replaced by your ID.

I used "notepad" to do the global changes, then renamed file from .txt to .htm

Rename YOUR to "your" DynDns real name
Rename 8100 to "your" camera port
Rename NAME to "your" userid
Rename PASSWORD to "your" password

If you edited as .txt - don't forget to rename back to .htm

When you run the window you will get a "tiny" "OK" as feedback for each command EXCEPT "SNAP" (a snapshot of what the camera sees as 1 frame) and SLOW (a one frame every 5 seconds request - without any sound - if you want sound change videostream.cgi to videostream.asf (works great in VLC). You can also do a "refresh" of the page with SNAP to see successive images.

When you get the tiny OK - use your browser's BACK key to return to the menu.

THERE ARE A LOT OF OCCURRENCES - but a "change all" will do the job in a flash.

Comments appreciated - suggestions too, please take the time to register with this forum and post a reply to THIS post.

THIS FILE REPLACES THE EARLIER FILEs and is at:

http://notary.fm/FI8918W.html (my site)

Just HTML no .com .exe .bin (no malware, virus, spyware, underwear, or outerwear possible) - LOOK AT THE CODE - it ONLY uses HTML to talk to the camera + a shell to keep the display neatly organized.

The instructions above are repeated there too
Last edited by edelske on Fri Jul 13, 2012 2:57 pm, edited 25 times in total.
edelske
 
Posts: 56
Joined: Wed Mar 02, 2011 3:57 pm

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

Postby edelske » Thu Mar 03, 2011 5:48 pm

DISTRIBUTION NOW A SINGLE .TXT FILE NO NEED FOR ANY UNZIP PROCEDURE.

There have been many downloads of the file but I have received very few posts to this thread?

PLEASE post your comments
- on this thread - about the functionality, installation procedure, choice of menu items, wishlist, etc.

I understand it's a bit of a chore to "register" for the forum - your efforts would be greatly appreciated.


ken
Last edited by edelske on Mon May 09, 2011 9:59 pm, edited 7 times in total.
edelske
 
Posts: 56
Joined: Wed Mar 02, 2011 3:57 pm

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

Postby edelske » Sat Mar 12, 2011 12:27 pm

I am thinking about writing a scheduler, similar to my control/view program:
http://foscam.us/forum/fi8918w-html-control-view-any-browser-phones-too-free-t521.html

The control/view was written in the simplest possible HTML to be "universal" - and work with just about any browser. The real intent was to support various cell phones, ipad, etc.

However the challenge is different with scheduling - I "think" this is not really a cell phone function as being "out of range" might cause a command to not be received. Also, many do not leave their cell phones on all of the time. From what I have read on thee forum the MOST needed function is to adjust for day and night settings automatically. Prior to starting this, probably late in April, I need some feedback as to what is wanted and what device types need support. My first thought is Java, as "plain old HTML" really does not have the features required to do the job properly. I am not a Java programmer, and will have to learn a bit to use that language. But prior to doing any planning I need to know what is wanted.
ken
edelske
 
Posts: 56
Joined: Wed Mar 02, 2011 3:57 pm

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

Postby ben.8 » Wed Mar 16, 2011 12:12 pm

This is really useful. I cleaned up your HTML and added some javascript to make it easier to change and maintain (URL, username and password only need to be changed in one central location). I also moved the results to an iFrame to cut down on server requests so you don't have to hit the "back" button after every command if you're changing multiple settings, although that's really not a big deal.

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

<html>
<head>
   <title>FOSCAM FI8918W Control</title>
</head>

<script type="text/javascript">
    var chrUser = 'USER'
    var chrPassword = 'PASSWORD'
    var chrURL = 'YOUR.dyndns-mail.com:8100' // do not include "http://" in this line

    function doCam(arg, chrType) {   
        if(document.getElementById('ifrResult')){
            if(chrType == 1){       chrCGI = 'decoder_control'
            }else if(chrType == 2){ chrCGI = 'videostream'
            }else if(chrType == 3){ chrCGI = 'snapshot'
            }else if(chrType == 4){ chrCGI = 'set_alarm'
            }else{                  chrCGI = 'camera_control'
            }
            document.getElementById('ifrResult').src='http://'+chrURL+'/'+chrCGI+'.cgi?user='+chrUser+'&amp;pwd='+chrPassword+'&amp;'+arg;
        }
    }
</script>

<body>

<table>
    <tr>
        <td colspan="2" style="font-size:11pt;">
            FOSCAM FI8918W Control <a href="http://kenneth-a-edelstein.com/FI8918W.html" target="_blank">Ver. 3</a>
        </td>
    </tr>
    <tr>
        <td>Image:</td>
        <td>
            <a href="javascript:doCam('',3)">SNAP</a>
            <a href="javascript:doCam('resolution=32&amp;rate=23',2)">SLOW</a>
        </td>
    </tr>
    <tr>
        <td>Go To:</td>
        <td>
            <a href="javascript:doCam('command=31',1)">1</a>
            <a href="javascript:doCam('command=33',1)">2</a>
            <a href="javascript:doCam('command=35',1)">3</a>
            <a href="javascript:doCam('command=37',1)">4</a>
            <a href="javascript:doCam('command=39',1)">5</a>
            <a href="javascript:doCam('command=41',1)">6</a>
            <a href="javascript:doCam('command=43',1)">7</a>
            <a href="javascript:doCam('command=45',1)">8</a>
        </td>
    </tr>
    <tr>
        <td>IR:</td>
        <td>
            <a href="javascript:doCam('command=95',1)">ON</a>
            <a href="javascript:doCam('command=94',1)">OFF</a>
        </td>
    </tr>
    <tr>
        <td>Mode:</td>
        <td>
            <a href="javascript:doCam('param=3&amp;value=0')">50</a>
            <a href="javascript:doCam('param=3&amp;value=1')">60</a>
            <a href="javascript:doCam('param=3&amp;value=2')">OUTDOORS</a>
        </td>
    </tr>
    <tr>
        <td>Brightness:</td>
        <td>
            <a href="javascript:doCam('param=1&amp;value=17')">1</a>
            <a href="javascript:doCam('param=1&amp;value=34')">2</a>
            <a href="javascript:doCam('param=1&amp;value=51')">3</a>
            <a href="javascript:doCam('param=1&amp;value=68')">4</a>
            <a href="javascript:doCam('param=1&amp;value=85')">5</a>
            <a href="javascript:doCam('param=1&amp;value=102')">6</a>
            <a href="javascript:doCam('param=1&amp;value=119')">7</a>
            <a href="javascript:doCam('param=1&amp;value=136')">8</a>
            <a href="javascript:doCam('param=1&amp;value=153')">9</a>
            <a href="javascript:doCam('param=1&amp;value=170')">10</a>
            <a href="javascript:doCam('param=1&amp;value=187')">11</a>
            <a href="javascript:doCam('param=1&amp;value=204')">12</a>
            <a href="javascript:doCam('param=1&amp;value=221')">13</a>
            <a href="javascript:doCam('param=1&amp;value=238')">14</a>
            <a href="javascript:doCam('param=1&amp;value=255')">15</a>
        </td>
    </tr>

    <tr>
        <td>Contrast:</td>
        <td>
            <a href="javascript:doCam('param=2&amp;value=1')">1</a>
            <a href="javascript:doCam('param=2&amp;value=2')">2</a>
            <a href="javascript:doCam('param=2&amp;value=3')">3</a>
            <a href="javascript:doCam('param=2&amp;value=4')">4</a>
            <a href="javascript:doCam('param=2&amp;value=5')">5</a>
            <a href="javascript:doCam('param=2&amp;value=6')">6</a>
        </td>
    </tr>
   
    <tr>
        <td>Resolution:</td>
        <td>
            <a href="javascript:doCam('param=0&amp;value=8')">320x240</a>
            <a href="javascript:doCam('param=0&amp;value=32')">640x480</a>
        </td>
    </tr>
   
    <tr>
        <td>Flip/Mirror:</td>
        <td>
            <a href="javascript:doCam('param=5&amp;value=0')">DEFAULT</a>
            <a href="javascript:doCam('param=5&amp;value=1')">FLIP</a>
            <a href="javascript:doCam('param=5&amp;value=2')">MIRROR</a>
            <a href="javascript:doCam('param=5&amp;value=3')">BOTH</a>
        </td>
    </tr>
   
    <tr>
        <td>Alarm Sens:</td>
        <td>
            <a href="javascript:doCam('motion_armed=0',4)">OFF</a>       
            <a href="javascript:doCam('motion_armed=1&amp;motion_sensitivity=0',4)">10</a>
            <a href="javascript:doCam('motion_armed=1&amp;motion_sensitivity=1',4)">9</a>
            <a href="javascript:doCam('motion_armed=1&amp;motion_sensitivity=2',4)">8</a>
            <a href="javascript:doCam('motion_armed=1&amp;motion_sensitivity=3',4)">7</a>
            <a href="javascript:doCam('motion_armed=1&amp;motion_sensitivity=4',4)">6</a>
            <a href="javascript:doCam('motion_armed=1&amp;motion_sensitivity=5',4)">5</a>
            <a href="javascript:doCam('motion_armed=1&amp;motion_sensitivity=6',4)">4</a>
            <a href="javascript:doCam('motion_armed=1&amp;motion_sensitivity=7',4)">3</a>
            <a href="javascript:doCam('motion_armed=1&amp;motion_sensitivity=8',4)">2</a>
            <a href="javascript:doCam('motion_armed=1&amp;motion_sensitivity=9',4)">1</a>
        </td>
    </tr>
   
    <tr>
        <td>Alarm IR:</td>
        <td>
            <a href="javascript:doCam('iolinkage=0',4)">DISABLE ON ALARM</a>
            <a href="javascript:doCam('iolinkage=1',4)">ENABLE</a>
        </td>
    </tr>
   
    <tr>
        <td>Alarm Upimage/Sec:</td>
        <td>
            <a href="javascript:doCam('upload_interval=0',4)">OFF</a>
            <a href="javascript:doCam('upload_interval=1',4)">1</a>
            <a href="javascript:doCam('upload_interval=2',4)">2</a>
            <a href="javascript:doCam('upload_interval=5',4)">5</a>
            <a href="javascript:doCam('upload_interval=10',4)">10</a>
            <a href="javascript:doCam('upload_interval=30',4)">30</a>
            <a href="javascript:doCam('upload_interval=60',4)">60</a>
        </td>
    </tr>
    <tr>
        <td>Alarm Mail:</td>
        <td>
            <a href="javascript:doCam('mail=1',4)">ENABLE</a>
            <a href="javascript:doCam('mail=0',4)">DISABLE</a>
        </td>
    </tr>
   
</table>
<br>
Results:<br>
<iframe id="ifrResult" name="ifrResult" style="border:0pt;width:640px;height:480px;"></iframe>

</body>
</html>


As far as a scheduler goes, I'm probably more likely to use some external process to send the relevant URL command to the camera as a schduled task.

Thanks for posting this.
Last edited by ben.8 on Thu Mar 24, 2011 11:00 am, edited 1 time in total.
ben.8
 
Posts: 5
Joined: Fri Mar 04, 2011 1:49 pm

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

Postby wes » Wed Mar 16, 2011 12:24 pm

This is a great post! Thanks...gave me what I needed to create an on/off alarm link.
wes
 
Posts: 3
Joined: Thu Mar 10, 2011 10:02 pm

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

Postby edelske » Thu Mar 17, 2011 7:01 pm

ben,
a super duper update to my post - WOW is this forum great!!

sure wish i knew java the way you do - thanks for eliminating that messy edit with change all

to those new to this issue.

my original code requires a "find and replace" all to set the customization
Ben's upgrade fixes that with a single point of change

the only other difference:
with a tiny screen as on my nokia phone the image replaces the menu and "back" is needed to get back to the menu.
Ben's code has a slightly longer screen and it might be necessary to scroll down to see a snapshot

one additional difference:
my code should be universal and work with any browser
the more sophisticated work by ben requires activex to function

Now thanks to Ben's wizardly work you have a choice of how the display is formatted.

Ben, I tip my hat to you for your superb work - there must be others out there with great ideas to share - one real need is the ability to send a string of commands outdoors, brightness,contrast for daytime and a different set of commands for night time - share your work here for the good of all.

ken

ben, tiny issue - the ver3 link appears busted, at least from my cell phone
edelske
 
Posts: 56
Joined: Wed Mar 02, 2011 3:57 pm

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

Postby ben.8 » Thu Mar 24, 2011 11:02 am

Whups, bad copy-and-paste on my part. Fixed; if you want to edit your local copy change the line to
Code: Select all
FOSCAM FI8918W Control <a href="http://kenneth-a-edelstein.com/FI8918W.html" target="_blank">Ver. 3</a>

I had left an extra

<a href="

in there.

The code I posted does require your browser to support javascript, but not ActiveX.
ben.8
 
Posts: 5
Joined: Fri Mar 04, 2011 1:49 pm

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

Postby juckes » Sat Mar 26, 2011 4:46 pm

Thanks to Ken for contributing this script. Also the prompt assistance with my queries. I will post again when I have it running on my Nokia 6710

Chris
juckes
 
Posts: 1
Joined: Sat Mar 26, 2011 4:41 pm

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

Postby edelske » Fri Apr 01, 2011 9:31 pm

your wcome chris, let me know how it works out.
Ken
edelske
 
Posts: 56
Joined: Wed Mar 02, 2011 3:57 pm

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

Postby LifeIs2030 » Mon Apr 04, 2011 2:26 pm

Please bear with my...I am completely new with this. How do I get the mobile browser in my phone to open and play the url links that are attached to my emails when the motion detector is set off? I have the Droid2 Global and it uses Android 2.2. Thanks in advance!
LifeIs2030
 
Posts: 2
Joined: Mon Mar 28, 2011 3:07 pm

Next

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest