Created
December 18, 2015 23:08
-
-
Save wireddude/908200332c289209e46f to your computer and use it in GitHub Desktop.
log-ios-battery-2-thingspeak.py
This file contains hidden or 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 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") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This needs to be run from pythonista.
You will need to also setup a thingspeak account as well first.