
I think this is possible and has been discussed, but I can not find it. Is there a format to execute scripts or commands using an application that can send HTTP GET or POST commands but not be using a web browser, either with the HTTP Server or HTTP Server (custom).
I don't think I can do it with the HTTP Custom because it uses AJAX and I don't know how I would format a request (and unfortunately, the documentation is fairly minimal) but I thought someone was already doing this with the simple HTTP server, embedding the user name and hte request in the URL of the GET.
I also know I can do this with Telnet using the TCP Clients object, and I may use that for my solution, but it is a little more limiting.
I'll explain my goal in case it provides any other thought.
I want to be able to drive my robot from my Android phone or an Android Wear smartwatch. I don't want to use the mobile interface, I want to have an embedded computer running ARC performing a number of tasks, the remote interface just to give additional commands.
I have two applications that can easily send HTTP Get or Post requests and allow me to build custom interfaces. Anymote smart remote, and Tasker. With a Tasker plugin I can also send Telnet requests, and I may wind up going in that direction if I am wrong that this can't be done with one of the web servers, but that isn't really the direction I wanted to go. (I think I could also do it using Eventghost to receive the HTTP requests and then send telnet requests to ARC, and I am sure I could write a plugin or do something with the SDK once my C# skills are up to speed, but I could swear this is existing functionality and I just can't find the right nomenclature for the command).
Alan
Alan,
Have fun learning it! It is not nearly as hard as I expected it to be after hearing about C and C++. I am by no means a master, or even proficient in the language, but am having a blast with it. If you are looking for advice on learning materials I used lynda.com. It does have a monthly subscription but I have found it well worth it. They have an instructor named David Gassner, that has helped me understand many different concepts, in fact, I would say my JavaScript understanding has improved greatly because of how he explain object-oriented programming.
If you are looking for learning materials just let me know, I have quite a few.
Again, best of luck.
Thanks @mikebmac
I have a book to start, and some on-line resources I gathered a while ago. I'll touch base with you if I think I need more.
Alan
@Mickey666Maus
I found this old post from Rich about using the Eventghost HTTP server plugin to send Telnet commands to ARC: https://synthiam.com/Community/Questions/5128
This could easily be adapted to use with the IFTTT Maker channel. One warning though, the eventghost HTTP plugin is not really designed to be exposed to the Internet. It has very little security built in and has not been well tested for vulnerabilities. Writing an asp.net web page to interact with the ARC SDK would probably be the better way to do this since you can use the built in Windows web server, which is a little better, and there are published best practices for securing it.
Alan
Here is another option for IFTTT integration. IFTTT has a Twitter channel that can both respond to and send tweets.
ARC can send and respond to tweets.
Use the Twitter channel as the link between ARC and any other IFTTT channel (or still use hte Maker channel for having EZ-Robot initiate requests, and Twitter to communicate requests back). ( I had missed that EZ-Robot can react to tweets until someone else asked in this thread: https://synthiam.com/Tutorials/Help.aspx?id=170 )
Alan
Hey Alan, missed the one from five days ago...but will check it out now! Also the tweet option seems to be very interesting, I was researching on some Twitterbots recently...which could give you different flavors of implementing chatbots!
Lets see where this is taking us...I think also your research into Android wear is superawesome!
Lets try to keep the topic updated...
So after reading this it made we wonder what would be the benefit of using the Telnet client over the HTTP server build into ARC? I am pretty new to this so forgive me if this is a stupid question... eek
I was able to connect IFTTT and also 3ds max (all Autodesk software is available free for students for 3 years at the moment, try it it is awesome!) to ARC using the HTTP server!
I was using the IFTTT DO button to move a servo which worked well, @Alan helped me to straighten things out with port forwarding my router!
Also I was able to trigger events with the Maker Channel, so this is sort of the two way connection we were looking for right?
IFTTT is kind of limited there are more interesting things out there which are good open source IFTTT alternatives, but right now I am back to just constructing my robot physically, which is a lot of fun!
Talk to you guys soon