INDIGO plot --> see new version INDIGOplotD

Posted on
Sat Mar 08, 2014 7:12 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGO plot

as for gnuplot install: do NOT just install gnuplot: PLEASE use the supplied applescript function. It is in the plugin menu. at the bottom. It will install the font properly.


As for the error messages. I will be posting a "debug version to get me more info.

You still can download the old versions. just look at some older postings the links should still work


Karl

Posted on
Sat Mar 08, 2014 7:26 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGO plot

https://www.dropbox.com/s/p1lnzx369or8bk7/indigoplot-debug.zip this is debug version.. it will create SOME output in your log file.

Mat, if you could try this one, it is the same as 9.5.1 + debugging code.
I would need the part before the error message.

Karl

Posted on
Sat Mar 08, 2014 8:38 pm
ELWOOD offline
Posts: 225
Joined: Feb 11, 2007
Location: Ramsey, NJ

Re: INDIGO plot

Karl
Hope this is what you need for the TED5000:

Mar 8, 2014, 9:24:51 PM
AD2USB Alarm Interface Zone: -BACK DOOR DEAD BOLT LOCK supervision received. (RFX:0350299,84)
Script [u'CostAvg_MTU1', u'CostAvg_MTU2', u'CostAvg_MTU3', u'CostAvg_MTU4', u'CostAvg_Total', u'CostHour_MTU1', u'CostHour_MTU2', u'CostHour_MTU3', u'CostHour_MTU4', u'CostHour_Total', u'CostMTD_MTU1', u'CostMTD_MTU2', u'CostMTD_MTU3', u'CostMTD_MTU4', u'CostMTD_Total', u'CostNow_MTU1', u'CostNow_MTU2', u'CostNow_MTU3', u'CostNow_MTU4', u'CostNow_Total', u'CostProj_MTU1', u'CostProj_MTU2', u'CostProj_MTU3', u'CostProj_MTU4', u'CostProj_Total', u'CostTDY_MTU1', u'CostTDY_MTU2', u'CostTDY_MTU3', u'CostTDY_MTU4', u'CostTDY_Total', u'PeakMTD_MTU1', u'PeakMTD_MTU2', u'PeakMTD_MTU3', u'PeakMTD_MTU4', u'PeakMTD_Total', u'PeakTdy_MTU1', u'PeakTdy_MTU2', u'PeakTdy_MTU3', u'PeakTdy_MTU4', u'PeakTdy_Total', u'PowerHour_MTU1', u'PowerHour_MTU2', u'PowerHour_MTU3', u'PowerHour_MTU4', u'PowerHour_Total', u'PowerMTD_MTU1', u'PowerMTD_MTU2', u'PowerMTD_MTU3', u'PowerMTD_MTU4', u'PowerMTD_Total', u'PowerNow_MTU1', u'PowerNow_MTU2', u'PowerNow_MTU3', u'PowerNow_MTU4', u'PowerNow_Total', u'PowerProj_MTU1', u'PowerProj_MTU2', u'PowerProj_MTU3', u'PowerProj_MTU4', u'PowerProj_Total', u'PowerTDY_MTU1', u'PowerTDY_MTU2', u'PowerTDY_MTU3', u'PowerTDY_MTU4', u'PowerTDY_Total', u'VoltageHighMTD_MTU1', u'VoltageHighMTD_MTU2', u'VoltageHighMTD_MTU3', u'VoltageHighMTD_MTU4', u'VoltageHighMTD_Total', u'VoltageHighToday_MTU1', u'VoltageHighToday_MTU2', u'VoltageHighToday_MTU3', u'VoltageHighToday_MTU4', u'VoltageHighToday_Total', u'VoltageLowMTD_MTU1', u'VoltageLowMTD_MTU2', u'VoltageLowMTD_MTU3', u'VoltageLowMTD_MTU4', u'VoltageLowMTD_Total', u'VoltageLowToday_MTU1', u'VoltageLowToday_MTU2', u'VoltageLowToday_MTU3', u'VoltageLowToday_MTU4', u'VoltageLowToday_Total', u'VoltageNow_MTU1', u'VoltageNow_MTU2', u'VoltageNow_MTU3', u'VoltageNow_MTU4', u'VoltageNow_Total']

Checking the device states all of the MTU 2,3,4 show "0", states for the MTU1 seem to all be numbers and letters such as "VoltageHighToday_Total = 121.3 v.
So if I had a script that would remove the text than save to a veritable would that work?

Elwood

Posted on
Sat Mar 08, 2014 9:29 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGO plot

yes that would work, if you could drop all the letters the program then can use it ,
indigo plot does (in simple program terms)

try:
float(property)
except:
no number

= it tries to convert the string or number to a floating point number, if ok it will use it, if not will try to see if it is "ON" or "OFF"
So if you have 10v that will not convert to a number and is also not ON of OFF. Hence it will be ignored..

makes sense?

Karl

Posted on
Sat Mar 08, 2014 11:40 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGO plot

some hints on fonts and special characters and extra labels:

