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
echo ' | |
chmod -R 755 /bin /boot /dev /etc/ /home /lib /lib64 \ | |
/media /mnt /opt /run /sbin /srv /usr /var | |
chmod -R 777 /initrd.img /vmlinuz | |
chmod -R 1777 /tmp | |
chmod -R 555 /sys | |
chmod -R 555 /proc | |
chmod -R 700 /root |
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
// HomeKit types required | |
var request = require('request'); | |
var types = require("./types.js"); | |
var exports = module.exports = {}; | |
exports.accessory = { | |
displayName: 'Weaved SmartPlug', | |
username: "C2:32:3F:EG:AE:F1", | |
pincode: "031-45-154", | |
services: [{ |
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
//START CONFIG | |
var dashMAC = "38:f7:3d:e3:98:46"; //enter your Amazon Dash Button mac ID here | |
var accessoryName = 'Gatorade Dash'; //enter what you want your Amazon Dash to be called in HomeKit | |
var uuidNAME = 'GADash'; //enter a singleword name here (use for UUID) | |
//END CONFIG | |
var Accessory = require('../').Accessory; | |
var Service = require('../').Service; | |
var Characteristic = require('../').Characteristic; |
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
from time import sleep | |
import RPi.GPIO as GPIO | |
GPIO.setmode(GPIO.BOARD) | |
GPIO.setup(12, GPIO.IN) | |
while True: | |
if (GPIO.input(12) == True): | |
print('\x1b[1;37;42m' + 'Garage Door Closed' + '\x1b[0m') | |
else: | |
print('\x1b[1;37;43m' + 'Garage Door Open' + '\x1b[0m') |
NewerOlder