Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
ClimateDataCalculation
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: ClimateDataCalculation
I think I was too quick, I suspect the bug is still there... investigating....but only presentation issue
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: ClimateDataCalculation
OK, bad! With the latest version EG stops after a few minutes!
Can you please upload the one before again? I didn't save it...
Re: ClimateDataCalculation
Panic over. The worst of it anyway. I deactivated the report generation, and it seems to work without it. I think I can take a few hours or days without the reports. 
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: ClimateDataCalculation
New versions uploaded,looks ok for me, no high cpu
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: ClimateDataCalculation
Still locks up.
I have my reports generating 60 seconds after startup of EG, and less than a minute after that EG just stops receiving events, with a yellow icon. And 96 % CPU use...
Re: ClimateDataCalculation
There's no doubt that it's the reports. It's now been running for half an hour without any problems with the reports deactivated.
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: ClimateDataCalculation
I better say 'I think I have' solved the problem...
I suspect the problem was because I changed to use the python library 'thread' instead of 'threading' (the code became a bit simpler) but I think 'threading' is recommended to use, 'thread' is superseeded or outdated. Anyway, my tests are now working fine, I re-create reports every minute and it looks good here
New version is uploaded
I suspect the problem was because I changed to use the python library 'thread' instead of 'threading' (the code became a bit simpler) but I think 'threading' is recommended to use, 'thread' is superseeded or outdated. Anyway, my tests are now working fine, I re-create reports every minute and it looks good here
New version is uploaded
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: ClimateDataCalculation
I spoke too soon. I discovered by accident that it had locked up late last night. So there's still something strange there, even though it takes a lot longer before it has effect. 
Re: ClimateDataCalculation
The previous message was writen while you wrote your message, so not about the new version. But this is about the new version: I have the now traditional locked database error a few seconds after startup and while creating the reports, but now it keeps on ticking for a few seconds more. There are three error messages on the reports, then a bunch of stuff comes in at once, and then it all stops, with around 50-70 % CPU but no excessive memory use. On exit from EG it manages to close the process itself after a minute or so. Oh, just to make sure I deleted everything in the directory before I did this upgrade, so all the files are the latest version (at least they should be).
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: ClimateDataCalculation
Yes,
I think the problem is related to accessing the db both for writing (saving incoming) and reading (creating report) at the same time, I think I will try to make a kind of semaphore so that while report creation is ongoing, saving data is put on hold
I think the problem is related to accessing the db both for writing (saving incoming) and reading (creating report) at the same time, I think I will try to make a kind of semaphore so that while report creation is ongoing, saving data is put on hold
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: ClimateDataCalculation
Sounds good! 
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: ClimateDataCalculation
It's looking good here, I think I will have a new version ready for tomorrow (I just would like testing during the night...)
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: ClimateDataCalculation
If you could share today that would be nice. I'm leaving the cabin around noon tomorrow to go home and do some remodelling there (selling next year, so the house needs to look presentable when we show it), and I won't be back here for a week or so. So if you have something you have faith in, I could start running that now and check until I go to bed (which is around six hours, longer than any of the earlier versions have taken to stop working).
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: ClimateDataCalculation
OK, fine, I'll upload now in a few seconds. Here it is really working fine
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: ClimateDataCalculation
Done
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM