3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Control Your TV with Your Phone

Step 5Home Automation-ing

Home Automation-ing

In your web browser, type in the IP address you set in the previous step.  You'll get this web interface;

Code Capture
Here's how it works;  Type a code name (maybe 'Power', or 'Vol+', or whatever makes sense) in the box, then click on the 'Start Recording' button.  put your IR remote up to the IR receiver and push the button.  The command will be stored and the command list will dynamically be updated.  To play that code via the web interface just click on the 'Play Code' link next to the command name.  To clear the commands, click on the 'Clear Commands' link.

Scripting
Once the command has been recorded, you can easily script it.  In Linux / Mac, you just need to make a page request to the web clicker to send the IR;

wget 192.168.1.252/exec.cgi?0- >> /dev/null 2>&1
Will execute the first command on the list (Power on my Web Clicker)

wget 192.168.1.252/exec.cgi?1- >> /dev/null 2>&1
Will execute the second command, and so on.  Change the number after the ? in the url to execute a different command.  The >> /dev/null 2>&1 redirects the program output (and any error codes) to the trash - this is for non-interactive scripting.

If you're using curl, the command is almost the same;
curl --url 192.168.1.252/exec.cgi?1- >> /dev/null 2>&1

You could associate this command with a LIRC input, a chron job, or whatever else.  I don't know how to script in windows, but you can download wget for Windows & that's probably the first step.

« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
164
Followers
53
Author:Gadget Gangster(GadgetGangster.com)