Release - Foscam HD - Video feed with camera controls, and motion/sound detection preview

  Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Leopold Offline
Fan
Posts: 358
Joined: Jan 2011
Reputation: 14
Location: UK
Post: #196
(2015-09-24 07:51)hyde01 Wrote:  Can this be made into a PIP (Picture in Picture) mod where we can watch whatever we are watching on TV/Kodi but have the Foscam footage (or some other webcam footage) show up on the side of the screen with a keypress (certain key on keyboard, or combination of keys)
Currently it is not possible because the video renderer is a single global object.

It may be possible in the future due to changes being worked on by FernetMenta. See here for more information about VideoPlayer development.

Leopold's Repository: Home of LibreELEC Dev Updater ...
find quote
maikito26 Offline
Senior Member
Posts: 101
Joined: Jun 2014
Reputation: 3
Post: #197
Just thought I'd post a link here for anyone who was interested in the 4 camera version I quickly put together. The actual, new version I'm working to release undergone a name change to stick to Kodi naming standards. Its more robust (I hope) and will be fuller featured since I'm currently motivated and ambitious. If anyone wants to use it, it can be discussed on its own thread linked below. Thank you Leopold for all of the great ground work here!

Surveillance Room Add-on Thread
(This post was last modified: 2015-10-12 02:52 by maikito26.)
find quote
peteman90 Offline
Junior Member
Posts: 1
Joined: Oct 2015
Reputation: 0
Post: #198
Hi Leopold.

I am successfully using IP cam great plugin. I have now added a second IP cam. I was looking at this plugin but ita only jpeg snapshots. Is it possible to have rtsp streams on it?

cheers
pete
find quote
vtwin4Christ Offline
Junior Member
Posts: 1
Joined: Dec 2015
Reputation: 0
Post: #199
Possible fix for cheap 40.00 IP Cams from China under various names.

Tools:
1) Download and install PyCharm.
2) Download Filezilla or some other FTP program.
3) If your using an android set top box, download EZ file via playstore.
4) If using android. Load EZ File and go to network to start sharing so you can access your box via FTP.
5) If on android go to Android/data/org.xbmc.files/.kodi/addons/packages
6) Copy script.foscam-0.0.1.zip to your local drive.
7) Extract the file to a directory.
8) Open these two files using PyCharm:
a) service.py
b) foscam.py

Code:
Make the following changes:
service.py
Add this under self._url_cameracontrol inside __init__
        self.url_camerastatus = "http://{0}:{1}/get_status.cgi?{{0}}&user={2}&pwd={3}".format(host,
                                                                                                port,
                                                                                                user,
                                                                                                password)
        
service.py
top of send_command should be replaced and it should read:
        print cmd
        if 'param=5' in cmd: url = self._url_cameracontrol.format(cmd)
        elif 'getDevState' in cmd: url=self.url_camerastatus.format(cmd)
        else: url = self._url_fmt.format(cmd)
        if params is not None:
            url += "&" + urllib.urlencode(params)

service.py
search for alarm_check and top of routine should read this:
    def alarm_check(self):
        if self.motion_enable or self.sound_enable:
            player = xbmc.Player()
            if player.isPlaying() and player.getPlayingFile() == self.camera.video_url:
                return

            self.alarm_active = False
            
            dev_state = self.camera.get_device_state()
            if dev_state:
                for alarm, enabled in (('alarm_status', self.motion_enable),
                                       ('sound_status', self.sound_enable)):
                    if enabled:
                        param = "{0}Alarm".format(alarm)
                        alarm_status = dev_state[param]
                        utils.log_verbose("{0:s} = {1:d}".format(param, alarm_status))
                        if alarm_status == 1:
                            self.alarm_active = True
                            utils.log_normal("Alarm detected")
                            break

NOTES:
This is simply a hack to get the program to check the cheap china cams for the alarm status of motion being detected. the existing routines were trying to find the status for a URL that doesn't exist on the cheaper cams.
I didn't add any support for you to be able to SET your motion detection from the Kodi arena... You still have to set that on the camera.
I also don't believe the sound detection will function on the cheaper china cams like the one I have. Maybe if I get some time and a better DEV env I could work it out... But for now I wanted to share.

Once your done with all your changes you must zip it back up (using standard zip) and place it back in the same directory you got it from.
Then go into Kodi and find it in your list... Install it.

