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
import telepot | |
import picamera | |
import RPi.GPIO as GPIO | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setwarnings(False) | |
def handle(msg): | |
global sendPhoto | |
global chat_id |
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
import telepot | |
import picamera | |
import RPi.GPIO as GPIO | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setwarnings(False) | |
def handle(msg): | |
global sendPhoto | |
global chat_id |
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
#include <Servo.h> | |
#include <Wire.h> | |
Servo myservo; | |
#define SLAVE_ADD 0x08 | |
#define NOTE_C5 523 | |
#define NOTE_E5 659 | |
#define NOTE_G5 784 | |
#define BUTTON 2 |
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
import getopt | |
import mosquitto | |
import sys | |
final_mid = 0 | |
def on_connect(mosq, userdata, rc): | |
if userdata == True: | |
print("rc: "+str(rc)) |
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
title: Home | |
views: | |
- title: View 1 | |
cards: | |
- &card1 | |
type: entities | |
title: Card 1 | |
show_header_toggle: false | |
entities: | |
- light.bedroom |
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
title: Home | |
views: | |
- title: View 1 | |
cards: | |
- &card1 | |
type: entities | |
title: Card 1 | |
show_header_toggle: false | |
entities: | |
- light.bedroom |
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
################################################################ | |
## Packages / Motion Lights Off | |
## | |
## @description Delay and transition lights off after motion is no longer detected | |
## @component automation, binary_sensor, input_number, light, sensor | |
## @license MIT | |
## @author @Vasiley, Dale Higgs <@dale3h> | |
################################################################ | |
homeassistant: |
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
# Add to file: /etc/fail2ban/jail.local | |
[nginx-badbots] | |
enabled = true | |
port = http,https | |
filter = nginx-badbots | |
logpath = %(nginx_access_log)s | |
maxretry = 1 | |
findtime = 604800 | |
bantime = 604800 |
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
# Minecraft Pi Automated Bridge Builder | |
# Created by Joe Coburn for Make Use Of | |
# 15/07/2015 | |
# http://www.makeuseof.com/connecting-minecraft-pi-real-world-beginner-electronics | |
from mcpi.minecraft import Minecraft | |
mc = Minecraft.create() # create Minecraft Object | |
while True: |
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
# Minecraft Pi Automated Bridge Builder | |
# Created by Joe Coburn for Make Use Of | |
# 15/07/2015 | |
# http://www.makeuseof.com/connecting-minecraft-pi-real-world-beginner-electronics | |
from mcpi.minecraft import Minecraft | |
mc = Minecraft.create() # create Minecraft Object | |
while True: |
OlderNewer