Error Code

Posted on
Tue Sep 22, 2020 9:57 am
jltnol offline
Posts: 989
Joined: Oct 15, 2013

Error Code

So I just added a new chart, and I keep getting an error message in the log. I changed the logging to "Debugging Messages" and enabled Verbose logging, and when I tell the plugin to redraw charts(or when it does it automatically), I get this message:

Matplotlib Warning [C RAIN All] <_ast.Name object at 0x10b2bcbd0>. See plugin log for more information.

Just not sure what it means... and I've got the plugin set with what I assume is the most logging info, but still don't have a clue... :(

Posted on
Tue Sep 22, 2020 4:04 pm
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Error Code

Sorry you're having trouble. I've not seen that one before. We'll need a bit more information to zero in on the cause. Look in the plugin log located in the "/Library/Application Support/Perceptive Automation/Indigo 7.4/Logs/com.fogbert.indigoplugin.matplotlib/plugin.log" (or whatever version of Indigo you're on) and post the complete error message you're seeing.

In addition, run this Python code and post the results:
Code: Select all
dev = indigo.devices[123456789]
indigo.server.log(unicode(dev))

Replace the number with the Indigo ID of your CSV engine device. We are specifically concerned with the value of the field 'columnDict'. It is likely long and will look similar to this:
Code: Select all
     columnDict : {u'k13': (u'energy clamp 2', u'990930915', u'accumEnergyTotal'), u'k12': (u'garage humidity', u'250023431', u'sensorValue'), u'k37': (u'Dave is Home', u'206708788', u'value'), u'k10': (u'outdoor visibility', u'1307330006', u'visibility'), u'k31': (u'precipitation', u'1278129792', u'd01_precipTotal'), u'k16': (u'outdoor humidity', u'1307330006', u'humidity'), u'k33': (u'forecast high temperature', u'1278129792', u'd01_temperatureHigh'), u'k14': (u'energy clamp 1', u'23177913', u'accumEnergyTotal'), u'k19': (u'upstairs temperature', u'1002786935', u'temperatureInput1'), u'k18': (u'basement humidity', u'1659722659', u'sensorValue'), u'k39': (u'sump pump cycles', u'333175759', u'dayCurrent'), u'k38': (u'dehumidifier', u'1071472813', u'value'), u'k3': (u'outdoor illumination', u'758171076', u'sensorValue'), u'k2': (u'garage attic temp', u'941884487', u'sensorValue'), u'k7': (u'dining room temp', u'1420156564', u'sensorValue'), u'k6': (u'indoor humidity', u'281604201', u'sensorValue'), u'k5': (u'barometric pressure', u'1307330006', u'pressure'), u'k4': (u'basement temp', u'1104390860', u'sensorValue'), u'k9': (u'main attic humidity', u'1869397554', u'sensorValue'), u'k8': (u'outdoor temperature', u'1655384716', u'sensorValue'), u'k35': (u'total energy', u'1395861801', u'accumEnergyTotal'), u'k34': (u'forecast low temperature', u'1278129792', u'd01_temperatureLow'), u'k36': (u'master bath humidity', u'281604201', u'sensorValue'), u'k30': (u'fantastic temperature', u'1307330006', u'temperature'), u'k29': (u'wind direction', u'1307330006', u'windBearing'), u'k22': (u'energy septic', u'94543994', u'curEnergyLevel'), u'k20': (u'wind speed', u'1307330006', u'windSpeed'), u'k21': (u'main attic temp', u'117494737', u'sensorValue'), u'k26': (u'downstairs temperature', u'1136661785', u'temperatureInput1'), u'k27': (u'attic fan', u'1706099207', u'onOffState'), u'k24': (u'garage temperature', u'365127589', u'sensorValue'), u'k32': (u'humidity target', u'187913970', u'value')} (string)

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Sep 23, 2020 8:47 am
jltnol offline
Posts: 989
Joined: Oct 15, 2013

Re: Error Code

First, absolutely no need to apologize! Its only because of the tireless efforts of people like you that make Indigo fun for people like me. Your efforts are very much appreciated! The charts and graphs have been working perfectly since I started using them awhile ago, and just recently did some updating and made a few changes, and ran into this problem.

Here is the log:

Code: Select all
2020-09-23 09:41:03.807   DEBUG        Plugin.processLogQueue              [AC Cycle Bar Chart] [AC Cycle Bar Chart] X axis label is suppressed to make room for the chart legend.
2020-09-23 09:41:03.807   INFO         Plugin.processLogQueue              [AC Cycle Bar Chart] Chart updated successfully.
2020-09-23 09:41:04.045   DEBUG        Plugin.processLogQueue              [AC Run Times Bar Chart] [AC Run Times Bar Chart] X axis label is suppressed to make room for the chart legend.
2020-09-23 09:41:04.046   INFO         Plugin.processLogQueue              [AC Run Times Bar Chart] Chart updated successfully.
2020-09-23 09:41:04.348   INFO         Plugin.processLogQueue              [Battery Chart] Chart updated successfully.
2020-09-23 09:41:04.486   CRITICAL     Plugin.pluginErrorHandler           !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! TRACEBACK !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2020-09-23 09:41:04.487   CRITICAL     Plugin.pluginErrorHandler           !!! Traceback (most recent call last):
2020-09-23 09:41:04.487   CRITICAL     Plugin.pluginErrorHandler           !!!   File "plugin.py", line 3858, in chart_line
2020-09-23 09:41:04.488   CRITICAL     Plugin.pluginErrorHandler           !!!     temp_list.append(self.host_plugin.evalExpr.eval_expr(expr))
2020-09-23 09:41:04.489   CRITICAL     Plugin.pluginErrorHandler           !!!   File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/matplotlib.indigoPlugin/Contents/Server Plugin/DLFramework/DLFramework.py", line 230, in eval_expr
2020-09-23 09:41:04.489   CRITICAL     Plugin.pluginErrorHandler           !!!     return self.eval_(ast.parse(expr, mode='eval').body)
2020-09-23 09:41:04.489   CRITICAL     Plugin.pluginErrorHandler           !!!   File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/matplotlib.indigoPlugin/Contents/Server Plugin/DLFramework/DLFramework.py", line 236, in eval_
2020-09-23 09:41:04.490   CRITICAL     Plugin.pluginErrorHandler           !!!     return self.operators[type(node.op)](self.eval_(node.left), self.eval_(node.right))
2020-09-23 09:41:04.490   CRITICAL     Plugin.pluginErrorHandler           !!!   File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/matplotlib.indigoPlugin/Contents/Server Plugin/DLFramework/DLFramework.py", line 240, in eval_
2020-09-23 09:41:04.491   CRITICAL     Plugin.pluginErrorHandler           !!!     raise TypeError(node)
2020-09-23 09:41:04.491   CRITICAL     Plugin.pluginErrorHandler           !!! TypeError: <_ast.Name object at 0x10b460890>
2020-09-23 09:41:04.492   CRITICAL     Plugin.pluginErrorHandler           !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2020-09-23 09:41:04.494   WARNING      Plugin.processLogQueue              [C RAIN All] <_ast.Name object at 0x10b460890>. See plugin log for more information.
2020-09-23 09:41:04.780   DEBUG        Plugin.processLogQueue              [C-12 hour wind] [C-12 hour wind] X axis label is suppressed to make room for the chart legend.
2020-09-23 09:41:04.781   INFO         Plugin.processLogQueue              [C-12 hour wind] Chart updated successfully.
2020-09-23 09:41:05.134   DEBUG        Plugin.processLogQueue              [C-48 Wind] [C-48 Wind] X axis label is suppressed to make room for the chart legend.
2020-09-23 09:41:05.135   INFO         Plugin.processLogQueue              [C-48 Wind] Chart updated successfully.
2020-09-23 09:41:05.314   INFO         Plugin.processLogQueue              [C-Polar Wind Chart] Chart updated successfully.
2020-09-23 09:41:05.598   DEBUG        Plugin.processLogQueue              [C-Rain] [C-Rain] X axis label is suppressed to make room for the chart legend.
2020-09-23 09:41:05.599   INFO         Plugin.processLogQueue              [C-Rain] Chart updated successfully.
2020-09-23 09:41:05.935   DEBUG        Plugin.processLogQueue              [C-Server Temp & Humidity] [C-Server Temp & Humidity] X axis label is suppressed to make room for the chart legend.
2020-09-23 09:41:05.936   INFO         Plugin.processLogQueue              [C-Server Temp & Humidity] Chart updated successfully.
2020-09-23 09:41:06.407   DEBUG        Plugin.processLogQueue              [C-Solar] [C-Solar] X axis label is suppressed to make room for the chart legend.
2020-09-23 09:41:06.407   INFO         Plugin.processLogQueue              [C-Solar] Chart updated successfully.
2020-09-23 09:41:07.005   DEBUG        Plugin.processLogQueue              [C-Temp & Humidity] [C-Temp & Humidity] X axis label is suppressed to make room for the chart legend.
2020-09-23 09:41:07.006   INFO         Plugin.processLogQueue              [C-Temp & Humidity] Chart updated successfully.
2020-09-23 09:41:07.008   INFO         Plugin.refresh_the_charts_now       ==================== Redraw Charts Now Menu Action Complete ====================


From the Python Command

