Kevin,
I've been making progress, but still have some issues. When I start the console it apprears to load and displays booting information on the screen but then stops. Here is the console log that shows some errors. Can you please take a look at it and see what I'm doing wrong? I can not attach the file so I will just paste it here.
09-01-17 10:18:54 Sev: 3 Soft ISY Console
09-01-17 10:18:54 Sev: 3 \xa9 Kevin Kahn 2016
09-01-17 10:18:54 Sev: 3 Software under Apache 2.0 License
09-01-17 10:18:54 Sev: 3 Version Information:
09-01-17 10:18:54 Sev: 3 Run from: /home/pi/consolestable
09-01-17 10:18:54 Sev: 3 Last mod: /home/pi/consolestable/exitutils.py
09-01-17 10:18:54 Sev: 3 Mod at: Wed Aug 30 09:54:44 2017
09-01-17 10:18:54 Sev: 3 Tag: development
09-01-17 10:18:54 Sev: 3 Sha: not auto installed
09-01-17 10:18:54 Sev: 3 How: *nodate*
09-01-17 10:18:54 Sev: 3 Version date: *nodate*
09-01-17 10:18:54 Sev: 3 Start time: Fri Sep 1 10:18:54 2017
09-01-17 10:18:54 Sev: 3 Console Starting pid: 1538
09-01-17 10:18:54 Sev: 3 Main config file: /home/pi/Console/config.txt Wed Aug 30 09:54:44 2017
09-01-17 10:18:54 Sev: 3 Including config files:
09-01-17 10:18:54 Sev: 3 +auth.cfg Fri Sep 1 10:09:10 2017
09-01-17 10:18:54 Sev: 3 +pdxalerts.cfg Wed Aug 30 09:54:44 2017
09-01-17 10:18:54 Sev: 3 +tstat.cfg Wed Aug 30 09:54:44 2017
09-01-17 10:18:54 Sev: 3 +weathPump.cfg Wed Aug 30 09:54:44 2017
09-01-17 10:18:55 Sev: 3 +weathCC.cfg Wed Aug 30 09:54:44 2017
09-01-17 10:18:55 Sev: 3 +weathPDX.cfg Wed Aug 30 09:54:44 2017
09-01-17 10:18:56 Sev: 3 +myclock.cfg Wed Aug 30 09:54:44 2017
09-01-17 10:18:56 Sev: 3 +BR-kck.cfg Wed Aug 30 09:54:44 2017
09-01-17 10:18:56 Sev: 3 +upperlev.cfg Wed Aug 30 09:54:44 2017
09-01-17 10:18:56 Sev: 3 +bathroom.cfg Wed Aug 30 09:54:44 2017
09-01-17 10:18:56 Sev: 3 +LR.cfg Wed Aug 30 09:54:44 2017
09-01-17 10:18:56 Sev: 3 +othermain.cfg Wed Aug 30 09:54:44 2017
09-01-17 10:18:56 Sev: 3 +downstairs.cfg Wed Aug 30 09:54:44 2017
09-01-17 10:18:56 Sev: 3 +weathLQ.cfg Wed Aug 30 09:54:44 2017
09-01-17 10:18:56 Sev: 3 +timetempLQ.cfg Wed Aug 30 09:54:44 2017
09-01-17 10:18:56 Sev: 3 Log level: 3
09-01-17 10:18:56 Sev: 3 Screensize: 320 x 480
09-01-17 10:18:56 Sev: 3 Scaling ratio: 1.00:1.00
09-01-17 10:18:56 Sev: 3 Param: KeyOutlineOffset: 3
09-01-17 10:18:56 Sev: 3 Param: KeyColor: aqua
09-01-17 10:18:56 Sev: 3 Param: CmdCharCol: white
09-01-17 10:18:56 Sev: 3 Param: MaxLogFiles: 5
09-01-17 10:18:56 Sev: 3 Param: CmdKeyCol: red
09-01-17 10:18:57 Sev: 3 Param: DimHomeScreenCoverName:
09-01-17 10:18:57 Sev: 3 Param: DimIdleListTimes: ['20', '20']
09-01-17 10:18:57 Sev: 3 Param: KeyCharColorOff: black
09-01-17 10:18:57 Sev: 3 Param: BrightLevel: 100
09-01-17 10:18:57 Sev: 3 Param: KeyColorOn:
09-01-17 10:18:58 Sev: 3 Param: KeyLabelOff: ['']
09-01-17 10:18:58 Sev: 3 Param: MultiTapTime: 400
09-01-17 10:18:58 Sev: 3 Param: KeyOnOutlineColor: white
09-01-17 10:18:58 Sev: 3 Param: DimLevel: 5
09-01-17 10:18:58 Sev: 3 Param: KeyColorOff:
09-01-17 10:18:58 Sev: 3 Param: KeyLabelOn: ['']
09-01-17 10:18:58 Sev: 3 Param: HomeScreenName: BR
09-01-17 10:18:58 Sev: 3 Param: KeyOffOutlineColor: black
09-01-17 10:18:58 Sev: 3 Param: ISYaddr: 192.168.0.18
09-01-17 10:18:58 Sev: 3 Param: BackgroundColor: maroon
09-01-17 10:18:58 Sev: 3 Param: DimIdleListNames: ['MyClock', 'LQTT']
09-01-17 10:18:58 Sev: 3 Param: PersistTO: 20
09-01-17 10:18:59 Sev: 3 Param: KeyCharColorOn: white
09-01-17 10:18:59 Sev: 3 Param: LogFontSize: 23
09-01-17 10:18:59 Sev: 3 Param: HomeScreenTO: 90
09-01-17 10:18:59 Sev: 3 Param: ISYuser: admin
09-01-17 10:18:59 Sev: 3 Param: CharColor: white
09-01-17 10:18:59 Sev: 3 Param: DimTO: 25
09-01-17 10:18:59 Sev: 3 Successful node read: 200
09-01-17 10:19:00 Sev: 4 Scene with no membersAuto DR
09-01-17 10:19:01 Sev: 3 Successful programs read: 200
09-01-17 10:19:01 Sev: 3 Successful variable read: 200/200
<type 'exceptions.KeyError'>
Python 2.7.13: /usr/bin/python
Fri Sep 1 10:19:02 2017
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/home/pi/consolestable/console.py in <module>()
176 config.ISYrequestsession.auth = (config.ISYuser, config.ISYpassword)
177
178 config.ISY = isy.ISY(config.ISYrequestsession)
179 config.Logs.Log("Enumerated ISY Structure")
180
config = <module 'config' from '/home/pi/consolestable/config.pyc'>
config.ISY = None
isy = <module 'isy' from '/home/pi/consolestable/isy.pyc'>
isy.ISY = <class 'isy.ISY'>
config.ISYrequestsession = <requests.sessions.Session object>
/home/pi/consolestable/isy.py in __init__(self=<isy.ISY object>, ISYsession=<requests.sessions.Session object>)
424 self.varsState[v['@name']] = int(v['@id'])
425 self.varsStateInv[int(v['@id'])] = v['@name']
426 configdict = xmltodict.parse(r2.text)['CList']['e']
427 for v in configdict:
428 self.varsInt[v['@name']] = int(v['@id'])
configdict = [OrderedDict([(u'@id', u'1'), (u'@name', u'sLeakBasement')]), OrderedDict([(u'@id', u'2'), (u'@name', u'iStartup')]), OrderedDict([(u'@id', u'3'), (u'@name', u'Front_Door_Batt')]), OrderedDict([(u'@id', u'4'), (u'@name', u'Garage_Door')]), OrderedDict([(u'@id', u'5'), (u'@name', u'Front_Door_Lock')])]
global xmltodict = <module 'xmltodict' from '/usr/local/lib/python2.7/dist-packages/xmltodict.pyc'>
xmltodict.parse = <function parse>
r2 = <Response [200]>
r2.text = u'<CList type="VAR_INT"></CList>'
<type 'exceptions.KeyError'>: 'e'
__class__ = <type 'exceptions.KeyError'>
__delattr__ = <method-wrapper '__delattr__' of exceptions.KeyError object>
__dict__ = {}
__doc__ = 'Mapping key not found.'
__format__ = <built-in method __format__ of exceptions.KeyError object>
__getattribute__ = <method-wrapper '__getattribute__' of exceptions.KeyError object>
__getitem__ = <method-wrapper '__getitem__' of exceptions.KeyError object>
__getslice__ = <method-wrapper '__getslice__' of exceptions.KeyError object>
__hash__ = <method-wrapper '__hash__' of exceptions.KeyError object>
__init__ = <method-wrapper '__init__' of exceptions.KeyError object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.KeyError object>
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.KeyError object>
__repr__ = <method-wrapper '__repr__' of exceptions.KeyError object>
__setattr__ = <method-wrapper '__setattr__' of exceptions.KeyError object>
__setstate__ = <built-in method __setstate__ of exceptions.KeyError object>
__sizeof__ = <built-in method __sizeof__ of exceptions.KeyError object>
__str__ = <method-wrapper '__str__' of exceptions.KeyError object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__unicode__ = <built-in method __unicode__ of exceptions.KeyError object>
args = ('e',)
message = 'e'
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "console.py", line 178, in <module>
config.ISY = isy.ISY(config.ISYrequestsession)
File "/home/pi/consolestable/isy.py", line 426, in __init__
configdict = xmltodict.parse(r2.text)['CList']['e']
KeyError: 'e'
Thanks,
Aaron