Add live metadata updates
This commit is contained in:
parent
041fcf6b71
commit
b6a40f2c93
@ -141,6 +141,10 @@ def measure(
|
||||
elif type(recv) == tuple and recv[0] == "led_script":
|
||||
log.info(f"Received 'led_script', replacing script")
|
||||
led_script = recv[1]
|
||||
elif type(recv) == tuple and recv[0] == "metadata":
|
||||
log.info(f"Received 'metadata', updating metadata")
|
||||
data.metadata |= recv[1]
|
||||
data.write_metadata()
|
||||
else:
|
||||
log.error(f"Received invalid message: '{recv}'")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user