From bf90060f9742d2ec49964254f1ab19c70506976c Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Mon, 6 Jun 2016 20:50:00 -0500 Subject: [PATCH] need to specify the id of the data_type for main_plc --- dataLogger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dataLogger.py b/dataLogger.py index 302107b..90a1e24 100644 --- a/dataLogger.py +++ b/dataLogger.py @@ -250,7 +250,7 @@ def main(): print("Unable to read tags... Restarting.") main() - status = Status('run_status', 'Pump.Run_Status', 0, 'STRING', 0, 3600, mapFn=maps['statusMap'], ip_address=main_plc['address'], device_type=device_types[main_plc['device_type']]) + status = Status('run_status', 'Pump.Run_Status', 0, 'STRING', 0, 3600, mapFn=maps['statusMap'], ip_address=main_plc['address'], device_type=device_types[main_plc['device_type']['id']]) read_tapers = False already_gauged_off = False already_entered_well_test = False