www.homeseer.com    
 

Go Back   HomeSeer Message Board > Ultilities (Plug-ins) > Utilities Discussion > SDJ-Health Plug-in (3P)

Reply
 
Thread Tools Display Modes
  #1  
Old January 11th, 2018, 08:00 AM
iceball iceball is online now
Seer
 
Join Date: Nov 2016
Location: Norway
Posts: 13
Error - Reading Child PEData - all disabled

After using this great plugin for som time I started to notice that all child devices suddenly would be disabled.
I can re-enable them one by one, but all settings under the SDJ-health tab for each child device would be disabled and reset also. So I need to select the "Set all to Global" button. Then it would work for some time.
But after a server/HS3 restart everything would be disabled again. I attached part of the log. Looks like some sort of conversion problem?
Attached Images
 
Reply With Quote
  #2  
Old January 11th, 2018, 08:47 AM
SteveMSJ SteveMSJ is offline
Seer Master
 
Join Date: Jan 2012
Location: UK
Posts: 702
Quote:
Originally Posted by iceball View Post
After using this great plugin for som time I started to notice that all child devices suddenly would be disabled.
I can re-enable them one by one, but all settings under the SDJ-health tab for each child device would be disabled and reset also. So I need to select the "Set all to Global" button. Then it would work for some time.
But after a server/HS3 restart everything would be disabled again. I attached part of the log. Looks like some sort of conversion problem?
I agree it would appear to be a conversion problem although I'm not sure why it should suddenly start doing it. I just shutdown HS3 and restarted it to make absolutely sure I don't see the issue. It all started ok.

What version of HS3 are you running and on what os?

When the pi initialises it reads the data stored in the PED of the monitoring child devices. The first data item is the file version which is used to track pi updates that might require modification of the devices. The current file version is 1.8 and it is stored as a string but converted to a double after loading. The conversion from the string to the double is throwing the error on your system for some unknown reason. Because of that it doesn't load any of the rest of the data for that child, hence the reason it is disabled and all the settings lost.

I've just realised that if you're system is set to use a comma as the decimal separator this conversion might cause a problem. Is that the case? If so it is sloppy coding on my part

I will make a minor change to the code and send you an updated version to test. Unfortunately I am away from home at the moment so might not get a chance to do it until saturday.

Steve
Reply With Quote
  #3  
Old January 11th, 2018, 09:08 AM
iceball iceball is online now
Seer
 
Join Date: Nov 2016
Location: Norway
Posts: 13
Quote:
Originally Posted by SteveMSJ View Post
What version of HS3 are you running and on what os?

I've just realised that if you're system is set to use a comma as the decimal separator this conversion might cause a problem. Is that the case? If so it is sloppy coding on my part

Steve
I'm running version 3.0.0.398 on Windows 10, and yes, comma as decimal separator here in Norway

Thanks! Just contact me and I can test it out.
Reply With Quote
  #4  
Old January 13th, 2018, 07:43 AM
SteveMSJ SteveMSJ is offline
Seer Master
 
Join Date: Jan 2012
Location: UK
Posts: 702
Quote:
Originally Posted by iceball View Post
I'm running version 3.0.0.398 on Windows 10, and yes, comma as decimal separator here in Norway

Thanks! Just contact me and I can test it out.
I set up a test install with comma set as the decimal separator and I couldn't replicate the error so I am less certain of the cure. However, I have made some small changes to the code in the section that throws the error. Could you test the attached. If it works then great, if not I will send you a debug version to look a little deeper.

Just disable the plug-in then copy the attached file from the zip over the existing in the HS3 root directory, then re-enable the pi. The log should show 3.0.5.7 initialized.

Let me know how you get on.

Steve
Attached Files
File Type: zip SDJ-Health 3-0-5-7.zip (56.1 KB, 4 views)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading Com Port Error Romac Script & Plug-In Development 47 March 5th, 2014 01:14 PM
Comm1_OnCom on line 30 Error reading comm device Ralfmen MCS Temperature 24 December 30th, 2010 03:04 PM
Error reading setup file 0.21 madcooks HSTouch™ 6 January 24th, 2009 10:45 AM
Error reading com port mycrobyte ACRF Processor (3P) 0 August 19th, 2008 03:33 PM
Checksum error reading io points: 63768 0 jcolson ADI Ocelot 0 August 9th, 2002 06:16 PM


All times are GMT -4. The time now is 03:23 PM.


Copyright HomeSeer Technologies, LLC