Asked — Edited

Running Your Bot Through A Custom Website/Http Server Layout

Hey guys. Little project I want to look into.

As I mentioned in this thread, I want to make a webpage/custom web server layout and run the ez-b through this. I have html background, so designing the webpage should be no problem, but I know little of getting ARC stuff into that page. I tried setting up the http server but it wouldn't work. So, who's up for helping me try this?


ARC Pro

Upgrade to ARC Pro

Take control of your robot's destiny by subscribing to Synthiam ARC Pro, and watch it evolve into a versatile and responsive machine.

#17  

After a fair bit of testing I still can't get query to send the url. Any help?

United Kingdom
#18  

Very rough and probably could be done much better but try

<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("button").click(function(){
    $.get("http://192.168.0.115:8080/Exec?password=admin&script=Forward()",function(){
    });
  });
});
</script>
</head>
<body>

<button>^</button>

</body>
</html>
#19  

Doesn't seem to work. Its not getting to ARC. If I use the url directly, it works, but I'm opening another tab.

United Kingdom
#20  

Works fine for me in Chrome running on Apache2 server with ARC running the HTML server and a H-Bridge control.

It's also a slight adaptation to the demo code found on W3Schools. Try the example, the only difference is it doesn't have anything in the function but still calls the url.

If the HTML I posted plus the examples above and the API documentation are not making it easy enough for you then I cannot think of any other method to help you to be honest, I provided the code which works...

#21  

I also used the w3schools example. Its really weird. I'm putting mine in an html file and then opening the file in IE and pressing the button. I'll try chrome.

#22  

It doesn't work in IE! Great. Thanks Rich. Now about that camera...

#23  

I am shocked, simply shocked, that something would work in Chrome and not IE;)

I only use IE at work because I have to. It never gets used on my home computers.

Alan

#24  

Hi, my names Technopro, and I have been a long time IE user. ("Hi Technopro" );)

(For those who don't get it, think therapy group.)