This code is untested... But should be pretty close.

Here is the URL to get the alarm (motion) status from your cheap china cam:
http://192.168.X.XXX/get_status.cgi?user...Collin1133

Good luck.
(This post was last modified: 2015-12-07 11:09 by vtwin4Christ.)
find quote
mtz_ro_2003 Offline
Junior Member
Posts: 1
Joined: Jan 2016
Reputation: 0
Post: #200
Hello Leopold!

I'm trying to use your addon with a Foscam C1 camera...
Launching the addon, I can't get any image.
Activating the debug log I see some interesting thing...
Even if I correctly set the username and password in the addon settings, it tries to open the camera with the default USERNAME and PASSWORD:

Code:
20:17:30 T:140204781397952  NOTICE: DVDPlayer: Opening: rtsp://USERNAME:[email protected]:88/videoMain
20:17:30 T:140204781397952 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:17:30 T:140201885955840  NOTICE: Thread DVDPlayer start, auto delete: false
20:17:30 T:140201885955840  NOTICE: Creating InputStream
20:17:30 T:140201885955840  NOTICE: Creating Demuxer
20:17:30 T:140201885955840   ERROR: OpenDemuxStream - Error creating demuxer

Also, in the camera settings, the RTSP port is set to 554, not 88 - which is the HTTP port.
The link rtsp://admin:[email protected]:554/videoMain opens without a glitch in VLC and I have image...

Here is the relevant part from kodi.log - I just edited the password to *****

Code:
20:17:30 T:140202152552192  NOTICE: Previous line repeats 1 times.
20:17:30 T:140202152552192  NOTICE: Thread LanguageInvoker start, auto delete: false
20:17:30 T:140202152552192  NOTICE: -->Python Interpreter Initialized<--
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: http://192.168.200.198:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=admin&pwd=******
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: <Response [200]>
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: <CGI_Result>
                                                <result>0</result>
                                                <IOAlarm>0</IOAlarm>
                                                <motionDetectAlarm>1</motionDetectAlarm>
                                                <soundAlarm>1</soundAlarm>
                                                <record>0</record>
                                                <sdState>0</sdState>
                                                <sdFreeSpace>0k</sdFreeSpace>
                                                <sdTotalSpace>0k</sdTotalSpace>
                                                <ntpState>1</ntpState>
                                                <ddnsState>0</ddnsState>
                                                <url>http%3A%2F%2Fjj4052.myfoscam.org%3A88</url>
                                                <upnpState>0</upnpState>
                                                <isWifiConnected>1</isWifiConnected>
                                                <wifiConnectedAP>MTZ</wifiConnectedAP>
                                                <infraLedState>1</infraLedState>
                                            </CGI_Result>
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: Starting main view
20:17:30 T:140201885955840  NOTICE: Thread GUIDialogCache start, auto delete: true
20:17:30 T:140204781397952  NOTICE: DVDPlayer: Opening: rtsp://USERNAME:[email protected]:88/videoMain
20:17:30 T:140204781397952 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:17:30 T:140201885955840  NOTICE: Thread DVDPlayer start, auto delete: false
20:17:30 T:140201885955840  NOTICE: Creating InputStream
20:17:30 T:140201885955840  NOTICE: Creating Demuxer
20:17:30 T:140201885955840   ERROR: OpenDemuxStream - Error creating demuxer
20:17:30 T:140201885955840  NOTICE: CDVDPlayer::OnExit()
20:17:30 T:140204781397952  NOTICE: CDVDPlayer::CloseFile()
20:17:30 T:140204781397952  NOTICE: DVDPlayer: waiting for threads to exit
20:17:30 T:140204781397952  NOTICE: DVDPlayer: finished waiting
20:17:30 T:140204781397952  NOTICE: CDVDPlayer::CloseFile()
20:17:30 T:140204781397952  NOTICE: DVDPlayer: waiting for threads to exit
20:17:30 T:140204781397952  NOTICE: DVDPlayer: finished waiting
20:17:31 T:140202152552192  NOTICE: script.foscam v0.0.21: http://192.168.200.198:88/cgi-bin/CGIProxy.fcgi?cmd=getMirrorAndFlipSetting&usr=admin&pwd=******
20:17:31 T:140202152552192  NOTICE: script.foscam v0.0.21: <Response [200]>
20:17:31 T:140202152552192  NOTICE: script.foscam v0.0.21: <CGI_Result>
                                                <result>0</result>
                                                <isMirror>0</isMirror>
                                                <isFlip>0</isFlip>
                                            </CGI_Result>
20:17:36 T:140202152552192  NOTICE: script.foscam v0.0.21: Closing main view
[email protected] ~> cp /share/CACHEDEV1_DATA/.qpkg/KODI/root/.kodi/temp/kodi.log /share/Public
[email protected] ~> cp /share/CACHEDEV1_DATA/.qpkg/KODI/root/.kodi/temp/kodi.log /share/Public
[email protected] ~> cat /share/CACHEDEV1_DATA/.qpkg/KODI/root/.kodi/temp/kodi.log
20:17:30 T:140202152552192  NOTICE: Previous line repeats 1 times.
20:17:30 T:140202152552192  NOTICE: Thread LanguageInvoker start, auto delete: false
20:17:30 T:140202152552192  NOTICE: -->Python Interpreter Initialized<--
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: http://192.168.200.198:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=admin&pwd=******
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: <Response [200]>
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: <CGI_Result>
                                                <result>0</result>
                                                <IOAlarm>0</IOAlarm>
                                                <motionDetectAlarm>1</motionDetectAlarm>
                                                <soundAlarm>1</soundAlarm>
                                                <record>0</record>
                                                <sdState>0</sdState>
                                                <sdFreeSpace>0k</sdFreeSpace>
                                                <sdTotalSpace>0k</sdTotalSpace>
                                                <ntpState>1</ntpState>
                                                <ddnsState>0</ddnsState>
                                                <url>http%3A%2F%2Fjj4052.myfoscam.org%3A88</url>
                                                <upnpState>0</upnpState>
                                                <isWifiConnected>1</isWifiConnected>
                                                <wifiConnectedAP>MTZ</wifiConnectedAP>
                                                <infraLedState>1</infraLedState>
                                            </CGI_Result>
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: Starting main view
20:17:30 T:140201885955840  NOTICE: Thread GUIDialogCache start, auto delete: true
20:17:30 T:140204781397952  NOTICE: DVDPlayer: Opening: rtsp://USERNAME:[email protected]:88/videoMain
20:17:30 T:140204781397952 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:17:30 T:140201885955840  NOTICE: Thread DVDPlayer start, auto delete: false
20:17:30 T:140201885955840  NOTICE: Creating InputStream
20:17:30 T:140201885955840  NOTICE: Creating Demuxer
20:17:30 T:140201885955840   ERROR: OpenDemuxStream - Error creating demuxer
20:17:30 T:140201885955840  NOTICE: CDVDPlayer::OnExit()
20:17:30 T:140204781397952  NOTICE: CDVDPlayer::CloseFile()
20:17:30 T:140204781397952  NOTICE: DVDPlayer: waiting for threads to exit
20:17:30 T:140204781397952  NOTICE: DVDPlayer: finished waiting
20:17:30 T:140204781397952  NOTICE: CDVDPlayer::CloseFile()
20:17:30 T:140204781397952  NOTICE: DVDPlayer: waiting for threads to exit
20:17:30 T:140204781397952  NOTICE: DVDPlayer: finished waiting
20:17:31 T:140202152552192  NOTICE: script.foscam v0.0.21: http://192.168.200.198:88/cgi-bin/CGIProxy.fcgi?cmd=getMirrorAndFlipSetting&usr=admin&pwd=******
20:17:31 T:140202152552192  NOTICE: script.foscam v0.0.21: <Response [200]>
20:17:31 T:140202152552192  NOTICE: script.foscam v0.0.21: <CGI_Result>
                                                <result>0</result>
                                                <isMirror>0</isMirror>
                                                <isFlip>0</isFlip>
                                            </CGI_Result>
20:17:36 T:140202152552192  NOTICE: script.foscam v0.0.21: Closing main view






LATER EDIT:
I figured it out!
It looks like the USERNAME and PASSWORD are still used, but not logged in clear text. Although, some other camera urls present the username and password...
I got it working by editing the script.foscam/resources/lib/foscam.py and removed the port by changing the line
Code:
self._video_url = "rtsp://{0}:{1}@{2}:{3}/videoMain".format(user, password, host, port)
to
Code:
self._video_url = "rtsp://{0}:{1}@{2}/videoMain".format(user, password, host, port)
(This post was last modified: 2016-01-15 21:01 by mtz_ro_2003.)
find quote
pgetty Offline
Junior Member
Posts: 1
Joined: Feb 2016
Reputation: 0
Post: #201
Heyo! Been digging around awhile, and cant seem to find whether I can expect this to work with my FI8910W (so far, no love). I always get "error connecting to camera....".

I've updated camera firmware to the latest, ensured I am using an admin account, etc. Still no go. Not seeing a response from the camera in the logs, but IP, port, username, password are all confirmed. Logs are below. Any idea?


22:37:08 T:1367815216 NOTICE: -->Python Interpreter Initialized<--
22:37:08 T:1367815216 DEBUG: CPythonInvoker(11, /root/.kodi/addons/script.foscam-master/default.py): the source file to load is "/root/.kodi/addons/script.foscam-master/default.py"
22:37:08 T:1367815216 DEBUG: CPythonInvoker(11, /root/.kodi/addons/script.foscam-master/default.py): setting the Python path to /root/.kodi/addons/script.foscam-master:/root/.kodi/addons/script.module.requests/lib:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages
22:37:08 T:1367815216 DEBUG: CPythonInvoker(11, /root/.kodi/addons/script.foscam-master/default.py): entering source directory /root/.kodi/addons/script.foscam-master
22:37:08 T:1367815216 DEBUG: CPythonInvoker(11, /root/.kodi/addons/script.foscam-master/default.py): instantiating addon using automatically obtained id of "script.foscam" dependent on version 2.13.0 of the xbmc.python api
22:37:10 T:1367815216 DEBUG: LocalizeStrings: no strings.po file exist at /root/.kodi/addons/script.foscam-master/resources/language/English, fallback to strings.xml
22:37:10 T:1367815216 NOTICE: script.foscam v0.0.21: http://192.168.99.6:12345/cgi-bin/CGIPro...wd=XXXXXXX
22:37:11 T:1121306416 DEBUG: ------ Window Init (DialogOK.xml) ------
22:37:11 T:1121306416 DEBUG: Window DialogOK.xml was already loaded
22:37:11 T:1121306416 DEBUG: Alloc resources: 10.41m
find quote
sergo Offline
Junior Member
Posts: 12
Joined: Dec 2014
Reputation: 0
Post: #202
I'm sorry that I'm in this thread pishu. There is the IP Webcam software for android.Android cheap, available. can even make Video Door Phones
Make xbmc plagin. Thanks for any response.
Translation Set as using google translator.
IP Webcam software.
https://play.google.com/store/apps/detai...bcam&hl=en
(This post was last modified: 2016-02-10 22:06 by sergo.)
find quote
ahpatel Offline
Junior Member
Posts: 4
Joined: Apr 2012
Reputation: 0
Post: #203
Can anyone confirm whether this works with the FOSCAM R2W?

My 9821W just crapped out so I was considering a R2 as a replacement if it works with this plugin.
(This post was last modified: 2016-02-23 08:12 by ahpatel.)
find quote
fizze Offline
Junior Member
Posts: 17
Joined: Apr 2013
Reputation: 0
Post: #204
(2016-01-15 20:38)mtz_ro_2003 Wrote:  Hello Leopold!

I'm trying to use your addon with a Foscam C1 camera...
Launching the addon, I can't get any image.
Activating the debug log I see some interesting thing...
Even if I correctly set the username and password in the addon settings, it tries to open the camera with the default USERNAME and PASSWORD:

Code:
20:17:30 T:140204781397952  NOTICE: DVDPlayer: Opening: rtsp://USERNAME:[email protected]:88/videoMain
20:17:30 T:140204781397952 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:17:30 T:140201885955840  NOTICE: Thread DVDPlayer start, auto delete: false
20:17:30 T:140201885955840  NOTICE: Creating InputStream
20:17:30 T:140201885955840  NOTICE: Creating Demuxer
20:17:30 T:140201885955840   ERROR: OpenDemuxStream - Error creating demuxer

Also, in the camera settings, the RTSP port is set to 554, not 88 - which is the HTTP port.
The link rtsp://admin:[email protected]:554/videoMain opens without a glitch in VLC and I have image...

Here is the relevant part from kodi.log - I just edited the password to *****

Code:
20:17:30 T:140202152552192  NOTICE: Previous line repeats 1 times.
20:17:30 T:140202152552192  NOTICE: Thread LanguageInvoker start, auto delete: false
20:17:30 T:140202152552192  NOTICE: -->Python Interpreter Initialized<--
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: http://192.168.200.198:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=admin&pwd=******
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: <Response [200]>
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: <CGI_Result>
                                                <result>0</result>
                                                <IOAlarm>0</IOAlarm>
                                                <motionDetectAlarm>1</motionDetectAlarm>
                                                <soundAlarm>1</soundAlarm>
                                                <record>0</record>
                                                <sdState>0</sdState>
                                                <sdFreeSpace>0k</sdFreeSpace>
                                                <sdTotalSpace>0k</sdTotalSpace>
                                                <ntpState>1</ntpState>
                                                <ddnsState>0</ddnsState>
                                                <url>http%3A%2F%2Fjj4052.myfoscam.org%3A88</url>
                                                <upnpState>0</upnpState>
                                                <isWifiConnected>1</isWifiConnected>
                                                <wifiConnectedAP>MTZ</wifiConnectedAP>
                                                <infraLedState>1</infraLedState>
                                            </CGI_Result>
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: Starting main view
20:17:30 T:140201885955840  NOTICE: Thread GUIDialogCache start, auto delete: true
20:17:30 T:140204781397952  NOTICE: DVDPlayer: Opening: rtsp://USERNAME:[email protected]:88/videoMain
20:17:30 T:140204781397952 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:17:30 T:140201885955840  NOTICE: Thread DVDPlayer start, auto delete: false
20:17:30 T:140201885955840  NOTICE: Creating InputStream
20:17:30 T:140201885955840  NOTICE: Creating Demuxer
20:17:30 T:140201885955840   ERROR: OpenDemuxStream - Error creating demuxer
20:17:30 T:140201885955840  NOTICE: CDVDPlayer::OnExit()
20:17:30 T:140204781397952  NOTICE: CDVDPlayer::CloseFile()
20:17:30 T:140204781397952  NOTICE: DVDPlayer: waiting for threads to exit
20:17:30 T:140204781397952  NOTICE: DVDPlayer: finished waiting
20:17:30 T:140204781397952  NOTICE: CDVDPlayer::CloseFile()
20:17:30 T:140204781397952  NOTICE: DVDPlayer: waiting for threads to exit
20:17:30 T:140204781397952  NOTICE: DVDPlayer: finished waiting
20:17:31 T:140202152552192  NOTICE: script.foscam v0.0.21: http://192.168.200.198:88/cgi-bin/CGIProxy.fcgi?cmd=getMirrorAndFlipSetting&usr=admin&pwd=******
20:17:31 T:140202152552192  NOTICE: script.foscam v0.0.21: <Response [200]>
20:17:31 T:140202152552192  NOTICE: script.foscam v0.0.21: <CGI_Result>
                                                <result>0</result>
                                                <isMirror>0</isMirror>
                                                <isFlip>0</isFlip>
                                            </CGI_Result>
20:17:36 T:140202152552192  NOTICE: script.foscam v0.0.21: Closing main view
[email protected] ~> cp /share/CACHEDEV1_DATA/.qpkg/KODI/root/.kodi/temp/kodi.log /share/Public
[email protected] ~> cp /share/CACHEDEV1_DATA/.qpkg/KODI/root/.kodi/temp/kodi.log /share/Public
[email protected] ~> cat /share/CACHEDEV1_DATA/.qpkg/KODI/root/.kodi/temp/kodi.log
20:17:30 T:140202152552192  NOTICE: Previous line repeats 1 times.
20:17:30 T:140202152552192  NOTICE: Thread LanguageInvoker start, auto delete: false
20:17:30 T:140202152552192  NOTICE: -->Python Interpreter Initialized<--
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: http://192.168.200.198:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=admin&pwd=******
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: <Response [200]>
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: <CGI_Result>
                                                <result>0</result>
                                                <IOAlarm>0</IOAlarm>
                                                <motionDetectAlarm>1</motionDetectAlarm>
                                                <soundAlarm>1</soundAlarm>
                                                <record>0</record>
                                                <sdState>0</sdState>
                                                <sdFreeSpace>0k</sdFreeSpace>
                                                <sdTotalSpace>0k</sdTotalSpace>
                                                <ntpState>1</ntpState>
                                                <ddnsState>0</ddnsState>
                                                <url>http%3A%2F%2Fjj4052.myfoscam.org%3A88</url>
                                                <upnpState>0</upnpState>
                                                <isWifiConnected>1</isWifiConnected>
                                                <wifiConnectedAP>MTZ</wifiConnectedAP>
                                                <infraLedState>1</infraLedState>
                                            </CGI_Result>
