Ok. I'm here to help if I can.
Sent from my iPhone using Tapatalk
rvarela wrote:Ok. I'm here to help if I can.
>>> a = '2'
>>> b = '10'
>>> print b > a
False
>>>
Invalid CSV definition. 'key Meter Total not found in dict'
Matplotlib Warning Invalid Indigo ID. invalid literal for int() with base 10: 'None'
Matplotlib Critical Error Energy Line Chart: Check path to CSV file (max() arg is an empty sequence)
Action Group Odśwież wykresy Mathplotlib
Matplotlib Error Error in plugin execution ExecuteAction:
Traceback (most recent call last):
File "plugin.py", line 984, in refreshTheChartsAction
TypeError: 'PluginAction' object is not iterable
Different Computers wrote:Tried this last night and had some real trouble. The low hanging fruit is my lack of clear understanding about what the "State" is, and what can be put there.
I'm trying to chart output from my Aeon Smart Energy Meter, and it has a tab called Meter Total. But when I put that in, I get a Matplotlib error in the log referring to being unable to find such a thing.
- Code: Select all
Invalid CSV definition. 'key Meter Total not found in dict'
This is just the first of many things I'm apparently not understanding about how to configure this plugin.
- Code: Select all
Matplotlib Warning Invalid Indigo ID. invalid literal for int() with base 10: 'None'
Matplotlib Critical Error Energy Line Chart: Check path to CSV file (max() arg is an empty sequence)
All help appreciated!
indigo.server.log(unicode(indigo.devices[DEVICE_ID].states))
richo wrote:Have a problem when trying to run an Action Group to Redraw Charts with the following error in log:
- Code: Select all
Action Group Odśwież wykresy Mathplotlib
Matplotlib Error Error in plugin execution ExecuteAction:
Traceback (most recent call last):
File "plugin.py", line 984, in refreshTheChartsAction
TypeError: 'PluginAction' object is not iterable
rvarela wrote:Thanks very much Dave. The update is working perfectly well for me after adding 14 elements. On a side note, what was raised by different Computers above is a good point I think. I also spent some time trying to figure out what state means, entering text like temperature, for example. I know it is obvious for you, as it is for me now, but at the very beginning maybe including a line in the description will certainly help (at least for some of us). It could be just to execute the phyton command you suggested at the beginning of this blog to obtain the correct answer.
indigo.server.log(unicode(indigo.devices[DEVICE_ID].states))
Dec 1, 2016, 7:35:13 PM
Interactive Shell States : (dict)
canConnect : true (bool)
canRemoteControl : true (bool)
instanceName : FatBook (string)
protocolVersion : 1.5 (string)
sourceAlbum : Face To Face (string)
sourceArtist : Michael Halaas (string)
sourceGroup : recentApplications (string)
sourceIdentifier : /Applications/iTunes.app (string)
sourceMachineModel : MacBookPro11,4 (string)
sourceMachineName : FatBook (string)
sourceMetadataAvailable : FatBook (string)
sourceName : iTunes (string)
sourcePlayStatus : unavailable (string)
sourcePlayStatus.error : false (bool)
sourcePlayStatus.paused : false (bool)
sourcePlayStatus.playing : false (bool)
sourcePlayStatus.stopped : false (bool)
sourcePlayStatus.unavailable : true (bool)
sourceRemoteControlAvailable : true (bool)
sourceTrackName : Endure (string)
status : connected (string)
status.connected : true (bool)
status.disconnected : false (bool)
status.unavailable : false (bool)
Did you substitute DEVICE_ID with the actual ID of the device?
accumEnergyTimeDelta : 73962 (integer)
accumEnergyTimeDelta.ui : 73962 seconds (string)
accumEnergyTotal : 0 (real)
accumEnergyTotal.ui : 0.0 kWh (string)
batteryLevel : 36 (integer)
batteryLevel.ui : 36% (string)
curEnergyLevel : 1301.08 (real)
curEnergyLevel.ui : 1301.080 W (string)
Matplotlib Critical Error Energy Line Chart: Check path to CSV file (max() arg is an empty sequence)
Matplotlib Error Error in plugin execution runConcurrentThread:
Traceback (most recent call last):
File "plugin.py", line 2301, in runConcurrentThread
File "plugin.py", line 963, in refreshTheCharts
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/pyplot.py", line 561, in savefig
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/figure.py", line 1421, in savefig
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/backend_bases.py", line 2220, in print_figure
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/backend_bases.py", line 1962, in print_png
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/backends/backend_agg.py", line 510, in print_png
IOError: [Errno 2] No such file or directory: u'/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/controls/static//Users/macadmin/Pictures/ChartEnergyLine.png'
Matplotlib Critical Error Energy Line Chart: Check path to CSV file (invalid literal for float(): 1977.140 W)
IOError: [Errno 2] No such file or directory: u'/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/images/controls/static//Users/macadmin/Pictures/ChartEnergyLine.png'
Matplotlib Warning Invalid Indigo ID. invalid literal for int() with base 10: 'None'
Matplotlib Critical Error Energy Line Chart: Check path to CSV file (invalid literal for float(): 1977.140 W)
Matplotlib Critical Error ValueError: ordinal must be >= 1
Timestamp,Energy
2016-12-01 20:51:06.956000,1968.12
2016-12-01 20:51:17.610000,1968.12
2016-12-01 20:51:28.375000,1968.12
2016-12-01 20:51:39.037000,1968.12
2016-12-01 20:51:49.665000,1968.12
2016-12-01 20:52:00.278000,1968.12
2016-12-01 20:52:10.910000,1968.12
2016-12-01 20:52:21.619000,1968.12
2016-12-01 20:52:32.274000,1968.12
2016-12-01 20:52:42.887000,1968.12
2016-12-01 20:52:53.496000,1968.12
2016-12-01 20:53:04.111000,1968.12
2016-12-01 20:53:14.745000,1968.12
2016-12-01 20:53:25.363000,1968.12
2016-12-01 20:53:35.972000,1968.12
2016-12-01 20:53:46.588000,1409.76
2016-12-01 20:53:57.187000,1409.76
2016-12-01 20:54:07.801000,1409.76
2016-12-01 20:54:18.918000,1409.76
2016-12-01 20:54:30.042000,1409.76
2016-12-01 20:54:40.653000,1409.76
2016-12-01 20:54:51.258000,1409.76
2016-12-01 20:55:01.874000,1409.76
2016-12-01 20:55:12.496000,1409.76
2016-12-01 20:55:23.168000,1409.76
2016-12-01 20:55:33.806000,1409.76
2016-12-01 20:55:44.422000,1409.76
2016-12-01 20:55:55.040000,1408.11
2016-12-01 20:56:05.658000,1408.11
2016-12-01 20:56:16.308000,1408.11
2016-12-01 20:56:26.971000,1408.11
2016-12-01 20:56:37.578000,1408.11
2016-12-01 20:56:48.182000,1408.11
2016-12-01 20:56:58.799000,1408.11
2016-12-01 20:57:09.430000,1408.11
2016-12-01 20:58:50.055000,1408.11
2016-12-01 21:09:46.692000,1407.12
Users browsing this forum: No registered users and 8 guests