Last active
September 29, 2015 22:23
-
-
Save wgroenewold/12a05d035acfe64d5f41 to your computer and use it in GitHub Desktop.
Maakplek Deurbel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Initial doorbell. | |
* | |
* @todo: Twitter connection | |
* @todo: Storage with timestamp to generate heatmaps | |
* @todo: Spaceapi.net eraan knopen. | |
*/ | |
function maakplekDeurbel($devid){ | |
$ch = curl_init('http://api.pushingbox.com/pushingbox?devid=' . $devid); | |
curl_exec ($ch); | |
curl_close ($ch); | |
$state = $_GET["state"]; | |
return $state; | |
} | |
Author
wgroenewold
commented
Sep 29, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment