This file contains 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
/********************************************************************* | |
PRESENCE USE ME THIS AINT BAD | |
This is an example for our nRF51822 based Bluefruit LE modules | |
Pick one up today in the adafruit shop! | |
Adafruit invests time and resources providing this open source code, | |
please support Adafruit and open-source hardware by purchasing | |
products from Adafruit! |
This file contains 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 | |
/* | |
At sundown, turn off upstairs Unifi AP status LED | |
At sunrise, turn status LED on | |
Crontab: | |
* * * * * ~/unifi-php-api/upstairs-light.php > /dev/null 2>&1 | |
- Presence | |
*/ | |
require_once('Client.php'); |
This file contains 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
/********************************************************************* | |
Presence's fucking simon clock thing | |
*********************************************************************/ | |
#include <Arduino.h> | |
#include <SoftwareSerial.h> | |
#include "Adafruit_BLE.h" | |
#include "Adafruit_BluefruitLE_SPI.h" | |
#include "Adafruit_BluefruitLE_UART.h" | |
#include "BluefruitConfig.h" |