20:17:30 T:140202152552192  NOTICE: script.foscam v0.0.21: Starting main view
20:17:30 T:140201885955840  NOTICE: Thread GUIDialogCache start, auto delete: true
20:17:30 T:140204781397952  NOTICE: DVDPlayer: Opening: rtsp://USERNAME:[email protected]:88/videoMain
20:17:30 T:140204781397952 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:17:30 T:140201885955840  NOTICE: Thread DVDPlayer start, auto delete: false
20:17:30 T:140201885955840  NOTICE: Creating InputStream
20:17:30 T:140201885955840  NOTICE: Creating Demuxer
20:17:30 T:140201885955840   ERROR: OpenDemuxStream - Error creating demuxer
20:17:30 T:140201885955840  NOTICE: CDVDPlayer::OnExit()
20:17:30 T:140204781397952  NOTICE: CDVDPlayer::CloseFile()
20:17:30 T:140204781397952  NOTICE: DVDPlayer: waiting for threads to exit
20:17:30 T:140204781397952  NOTICE: DVDPlayer: finished waiting
20:17:30 T:140204781397952  NOTICE: CDVDPlayer::CloseFile()
20:17:30 T:140204781397952  NOTICE: DVDPlayer: waiting for threads to exit
20:17:30 T:140204781397952  NOTICE: DVDPlayer: finished waiting
20:17:31 T:140202152552192  NOTICE: script.foscam v0.0.21: http://192.168.200.198:88/cgi-bin/CGIProxy.fcgi?cmd=getMirrorAndFlipSetting&usr=admin&pwd=******
20:17:31 T:140202152552192  NOTICE: script.foscam v0.0.21: <Response [200]>
20:17:31 T:140202152552192  NOTICE: script.foscam v0.0.21: <CGI_Result>
                                                <result>0</result>
                                                <isMirror>0</isMirror>
                                                <isFlip>0</isFlip>
                                            </CGI_Result>
20:17:36 T:140202152552192  NOTICE: script.foscam v0.0.21: Closing main view






LATER EDIT:
I figured it out!
It looks like the USERNAME and PASSWORD are still used, but not logged in clear text. Although, some other camera urls present the username and password...
I got it working by editing the script.foscam/resources/lib/foscam.py and removed the port by changing the line
Code:
self._video_url = "rtsp://{0}:{1}@{2}:{3}/videoMain".format(user, password, host, port)
to
Code:
self._video_url = "rtsp://{0}:{1}@{2}/videoMain".format(user, password, host, port)


True, that seems to work with my C1 also. But I cannot seem to get the alarm preview to work. Did you figure that out as well?
find quote
IIIdefconIII Offline
Senior Member
Posts: 188
Joined: Mar 2015
Reputation: 2
Post: #205
does this still work on v17?
find quote
kaim Offline
Junior Member
Posts: 2
Joined: Jun 2017
Reputation: 0
Post: #206
(2017-02-18 11:22)IIIdefconIII Wrote:  does this still work on v17?

Yes it does, but as my Foscam is dead I can't tell that it works as before. But it differently starts under v17.
find quote
IIIdefconIII Offline
Senior Member
Posts: 188
Joined: Mar 2015
Reputation: 2
Post: #207
(2017-06-17 22:21)kaim Wrote:  
(2017-02-18 11:22)IIIdefconIII Wrote:  does this still work on v17?

Yes it does, but as my Foscam is dead I can't tell that it works as before. But it differently starts under v17.

it works great!
find quote
jlippold Offline
Junior Member
Posts: 9
Joined: Jun 2017
Reputation: 0
Post: #208
How does this detect motion? What's the trigger?
find quote
seanmiller Offline
Junior Member
Posts: 1
Joined: Jul 2017
Reputation: 0
Post: #209
updates on camera apps would also help I believe.
find quote
Post Reply