Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I'm working on a project that uses two Raspberry Pi's.

The idea is that I have one running at home, which stores all the files that I need to execute. I will take the other Raspberry Pi along to work to demonstrate something. For example:

I'm planning to create a web interface (Which is stored at home with PuTTY connections from the outside). The other Raspberry pi will be at the place I work with and the idea is that I can open a browser, type in the url of my server, push a button and it will send a signal to the second Pi (stored at work) which will trigger a set of LEDS.

I hope that make sense..

Questions:

1) Would Sockets be an ideal solution for the above?

2) Which Pi would be the Socket server? Since the Pi that is stored at my work is essentially "listening" out for a signal whereas the Pi stored at home is just sending the signal.

Hope someone can help me.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

You might want to have a look at WebIOPi:

WebIOPi is a REST framework and a webapp which allows you to control your Raspberry Pi's GPIO.

Using this you can control all the GPIO directions and Values from the browser graphically. Basically they built this on Rest framework.

share|improve this answer
    
Hi- If you just want to add a short answer please use comments. Otherwise try and expand your answer a bit. How to install? an example, picture, short tutorial. It is good answer it just needs more content. Thanks +1 –  ppumkin Feb 22 '13 at 11:11
    
@ppumkin Thanks for your kind suggestion, sure I will follow from next answers. Thanks again :) –  Jeshwanth Kumar N K Feb 22 '13 at 11:37
    
Although I've helped edit this to be a little clearer, I fail to see how this answers the original question. –  Mark Booth Feb 28 '13 at 13:01
    
@MarkBooth Thanks for the edit, I agree my answer not suits for questions he asked. But for idea he mentioned. –  Jeshwanth Kumar N K Mar 1 '13 at 4:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.