Control scripts only partial working.

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
dpdjvan
Posts: 7
Joined: Sat Apr 09, 2016 2:39 pm

Control scripts only partial working.

Post by dpdjvan »

I upgraded to 1.34.10 today from the http://ppa.launchpad.net/iconnor/zoneminder-1.34/ubuntu repo.

Only some of my controls are now working on the control script I created for Inesun.
For example I can zoom in but zoom out won't trigger anything. I don't get any debug logs that an attempt was made.

When I try to get my presets I get the debug log:
2020-04-26 17:59:22.580234 zmcontrol_1[31958].DBG [main:179] [$VAR1 = {
'command' => '2'
};]
2020-04-26 17:59:22.580404 zmcontrol_1[31958].ERR [ZoneMinder::Control:76] [Can't access name:2 AUTOLOAD:ZoneMinder::Control::Inesun::2 member of object of class ZoneMinder::Control::Inesun from main:186]

When I would expect to see from 1.34.9.
2020-04-26 08:24:53.916009 zmcontrol_1[7880].INF [main:141] [Control server 1/Inesun starting at 20/04/26 08:24:53]
2020-04-26 08:47:35.653821 zmcontrol_1[7880].DBG [main:179] [$VAR1 = {
'command' => 'presetGoto',
'preset' => '1'
};]


Are there new updates I missed to my script or is there something I have to fix?
dpdjvan
Posts: 7
Joined: Sat Apr 09, 2016 2:39 pm

Re: Control scripts only partial working.

Post by dpdjvan »

Looking through the changes for 1.34.10 the control_functions.php changed in https://github.com/ZoneMinder/zoneminde ... 857c853514


I'm not familiar with web stuff but I'm going to see if I can figure out why some buttons work and other don't.

Any advice on where to start would be appreciated.
dpdjvan
Posts: 7
Joined: Sat Apr 09, 2016 2:39 pm

Re: Control scripts only partial working.

Post by dpdjvan »

I think the zoom out is from line 53.

It has "data-on-click-data" but everywhere else it is "data-on-click-this". I don't know if they are equivalent.
dpdjvan
Posts: 7
Joined: Sat Apr 09, 2016 2:39 pm

Re: Control scripts only partial working.

Post by dpdjvan »

Found the issue. The first "value=" would not allow the 2nd "value=" to be written. This would leave "value="1"" so it thought the command was "1"

By removing the first value the command looks like "value="presetGoto1"" which allows the camera to move.
Post Reply