Skip to content

Instantly share code, notes, and snippets.

View wireddude's full-sized avatar
🏠
Working from home

wireddude wireddude

🏠
Working from home
  • 10:52 (UTC -07:00)
View GitHub Profile
### Keybase proof
I hereby claim:
* I am wireddude on github.
* I am dmkanter (https://keybase.io/dmkanter) on keybase.
* I have a public key ASAq06efGPZaW8_Z3CW9FIj5v3OitC4jK6FdL0x07cyHMgo
To claim this, I am signing this object:
@wireddude
wireddude / iot-plant-sensor-rocketchat.py
Created January 26, 2016 03:47
uses a raspberrypi and plant sensor to determine when my house plant needs water. When it does it sends a notification to rocket.chat to notify me.
#!/usr/bin/python
import RPi.GPIO as GPIO
import time
import os
GPIO.setmode(GPIO.BCM)
# set up the GPIO channels - one input and one output
GPIO.setup(23, GPIO.IN)
# input from pin 23
while 1:
@wireddude
wireddude / log-ios-battery-2-thingspeak.py
Created December 18, 2015 23:08
log-ios-battery-2-thingspeak.py
# from ios workflow app, send battery percentage to clipboard before executing this
import requests
import clipboard
import webbrowser
battery = clipboard.get()
requests.post('https://api.thingspeak.com/update?key=[APIKEY]&field5='+battery)
webbrowser.open("safari-http://thingspeak.com/channels/[CHANNEL_ID]/private_show")