Skip to content

Instantly share code, notes, and snippets.

@omiq
Created May 2, 2017 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omiq/84646600dfc05c794976b5de306fbc4a to your computer and use it in GitHub Desktop.
Save omiq/84646600dfc05c794976b5de306fbc4a to your computer and use it in GitHub Desktop.
Data.Sparkfun/Phant example
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