Page 12 of 23

Re: OpenNetHomeServer

Posted: Thu Feb 04, 2016 11:24 am
by krambriw
This is great news anyway, now I can start tracking this problem !

Re: OpenNetHomeServer

Posted: Thu Feb 04, 2016 11:25 am
by Mastiff
Oh, btw, if it helps I can fix you access to my VM to play around. I'll just do a full backup of it first (so you can mess around all you want to without destroying anything), and then send you a TeamViewer link to play with. :mrgreen:

Re: OpenNetHomeServer

Posted: Thu Feb 04, 2016 11:28 am
by Mastiff
Or if I can do the testing just as easily as you program I will be on call with minutes reaction time to test new versions all day!

Re: OpenNetHomeServer

Posted: Thu Feb 04, 2016 11:32 am
by krambriw
Just a few seconds left and you will have a new version, I have found the error...it was on my side

Re: OpenNetHomeServer

Posted: Thu Feb 04, 2016 11:35 am
by krambriw
So this should work
__init__.py
(82.41 KiB) Downloaded 126 times

Re: OpenNetHomeServer

Posted: Thu Feb 04, 2016 11:38 am
by Mastiff
Great, man! :D

Code: Select all

12:37:08      {'FineOffset|1150': 'Temp|12.5'}
Sounds about right? :mrgreen:

I still get these, though:

Code: Select all

12:37:39   Error: <type 'exceptions.ValueError'>

Re: OpenNetHomeServer

Posted: Thu Feb 04, 2016 11:44 am
by krambriw
Finally!

It was an embarrassing error on my side, I had defined dictionaries as self.monitor_fineoffset_mem = {} and self.decode_fineoffset_mem = {} but when I called them, I mistakenly used decode_fineOffset_mem and monitor_fineOffset_mem :oops:

The printed error you still get is correct, first time it is empty (but I will remove the print out in the final version that I will upload shortly to the normal place)

Is it still working ok? (maybe you need to wait 20 minutes to be sure)

Re: OpenNetHomeServer

Posted: Thu Feb 04, 2016 12:30 pm
by Mastiff
How embarassing! I don't know how you made that error! :mrgreen: :mrgreen: :mrgreen: (Of course I would not know how you made it correct either...) It's been running for 45 minutes now, and no lost connection anywhere. I think this worked! Thanks, Walter! Great work!

Re: OpenNetHomeServer

Posted: Thu Feb 04, 2016 12:38 pm
by krambriw
Fantastic!
Thanks for your verification work, it was a bit tricky until we found it
I have now uploaded the official release

Re: OpenNetHomeServer

Posted: Thu Feb 04, 2016 12:49 pm
by Mastiff
Brilliant, thanks! :mrgreen: I'll get that then. If you don't hear a very ugly scream from a western direction it works! :lol:

Re: OpenNetHomeServer

Posted: Fri Feb 05, 2016 9:01 am
by Mastiff
It worked at home, but when I put it in at the cabin this has happened during the night:

Code: Select all

03:28:54            ('OpenNetHome', 'Checking connection with...', 'Tellstick Duo', 75434, 75368)
03:31:55            ('OpenNetHome', 'Checking connection with...', 'Tellstick Duo', 75483, 75434)
03:34:56            ('OpenNetHome', 'Checking connection with...', 'Tellstick Duo', 75535, 75483)
03:37:57            ('OpenNetHome', 'Checking connection with...', 'Tellstick Duo', 75586, 75535)
03:40:58            ('OpenNetHome', 'Checking connection with...', 'Tellstick Duo', 75637, 75586)
03:44:00            ('OpenNetHome', 'Checking connection with...', 'Tellstick Duo', 75690, 75637)
03:47:01            ('OpenNetHome', 'Checking connection with...', 'Tellstick Duo', 75735, 75690)
03:50:02            ('OpenNetHome', 'Checking connection with...', 'Tellstick Duo', 75788, 75735)
And nothing else since it started. The icon in the tray was red, and I had to kill the process. Luckily it isn't all that cold there now, so no harm done, I hope.

Re: OpenNetHomeServer

Posted: Fri Feb 05, 2016 11:20 am
by krambriw
There was no change that could cause that type of error. What has happened @ your cabin is that the plugin has failed in establishing a connection to NHS for receiving events. I can only recommend restart trials with this information provided.

Re: OpenNetHomeServer

Posted: Fri Feb 05, 2016 12:45 pm
by Mastiff
I have restarted the system there, and we'll just see what happens. If anything. It may have been a fluke. Crossing fingers!

Re: OpenNetHomeServer

Posted: Sat Feb 06, 2016 9:40 am
by Mastiff
It happened last night again. :cry:

Code: Select all

01:42:57   ClimateDataCalculation.vindstyrke 'Combo report created'
01:42:57   Exception in thread Thread-18694:
01:42:57   Traceback (most recent call last):
01:42:57     File "threading.pyc", line 532, in __bootstrap_inner
01:42:57     File "threading.pyc", line 484, in run
01:42:57     File "C:\Program Files (x86)\EventGhost\plugins\ClimaDataCalculation\__init__.py", line 2895, in CreateReport
01:42:57       rprtHeading
01:42:57     File "C:\Program Files (x86)\EventGhost\plugins\ClimaDataCalculation\CreateWindRoseHtml.py", line 24, in CreateWindRoseHtml
01:42:57       logstr += MakeWindRoseChart(rows)
01:42:57     File "C:\Program Files (x86)\EventGhost\plugins\ClimaDataCalculation\CreateWindRoseHtml.py", line 72, in MakeWindRoseChart
01:42:57       s_data[rdir][0] += 1
01:42:57   KeyError: ''
01:42:57   
01:43:00   Tellstick.FineOffset|1195 'Temp|-16.6'
01:43:00   RFXtrx.Type: Viking 02811 id: 41216 ' temperature: +5.9 deg C signal: 6 battery: 9'
01:43:00      Loftet
01:43:00         Python Script
01:43:00         ClimateDataCalculation: TempDataCapture: Loftet
01:43:01   Current Q size:  15
01:43:03   RFXtrx.Type: THGN122/123, THGN132, THGR122/228/238/268 id: 62468 ' temperature: +12.7 deg C humidity: 34 %RH status: dry signal: 7 battery: 9'
01:43:03      Yttergangen (med fuktighet)
01:43:03         Python Script
01:43:03         ClimateDataCalculation: TempDataCapture: Yttergangen
01:43:21            No data found during specified range for Ute under hytta
01:43:21   OpenNetHome.'Lost contact with sensor: FineOffset|1276'
01:43:21   Tellstick.FineOffset|1159 'Temp|7.1'
01:43:21      Kj├©leskap
01:43:21         Python Script
01:43:21         ClimateDataCalculation: TempDataCapture: Kj├©lskapet
01:43:30   RFXtrx.Type: PCR800 id: 25856 ' rainrate: 0 mm/hr rainTotal: 269 mm signal: 6 battery: 100%'
01:43:30   RFXtrx.Type: THGN122/123, THGN132, THGR122/228/238/268 id: 29444 ' temperature: +6.5 deg C humidity: 39 %RH status: dry signal: 7 battery: 9'
01:43:30      Badet (med fuktighet)
01:43:30         Python Script
01:43:30         ClimateDataCalculation: TempDataCapture: Badet
01:45:01            ('OpenNetHome', 'Checking connection with...', 'Tellstick Duo', 104006, 103957)
01:48:02            ('OpenNetHome', 'Checking connection with...', 'Tellstick Duo', 104056, 104006)
01:51:03            ('OpenNetHome', 'Checking connection with...', 'Tellstick Duo', 104103, 104056)
I added the error from the CDC plug-in that happened a couple of minutes before this. I don't know if it's related. I will try a full restart of the VM, not just EG, to see if it happens again tomorrow night.

Re: OpenNetHomeServer

Posted: Sat Feb 06, 2016 10:28 am
by krambriw
1) Where and how are you running NHS itself?

2) Have you checked the NHS log itself?

3) I run NHS in a RPi and the TCP port connection sometimes dies after a week or so. With the latest version, it stays alive longer

4) The error for CDC: wind sensor, are you expecting data from NHS for this?

5) Here we see a lost sensor event that I believe is correct?
OpenNetHome.'Lost contact with sensor: FineOffset|1276'
6) I think the TCP port in NHS has died. Did you restart NHS yesterday?