woheller69 / solxpect

Android app to forecast the output of your photovoltaic system (PV) or balcony pv using data from Open-Meteo.com. Even shading and the temperature coefficient are taken into account.
GNU General Public License v3.0
78 stars 4 forks source link

Hourly vaues should be reset for ever day #23

Closed marku5 closed 2 months ago

marku5 commented 2 months ago

Bug or idea?

Main screen shows three sections:

  1. Hourly values
  2. Daily values as values
  3. Daily values as barchart

Values in 2. and 3. are reset every day. The sum of kWh in 1. is summarized for all shown days => These values shall as well be set to zero in midnight.

martinrieder commented 2 months ago

I agree to the point that @marku5 brings up, but I generally do not see a real benefit from the hourly sum.

My personal opinion: Simply remove it!

Note that the numbers displayed as Wh tend to be quite long, which causes the entries to be further apart than in the weekly view.

Screenshot_20240630-092958~2.png

See how it displays only 3 hours on my screen, while the daily view shows 4.5 days. Removing the hourly sum would therefore condense the hourly display.

Additional thought, but different issue: Displaying the units below the numbers could further condense both views.

woheller69 commented 2 months ago

the hourly sum helps finding the right pramaters by comparing with measured production values

marku5 commented 2 months ago

To clarify: I like the hourly sum, just not the "no value reset at midnight".

martinrieder commented 2 months ago

@woheller69 wrote:

the hourly sum helps finding the right pramaters by comparing with measured production values

Then it would be useful to also show a daily sum? Should there possibly be a way to enter a starting value for this sum?

Anyhow, users would need to read their energy counter at different times and compare the difference. This is a backward-looking calculation, while the app provides a prediction for the coming hours/days. By giving the initial value, the sum would predict the reading of your energy counter.

@marku5 wrote:

To clarify: I like the hourly sum, just not the "no value reset at midnight".

I understand your point. The issue is perfectly valid. I just mentioned that I have a different view on this. Maybe I will raise another issue to show values in a more compact way then.

woheller69 commented 2 months ago

Please try this apk

-Backup your settings -Uninstall -Remove .zip and install -Restore settings

Values are reset at midnight if not in debug mode

app-release.apk.zip

marku5 commented 2 months ago

Works! Thanks for the fix/new feature!

martinrieder commented 2 months ago

Also works for me. It clarifies the relation when the sums in the hourly and the daily view are matching.