Foscam FI8910W control in 1.28.1

Forum for questions and support relating to the 1.28.x releases only.
Post Reply
mikeybs
Posts: 13
Joined: Fri Jul 24, 2015 3:41 am

Foscam FI8910W control in 1.28.1

Post by mikeybs » Fri Jul 24, 2015 3:52 am

I've got the camera monitor working, and I attempted to follow the instructions in the wiki
http://www.zoneminder.com/wiki/index.php/Foscam_FI8918W

but I am not able to control the camera.

When I try any of the controls I get a browser error, here is the one for pan left:
Control response was status = undefined
message = /usr/bin/zmcontrol.pl --panspeed=2 --autostop --command=moveConLeft --id=2=>

In the logs I see:
2015-07-23 23:49:00.222560 zmcontrol 3044 FAT Can't load ZoneMinder::Control::FI8918W zmcontrol.pl


I did download FI8918W.pm and place it in /usr/share/perl5/ZoneMinder/Control/

Not sure what could be going wrong. Any suggestions?

User avatar
asker
Posts: 1049
Joined: Sun Mar 01, 2015 12:12 pm

Re: Foscam FI8910W control in 1.28.1

Post by asker » Fri Jul 24, 2015 11:16 am

Try to use the updated script in the master branch of Zoneminder:
https://github.com/ZoneMinder/ZoneMinde ... FI8918W.pm

Remember to follow the instructions written in that file:
You need to set "user=xxx&pwd=yyy" in the ControlDevice field
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

mikeybs
Posts: 13
Joined: Fri Jul 24, 2015 3:41 am

Re: Foscam FI8910W control in 1.28.1

Post by mikeybs » Sat Jul 25, 2015 10:43 pm

I tried the script you linked to. Same results. I had the control device field filled out correctly already. Is there anywhere I can get more descriptive logs?

mikeybs
Posts: 13
Joined: Fri Jul 24, 2015 3:41 am

Re: Foscam FI8910W control in 1.28.1

Post by mikeybs » Sat Jul 25, 2015 10:50 pm

nevermind I just figured it out. I was using wget to grab the file and it was pulling the full html page from github. I copied and pasted the correct content and all is well now.

User avatar
asker
Posts: 1049
Joined: Sun Mar 01, 2015 12:12 pm

Re: Foscam FI8910W control in 1.28.1

Post by asker » Sun Jul 26, 2015 1:27 pm

:D As funny as that sounds, I've done it more than once myself --> I keep forgetting you need to grab the raw page from github
Glad it worked for you.
mikeybs wrote:nevermind I just figured it out. I was using wget to grab the file and it was pulling the full html page from github. I copied and pasted the correct content and all is well now.
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

bbunge
Posts: 2364
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Foscam FI8910W control in 1.28.1

Post by bbunge » Sun Jul 26, 2015 2:54 pm

Thanks for the info. I get 2 FI891W's tomorrow!

bb

mikeybs
Posts: 13
Joined: Fri Jul 24, 2015 3:41 am

Re: Foscam FI8910W control in 1.28.1

Post by mikeybs » Wed Aug 05, 2015 8:44 pm

I just purchased the zmview pro app with the hopes of using the PT controls. However, they are not working from the zmview pro app. The controls work just fine from the web interface as already noted in this thread.

I get the following error in the logs:
Can't access moveRelDown member of object of class ZoneMinder::Control::FI8918W

User avatar
asker
Posts: 1049
Joined: Sun Mar 01, 2015 12:12 pm

Re: Foscam FI8910W control in 1.28.1

Post by asker » Wed Aug 05, 2015 10:46 pm

I have the pro version of this app too and to be honest, I briefly tried to get PTZ working with it, and it did not work. I never checked why.

Anyway, FI8918W does not have any method called moveRelDown so I don't know why it is calling it. It is possible that in some old version, it did. Try this if you are upto tinkering a bit:

Edit your copy of the FI8918W.pm file in your ZM install and around line 170, where you have a function called "moveConDown" -- just create a copy of that function called moveRelDown just below it like so:

Code: Select all

sub movRelDown
{
	my $self = shift;
	Debug( "Move Down" );
	my $cmd = "decoder_control.cgi?command=2";
	$self->sendCmd( $cmd );
}
If it works, then you can do this for the other directions. IF it doesn't, then zmviewer pro is broken.
mikeybs wrote:I just purchased the zmview pro app with the hopes of using the PT controls. However, they are not working from the zmview pro app. The controls work just fine from the web interface as already noted in this thread.

I get the following error in the logs:
Can't access moveRelDown member of object of class ZoneMinder::Control::FI8918W
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

mikeybs
Posts: 13
Joined: Fri Jul 24, 2015 3:41 am

Re: Foscam FI8910W control in 1.28.1

Post by mikeybs » Wed Aug 12, 2015 2:25 am

I tried your suggestion, and added a moveRelDown function, but I still get the same error when trying to use the down control in zmview pro

User avatar
asker
Posts: 1049
Joined: Sun Mar 01, 2015 12:12 pm

Re: Foscam FI8910W control in 1.28.1

Post by asker » Wed Aug 12, 2015 12:54 pm

mikeybs wrote:I tried your suggestion, and added a moveRelDown function, but I still get the same error when trying to use the down control in zmview pro
It's hard for me to know what is going on as I have no visibility on what that client is doing. But if you have added a moveRelDown, it should at least not report the same error

Code: Select all

Can't access moveRelDown member of object of class ZoneMinder::Control::FI8918W
Did you try rebooting ZM and are you sure its picking up the modified script? Can you post your modified script to pastebin?
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

mikeybs
Posts: 13
Joined: Fri Jul 24, 2015 3:41 am

Re: Foscam FI8910W control in 1.28.1

Post by mikeybs » Wed Aug 19, 2015 6:39 am

here is my modified script

http://pastebin.com/VQnRxBvw

I have restarted zoneminder as well as apache, and I have rebooted the server as well. How can I check to see if it is using the modified script?

The script I modified is in /usr/share/perl5/ZoneMinder/Control

it appears to be the only one on my system...

root@zoneminder:~# locate FI8918W.pm
/usr/share/perl5/ZoneMinder/Control/FI8918W.pm

User avatar
asker
Posts: 1049
Joined: Sun Mar 01, 2015 12:12 pm

Re: Foscam FI8910W control in 1.28.1

Post by asker » Wed Aug 19, 2015 3:00 pm

The function should be called moveRelDown
you have written it as movRelDown (missing e)

You should enable debug and look at logs
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

mikeybs
Posts: 13
Joined: Fri Jul 24, 2015 3:41 am

Re: Foscam FI8910W control in 1.28.1

Post by mikeybs » Wed Aug 19, 2015 5:05 pm

can't believe I missed such a silly typo. works fine now. thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests