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
# I created a repo for this project here: https://github.com/meub/aura-frame-downloader |
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 <ESP8266WiFi.h> | |
// WiFi settings | |
const char* ssid = "SSID_NAME"; | |
const char* password = "SSID_PASSPHRASE"; | |
// Device Settings | |
// I use the last 6 characters of the WiFi MAC address as device ID | |
const char* device_id = "123456"; |
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
/* | |
* Belkin Wemo Plug Toggle, tested on an ESP-01S | |
* | |
This Arduino sketch checks the status of a Belkin Wemo Plug. | |
If the switch is off, it makes a second request to turn it on. If the | |
switch is on, it makes a second request to turn it off. It's highly | |
recommended you give the Wemo Switch and the device running this code | |
static IPs on your network. | |
*/ |
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
#!/usr/bin/env python | |
# Raspberry PI Bell Ringer | |
import re | |
import time | |
import json | |
import os | |
import slack | |
import RPi.GPIO as GPIO # Importing the GPIO library |
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
#!/bin/bash | |
export PATH="$HOME/bin:$PATH" | |
export PATH="$HOME/.local/bin:$PATH" | |
if ps -aux | grep -v grep | grep "pi-servo.py" >/dev/null | |
then | |
echo "Process is running." | |
else | |
echo "Process is not running. Starting it up..." | |
python3 /home/pi/pi-servo.py |
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
#!/usr/bin/env python | |
import time | |
import RPi.GPIO as GPIO # Importing the GPIO library | |
from time import sleep # Import sleep module from time library | |
# Set up GPIO | |
servo_pin = 21 # GPIO Pin where servo is connected | |
GPIO.setmode(GPIO.BCM) |
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 random as r | |
import math as m | |
# Number of darts that land inside. | |
inside = 0 | |
# Total number of darts to throw. | |
total = 1000 | |
# Iterate for the number of darts. | |
for i in range(0, total): |
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
### Dash Button Hack ### | |
DD WRT > Services > Services > Additional DNSMasq options: | |
dhcp-script=/tmp/custom.sh | |
DD WRT > Status > Wireless: | |
Press your Dash button. | |
Note your MAC address as it appears on the Status page. | |
DD WRT > Administration > Commands > Custom Script: |
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 os, sys, re, io, json, time | |
import mechanize | |
import pytz | |
import smtplib | |
import bs4 | |
from datetime import datetime, timedelta | |
from pytz import timezone | |
from bs4 import BeautifulSoup | |
from email.mime.text import MIMEText |
NewerOlder