STREAM/SYNC DATA
Streams (STX) - A simple solution for synchronizing
and controlling software and hardware
components in real-time
#import library
import neuronum
#set cell connection
cell = neuronum.Cell(
host="community::cell",
password="communitycell1234",
network="neuronum.net",
synapse="communitycellsynapsecommunitycellsynapse"
)
#sync stream
STX = "n9gW3LxQcecI::stx"
stream = cell.sync(STX)
for operation in stream:
label = operation.get("label")
value = operation.get("data").get("key")
ts = operation.get("time")
stxID = operation.get("stxID")
operator = operation.get("operator")
print(label, value, ts, stxID, operator)