IP Cam Talk

Welcome to the new IPCT! If you are having an issue logging in, please clear your cookies / cache.

Is there a Ip wireless camera that supports basic authentication

SArmeli

n3wb
Joined
Sep 13, 2019
Messages
3
Reaction score
1
Location
Pompano Beach FL
Hi all, I purchased an Amcrest wireless ip camera to replace my old foscam cameras. I use these cameras to display images of tennis courts on my website. I tried to get the Amcrest camera to work but after going back and forth with support after 3 weeks they told me they no longer support basic authentication and only use digest authentication. I understand concern passing user and password info and I believe I am passing this information securly..Is there an camera that will still allow basic authentication so I can call snapshot.cgi do display images.

Thank you for your input and suggestions!
 

mat200

IPCT Contributor
Joined
Jan 17, 2017
Messages
4,743
Reaction score
2,610
Hi all, I purchased an Amcrest wireless ip camera to replace my old foscam cameras. I use these cameras to display images of tennis courts on my website. I tried to get the Amcrest camera to work but after going back and forth with support after 3 weeks they told me they no longer support basic authentication and only use digest authentication. I understand concern passing user and password info and I believe I am passing this information securly..Is there an camera that will still allow basic authentication so I can call snapshot.cgi do display images.

Thank you for your input and suggestions!
Hi @SArmeli

None of these IP PoE cameras we are typically picking up are secure enough to be exposed to the internet without additional protection.

Perhaps explaining what you wish to accomplish will help others here provide recommendations?
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
4,152
Reaction score
3,996
Location
Alabama
Is there an camera that will still allow basic authentication so I can call snapshot.cgi do display images.
You could FTP an image from the camera to over-write an image on your web page.
 

SArmeli

n3wb
Joined
Sep 13, 2019
Messages
3
Reaction score
1
Location
Pompano Beach FL
Hi all thank you for your replies.
Currently I use php code to call snapshot.cgi that loops for 2 minutes with with an image every 4 seconds. I haven't been coding much in the last 2 years so I will have to think about ftping to the webserver. I like the way I have been doing it because it only sends the images when someone wants to see how the tennis courts are. If I ftp to the web server I will have to be constantly sending an image all the time to the server... right?
 

J Sigmo

Known around here
Joined
Feb 5, 2018
Messages
877
Reaction score
909
You could probably write a little script or program to set the timing of the "refresh".

It seems like seeing a new image every minute or two, even every five minutes, would let people know if the courts are crowded or not.
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
4,152
Reaction score
3,996
Location
Alabama
If I ftp to the web server I will have to be constantly sending an image all the time to the server... right?
My Amcrest IP2M-841 will FTP a new image every 1, 5, 10, 15, 30, etc. minutes...not constantly. The image could have the current date and time overlay from the camera if so desired.

EDIT: of course, it would not be "on demand" as you have now.
 
Last edited:

jack7

Getting the hang of it
Joined
Mar 21, 2019
Messages
46
Reaction score
28
Location
USA
Since you use this php code, have you looked into this? http://www.hawgs.co.uk/secure/___ReadThisFirst.txt
says "Now supports Digest Authorization."

Also, you could try this command:
curl --digest -u admin:mypassword http://192.168.1.80/cgi-bin/snapshot.cgi -o snapshot.jpg
Curl must be installed, and the command must be executed on the command line. See curl for Windows
Perhaps you can use the command line somehow with your webpage code. See PHP: Command line usage - Manual

Just suggestions, I haven't done this.
 

SArmeli

n3wb
Joined
Sep 13, 2019
Messages
3
Reaction score
1
Location
Pompano Beach FL
Jack7 Thank you I am using an older version of the code you reference at www.hawgs.co.uk. The problem is the php files I can see in a list of the directory but because they are php I can not download them... I tried to email the creator but the email is no longer valid. I have searched for the code in a zip file but to no avail.
I know my current webserver does not have curl running but I will look into that. Thank you for your input...if you have any idea where I can fine Secure Image Remote version 5.0 you would be a life saver!
Again thank you all for your suggestions and ideas!
 

Umut

n3wb
Joined
Apr 25, 2016
Messages
5
Reaction score
3
If your PHP cURL module is enabled, you can use this PHP code.


PHP:
<?php

$fp = fopen("snapshot.jpg", "w");
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,               "http://cameraIP/cgi-bin/snapshot.cgi");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,    TRUE);
curl_setopt($ch, CURLOPT_FILE,              $fp);
curl_setopt($ch, CURLOPT_TIMEOUT,           50);
curl_setopt($ch, CURLOPT_HTTPAUTH,          CURLAUTH_DIGEST);
curl_setopt($ch, CURLOPT_USERPWD,           "username:password");
curl_exec($ch);
curl_close($ch);
fclose($fp);

?>
You can run this code every 5 or 10 minutes. It will overwrite existing snapshot.jpg file.
If you have VPS or dedicated server, you can do this with cron jobs.
Some web hosting control panels like cPanel also have cron jobs function.
 
Top