Created
May 2, 2017 19:43
-
-
Save omiq/84646600dfc05c794976b5de306fbc4a to your computer and use it in GitHub Desktop.
Data.Sparkfun/Phant example
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 phant | |
import time | |
log = phant.writer_factory( | |
'http://data.sparkfun.com/input/qwerty10987?private_key=abcdefgh12345', | |
key=str, | |
value=int | |
) | |
i = 0 | |
while True: | |
print log(key="datas", value=i) | |
i += 1 | |
time.sleep(5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment