Skip to content

Instantly share code, notes, and snippets.

@robertcedwards
Created February 1, 2013 02:05
Show Gist options
  • Save robertcedwards/4688594 to your computer and use it in GitHub Desktop.
Save robertcedwards/4688594 to your computer and use it in GitHub Desktop.
Form to control Electric IMP via HTTP IN
<html>
<head></head>
<body>
<form action="https://api.electricimp.com/v1/d8a33309dbb0d293/30420cd686f1a2a2"
METHOD="post">
<input type="hidden" id="value" name="value" value="1">
<input type="submit" value="Turn Coffee Pot On">
</form>
<form action="https://api.electricimp.com/v1/d8a33309dbb0d293/306b487a2ba03bf0
" METHOD="post">
<input type="hidden" id="value" name="value" value="1">
<input type="submit" value="Turn Coffee Pot Off">
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment