Configured files for Driver V3 and uploaded to S3

This commit is contained in:
Patrick McDonagh
2016-08-12 10:26:57 -05:00
parent 75040109c5
commit 0c2defa280
5 changed files with 3 additions and 3354 deletions

View File

@@ -3,12 +3,10 @@
"driverFileName":"ipp.py",
"deviceName":"ipp",
"driverId":"0090",
"releaseVersion":"2",
"releaseVersion":"3",
"files": {
"file1":"ipp.py",
"file2":"micro800.py",
"file3":"ipp_channels.p",
"file4":"ipp_channels_setup.py"
"file2":"micro800.py"
}
}

View File

@@ -372,7 +372,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)
self.daemon = True
self.version = "2"
self.version = "3"
self.device_address = addr
self.finished = threading.Event()
threading.Thread.start(self)

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,10 +0,0 @@
import pickle
with open("ipp_channels.p", 'rb') as picklefile:
channels = pickle.load(picklefile)
for chname in sorted(channels):
ch = channels[chname]
if ch['data_type'] == "BOOL":
print("'{0}': Channel('{0}', '{1}', {2}, self.sendtodbJSON, writeable=True, e300_param=False),".format(chname, ch['tag'], ch['max_time_between_uploads']))
else:
print("'{0}': Channel('{0}', '{1}', {2}, self.sendtodbJSON, writeable=True, change_threshold=1.0, e300_param=False),".format(chname, ch['tag'], ch['max_time_between_uploads']))