Looking for Beta Testers

Posted on
Mon Feb 11, 2019 5:15 pm
DaveL17 offline
User avatar
Posts: 4494
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Looking for Beta Testers

DaveL17 wrote:
Busta999 wrote:
Ok attached compressed was 700Kb :-)

I stopped the plugin

deleted the plugin.log

turned plugin back on

enabled full debug verbose

forced redraw of graphs

error in indigo log

stopped debugging/verbose

zipped and returned to here - not allowed to upload zips here so changed .zip to .log

you will need to unzip

done

Although 700K really isn't that big of a file, you can see that it did 700K over the course of about 30 seconds. That's why I don't want anyone to turn that on without a need for it -- and to not leave it on for too long. I think I understand what's going on with the "too many ticks" error now.

Your chart Chart Mini - Trend Outdoor Temp - OLD has 3 lines:
- line 1 goes from 2019-02-11 10:34:00.121467 to 2019-02-11 13:20:00.952835 (or about 3 hours)
- line 2 and 3 [AV Daily Power Usage] each have only one observation, both with the timestamp of 1970-01-01 00:00:00, and a data point equal to zero.

The 1970 date is significant. When the plugin finds that the data file is gone or contains no observations, it assigns at least one observation and gives it the timestamp of 1970-01-01 00:00:00 (epoch time). This timestamp then ensures that the next time the CSV data are updated that a "real" observation will be logged. So Matplotlib is trying to plot ticks from 1970-01-01 to 2019-02-11 which is way too many. (I'm curious what would happen if you changed the X axis scale to 'Every Year'.) I must admit that I have no idea where the 1968 or the 2021 in the error is coming from. :D This is something that I should be able to handle in code--now that I know where the problem lies.

There is also another error in your log that I will also try to track down. Being able to see your log has been hugely helpful. Thanks so much for the help!

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

[My Plugins] - [My Forums]

Posted on
Mon Feb 11, 2019 5:15 pm
Busta999 offline
User avatar
Posts: 455
Joined: Mar 30, 2016
Location: Wales UK

Re: Looking for Beta Testers

Glad I could assist!

The very least I could, full of self interest here.


Sent from my iPad using Tapatalk

Posted on
Tue Feb 12, 2019 2:32 am
Busta999 offline
User avatar
Posts: 455
Joined: Mar 30, 2016
Location: Wales UK

Re: Looking for Beta Testers

Dave

MatPlotLib stopped working last night at about 2 am

Nothing in Indigo Logs - I'll capture MatPlotLib logs in case you need them.

Work up the smoking and all graphs stopped between 2 and 3am.

Forcing a redraw resulting in the ticks error showing up in Indigo log but no other issues.

Restarted Plugin and I got this in Indigo Logs:-

Code: Select all
Error                           process (pid 22253) failed to quit after polite request -- forcing it to quit now
   Stopped plugin "Matplotlib 0.7.28"
   Starting plugin "Matplotlib 0.7.28" (pid 15708)
   Error                           client connection ID (CFBundleIdentifier) not unique: com.fogbert.indigoplugin.matplotlib
   Plugin "Matplotlib" authentication failed - client ID must be unique
   Error                           plugin "Matplotlib 0.7.28" (pid 15708) failed to start -- restarting in 5 seconds
   Z-Wave                          received "Radiator - Kitchen - Valve" status update brightness 47
   Reloading plugin "Matplotlib 0.7.28"
   Starting plugin "Matplotlib 0.7.28" (pid 15734)
   Matplotlib                     
   Matplotlib                      ================================================ Initializing New Plugin Session =================================================
   Matplotlib                      Plugin name:                    Matplotlib
   Matplotlib                      Plugin version:                 0.7.28
   Matplotlib                      Plugin ID:                      com.fogbert.indigoplugin.matplotlib
   Matplotlib                      Indigo version:                 7.2.0
   Matplotlib                      Python version:                 2.7.10 (default, Feb  7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
   Matplotlib                      Mac OS Version:                 10.12.6
   Matplotlib                      Process ID:                     15734
   Matplotlib                      ==================================================================================================================================
   Matplotlib                     
   Matplotlib                      ======================================================= Matplotlib Environment ========================================================
   Matplotlib                      Matplotlib version:             1.3.1
   Matplotlib                      Numpy version:                  1.8.0rc1
   Matplotlib                      Matplotlib RC Path:             /Library/Application Support/Perceptive Automation/Indigo 7.2/Plugins/matplotlib.indigoPlugin/Contents/Server Plugin/matplotlibrc
   Matplotlib                      Matplotlib Plugin log location: /Library/Application Support/Perceptive Automation/Indigo 7.2/Logs/com.fogbert.indigoplugin.matplotlib
   Matplotlib                      =======================================================================================================================================
   Started plugin "Matplotlib 0.7.28"


Something died that caused it to stop working but not report an issue.

Posted on
Tue Feb 12, 2019 2:36 am
Busta999 offline
User avatar
Posts: 455
Joined: Mar 30, 2016
Location: Wales UK

Re: Looking for Beta Testers

Here are the graphs after restarting the plugin.

Image

Image

Obviously was not collecting data into csvs last night.


Sent from my iPad using Tapatalk

Posted on
Tue Feb 12, 2019 4:47 am
DaveL17 offline
User avatar
Posts: 4494
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Looking for Beta Testers

Sorry to hear that the plugin stopped working for you last night. I suspect that it's tied to the 'too many ticks' error you've been seeing--I haven't seen the plugin quit working like that myself. I hope to be posting a fix for the ticks error very soon.

With respect to this error:
Code: Select all
Error        client connection ID (CFBundleIdentifier) not unique: com.fogbert.indigoplugin.matplotlib Plugin "Matplotlib" authentication failed - client ID must be unique

I don't think that's anything surprising. What I suspect this is saying is that Indigo was spooling up a new plugin instance while the old one was still stuck in memory--hence the reason that it found two instances of the plugin identifier. That is, unless you are doing something creative and running two instances of the plugin....

Do you save your CSV data to the same machine that's running Indigo? I have some work to do on making the plugin a bit more resilient for instances where the save location isn't available (i.e., saving to a NAS, cloud or second IP). This will work just fine so long as the save location is there, but it isn't a supported configuration just yet.

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

[My Plugins] - [My Forums]

Posted on
Tue Feb 12, 2019 5:26 am
Busta999 offline
User avatar
Posts: 455
Joined: Mar 30, 2016
Location: Wales UK

Re: Looking for Beta Testers

I have deleted the Chart creating the 'too many ticks' in case it was contributing to the fail.

I should have kept it for testing, sorry :?

I do run Two CSV Engines one for main graphs the other for mini/trend graphing, if that influences anything.

Posted on
Tue Feb 12, 2019 6:33 am
DaveL17 offline
User avatar
Posts: 4494
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Looking for Beta Testers

No worries on the deleted device. I believe I can work with what I already have from the log you provided.

You raise an interesting point about multiple CSV engines. The plugin has handled this in the past with no problem, but I am using a new method for managing the data reads/writes. I will add that to the list of things to test.

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

[My Plugins] - [My Forums]

Who is online

Users browsing this forum: No registered users and 1 guest