#!/usr/bin/env python3 import json with open('/home/mdares/.node-red/flows.json', 'r') as f: flows = json.load(f) # Find Fetch Graph Data node and change its wiring for node in flows: if node.get('id') == 'fetch_graph_data_node_id': # Change wiring from db_guard_db_guard_graphs to format_graph_data_node_id # This bypasses the database entirely node['wires'] = [['format_graph_data_node_id']] print("✓ Updated Fetch Graph Data to send directly to Format Graph Data (bypass DB)") break with open('/home/mdares/.node-red/flows.json', 'w') as f: json.dump(flows, f, indent=4) print("✓ flows.json updated - graphs should now receive data")