Skip to content

Instantly share code, notes, and snippets.

@omiq
Created May 2, 2017 19:43
Show Gist options
  • 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