This project will show you how to switch wireless relay switches (shown in the Figure 1) from your Raspberry Pi using your smartphone or a web browser.
Option 1: Duel Wireless Relay with Enclosure:
Option 2 : Wireless switch with one or two external relay switches (one depicted below)
Figure 2: Wireless relay switch components
WARNING : Mains electricity can kill if you are careless or lacking in knowledge of how to connect high voltage.
Instead of sunning webgpio.js you will run webserial.js. Check that it works by typing the following command:
The application should start and print the following message to the window:
Server running at http://youripaddress:8000/
That's it! Now you can move to a web browser on another PC or smart phone and navigate to the IP Address of your Raspberry Pi. We have set the server to run at port 8000 so you will type the following address into the browser:
Where youripaddress is replaced with the IP Address of your Raspberry Pi.
The screen should display a web page with an on and off button.
I hope you have enjoyed this project. If you are in need of help feel free to email us at email@example.com.