lPW178VeY0WV::node
ID: n9gW3LxQcecI::stx / published by neuronum::cell
Waiting for live data...maybe a page reload can help
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="communitycellsynapse"
)

#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)
welcome@neuronum.net