viswa-swami / python-foscam Goto Github PK
View Code? Open in Web Editor NEWPython library for controlling Foscam cameras
License: GNU General Public License v3.0
Python library for controlling Foscam cameras
License: GNU General Public License v3.0
Good morning
is it possible to have in the integration Home Assistant the following elements on the C2M cameras from foscam which is identical on other cameras:
thank you very much in advance
Jérôme
Hi,
I wanted to use this Foscam library in Home Assistant.
However there is already for a long time no activity... Pull request for zoom is for example available, but not integrated.
Also I have an indoor camera with sleep mode. I would like to add this.
If you do not have time to maintain this project, can you add so I can merge into master.
And also release new versions on PyPi?
Thanks!
I use home-assistant which uses this project for supporting Foscam cameras. I have two cameras, a FI9816P
and FI9821P+V3
. On the FI9821P+V3 everything works properly, but on the FI9816P I have a broken image in home-assistant.
I directly tried to interact with the python library to figure out what is wrong.
I find on the FI9816P
that the snap_picture_2()
function is return an HTML page with the snapshot rather than the snapshot itself.
My test run:
from libpyfoscam import FoscamCamera
cam = FoscamCamera("192.168.2.33", 88, REDACTED, REDACTED)
>>> cam.snap_picture_2()
Send Foscam command: http://192.168.2.33:88/cgi-bin/CGIProxy.fcgi?usr=REDACTED&pwd=REDACTED&cmd=snapPicture2
Returning raw Foscam response: len=74
(0, b'<html><body><img src="../snapPic/Snap_20180715-194322.jpg"/></body></html>')
However trying this on a FI9821P+V3
I get actual image data in the response.
I also notice that the JPG URL referred by the FI9816P
is not ephemeral however and expires very quickly. If I try to do this from my browser I can see the same thing happens and trying to open the image directly fails after it loaded the webpage and image together results in an HTTP 404.
Add the ability to create and delete custom named PTZ preset points using the pre-configured CGI functions:
ptzAddPresetPoint
ptzDeletePresetPoint
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.