Sep 23, 2020 at 9:32:03 AM
Script address :
batteryLevel : None
buttonGroupCount : 0
configured : True
description :
deviceTypeId : csvEngine
displayStateId : onOffState
displayStateImageSel : SensorOn
displayStateValRaw : True
displayStateValUi : Updated
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 81224377
globalProps : MetaProps : (dict)
com.fogbert.indigoplugin.matplotlib : (dict)
addKey : (string)
addSource : (string)
addSourceFilter : A (string)
addState : (string)
addValue : (string)
columnDict : {u'k10': (u'Rain Hammond daily rain accum final', u'1940074503', u'daily_rain_accumulation_final'), u'k3': (u'RAIN Bradofrd Precpit RAIN', u'1720470760', u'precipitation_type.rain'), u'k2': (u'RAIN-BRAdford Prect Type', u'1720470760', u'precipitation_type'), u'k1': (u'RAIN-Bradford Precip', u'1720470760', u'precipitation'), u'k7': (u'Rain Hammond Precipt anayysis', u'1940074503', u'precipitation_analysis_type'), u'k6': (u'Rain Hammond Precip', u'1940074503', u'precipitation'), u'k5': (u'Rain Hammond Last Precipt formatted', u'1940074503', u'last_precip_formatted'), u'k4': (u'Rain Hammond Last Precip', u'1940074503', u'last_precip'), u'k9': (u'Rain Hammond Rain Accum Final', u'1940074503', u'rain_accumulated_final'), u'k8': (u'Rain Hammond-Precitp Type', u'1940074503', u'precipitation_type')} (string)
csv_item_list : (string)
editKey : (string)
editSource : (string)
editSourceFilter : A (string)
editState : (string)
editValue : (string)
isChart : false (bool)
isColumnSelected : true (bool)
numLinesToKeep : 300 (string)
numLinesToKeepTime : 0 (string)
previousKey : k2 (string)
refreshInterval : 450 (string)
id : 220855587
lastChanged : 2020-09-23 09:30:17
lastSuccessfulComm : 2020-09-23 09:30:17
model : CSV Engine Device
name : ***RAIN CVS***
ownerProps : com.fogbert.indigoplugin.matplotlib : (dict)
addKey : (string)
addSource : (string)
addSourceFilter : A (string)
addState : (string)
addValue : (string)
columnDict : {u'k10': (u'Rain Hammond daily rain accum final', u'1940074503', u'daily_rain_accumulation_final'), u'k3': (u'RAIN Bradofrd Precpit RAIN', u'1720470760', u'precipitation_type.rain'), u'k2': (u'RAIN-BRAdford Prect Type', u'1720470760', u'precipitation_type'), u'k1': (u'RAIN-Bradford Precip', u'1720470760', u'precipitation'), u'k7': (u'Rain Hammond Precipt anayysis', u'1940074503', u'precipitation_analysis_type'), u'k6': (u'Rain Hammond Precip', u'1940074503', u'precipitation'), u'k5': (u'Rain Hammond Last Precipt formatted', u'1940074503', u'last_precip_formatted'), u'k4': (u'Rain Hammond Last Precip', u'1940074503', u'last_precip'), u'k9': (u'Rain Hammond Rain Accum Final', u'1940074503', u'rain_accumulated_final'), u'k8': (u'Rain Hammond-Precitp Type', u'1940074503', u'precipitation_type')} (string)
csv_item_list : (string)
editKey : (string)
editSource : (string)
editSourceFilter : A (string)
editState : (string)
editValue : (string)
isChart : false (bool)
isColumnSelected : true (bool)
numLinesToKeep : 300 (string)
numLinesToKeepTime : 0 (string)
previousKey : k2 (string)
refreshInterval : 450 (string)
pluginId : com.fogbert.indigoplugin.matplotlib
pluginProps : emptyDict : (dict)
protocol : Plugin
remoteDisplay : True
sharedProps : com.indigodomo.indigoserver : (dict)
states : States : (dict)
csvLastUpdated : 2020-09-23 09:30:17.446553 (string)
onOffState : true (bool)
onOffState.ui : Updated (string)
subModel :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsStatusRequest : False
version : None



Just let me know if you need any more information.

Thanks!

Posted on
Wed Sep 23, 2020 1:23 pm
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Error Code

Thanks. That helps.

For your new chart (the one throwing the error) what do you have in the 'Adjustment Factor' field for each of the lines in the chart? If you're not doing any adjustments, make sure that the Adjustment Factor field is empty.

Screen Shot 2020-09-23 at 2.19.43 PM.png
Screen Shot 2020-09-23 at 2.19.43 PM.png (44.9 KiB) Viewed 1962 times

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Sep 23, 2020 8:48 pm
jltnol offline
Posts: 989
Joined: Oct 15, 2013

Re: Error Code

Hey Dave

That was it.

I was messing with the adjustments, and put something in that I shouldn't have.

Thanks again for your help.

Posted on
Thu Sep 24, 2020 4:30 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Error Code

Excellent. Thanks for letting me know.

I'll see about adding some more validation to make it harder to save an invalid value in that field.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests