Commit Graph

49 Commits

Author SHA1 Message Date
frederik 0d55caf33d Fix: missed one Com_Name the converstion 2025-10-12 20:55:17 +02:00
frederik 5029a417c2 daily_plot: use sci name for grouping 2025-10-11 11:26:43 +02:00
frederik 0d060dbfdd cleanup: use helper to set font 2025-05-10 10:37:38 +02:00
frederik 0eab5428e4 add fonts for Korean and Arabic 2025-05-04 11:06:56 +02:00
frederik ca7e32f518 fix: copy-paste error - doh! 2025-03-29 11:28:43 +01:00
frederik fb65cda24e cleanup: open db in read-only mode 2025-03-29 10:34:21 +01:00
Alexandre 2555eb10e3 Fix transparent graph
Co-Authored-By: TF-Ingolstadt <195639961+tf-ingolstadt@users.noreply.github.com>
2025-03-08 11:06:38 +01:00
Alexandre 071f60a04e More compact code 2024-11-09 16:59:23 +01:00
Alexandre c39fc1d195 Fix maxconf color scale 2024-11-09 16:59:23 +01:00
Emmo213 73d2ba5b48 Dark daily chart (#152)
* Updated daily chart to use the theme selector

* Added sleep after changing theme so the chart can update

* Added code for pink theme, made it easier to add more themes in the future

* Added blue chart for future blue theme

* Set chart background to none so it's transparent

* Added back background for dark mode.

* Change daily chart based on file based settings. Only support light/dark mode.

* Cleanup

* Added borders around the bars on the bar chart

* Updated background color for dark theme

* Merge from main

* Fixed some spacing

* Updating Python version for linting

* Cleanup

* Back leveled to Python 3.9

* Update scripts/daily_plot.py

Co-authored-by: Nachtzuster <Nachtzuster@users.noreply.github.com>

* Coding suggestions

---------

Co-authored-by: Nachtzuster <Nachtzuster@users.noreply.github.com>
2024-08-05 21:38:33 +02:00
frederik ed1be8816a labels with wide letters should wrap sooner so they are not cut off 2024-07-17 20:59:29 +02:00
frederik 2c4fe69505 fix: use a font that can actually render the characters 2024-06-15 12:57:02 +02:00
Alexandre 3045c5d8c1 Fix : set_ticklabels warning (#52)
* Fix set_ticklabels warning

* Update daily_plot.py

* Comment

* Update daily_plot.py
2024-05-05 17:51:53 +02:00
frederik 9ad6ed4392 fix warning and cleanup 2024-04-15 17:03:30 +02:00
frederik d03b455fb9 add counts on the bars, based on code provided by Svardsten53 2024-04-15 15:08:00 +02:00
frederik 6741d40e13 add option to include all detections, and make default 2024-04-10 14:28:14 +02:00
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