PTZ Camera using a System

72 views
Skip to first unread message

Pedro Henrique Saraiva Santos

unread,
Sep 29, 2015, 9:17:35 PM9/29/15
to CommandFusion Software

Hello,

I see some people trying to move their IP Camera using javascript, but I don't know java script at all and I'm trying in a different way and I'm wondering if this could work.


I created a new system with my camera IP and port, then I used a button to send the rest of the command. for example:

I used fiddler software to get the exactly URL to move my camera up 


So I created a System with IP 192.168.1.95 and port 81.(photo 1)
and I created a button to send a command with the rest (photo 2)

Why isn't this working? For me this should work.

Thank you!



systemcamera.JPG
ComandUp.JPG

Jarrod Bell

unread,
Sep 29, 2015, 9:27:52 PM9/29/15
to comman...@googlegroups.com
You are using a TCP Client system, which means the command data is only sending part of the HTTP Request. HTTP requests contain a lot more data than just the URL.
I would first try setting the system to "HTTP Client". This requires that the command is a GET request.

If you can paste the URL into a browser and the command works, then you are using a GET request. Otherwise it might be a POST request, and then you would need to use JavaScript and our CF.request function:
http://www.commandfusion.com/docs/scripting/net.html#cF.request

Regards,

Jarrod Bell
CommandFusion
www.commandfusion.com


--
You received this message because you are subscribed to the Google Groups "CommandFusion Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandfusio...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pedro Henrique Saraiva Santos

unread,
Sep 29, 2015, 9:43:40 PM9/29/15
to comman...@googlegroups.com
Hello Jarrod,

Yes, when I put the URL into a browser the command works and shows a msg "ok" or something like that (I'm not with the camera right now), so I thing just using "http client" will work!

As soon as I test it tomorrow I will send you a feedback

Changing the subject, do you know a book or something good to learn javascript (I'm already have a good base as programer). Just need to learn java to use at CF.

Thanks a lot!

--
You received this message because you are subscribed to a topic in the Google Groups "CommandFusion Software" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/commandfusion/gy__gptUa5s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to commandfusio...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Jarrod Bell

unread,
Sep 29, 2015, 9:54:05 PM9/29/15
to comman...@googlegroups.com
I would recommend first just reading our docs from top to bottom (check all the links at the top):
http://commandfusion.com/docs/scripting/debug.html

And also, check the docs in the wiki:
http://www.commandfusion.com/wiki2/software/knowledge-base/javascript

To learn more about scripting, we have plenty of examples you can download and see how it all works:
https://github.com/CommandFusion/DemoUserInterfaces

Try the clock one:
https://github.com/CommandFusion/DemoUserInterfaces/tree/master/Clock

And there are millions of tutorials and docs online that relate to JavaScript as a language.


Regards,

Jarrod Bell
CommandFusion
www.commandfusion.com


Pedro Henrique Saraiva Santos

unread,
Sep 29, 2015, 10:00:44 PM9/29/15
to comman...@googlegroups.com
Thanks a lot Jarrod!

Pedro Henrique Saraiva Santos

unread,
Sep 30, 2015, 12:40:10 PM9/30/15
to comman...@googlegroups.com
Hello again.

It worked!

Thanks
--

Reply all
Reply to author
Forward
0 new messages