Commit graph

36 commits

Author SHA1 Message Date
prash3r
955409d81a repaires log clearence from analytics page 2023-05-16 12:23:24 +02:00
prash3r
7fd6361d30 hookable log data debugging fixes 2023-05-14 15:55:41 +02:00
prash3r
384a8d5422 moves CSV Sensor logging into core extension 2023-04-19 17:33:18 +02:00
prash3r
4eebb17291 moves influxDB integration into extensions folder 2023-04-19 16:47:48 +02:00
prash3r
f01bdb94bd implements the log_data() hook 2023-04-19 14:07:26 +02:00
avollkopf
9a8b0ca30f separate influxdb write to async routine (test) 2023-03-24 18:58:35 +01:00
Maxim Strinzha
c59931dfc1 InfluxDB: support non-ASCII symbols in sensor names. Fix for InfluxDB Cloud 2023-03-19 16:10:01 +03:00
Maxim Strinzha
03d1521c5e InfluxDB: support non-ASCII symbols in sensor names 2023-03-18 16:39:35 +03:00
avollkopf
7aecdac6a7 change in influxdb address requirements 2023-03-13 07:14:26 +01:00
avollkopf
2c13b3c62f catch nen existing logfile for analytics page 2023-03-08 21:39:07 +01:00
avollkopf
679d10d4dc newer pandas in requirements 2023-01-29 12:26:03 +01:00
avollkopf
90f94525be trying to fix dleetion of logfiles via analytics page 2023-01-28 16:34:09 +01:00
avollkopf
2429ea63d1 some fixes in tests and parameter for influxdb measurement name 2023-01-20 17:31:23 +01:00
prash3r
e7aa0a64c7 repairs log_file_controller.py.
I seem to have exidentally search and replaced some
needed glob.glob calls when adding dinamic log location,
which should now be repaired.
There also was a mysterious cbpi_dashboard_1.json appearing
in the wrong folder which now inside the dashboard folder.
I also figured out how to run tests locally,
they should now respect the dynamic folder paths.
2022-09-24 15:19:34 +02:00
prash3r
fea1ba04f0 corrected some more places where ./logs was used
instead of the dynamically given logs path.
2022-09-16 18:56:52 +02:00
prash3r
c56d7ccc51 adds --logs-folder-path as cli option 2022-09-12 21:54:51 +02:00
prash3r
4952861a58 logs folder is next to the active config folder.
It was wherever 'cbpi setup' was run from.
and if no config folder path is provided its still the same.
This also adds a file based global logger placed in the logs folder.
The sensor loggers respect the new logs folder location.
2022-09-09 18:44:48 +02:00
phylax2020
16190124d0 hopefully this commit works! 2022-07-19 21:03:17 +02:00
phylax2020
41018182de Merge branch 'master' of https://github.com/phylax2020/craftbeerpi4
# Conflicts:
#	cbpi/controller/log_file_controller.py
2022-07-19 20:54:34 +02:00
phylax2020
ff0ba76cc0 log_file_controller added again 2022-07-19 20:47:11 +02:00
phylax2020
752d9a27b6 delete log_file_controller.py. will be later restored 2022-07-19 20:45:26 +02:00
phylax2020
313f9d4b39 Set default logfile size to 100000 bytes 2022-07-19 20:28:36 +02:00
Alexander Vollkopf
49b5067841
Revert "Allow changing logfile size and logfile backup count" 2022-07-19 17:36:37 +02:00
phylax2020
8621888d81 Allow changing log file size and log file backup count in settings. Default for log file size is now 130000 bytes (was 1MB). Dashboard with charts can be blocked
if accumulated size of log file data exceeds some megabytes. Also chart refresh rate should be greater than some 10 seconds so that chart plots can not block the user interface.
In functions get_data (for dashboard charts) and get_data2 (for chart in analytics) the pandas resample function is reactivated respectively added to further reduce the amount of data to be transferred to the clients.
In function log_data max_bytes and backup_count must be converted to int, when these settings are changed in the settings dialog.
2022-07-15 21:47:23 +02:00
phylax2020
e95237eef6 limit log data transfer to not exceed 2 times max_rows = 1000 rows by removing every nth row. This keeps the user interface operable. 2022-07-09 22:23:26 +02:00
phylax2020
4652b2b516 Missing string conversion of value in log_data function. 2022-07-03 21:28:19 +02:00
avollkopf
033165d619 updated requirements in setup.py 2022-02-07 17:52:42 +01:00
pascal1404
ab60c5c0fc Remove kettle and fermenter target temp logs and actor logs 2022-02-06 14:05:31 +01:00
pascal1404
f8024f3b49 Add Influxdb-cloud connection and log for actor, fermenter and kettles 2022-02-04 20:48:55 +01:00
avollkopf
9b3219d89c Test to transfer Data to influxdb
CSV logfile writing can be switched off via settings
influxdb can be switched on via settings

->Some changes will be required
2021-12-14 07:20:22 +01:00
Manuel Fritsch
a55ed2a5e5 "recipe book added" 2021-02-27 20:09:19 +01:00
Manuel Fritsch
93aea0c063 "added dataclassed" 2021-02-16 20:37:51 +01:00
Manuel Fritsch
296c2c69f0 rework database 2021-01-22 23:25:20 +01:00
manuel83
30efc95462 log http endpoint swagger doc added 2019-08-05 23:15:14 +02:00
manuel83
bbbfe92aab log http endpoint added 2019-08-05 23:00:18 +02:00
manuel83
8200c48dfc log controller added 2019-08-05 20:51:20 +02:00