Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PTZ issues ... was working but doesn't seem to be now #590

Closed
JOrion9999 opened this issue Feb 3, 2018 · 10 comments
Closed

PTZ issues ... was working but doesn't seem to be now #590

JOrion9999 opened this issue Feb 3, 2018 · 10 comments
Labels

Comments

@JOrion9999
Copy link

JOrion9999 commented Feb 3, 2018

Hi plablepixels,

I was helping you out testing while you fixed the settings but now I notice that I cant get my PTZ to work anymore. Im not sure when it stopped .. I started off with one inexpensive PTZ cam and it turned out to be very decent and I was able to get the PTZ to work in zoneminder so I bought 2 more ... I believe it was before we started messing with fixing the settings issues we were having but when I had it set up with the one PTZ cam it was functioning sort of... it did have a bug that when you put the phone in landscape only the bottom 3 points in the "movement star" would work .. the lower left, lower and lower right .. you couldn't raise it or use the left and right but it fully worked in portrait ... lol got a little side tracked but now all three wont work .. the presets would work before but don't anymore either .. I made a log and see some weird things .... maybe its my server or something .. here is the log:

Logs for version:1.2.515 (android) Feb 3, 2018 12:35 AM ERROR Error sending event command "CSRF check failedif (top != self) {top.location.href = self.location.href;}var csrfMagicToken = "sid:d0d1fe0c36029e09046eacbe08d4589cb11f540b,1517636115";var csrfMagicName = "__csrf_magic";\n \n

CSRF check failed. Your form session may have expired, or you may not have\n cookies enabled.

\n \n

Debug:

CsrfMagic.end();\n" Feb 3, 2018 12:35 AM INFO MontageCtrl:Stopping network pull... Feb 3, 2018 12:35 AM INFO Restarting montage timer, closing Modal... Feb 3, 2018 12:35 AM DEBUG Modal removed - killing connkey Feb 3, 2018 12:35 AM DEBUG Modal is open, closing it Feb 3, 2018 12:35 AM ERROR Error sending PTZ:"CSRF check failedif (top != self) {top.location.href = self.location.href;}var csrfMagicToken = "sid:cccf958243382eae7632d20ab8cc71261aad694b,1517636110";var csrfMagicName = "__csrf_magic";\n \n

CSRF check failed. Your form session may have expired, or you may not have\n cookies enabled.

\n \n

Debug:

