Files
Virtual-Box/.claude/file-history/138484f6-474d-4740-8791-b8f49f53e200/4aa3e49dec18792a@v2
2025-12-02 16:27:21 +00:00

19 lines
507 B
Python

#!/usr/bin/env python3
import json
with open('/home/mdares/.node-red/flows.json', 'r') as f:
flows = json.load(f)
# Find the inject node and set it to run once on startup
for node in flows:
if node.get('id') == 'create_table_inject_temp':
node['once'] = True
node['onceDelay'] = 1
print("✓ Set inject node to run once on startup")
break
with open('/home/mdares/.node-red/flows.json', 'w') as f:
json.dump(flows, f, indent=4)
print("✓ Updated flows.json")