mmartins
Posts: 3
Joined: Wed Aug 17, 2016 3:39 am

Raspberry and Arduino connected separately to a website

Wed Aug 17, 2016 3:53 am

Hey guys!

I would like to connect a Raspberry and an Arduino separately to a same website.

I want to stream my webcam image using my raspberry, but my raspberry barely does it. So I thought about using an Arduino to do the other part of my project. I want to connect both to the same webpage, and watch the video from my raspberry, and control my arduino from it, is it possible?

Example: I would like to monitor my door(raspberry), and if it is opened, I would like to close it(arduino).

Thanks guys!

jordus10
Posts: 9
Joined: Tue Aug 16, 2016 7:58 pm

Re: Raspberry and Arduino connected separately to a website

Wed Aug 17, 2016 8:46 am

Yes, it is possible. You must just add some buttons and javascript code to your website. When button will be pressed, the javascript script will launch program on Raspberry Pi , which will close the doors.

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Raspberry and Arduino connected separately to a website

Wed Aug 17, 2016 9:49 am

Only if you write appropriate server-side software. You must understand HTTP, AJAX and a server-side
scripting language or use node.js (JavaScript) on the server side .

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

Return to “Networking and servers”