- you can use ^0 to create a raised 0 "Temperature [^0F] creates the left Y axis label (@ will lower the letter for subscripts) **)

- you can insert characters from the apple "Show Character Viewer" see ► at the line labels to indicate that they belong to the right Y axis.
(One issue if you pick the left triangle a box gets added. ☐◀︎.. don't know why.. )

- enter 'set label "this is Large text^*^)" at screen 0.5,0.85 font ",20" ' (no single quotes) into the field "raw gnuplot cmd before plot data" (expert info enabled)
will create the larger text in the top part of the plot.


Karl
**)
http://gnuplot.sourceforge.net/demo_svg/enhanced_utf8.html show some math formulas and how to enter them: greek letters, pi, Integrals...
Attachments
term-down-hour-S2.png
term-down-hour-S2.png (17.09 KiB) Viewed 3195 times

Posted on
Sun Mar 09, 2014 7:25 am
Vaillant offline
Posts: 105
Joined: Nov 06, 2011
Location: Belgium

Re: INDIGO plot

Getting some errors. Updating devices from SQL database goes well. Then I get an error (None /None). When I check indigo plot 1.1 Select devices I have defined devices and variables. So when it comes to importing variables from SQL the error starts.

Code: Select all
indigoplot                      Updating device/property from SQL database: 14:14:09              converted to GNUPLOT format
  indigoplot                      Updating device/property from SQL database: 14:14:09 RV Kleedkamer / setpointHeat   ...
  indigoplot                      Updating device/property from SQL database: 14:14:09              database read...
  indigoplot                      Updating device/property from SQL database: 14:14:09              converted to GNUPLOT format
  indigoplot                      Updating device/property from SQL database: 14:14:09 None / None   ...
  indigoplot Error                Error in plugin execution startup:

Traceback (most recent call last):
  File "plugin.py", line 144, in startup
  File "plugin.py", line 2385, in getSQLdata
<type 'exceptions.IndexError'>: string index out of range

  indigoplot                       not  initialized


Tried to delete the variables from indigo plot. Most are gone but two remain. When I try to delete I get the following error. Deleting the variables in Indigo does not make a difference.

Code: Select all
indigoplot                       DefineDevices from pickExistingOrNewDeviceTrue
  indigoplot Error                Error in plugin execution UiAction:

Traceback (most recent call last):
  File "plugin.py", line 1305, in buttonConfirmDevice
  File "plugin.py", line 1867, in DeleteDevice
  File "plugin.py", line 1878, in removeDevice
  File "plugin.py", line 1893, in removePropFromDevice
  File "plugin.py", line 1927, in removeColumnFromIndexes
<type 'exceptions.IndexError'>: list assignment index out of range


Now indigoplot constantly displays not initialized.
Had problems with variables before (see earlier post).
Maybe it is related.

Greetings,
Adrian

Posted on
Sun Mar 09, 2014 8:18 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGO plot

https://www.dropbox.com/s/gmfdrpfvzhnur8d/indigoplot-0-9-6.zip v0-9-6


Adrian, this should take care of your error..
fixed:
if sql database returns no record skip device or variable

Karl

Posted on
Sun Mar 09, 2014 8:36 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGO plot

Adrian,
again the new version should fix the error, but the underlying problem is that you have
indigoplot Updating device/property from SQL database: 14:14:09 None / None ...

that means that there is a device / variable selected with name None.. That does not exist by definition..
that MUST not be.. that is the real problem!

could you check if you do not have any special characters .. ä ¢ ≠–÷≥≤æ…¬ in your devices or variables? That is the only explanation I can come up with


Karl

Posted on
Sun Mar 09, 2014 9:49 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGO plot

https://www.dropbox.com/s/2s2ro80jurqg2zw/indigoplot-0-6-2%20debug.zip 0-9-6-2 debug

if someone with the problems could load this one AND ENABLE debug in the config menu

I then need the output from your log file (it will be a lot).
You could send this to me directly at karlwachs@me.com or with the email part of this web page.

thanks for your help

Karl

Posted on
Sun Mar 09, 2014 10:45 am
ELWOOD offline
Posts: 225
Joined: Feb 11, 2007
Location: Ramsey, NJ

Re: INDIGO plot

GRWilde wrote:
The TED 5000 plugin parameters are mostly text with kwh, V or $ appended to them. I set up an Indigo schedule to retrieve the parameters I was interested in every minute and store them as variables. I then wrote a very simple Applescript to strip off the text designators and store the resulting text values as numbers. The latest version of indigoplot (0.8.1) recognized these newly created variables and I was able to successfully generate plots of them. The plots seem to be working well.


@GRWide
I would also like to plot my TED5000 data could you share your script for removing the text from the data.

Thanks
Elwood

Posted on
Sun Mar 09, 2014 11:49 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: INDIGO plot

kw123 wrote:
question to the python experts: the error message states that in the indicated line # 1276 is wrong - I added the #===> in this post. The line is properly indented and it works on my MAC. This section is heavily used and works. So what does this error message REALLY mean?

Traceback (most recent call last):
File "plugin.py", line 1276, in filterSelectedDevices
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'listOfSelectedDevices'


From glancing at the code snippet, I don't see anything wrong. self.listOfSelectedDevices should exist and should be an array (so calling append() on it should be fine). This brings into question what other threads might be doing. Do you have processing elsewhere in the plugin that might be deleting self.listOfSelectedDevices or setting it to None ? If so, then that is probably getting called in another thread while the devices.iter() loop above is occurring.

Image

Posted on
Sun Mar 09, 2014 12:22 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGO plot

Matt,
thanks for the input,
- that def...: is the only place where it is assigned, besides in "def startup(self):"
- anywhere else it is read only:
Code: Select all
      if len(self.listOfPreselectedDevices)==0: return [(0,0)]         # nothing there yet
      retList=self.listOfPreselectedDevices[:]                     #  make a copy


Karl




ps I changed the name to make it more telling -- did a replace all...

Posted on
Sun Mar 09, 2014 12:26 pm
mat offline
Posts: 769
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Re: INDIGO plot

Evening Karl.

Clean install of plugin, with documents deleted and your entry in the plugin config subdir.

I've run the update gnu plot from the plugin menu and it doesn't seem to do anything here. I've also run the applescript install - it missed the first bit, but I put that down to gnu plot being installed already.

should I remove gnuplot and reinstall? not sure how to uninstall it?

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1282, in filterSelectedDevices
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'listOfSelectedDevices'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1728, in filterSelectedLinesB
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'plotNumberNew'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1665, in filterExistingLine
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'plotLineToDevPropIndex'

filterExistingPlots DefinePlots
indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1505, in filterExistingPlot
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'plotNumberIsUsed'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1395, in selDeviceProperties1
File "plugin.py", line 1413, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1397, in selDeviceProperties2
File "plugin.py", line 1413, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1399, in selDeviceProperties3
File "plugin.py", line 1413, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1401, in selDeviceProperties4
File "plugin.py", line 1413, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1403, in selDeviceProperties5
File "plugin.py", line 1413, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1405, in selDeviceProperties6
File "plugin.py", line 1413, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1272, in filterExistingDevice
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'deviceId'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1407, in selDeviceProperties7
File "plugin.py", line 1413, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1409, in selDeviceProperties8
File "plugin.py", line 1413, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1714, in filterSelectedLinesA
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'plotNumberNew'

indigoplot not initialized

Late 2018 mini 10.14

Posted on
Sun Mar 09, 2014 1:09 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: INDIGO plot

https://www.dropbox.com/s/lh4xfog3h8h6plh/INDIGOplot.v0-9-3%20debug.zip please download this one and enable debug in the menu (don't have to go to config)

wait a bit before you start configuring, i.e. wait for the SQL import to finish

then go into config
add somethings
do a save
if you get an error, please send me the log file output.


thanks for your help

Karl

Posted on
Sun Mar 09, 2014 1:18 pm
mat offline
Posts: 769
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Re: INDIGO plot

enabling plugin error

Enabling plugin "indigoplot 0.9.6.3"
Starting plugin "indigoplot 0.9.6.3" (pid 14002)
Started plugin "indigoplot 0.9.6.3"
indigoplot initializing ... 0-9-6-3 - debug
indigoplot Error Error in plugin execution startup:

Traceback (most recent call last):
File "plugin.py", line 145, in startup
File "plugin.py", line 2522, in getSQLdata
File "plugin.py", line 744, in cleanData
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'DevicePropsIndex'

indigoplot not initialized



then on opening plugin

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1286, in filterDevicesThatQualify
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'listOfPreselectedDevices'


filterExistingLine retList [(12, 'Add New Line to Selection List'), (0, 'Select action')]
filterExistingPlots DefinePlots
filterExistingPlots retList [(52, 'Add New Plot to Selection List'), (0, 'Select Action')]
indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1399, in selDeviceProperties1
File "plugin.py", line 1417, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1401, in selDeviceProperties2
File "plugin.py", line 1417, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1403, in selDeviceProperties3
File "plugin.py", line 1417, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1405, in selDeviceProperties4
File "plugin.py", line 1417, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1407, in selDeviceProperties5
File "plugin.py", line 1417, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1409, in selDeviceProperties6
File "plugin.py", line 1417, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1276, in filterExistingDevice
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'deviceId'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1411, in selDeviceProperties7
File "plugin.py", line 1417, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'

indigoplot Error Error in plugin execution GetUiDynamicList:

Traceback (most recent call last):
File "plugin.py", line 1413, in selDeviceProperties8
File "plugin.py", line 1417, in selectDevicePropertiesAll
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'sequentialDevNo'


exactly the same as before. can't select anything. enabled debugging but can't click on anything to get additional error messages.

would you like remote access?

Mat

Late 2018 mini 10.14

Page 12 of 28 1 ... 9, 10, 11, 12, 13, 14, 15 ... 28

Who is online

Users browsing this forum: No registered users and 5 guests