frederik
23a35a289c
fix daily_plot could show zeros when max count/h is only one
2024-04-06 11:41:43 +02:00
frederik
b99367d298
fix deprecation warnings
2024-03-01 12:41:20 +01:00
cdkl
0448eb8134
Remote utc to localtime conversion from daily_plot.py
...
Introduction of yesterday/today handling added a bug that expresses itself on systems whose timezones are behind UTC. Specifically, the 'localtime' modifier to DATE() attempts to interpret the date to the left as UTC, and convert to localtime. The result is that in timezones behind UTC, the date selected is always 1 earlier than intended.
No timezone conversion should be done. The db data is in local time already.
Here's a demonstration of calling DATE() in various ways in North America EST:
sqlite> select DATE('now');
2024-02-26
sqlite> select DATETIME('now');
2024-02-26 17:20:46
sqlite> select DATE('2024-02-26');
2024-02-26
sqlite> select DATETIME('2024-02-26');
2024-02-26 00:00:00
sqlite> select DATE('now', 'localtime');
2024-02-26
sqlite> select DATE('2024-02-26', 'localtime');
2024-02-25 <--- this is the bug
2024-02-26 12:25:10 -05:00
frederik
9fa09f4558
daily_plot.py: first run of the day runs yesterday's plot
2024-02-13 10:57:35 +01:00
frederik
9b9498346a
refactor daily_plot.py
2024-02-13 10:57:35 +01:00
ehpersonal38
5af7dd9ced
Merge branch 'main' into feature/add-confidencepct-variable-to-apprise-notification
2023-05-30 12:30:14 -04:00
ehpersonal38
520e9825d8
highlight current hour label on daily_plot
2023-05-06 13:37:11 -04:00
Bdoner
291ab9263e
satisfy flake8 linter (this is ridiculus)
2023-02-22 10:57:40 +01:00
ehpersonal38
0736831554
Update daily_plot.py
2023-02-10 14:29:32 -05:00
Jake Herbst
cc03d65315
Linting scripts/daily_plot.py
2022-05-24 12:30:15 -04:00
ehpersonal38
2c46f98a5b
Update daily_plot.py
...
Squashed!
2022-05-21 15:52:20 -04:00
ehpersonal38
b550421be0
UI tweaks
2022-05-13 14:09:34 -04:00
Patrick McGuire
528802a0e6
Revert "Adding Flake8 Github Action for Python Linting "
2022-05-11 09:05:59 -04:00
Jake Herbst
f81b2c3014
Removing unused import in daily_plot.py to satisfy flake8 linting
2022-05-11 07:58:34 -04:00
Jake Herbst
3e20ee732e
Updating script/daily_plot.py to satisfy pep8 style guide
...
Used 'autopep8 --in-place --aggressive scripts/daily_plot.py' as initial style fixes.
2022-05-11 07:56:44 -04:00
mcguirepr89
0a9ee65a2b
daily_plot has a better call to the database
...
and updates every 60 seconds instead of 5 minutes
as it takes about 13 seconds and doesn't seem to
bother things
2022-04-16 11:49:58 -04:00
Patrick McGuire
78080d46ee
Update daily_plot.py
2022-04-12 11:04:39 -04:00
mcguirepr89
f69f04d19d
changes that remove the default pi user
2022-04-11 17:29:00 -04:00
mcguirepr89
023b68f386
making changes to accomodate removing the pi user
2022-04-11 10:16:54 -04:00
mcguirepr89
f85010adb4
fmt="g" for both
2022-03-01 09:12:24 -05:00
mcguirepr89
5c07c471bf
better overview
2022-02-20 09:25:42 -05:00
mcguirepr89
857fd981a9
rewritten php and some python for SQLITE
2022-02-19 13:09:32 -05:00
mcguirepr89
db624d5518
adding history and its needed updates
...
removed viewday.php since history will make it redundant
2022-02-17 12:12:01 -05:00
mcguirepr89
01b2305d4d
changed background color to blend with page
2022-02-16 07:52:31 -05:00
mcguirepr89
443b8984f1
daily_plot_simple.txt > daily_plot.sy
2022-02-15 10:59:49 -05:00
Patrick McGuire
d6465e30ce
Update daily_plot.py
2022-02-12 10:43:19 -05:00
CaiusX
513339b773
On branch new_daily_plot
...
Changes to be committed:
modified: scripts/daily_plot.py
2022-02-06 15:48:22 +02:00
CaiusX
1d67cfcbc5
adding a new daily_plot.py for review
2022-02-05 16:23:09 +02:00
Patrick McGuire
2171c84b5c
percentage view and suppressing scientific notation
2021-12-09 11:35:14 -05:00
Patrick McGuire
2438231722
putting charts in Charts dir
2021-12-02 08:45:31 -05:00
Patrick McGuire
92716f556a
adding working daily_plot.py
2021-12-01 09:13:05 -05:00
Patrick McGuire
5fbd43f138
correct daily_plot.py for Combo*.png
2021-11-29 13:44:27 -05:00
Patrick McGuire
1b247fbddd
adding new aesthetic changes and preparing for birdweather changes
2021-11-29 11:00:17 -05:00