Fix for push to production

This commit is contained in:
Patrick McDonagh
2018-06-20 16:46:15 -05:00
parent 129c0f6e2c
commit a48be1162f
20 changed files with 12 additions and 28 deletions

View File

@@ -1 +1 @@
COMPILED TO RELINK

View File

@@ -1,7 +0,0 @@
CALIBRATION(156):F,ADDCALIBRATIONPOINT(157);F,DELETECALIBRATIONPOINT(158);
ADDCALIBRATIONPOINT(157):F,FINDNUMBEROFCALPOINTS(155);
DELETECALIBRATIONPOINT(158):
SCALING(159):F,LINEARSCALE(154);FB,GETSCALINGPARAMETERS(161);
FINDNUMBEROFCALPOINTS(155):
LINEARSCALE(154):
GETSCALINGPARAMETERS(161):F,FINDNUMBEROFCALPOINTS(155);

View File

@@ -1,2 +1,2 @@
[RMDManager] [RMDManager]
TASK=BUILD TASK=REBUILD

Binary file not shown.

View File

@@ -74,7 +74,7 @@
data-displayName="Pond 1 Volume" data-displayName="Pond 1 Volume"
data-units="BBL" data-units="BBL"
data-min="0" data-min="0"
data-max="50000" data-max="1000000"
data-decimalPlaces="0" data-decimalPlaces="0"
data-channelId="<%= channels['plcpond.pond1volume'].channelId %>" data-channelId="<%= channels['plcpond.pond1volume'].channelId %>"
data-timestamp="<%= channels['plcpond.pond1volume'].timestamp %>" data-timestamp="<%= channels['plcpond.pond1volume'].timestamp %>"
@@ -86,7 +86,7 @@
data-displayName="Pond 2 Volume" data-displayName="Pond 2 Volume"
data-units="BBL" data-units="BBL"
data-min="0" data-min="0"
data-max="50000" data-max="1000000"
data-decimalPlaces="0" data-decimalPlaces="0"
data-channelId="<%= channels['plcpond.pond2volume'].channelId %>" data-channelId="<%= channels['plcpond.pond2volume'].channelId %>"
data-timestamp="<%= channels['plcpond.pond2volume'].timestamp %>" data-timestamp="<%= channels['plcpond.pond2volume'].timestamp %>"
@@ -100,7 +100,7 @@
data-displayName="Pond 3 Volume" data-displayName="Pond 3 Volume"
data-units="BBL" data-units="BBL"
data-min="0" data-min="0"
data-max="50000" data-max="1000000"
data-decimalPlaces="0" data-decimalPlaces="0"
data-channelId="<%= channels['plcpond.pond3volume'].channelId %>" data-channelId="<%= channels['plcpond.pond3volume'].channelId %>"
data-timestamp="<%= channels['plcpond.pond3volume'].timestamp %>" data-timestamp="<%= channels['plcpond.pond3volume'].timestamp %>"
@@ -114,7 +114,7 @@
data-displayName="Pond 4 Volume" data-displayName="Pond 4 Volume"
data-units="BBL" data-units="BBL"
data-min="0" data-min="0"
data-max="50000" data-max="1000000"
data-decimalPlaces="0" data-decimalPlaces="0"
data-channelId="<%= channels['plcpond.pond4volume'].channelId %>" data-channelId="<%= channels['plcpond.pond4volume'].channelId %>"
data-timestamp="<%= channels['plcpond.pond4volume'].timestamp %>" data-timestamp="<%= channels['plcpond.pond4volume'].timestamp %>"
@@ -128,7 +128,7 @@
data-displayName="Pond Volume Total" data-displayName="Pond Volume Total"
data-units="BBL" data-units="BBL"
data-min="0" data-min="0"
data-max="200000" data-max="1000000"
data-decimalPlaces="0" data-decimalPlaces="0"
data-channelId="<%= channels['plcpond.pondvolumetotal'].channelId %>" data-channelId="<%= channels['plcpond.pondvolumetotal'].channelId %>"
data-timestamp="<%= channels['plcpond.pondvolumetotal'].timestamp %>" data-timestamp="<%= channels['plcpond.pondvolumetotal'].timestamp %>"

View File

@@ -2,7 +2,7 @@
"driverFileName": "plcpond.py", "driverFileName": "plcpond.py",
"deviceName": "plcpond", "deviceName": "plcpond",
"driverId": "0220", "driverId": "0220",
"releaseVersion": "1", "releaseVersion": "2",
"files": { "files": {
"file1": "plcpond.py", "file1": "plcpond.py",
"file2": "utilities.py", "file2": "utilities.py",

View File

@@ -6,6 +6,6 @@
"utilities.py", "utilities.py",
"Channel.py" "Channel.py"
], ],
"version": 1, "version": 2,
"s3BucketName": "plcpond" "s3BucketName": "plcpond"
} }

View File

@@ -64,7 +64,7 @@ class start(threading.Thread, deviceBase):
deviceBase.__init__(self, name=name, number=number, mac=mac, Q=Q, mcu=mcu, companyId=companyId, offset=offset, mqtt=mqtt, Nodes=Nodes) deviceBase.__init__(self, name=name, number=number, mac=mac, Q=Q, mcu=mcu, companyId=companyId, offset=offset, mqtt=mqtt, Nodes=Nodes)
self.daemon = True self.daemon = True
self.version = "1" self.version = "2"
self.finished = threading.Event() self.finished = threading.Event()
self.force_send = False self.force_send = False
threading.Thread.start(self) threading.Thread.start(self)
@@ -78,7 +78,7 @@ class start(threading.Thread, deviceBase):
def run(self): def run(self):
"""Actually run the driver.""" """Actually run the driver."""
wait_sec = 15 wait_sec = 30
for i in range(0, wait_sec): for i in range(0, wait_sec):
print("plcpond driver will start in {} seconds".format(wait_sec - i)) print("plcpond driver will start in {} seconds".format(wait_sec - i))
time.sleep(1) time.sleep(1)
@@ -241,7 +241,7 @@ class start(threading.Thread, deviceBase):
tag_n = str(new_val['tag']) # "cmd_Start" tag_n = str(new_val['tag']) # "cmd_Start"
val_n = new_val['val'] val_n = new_val['val']
w = write_tag(str(PLC_IP_ADDRESS), tag_n, val_n) w = write_tag(str(PLC_IP_ADDRESS), tag_n, val_n)
print("Result of plcpond_writeplctag(self, {}, {}) = {}".format(name, value, w)) logger.info("Result of plcpond_writeplctag(self, {}, {}) = {}".format(name, value, w))
if w is None: if w is None:
w = "Error writing to PLC..." w = "Error writing to PLC..."
return w return w