CsrfMagic.end();\n" Feb 3, 2018 12:35 AM DEBUG PTZ command is a preset, so skipping xge/lge Feb 3, 2018 12:35 AM INFO Switching playback via nphzms Feb 3, 2018 12:35 AM INFO ConfigurePTZ Modal: ControlDB reports PTZ command to be moveCon Feb 3, 2018 12:35 AM DEBUG ConfigurePTZ Number of presets is 16 Feb 3, 2018 12:35 AM DEBUG ConfigurePTZ Preset value is 1 Feb 3, 2018 12:35 AM DEBUG configurePTZ: control data returned {"control":{"Control":{"Id":"12","Name":"Vstarcam_C24S","Type":"Remote","Protocol":"Vstarcam_C24S","CanWake":"0","CanSleep":"0","CanReset":"1","CanZoom":"0","CanAutoZoom":"0","CanZoomAbs":"0","CanZoomRel":"0","CanZoomCon":"0","MinZoomRange":"0","MaxZoomRange":"0","MinZoomStep":"0","MaxZoomStep":"0","HasZoomSpeed":"0","MinZoomSpeed":"0","MaxZoomSpeed":"0","CanFocus":"0","CanAutoFocus":"0","CanFocusAbs":"0","CanFocusRel":"0","CanFocusCon":"0","MinFocusRange":"0","MaxFocusRange":"0","MinFocusStep":"0","MaxFocusStep":"0","HasFocusSpeed":"0","MinFocusSpeed":"0","MaxFocusSpeed":"0","CanIris":"1","CanAutoIris":"0","CanIrisAbs":"1","CanIrisRel":"0","CanIrisCon":"0","MinIrisRange":"1","MaxIrisRange":"238","MinIrisStep":"1","MaxIrisStep":"10","HasIrisSpeed":"0","MinIrisSpeed":"0","MaxIrisSpeed":"0","CanGain":"0","CanAutoGain":"0","CanGainAbs":"0","CanGainRel":"0","CanGainCon":"0","MinGainRange":"0","MaxGainRange":"0","MinGainStep":"0","MaxGainStep":"0","HasGainSpeed":"0","MinGainSpeed":"0","MaxGainSpeed":"0","CanWhite":"1","CanAutoWhite":"0","CanWhiteAbs":"1","CanWhiteRel":"0","CanWhiteCon":"0","MinWhiteRange":"1","MaxWhiteRange":"238","MinWhiteStep":"1","MaxWhiteStep":"10","HasWhiteSpeed":"0","MinWhiteSpeed":"0","MaxWhiteSpeed":"0","HasPresets":"1","NumPresets":"16","HasHomePreset":"1","CanSetPresets":"1","CanMove":"1","CanMoveDiag":"1","CanMoveMap":"0","CanMoveAbs":"0","CanMoveRel":"0","CanMoveCon":"1","CanPan":"1","MinPanRange":"0","MaxPanRange":"0","MinPanStep":"0","MaxPanStep":"0","HasPanSpeed":"0","MinPanSpeed":"0","MaxPanSpeed":"0","HasTurboPan":"0","TurboPanSpeed":"0","CanTilt":"1","MinTiltRange":"0","MaxTiltRange":"0","MinTiltStep":"0","MaxTiltStep":"0","HasTiltSpeed":"0","MinTiltSpeed":"0","MaxTiltSpeed":"0","HasTurboTilt":"0","TurboTiltSpeed":"0","CanAutoScan":"0","NumScanPaths":"0"}}} Feb 3, 2018 12:35 AM DEBUG configurePTZ : getting controllable data https:///api/controls/12.json Feb 3, 2018 12:35 AM DEBUG configurePTZ: called with mid=12 Feb 3, 2018 12:35 AM DEBUG Getting zones using:https:///api/zones/forMonitor/12.json Feb 3, 2018 12:35 AM INFO Modal: Stream authentication construction: &auth=88d12c6eba46ce02a3ebf3b3e10dacf7 Feb 3, 2018 12:35 AM INFO DataModel: Extracted a stream authentication key of: 88d12c6eba46ce02a3ebf3b3e10dacf7 Feb 3, 2018 12:35 AM DEBUG DataModel:

Getting auth from https:///index.php?view=watch∣=9&connkey=320589 with mid=9 Feb 3, 2018 12:35 AM DEBUG MonitorModalCtrl

called from app.montage Feb 3, 2018 12:35 AM INFO Using stream mode single Feb 3, 2018 12:35 AM INFO Cancelling montage timer, opening Modal Feb 3, 2018 12:35 AM DEBUG MontageCtrl: Open Monitor Modal with monitor Id=12 and Controllable:1 with control ID:12 Feb 3, 2018 12:35 AM DEBUG doing the jiggle and dance... Feb 3, 2018 12:35 AM DEBUG All images loaded, doing image layout Feb 3, 2018 12:35 AM INFO Arranging as per packery grid Feb 3, 2018 12:35 AM DEBUG All images loaded Feb 3, 2018 12:34 AM DEBUG skipping image refresh, packery is still loading Feb 3, 2018 12:34 AM INFO Monitors that are active and not DOM hidden: 3 while grid has 3 Feb 3, 2018 12:34 AM INFO found a packery layout Feb 3, 2018 12:34 AM INFO Stream authentication construction: &auth=88d12c6eba46ce02a3ebf3b3e10dacf7 Feb 3, 2018 12:34 AM INFO DataModel: Extracted a stream authentication key of: 88d12c6eba46ce02a3ebf3b3e10dacf7 Feb 3, 2018 12:34 AM DEBUG DataModel: Getting auth from https:///index.php?

view=watch∣=9&connkey=368791 with mid=9 Feb 3, 2018 12:34 AM INFO Inside Montage Ctrl:We found 3 monitors Feb 3, 2018 12:34

AM DEBUG skipping image refresh, packery is still loading Feb 3, 2018 12:34 AM DEBUG Setting up cycle interval of:10000 Feb 3, 2018 12:34 AM DEBUG bandwidth: highbw montage refresh set to: 1 Feb 3, 2018 12:34 AM DEBUG Setting image mode to snapshot, will change to image when packery is all done Feb 3, 2018 12:34 AM DEBUG Multiport=0 Feb 3, 2018 12:34 AM INFO sending Cached ZM_MIN_STREAMING_PORT 0 Feb 3, 2018 12:34 AM INFO Returning pre-loaded list of 3 monitors

I don't believe I changed anything on the server and PTZ works in my browser ... could this be a byproduct of your fixes or do I need to look further into my server to see if its blocking something it shouldn't be? ..

sorry about the mispost .. forgot I was looking to see if the eventserver had changed :)

@pliablepixels
Copy link
Member

Which version of Zone Minder are you running? Did you happen to update ZM ? I am on travel till mid Feb, so it might be a bit slow for the next few weeks.

@JOrion9999
Copy link
Author

JOrion9999 commented Feb 4, 2018

Zoneminder is v1.30.4 and I dont think its updated in a while ... i guess there may be something newer but as of now it says its up to date

and no problem .. you do what you need to do :) I can still work around this so .. no rush :)

@pliablepixels
Copy link
Member

I just tried with 1.31.1 - seems to work. I know ZM folks did work on CSRF between 1.30.4 and 1.31 - if you'd like to try

@JOrion9999
Copy link
Author

JOrion9999 commented Feb 21, 2018 via email

@pliablepixels
Copy link
Member

I'd suggest you try with zmNinja desktop first. You can download from https://github.com/pliablepixels/zmNinja/releases

@JOrion9999
Copy link
Author

JOrion9999 commented Feb 21, 2018 via email

@JOrion9999
Copy link
Author

Whelp..... Made a VM and did a clean install of Zoneminder v1.30.4 (also tried 1.31) and installed one camera and ptz ... I am getting the same error on the VM. I am running a file I found in the forums to get the PTZ working .. its not one that came with the install... I don't think that is a problem .. as I say .. it works with the webpage controls .. but just in case ... here is what I am using.

It seems that maybe zmNinja just doesn't like my setup for some reason .. A clean install with a clean web server and zoneminder install ... and I still cant get it to work anymore ... Oh well .. no big deal .. I would only use that when out and probably "showing off" the setup ... I can launch the webpage if I want to show off the camera control :)... zmNinja is still good for getting notifications and quickly viewing a live alert or live video.

LOL in a round about way it did help me tho .. I wanted to find a way through terminal / script to move a camera or set of cameras to a specific preset and when I set up the new server I forgot to add the Vstarcam_C24S.pm and it threw an error that showed me the command it was trying to send. I was able use that with my other zoneminder setup and now I know what I need and the format I need it in to set a camera to a preset through a script or command line

@pliablepixels
Copy link
Member

pliablepixels commented Feb 23, 2018

Not sure what is going on. My PTZ works, but I am using a diff. camera. Is it possible to get access to the VM with the 1 camera? If so, please send me an email with details. Please make sure that ZM version is 1.31 GA (not an experimental branch)

@JOrion9999
Copy link
Author

JOrion9999 commented Feb 23, 2018

Hmmm... 1.31 GA ... don't know what that is or where to find it ... I'm using the only 1.31 (its now 1.31.1) I can find .... the one from ppa:iconnor/zoneminder-master ... is there a version other than that? I only see ZoneMinder Stable, ZoneMinder Master Snapshots and ZoneMinder with StorageAreas.

If the zoneminder-master is ok let me know ... if not .. can you give me a link to the version you would like me to use for the test server.

@stale
Copy link

stale bot commented Apr 25, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 25, 2018
@stale stale bot closed this as completed May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants