Skip to content

Instantly share code, notes, and snippets.


Alex Meub meub

View GitHub Profile
meub /
Created May 3, 2022
This is a simple script to bulk download all the photos from an Aura digital picture frame ( Aura provides no easy way to bulk download photos off of frames so I created this for use with Python 3.
import requests
import json
import shutil
import time
import os.path
import re
# Put Aura email/password and download location file path here
email = ""
password = "yourpassword"
View 30MinuteWiFiCheck.ino
#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";
View BelkinWemoPlugToggle.ino
* 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.
View WiFiButton.ino
This Arduino sketch sends a GET request to the specified
domain and appends a unique DEVICE_ID as a query parameter
on the request. After sending the device will go into Deep
Sleep mode to conserve power.
#include <ESP8266WiFi.h>
const char* ssid = "SSID_NAME_HERE";
meub /
Created Mar 6, 2020
Pi Servo Slack Script
#!/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
meub /
Created Mar 4, 2020
Bash script to check if Pi servo process is running
export PATH="$HOME/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
if ps -aux | grep -v grep | grep "" >/dev/null
echo "Process is running."
echo "Process is not running. Starting it up..."
python3 /home/pi/
meub /
Last active Dec 25, 2020
Raspberry Pi Bell Ringer
#!/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
meub /
Created Mar 14, 2019 — forked from louismullie/
Monte Carlo Estimation of PI in Python
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):
meub / gist:5e6efce206ceb86f7075411c452530a0
Last active Apr 27, 2018
Instructions on how to setup DD-WRT to recognize Amazon Dash button presses
View gist:5e6efce206ceb86f7075411c452530a0
### Dash Button Hack ###
DD WRT > Services > Services > Additional DNSMasq options:
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:
meub / gist:cc4fe3e0d4269efb8569c7ce70a2addd
Last active Jun 7, 2022
Scrape ReserveAmerica for Available Campsites
View gist:cc4fe3e0d4269efb8569c7ce70a2addd
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