コード例 #1
0
ファイル: test-sources.py プロジェクト: moonimal/artcast
def now():
  import datetime
  while True:
    artcast.send("test/now", datetime.datetime.utcnow().isoformat())
    time.sleep(1.0)
コード例 #2
0
ファイル: test-sources.py プロジェクト: moonimal/artcast
def tick():
  value = 0
  while True:
    artcast.send("test/tick", value)
    value += 1
    time.sleep(1.0)