Code Monkey home page Code Monkey logo

python-foscam's People

Contributors

davidlie avatar viswa-swami avatar viswa-swami-msft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

python-foscam's Issues

Evolution of the Home Assistant integration ?

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:

  • an on/off switch to activate motion detection
  • an on:off switch to activate sound detection
  • an on / off to activate the camera IR
  • an on / off switch to switch to clock or auto mode for the IR
  • a binary_sensor for motion detection
  • a binary_sensor for sound detection

thank you very much in advance

Jérôme

Project still alive?

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!

'FI9816P' snap_picture_2() doesn't return an image

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 Additional PTZ Functions

Add the ability to create and delete custom named PTZ preset points using the pre-configured CGI functions:

ptzAddPresetPoint
ptzDeletePresetPoint

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.