Page 23 of 37

Re: ClimateDataCalculation

Posted: Wed Jun 03, 2015 8:00 am
by krambriw
Of course not :oops:

The calculation is just a bit complicated...

Re: ClimateDataCalculation

Posted: Wed Jun 03, 2015 8:15 am
by Mastiff
Well, it wouldn't be the first time I have found a "bug" that tuns out to be me doing something wrong, you know! :mrgreen:

Re: ClimateDataCalculation

Posted: Wed Jun 03, 2015 8:49 am
by krambriw
I have uploaded a new version that I think is doing it correctly (I have compared the graph with the gaps in the data base for 'Loftet' and they are matching now). Running a 30 day report.

It is currently only supporting gaps up to 24 hours. In a normal situation this should be fine but maybe for your cabin, if the batteries goes out and you are not able to replace them...maybe you should add a script to monitor the battery level in the sensors to give an early warning. The RFXtrx provides this in each event but the TellStick does not. Also, when changing batteries in a sensor, the address is changed unless you change batteries very fast. In the ones with two batteries like some Oregon sensors, I quickly change one at a time and in this way I have managed that the sensor keep its address

Re: ClimateDataCalculation

Posted: Wed Jun 03, 2015 9:20 am
by Mastiff
Thanks, that looks correct here too! :mrgreen:

Yeah, those sensors can be a pain in the ass that way. As for battery, I don't get anything useful from the Viking. They show 9 on the battery until they suddenly just die...so even I never get them in time. Like the one underneath the cabin has done. Have to crawl under there to fix that, even though it's not so important in the summer. It's mostly there to check the temperature in the winter for the heating of the water line. When it goes below 2 degrees I turn on the heat. :)

Re: ClimateDataCalculation

Posted: Wed Jun 03, 2015 9:27 am
by krambriw
Thanks, that looks correct here too!
Great, then we have nailed that one!

Best is of course to have sensors with permanent power supply but that is not likely in reality with those wireless devices. I will look into have I can extend the gap coverage to cover at least a month (or more if possible...)

Re: ClimateDataCalculation

Posted: Wed Jun 03, 2015 9:34 am
by Mastiff
It would be nice with a month, thanks! That way I will always have time to get to the cabin and change the one that's dead. :mrgreen: Btw I'm putting in a suggestion at the RFX tread that just struck me.

Re: ClimateDataCalculation

Posted: Wed Jun 03, 2015 10:30 am
by krambriw
New version uploaded. It should now also support gaps including x number of days (we just have to wait for the gap to happen, I think I will turn off one of my sensors a couple of days)

Re: ClimateDataCalculation

Posted: Wed Jun 03, 2015 10:33 am
by Mastiff
Thanks! And you don't have to do that. I'll get a new battery in the one underneath the cabin today, so we can use that. :mrgreen:

Re: ClimateDataCalculation

Posted: Wed Jun 03, 2015 1:58 pm
by Mastiff
I have changed the batteries and put in the new sensor ID, so it's up and running now, I'll let you kow when it comes in again. But something weird happened the 21st of May. The two outdoors sensors were perfectly in sync, with the same temp pattern and the one under the cabin being some degrees below the one that's on the wall. But on that date something happened, so now I have the one on the wall ("Utetemperatur ved d├©ra") two hours after the one underneath the cabin. Any idea what that can be? I have the same settings on them both and haven't changed any settings for as long as I can remember.

Re: ClimateDataCalculation

Posted: Wed Jun 03, 2015 3:27 pm
by Mastiff
I have a short graph in. Turns out that there's a time difference on the newly added graph as well.

Re: ClimateDataCalculation

Posted: Wed Jun 03, 2015 6:04 pm
by krambriw
Thanks, yes, I see the same...the one minute is ok but not the 10 minute one, your data base is great for testing will all those gaps

BestR Walter

Re: ClimateDataCalculation

Posted: Wed Jun 03, 2015 6:07 pm
by Mastiff
Well, I'm glad those gaps are good for something! ;) Do you need the latest version, with three hours of the newly re-added sensor? :mrgreen:

Re: ClimateDataCalculation

Posted: Thu Jun 04, 2015 12:04 pm
by krambriw
It's ok, I think I found the solution with the data base you already provided...let's see if it works out for you as well. New version is uploaded (CreateComboHtml.py)

BR

Re: ClimateDataCalculation

Posted: Thu Jun 04, 2015 12:09 pm
by Mastiff
No, I'm afraid it doesn't work...

Code: Select all

14:08:21   Error while loading plugin-file C:\Program Files (x86)\EventGhost\plugins\ClimaDataCalculation.
14:08:21   Traceback (most recent call last) (1700):
14:08:21     File "C:\Program Files (x86)\EventGhost\plugins\ClimaDataCalculation\__init__.py", line 99, in <module>
14:08:21       import CreateComboHtml
14:08:21     File "C:\Program Files (x86)\EventGhost\plugins\ClimaDataCalculation\CreateComboHtml.py", line 701
14:08:21       if rd == 0.0:
14:08:21                   ^
14:08:21   IndentationError: unindent does not match any outer indentation level
14:08:21   Unhandled exception in WorkerThread <EventThread>:
14:08:21   Callers stack:
14:08:21     File "wx\_core.pyc", line 8010, in MainLoop
14:08:21     File "wx\_core.pyc", line 7306, in MainLoop
14:08:21     File "wx\_core.pyc", line 14669, in <lambda>
14:08:21   Traceback (most recent call last) (1700):
14:08:21     File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 326, in __DoOneEvent
14:08:21       self.HandleAction(action)
14:08:21     File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 289, in HandleAction
14:08:21       action()
14:08:21     File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
14:08:21       self.returnValue = self.func(*self.args, **self.kwargs)
14:08:21     File "C:\Program Files (x86)\EventGhost\eg\Classes\EventThread.py", line 142, in StartSession
14:08:21       actionThread.Func(actionThread.StartSession, 120)(filename)
14:08:21     File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
14:08:21       self.returnValue = self.func(*self.args, **self.kwargs)
14:08:21     File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 39, in StartSession
14:08:21       eg.document.Load(filename)
14:08:21     File "C:\Program Files (x86)\EventGhost\eg\Classes\Document.py", line 145, in Load
14:08:21       root = self.RootItem(self, node)
14:08:21     File "C:\Program Files (x86)\EventGhost\eg\Classes\RootItem.py", line 55, in __init__
14:08:21       ContainerItem.__init__(self, parent, node)
14:08:21     File "C:\Program Files (x86)\EventGhost\eg\Classes\ContainerItem.py", line 38, in __init__
14:08:21       for childNode in node
14:08:21     File "C:\Program Files (x86)\EventGhost\eg\Classes\AutostartItem.py", line 43, in __init__
14:08:21       child = self.document.PluginItem(self, childNode)
14:08:21     File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginItem.py", line 62, in __init__
14:08:21       self,
14:08:21     File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginManager.py", line 138, in OpenPlugin
14:08:21       info = clsInfo.CreateInstance(args, evalName, treeItem)
14:08:21   AttributeError: 'NoneType' object has no attribute 'CreateInstance'

Re: ClimateDataCalculation

Posted: Thu Jun 04, 2015 12:17 pm
by krambriw
Oooops, how careless of me

Now it should be corrected, sorry