-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
weather_level_adj : wrong history and calculation #72
Comments
@Dan-in-CA I'm testing your project but I can contribute with a donation if I can use it :) |
@Dan-in-CA sorry, can you help to understand what is happening in this pluging? |
This plugin has been contributed and edited by several users over time. What do you think such a plugin should do? Dan |
Hi Dan, thanks for reply!
The idea of this plugin is good, but if not fixable I think it could be simplified (without temperature and more).
Based on the parameters of this plugin you could take a cue and keep:
|
Still on debug... @Dan-in-CA Like the first example https://github.com/Dan-in-CA/sip_plugins/issues/72#issue-1644061589 there are only 3 files per day:
In this case:
Where: 0.24+0.32+1.78 is....
So the problem is that it saves only 3 times per day instead of every 1h (in this example the rain was for about 10h with a total of 10mm)
Not sure if the bug is about days_history = 3 (used as "hours_history" ?) |
I concluded that it is better to improve the code, also using a new openweathermap feature. |
Wow that's a first! One thing that has bothered me about the weather plugin in its present form is the amount of data it stores on the SD card with every check of weather conditions. Instead of saving just the date it uses it stores the entire response from Openweathermap including a lot of redundant data that is not needed. I have always tried to minimize the wear on the SD card as described in the SIP documentation: |
Great point, I noticed this too and got concerned about it, although the new SDs are robust in terms of rewrites. So initially I thought about minimizing the save date (an array saved with pickle or even pickle+gzip) But after some analysis my new idea is great and now possible, to have the history... without saving any data and also without any data saved in the cloud! hehe ;) |
It seems that the plugin shortly after the rain loses count of the rain that has fallen:
Mar 20 04:21 'Irrigation needed:\n0.9mm'
Mar 20 04:21 'Total rainfall:\n2.66mm'
Mar 20 05:21 'Irrigation needed:\n0.0mm'
<-- ok !Mar 20 05:21 'Total rainfall:\n4.1mm'
Mar 20 06:21 'Irrigation needed:\n1.3mm'
<-- ??Mar 20 06:21 'Total rainfall:\n2.3mm'
Mar 20 07:21 'Irrigation needed:\n3.4mm'
<-- ??Mar 20 07:21 'Total rainfall:\n0.92mm'
Mar 20 08:22 'Irrigation needed:\n4.2mm'
<-- ??Mar 20 08:22 'Total rainfall:\n0.2mm'
In thix example if I have to start at 08 or 09 o'clock it does not consider a few hours before.
Full log:
I also don't understand where the data for 3 days before and 3 days of forecasts are saved (as per setting)
Current
Mar 28 15:00
:Why only Mar 27 at 16.36, 17.36 and 18.36?
Here another example at
Mar 19 23:45
:Always only 3 history in one day at same time (16.xx, 17.xx and 18.xx)
The text was updated successfully, but these errors were encountered: