{"action":"created","issue":{"url":"https://api.github.com/repos/Motion-Project/motion/issues/704","repository_url":"https://api.github.com/repos/Motion-Project/motion","labels_url":"https://api.github.com/repos/Motion-Project/motion/issues/704/labels{/name}","comments_url":"https://api.github.com/repos/Motion-Project/motion/issues/704/comments","events_url":"https://api.github.com/repos/Motion-Project/motion/issues/704/events","html_url":"https://github.com/Motion-Project/motion/issues/704","id":313598710,"number":704,"title":"How to use webcontrol","user":{"login":"mika-nt28","id":5501935,"avatar_url":"https://avatars2.githubusercontent.com/u/5501935?v=4","gravatar_id":"","url":"https://api.github.com/users/mika-nt28","html_url":"https://github.com/mika-nt28","followers_url":"https://api.github.com/users/mika-nt28/followers","following_url":"https://api.github.com/users/mika-nt28/following{/other_user}","gists_url":"https://api.github.com/users/mika-nt28/gists{/gist_id}","starred_url":"https://api.github.com/users/mika-nt28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mika-nt28/subscriptions","organizations_url":"https://api.github.com/users/mika-nt28/orgs","repos_url":"https://api.github.com/users/mika-nt28/repos","events_url":"https://api.github.com/users/mika-nt28/events{/privacy}","received_events_url":"https://api.github.com/users/mika-nt28/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2018-04-12T06:55:24Z","updated_at":"2018-04-19T06:05:49Z","closed_at":null,"author_association":"NONE","body":"0. Reviewed guide and contributing documents? (Yes):\r\n1. version [current git]: \r\n2. installed as a package or compiled from sources [git]: \r\n3. standalone or part of third party [motion]: \r\n4. video stream et cam (mjpeg, rtsp, other), mmal]: \r\n5. hardware other\r\n6. operating system [16.04, Stretch, etc, FreeBSD, other]: \r\n\r\nHello,\r\nI'm update Motion with the current version, and my plugin using the WebControl doesn't works.\r\nI set the parameter file with \r\n`$file='/usr/local/etc/motion/motion.conf';\r\n\t\tif($fp = fopen($file,\"w\")){\r\n\t\t\tfputs($fp,'daemon on');\r\n\t\t\tfputs($fp, \"\\n\");\r\n\t\t\tfputs($fp,'setup_mode off');\r\n\t\t\tfputs($fp, \"\\n\");\r\n\t\t\tfputs($fp,'logfile /etc/motion/motion.log');\r\n\t\t\tfputs($fp, \"\\n\");\r\n\t\t\tfputs($fp,'log_level 6');\r\n\t\t\tfputs($fp, \"\\n\");\r\n\t\t\tfputs($fp,'log_type all');\r\n\t\t\tfputs($fp, \"\\n\");\r\n\t\t\tfputs($fp,'webcontrol_port '.config::byKey('Port', 'motion'));\r\n\t\t\tfputs($fp, \"\\n\");\r\n\t\t\tfputs($fp,'webcontrol_localhost off');\r\n\t\t\tfputs($fp, \"\\n\");\r\n\t\t\tfputs($fp,'webcontrol_interface 1');\r\n\t\t\tfputs($fp, \"\\n\");\r\n\t\t\tfputs($fp,'webcontrol_parms 2');\r\n\t\t\tfputs($fp, \"\\n\");\r\n\t\t\tforeach(eqLogic::byType('motion') as $Camera){\t\t\r\n\t\t\t\tif($Camera->getIsEnable()){\r\n\t\t\t\t\tif(file_exists('/etc/motion/camera'.$Camera->getId().'.conf')){\r\n\t\t\t\t\t\tfputs($fp,'camera /etc/motion/camera'.$Camera->getId().'.conf');\r\n\t\t\t\t\t\tfputs($fp, \"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}`\r\nI added this parameter in the Camera file to link with my motion plugin\r\n`fputs($fp, 'camera_id '.$this->getId());`\r\nWhen I put this request, I have no answer\r\nhttp://192.168.0.1:8080/66/detection/pause\r\nor\r\nhttp://192.168.0.1:8080/66/action/snapshot\r\nBut this request\r\nhttp://192.168.0.1:8080/\r\nReply\r\nMotion 4.1.1+git20180405-182c8a3 Running [3] Cameras 0 1 2 3"},"comment":{"url":"https://api.github.com/repos/Motion-Project/motion/issues/comments/382620960","html_url":"https://github.com/Motion-Project/motion/issues/704#issuecomment-382620960","issue_url":"https://api.github.com/repos/Motion-Project/motion/issues/704","id":382620960,"user":{"login":"mika-nt28","id":5501935,"avatar_url":"https://avatars2.githubusercontent.com/u/5501935?v=4","gravatar_id":"","url":"https://api.github.com/users/mika-nt28","html_url":"https://github.com/mika-nt28","followers_url":"https://api.github.com/users/mika-nt28/followers","following_url":"https://api.github.com/users/mika-nt28/following{/other_user}","gists_url":"https://api.github.com/users/mika-nt28/gists{/gist_id}","starred_url":"https://api.github.com/users/mika-nt28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mika-nt28/subscriptions","organizations_url":"https://api.github.com/users/mika-nt28/orgs","repos_url":"https://api.github.com/users/mika-nt28/repos","events_url":"https://api.github.com/users/mika-nt28/events{/privacy}","received_events_url":"https://api.github.com/users/mika-nt28/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T06:05:49Z","updated_at":"2018-04-19T06:05:49Z","author_association":"NONE","body":"I deploy in my plugin the github master branch.\r\nHow participating in the testing now rather than waiting for an alert."}}
{"actor":{"display_login":"mika-nt28"}}