From 1812d5a3d6840e19a4348e5796238f534f46b2ac Mon Sep 17 00:00:00 2001
From: Lennard <27106448+SirWalross@users.noreply.github.com>
Date: Wed, 15 Jun 2022 08:52:14 +0200
Subject: [PATCH] Cleanup

---
 bash.log                   | 368 +------------------------------------
 config.yml                 |   4 +-
 data/data                  |   0
 data/log.2022-06-08_13.log |   4 +-
 data/log.2022-06-09_00.log |   3 -
 data/log.2022-06-10_00.log |   3 +
 data/log.2022-06-11_00.log |   3 +
 data/log.2022-06-12_00.log |   3 +
 data/log.2022-06-13_00.log |   4 +-
 data/log.2022-06-14_00.log |   4 +-
 measure.py                 |   8 +-
 scripts/push.bash          |  10 +-
 12 files changed, 27 insertions(+), 387 deletions(-)
 delete mode 100644 data/data
 delete mode 100644 data/log.2022-06-09_00.log
 create mode 100644 data/log.2022-06-10_00.log
 create mode 100644 data/log.2022-06-11_00.log
 create mode 100644 data/log.2022-06-12_00.log

diff --git a/bash.log b/bash.log
index d94f6fe..772ffb7 100644
--- a/bash.log
+++ b/bash.log
@@ -106,31 +106,6 @@ Fast-forward
  scripts/write.bash | 14 ++++----
  5 files changed, 97 insertions(+), 66 deletions(-)
 
-insgesamt 76
-drwxr-xr-x 8 pi pi 4096 Jun 12 00:00 .
-drwxr-xr-x 3 pi pi 4096 Mai 25 10:52 ..
--rw-r--r-- 1 pi pi 5237 Jun 12 00:00 bash.log
--rw-r--r-- 1 pi pi  311 Mai 25 10:52 .clang-format
--rw-r--r-- 1 pi pi  635 Jun  8 13:02 config.yml
--rw-r--r-- 1 pi pi 1832 Mai 25 10:52 convert.py
-drwxr-xr-x 2 pi pi 4096 Jun 10 01:00 data
-drwxr-xr-x 9 pi pi 4096 Jun 12 00:00 .git
--rw-r--r-- 1 pi pi   43 Mai 25 10:52 .gitattributes
-drwxr-xr-x 3 pi pi 4096 Mai 25 10:52 .github
--rw-r--r-- 1 pi pi   57 Jun 12 00:00 .gitignore
-drwxr-xr-x 2 pi pi 4096 Jun  8 13:06 logs
--rw-r--r-- 1 pi pi 7517 Jun 12 00:00 main.py
--rw-r--r-- 1 pi pi 4096 Jun 12 00:00 measure.py
--rw-r--r-- 1 pi pi   25 Mai 25 10:52 README.md
-drwxr-xr-x 2 pi pi 4096 Jun 12 00:00 scripts
-drwxr-xr-x 4 pi pi 4096 Mai 25 10:52 sketches
-insgesamt 616
-drwxr-xr-x 2 pi pi   4096 Jun 10 01:00 .
-drwxr-xr-x 8 pi pi   4096 Jun 12 00:00 ..
--rw-r--r-- 1 pi pi 485642 Jun 11 23:59 data
--rw-r--r-- 1 pi pi 111922 Jun  9 00:00 log.2022-06-08_13.log
--rw-r--r-- 1 pi pi  10388 Jun 10 01:00 log.2022-06-09_00.log
-ls: Zugriff auf 'log' nicht möglich: Datei oder Verzeichnis nicht gefunden
 2022-06-12 00:00:03, ERROR, [main_logger.handle_exception:57]	Uncaught exception
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 501, in read
@@ -150,19 +125,6 @@ serial.serialutil.SerialException: read failed: device reports readiness to read
 Error: Something went wrong.
 Exiting
 
-Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
-Collecting multiprocessing_logging
-  Downloading https://files.pythonhosted.org/packages/19/5b/4efe65bcf7a9d0cda56912b4cf12647aad505a99325f0f56698b2d5e747a/multiprocessing_logging-0.3.3-py2.py3-none-any.whl
-Installing collected packages: multiprocessing-logging
-Successfully installed multiprocessing-logging-0.3.3
-Traceback (most recent call last):
-  File "measure.py", line 18, in <module>
-    from multiprocessing_logging import install_mp_handler
-ModuleNotFoundError: No module named 'multiprocessing_logging'
-[main 5f7ff3c] New data
- 1 file changed, 92 insertions(+)
-To https://github.com/SirWalross/MessdatenSilo.git
-   b7e1ab9..5f7ff3c  main -> main
 Starting python script:
 
 scripts/./push.bash: Zeile 15: loop_count: Kommando nicht gefunden.
@@ -181,157 +143,6 @@ Fast-forward
  sketches/Temperaturmessung/Temperaturmessung.ino | 1 +
  4 files changed, 11 insertions(+), 4 deletions(-)
 
-insgesamt 80
-drwxr-xr-x 8 pi pi 4096 Jun 13 00:00 .
-drwxr-xr-x 3 pi pi 4096 Mai 25 10:52 ..
--rw-r--r-- 1 pi pi 8890 Jun 13 00:00 bash.log
--rw-r--r-- 1 pi pi  311 Mai 25 10:52 .clang-format
--rw-r--r-- 1 pi pi  635 Jun  8 13:02 config.yml
--rw-r--r-- 1 pi pi 1832 Mai 25 10:52 convert.py
-drwxr-xr-x 2 pi pi 4096 Jun 10 01:00 data
-drwxr-xr-x 9 pi pi 4096 Jun 13 00:00 .git
--rw-r--r-- 1 pi pi   43 Mai 25 10:52 .gitattributes
-drwxr-xr-x 3 pi pi 4096 Mai 25 10:52 .github
--rw-r--r-- 1 pi pi   38 Jun 13 00:00 .gitignore
-drwxr-xr-x 2 pi pi 4096 Jun  8 13:06 logs
--rw-r--r-- 1 pi pi 7517 Jun 12 00:00 main.py
--rw-r--r-- 1 pi pi 4096 Jun 12 00:00 measure.py
--rw-r--r-- 1 pi pi   25 Mai 25 10:52 README.md
-drwxr-xr-x 2 pi pi 4096 Jun 13 00:00 scripts
-drwxr-xr-x 4 pi pi 4096 Mai 25 10:52 sketches
-insgesamt 860
-drwxr-xr-x 2 pi pi   4096 Jun 10 01:00 .
-drwxr-xr-x 8 pi pi   4096 Jun 13 00:00 ..
--rw-r--r-- 1 pi pi 733944 Jun 12 23:59 data
--rw-r--r-- 1 pi pi 111922 Jun  9 00:00 log.2022-06-08_13.log
--rw-r--r-- 1 pi pi  10388 Jun 10 01:00 log.2022-06-09_00.log
-insgesamt 156
-drwxr-xr-x 2 pi pi   4096 Jun  8 13:06 .
-drwxr-xr-x 8 pi pi   4096 Jun 13 00:00 ..
--rw-r--r-- 1 pi pi 144338 Jun 12 23:52 log
-USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
-root         1  0.0  0.2  33764  8216 ?        Ss   Jun08   0:10 /sbin/init splash
-root         2  0.0  0.0      0     0 ?        S    Jun08   0:00 [kthreadd]
-root         3  0.0  0.0      0     0 ?        I<   Jun08   0:00 [rcu_gp]
-root         4  0.0  0.0      0     0 ?        I<   Jun08   0:00 [rcu_par_gp]
-root         8  0.0  0.0      0     0 ?        I<   Jun08   0:00 [mm_percpu_wq]
-root         9  0.0  0.0      0     0 ?        S    Jun08   0:00 [rcu_tasks_rude_]
-root        10  0.0  0.0      0     0 ?        S    Jun08   0:00 [rcu_tasks_trace]
-root        11  0.0  0.0      0     0 ?        S    Jun08   0:19 [ksoftirqd/0]
-root        12  0.0  0.0      0     0 ?        I    Jun08   0:02 [rcu_sched]
-root        13  0.0  0.0      0     0 ?        S    Jun08   0:00 [migration/0]
-root        14  0.0  0.0      0     0 ?        S    Jun08   0:00 [cpuhp/0]
-root        15  0.0  0.0      0     0 ?        S    Jun08   0:00 [cpuhp/1]
-root        16  0.0  0.0      0     0 ?        S    Jun08   0:00 [migration/1]
-root        17  0.0  0.0      0     0 ?        S    Jun08   0:00 [ksoftirqd/1]
-root        20  0.0  0.0      0     0 ?        S    Jun08   0:00 [cpuhp/2]
-root        21  0.0  0.0      0     0 ?        S    Jun08   0:00 [migration/2]
-root        22  0.0  0.0      0     0 ?        S    Jun08   0:00 [ksoftirqd/2]
-root        25  0.0  0.0      0     0 ?        S    Jun08   0:00 [cpuhp/3]
-root        26  0.0  0.0      0     0 ?        S    Jun08   0:00 [migration/3]
-root        27  0.0  0.0      0     0 ?        S    Jun08   0:00 [ksoftirqd/3]
-root        30  0.0  0.0      0     0 ?        S    Jun08   0:00 [kdevtmpfs]
-root        31  0.0  0.0      0     0 ?        I<   Jun08   0:00 [netns]
-root        35  0.0  0.0      0     0 ?        S    Jun08   0:00 [kauditd]
-root        36  0.0  0.0      0     0 ?        S    Jun08   0:00 [khungtaskd]
-root        37  0.0  0.0      0     0 ?        S    Jun08   0:00 [oom_reaper]
-root        38  0.0  0.0      0     0 ?        I<   Jun08   0:00 [writeback]
-root        39  0.0  0.0      0     0 ?        S    Jun08   0:29 [kcompactd0]
-root        57  0.0  0.0      0     0 ?        I<   Jun08   0:00 [kblockd]
-root        58  0.0  0.0      0     0 ?        I<   Jun08   0:00 [blkcg_punt_bio]
-root        59  0.0  0.0      0     0 ?        S    Jun08   0:00 [watchdogd]
-root        60  0.0  0.0      0     0 ?        I    Jun08   1:29 [kworker/3:1-events_power_efficient]
-root        61  0.0  0.0      0     0 ?        I<   Jun08   0:00 [kworker/1:1H-kblockd]
-root        62  0.0  0.0      0     0 ?        I<   Jun08   0:00 [rpciod]
-root        63  0.0  0.0      0     0 ?        I<   Jun08   0:00 [kworker/u9:0-hci0]
-root        64  0.0  0.0      0     0 ?        I<   Jun08   0:00 [xprtiod]
-root        65  0.0  0.0      0     0 ?        S    Jun08   0:00 [kswapd0]
-root        66  0.0  0.0      0     0 ?        I<   Jun08   0:00 [nfsiod]
-root        67  0.0  0.0      0     0 ?        I<   Jun08   0:00 [kthrotld]
-root        68  0.0  0.0      0     0 ?        I<   Jun08   0:00 [iscsi_eh]
-root        69  0.0  0.0      0     0 ?        I<   Jun08   0:00 [iscsi_destroy]
-root        72  0.0  0.0      0     0 ?        I<   Jun08   0:00 [DWC Notificatio]
-root        73  0.0  0.0      0     0 ?        I<   Jun08   0:00 [uas]
-root        75  0.0  0.0      0     0 ?        S<   Jun08   0:00 [vchiq-slot/0]
-root        76  0.0  0.0      0     0 ?        S<   Jun08   0:00 [vchiq-recy/0]
-root        77  0.0  0.0      0     0 ?        S<   Jun08   0:00 [vchiq-sync/0]
-root        78  0.0  0.0      0     0 ?        I<   Jun08   0:00 [zswap-shrink]
-root        79  0.0  0.0      0     0 ?        I<   Jun08   0:00 [sdhci]
-root        80  0.0  0.0      0     0 ?        S    Jun08   0:00 [irq/47-mmc0]
-root        82  0.0  0.0      0     0 ?        I<   Jun08   0:00 [mmc_complete]
-root        83  0.0  0.0      0     0 ?        I<   Jun08   0:06 [kworker/0:1H-mmc_complete]
-root        84  0.0  0.0      0     0 ?        I<   Jun08   0:00 [kworker/2:1H-kblockd]
-root        85  0.0  0.0      0     0 ?        S    Jun08   0:02 [jbd2/mmcblk0p2-]
-root        86  0.0  0.0      0     0 ?        I<   Jun08   0:00 [ext4-rsv-conver]
-root        88  0.0  0.0      0     0 ?        I<   Jun08   0:00 [ipv6_addrconf]
-root       103  0.0  0.0      0     0 ?        I<   Jun08   0:00 [kworker/3:2H-kblockd]
-root       116  0.0  0.2  21252  8700 ?        Ss   Jun08   0:03 /lib/systemd/systemd-journald
-root       148  0.0  0.1  18472  3936 ?        Ss   Jun08   0:01 /lib/systemd/systemd-udevd
-root       177  0.0  0.0      0     0 ?        S    Jun08   0:00 [vchiq-keep/0]
-root       178  0.0  0.0      0     0 ?        S<   Jun08   0:00 [SMIO]
-root       188  0.0  0.0      0     0 ?        I<   Jun08   0:00 [mmal-vchiq]
-root       190  0.0  0.0      0     0 ?        I<   Jun08   0:00 [mmal-vchiq]
-root       191  0.0  0.0      0     0 ?        I<   Jun08   0:00 [mmal-vchiq]
-root       192  0.0  0.0      0     0 ?        I<   Jun08   0:00 [mmal-vchiq]
-root       212  0.0  0.0      0     0 ?        I<   Jun08   0:00 [cfg80211]
-root       213  0.0  0.0      0     0 ?        S    Jun08   0:00 [card0-crtc0]
-root       232  0.0  0.0      0     0 ?        I<   Jun08   0:00 [brcmf_wq/mmc1:0]
-root       236  0.0  0.0      0     0 ?        S    Jun08   0:00 [brcmf_wdog/mmc1]
-root       241  0.0  0.0      0     0 ?        S    Jun08   0:00 [v3d_bin]
-root       243  0.0  0.0      0     0 ?        S    Jun08   0:00 [v3d_render]
-root       244  0.0  0.0      0     0 ?        S    Jun08   0:00 [v3d_tfu]
-root       245  0.0  0.0      0     0 ?        S    Jun08   0:00 [v3d_csd]
-root       247  0.0  0.0      0     0 ?        S    Jun08   0:00 [v3d_cache_clean]
-root       352  0.0  0.1   7916  4688 ?        Ss   Jun08   0:00 /sbin/dhclient -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0
-root       354  0.0  0.1  13152  5840 ?        Ss   Jun08   0:01 /lib/systemd/systemd-logind
-root       356  0.0  0.1  11768  4616 ?        SNs  Jun08   0:00 /usr/sbin/alsactl -E HOME=/run/alsa -s -n 19 -c rdaemon
-avahi      364  0.0  0.0   5768  2504 ?        Ss   Jun08   0:00 avahi-daemon: running [raspberrypi.local]
-root       368  0.0  0.0  25512  2996 ?        Ssl  Jun08   0:00 /usr/sbin/rsyslogd -n -iNONE
-root       381  0.0  0.0   7948  2360 ?        Ss   Jun08   0:00 /usr/sbin/cron -f
-avahi      384  0.0  0.0   5768   252 ?        S    Jun08   0:00 avahi-daemon: chroot helper
-root       391  0.0  0.0  27656    80 ?        SLsl Jun08   0:07 /usr/sbin/rngd -r /dev/hwrng
-message+   396  0.0  0.0   6548  3508 ?        Ss   Jun08   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
-nobody     408  0.0  0.0   4320  2152 ?        Ss   Jun08   0:03 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
-root       409  0.0  0.0  10744  3736 ?        Ss   Jun08   0:02 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
-systemd+   561  0.0  0.1  21980  5396 ?        Ssl  Jun08   0:01 /lib/systemd/systemd-timesyncd
-root       607  0.0  0.1  10728  5368 ?        Ss   Jun08   0:00 /usr/sbin/sshd -D
-root       608  0.0  0.0   5620  2788 tty1     Ss   Jun08   0:00 /bin/login -f
-root       615  0.0  0.0      0     0 ?        I<   Jun08   0:00 [kworker/u9:2-hci0]
-root       616  0.0  0.0   2140   128 ?        S    Jun08   0:00 /usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow -
-root       621  0.0  0.0   9536  3300 ?        Ss   Jun08   0:00 /usr/lib/bluetooth/bluetoothd
-pi         630  0.0  0.1  14704  7376 ?        Ss   Jun08   0:00 /lib/systemd/systemd --user
-pi         631  0.0  0.0  35188  3532 ?        S    Jun08   0:00 (sd-pam)
-pi         641  0.0  0.0   8492  3768 tty1     S+   Jun08   0:00 -bash
-root      4427  0.0  0.0   9468  1964 ?        S    Jun12   0:00 /usr/sbin/CRON -f
-pi        4428  0.0  0.0   1940   380 ?        Ss   Jun12   0:00 /bin/sh -c /home/pi/Desktop/MessdatenSilo/scripts/pull.bash
-pi        4429  0.0  0.0   7676  2500 ?        S    Jun12   0:00 /bin/bash /home/pi/Desktop/MessdatenSilo/scripts/pull.bash
-pi        4465  0.0  0.0   7676  2468 ?        S    Jun12   0:00 /bin/bash scripts/./push.bash
-pi        4466  0.0  0.0   6824   324 ?        S    Jun12   0:00 tee -a bash.log
-pi        4554  0.1  0.5  36172 19696 ?        S    Jun12   2:07 python3 main.py
-root      4569  0.0  0.1  27908  6668 ?        Ss   Jun12   0:00 /usr/sbin/cupsd -l
-root      4571  0.0  0.2  40496  8672 ?        Ssl  Jun12   0:00 /usr/sbin/cups-browsed
-root      4581  0.0  0.0      0     0 ?        I<   Jun12   0:00 [kworker/3:1H]
-root      5048  0.0  0.0      0     0 ?        I    Jun12   0:08 [kworker/u8:0-events_unbound]
-root      5119  0.0  0.0      0     0 ?        I<   Jun12   0:00 [kworker/1:0H]
-root      5176  0.0  0.0      0     0 ?        I    Jun12   0:00 [kworker/2:0-events]
-root      5265  0.0  0.0      0     0 ?        I<   Jun12   0:00 [kworker/0:2H]
-root      5442  0.0  0.0      0     0 ?        I    Jun12   0:00 [kworker/2:1]
-root      5543  0.0  0.0      0     0 ?        I<   Jun12   0:00 [kworker/2:2H]
-root      5546  0.0  0.0      0     0 ?        I    Jun12   0:00 [kworker/u8:2-ext4-rsv-conversion]
-root      5557  0.0  0.0      0     0 ?        I    Jun12   0:00 [kworker/3:0]
-root      5565  0.0  0.0      0     0 ?        I    Jun12   0:00 [kworker/0:3-events]
-root      5615  0.0  0.0      0     0 ?        I    Jun12   0:00 [kworker/0:1-events]
-root      5617  0.0  0.0      0     0 ?        I    Jun12   0:00 [kworker/1:1-events]
-root      5618  0.0  0.0      0     0 ?        I    Jun12   0:00 [kworker/0:0-events]
-root      5619  0.0  0.0      0     0 ?        I    Jun12   0:00 [kworker/1:2-events_power_efficient]
-root      5620  0.0  0.0      0     0 ?        I    Jun12   0:00 [kworker/1:0-events]
-root      5621  0.0  0.0      0     0 ?        I    Jun12   0:00 [kworker/0:2-events]
-root      5622  1.0  0.0   9468  1964 ?        S    00:00   0:00 /usr/sbin/CRON -f
-pi        5623  0.0  0.0   1940   376 ?        Ss   00:00   0:00 /bin/sh -c /home/pi/Desktop/MessdatenSilo/scripts/pull.bash
-pi        5624  1.0  0.0   7676  2500 ?        S    00:00   0:00 /bin/bash /home/pi/Desktop/MessdatenSilo/scripts/pull.bash
-pi        5658  0.0  0.0   7676  2528 ?        S    00:00   0:00 /bin/bash scripts/./push.bash
-pi        5659  0.0  0.0   6824   336 ?        S    00:00   0:00 tee -a bash.log
-pi        5663  0.0  0.0   9788  2520 ?        R    00:00   0:00 ps aux
 Error: Something went wrong.
 Exiting
 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
@@ -730,189 +541,12 @@ Fast-forward
  scripts/pull.bash  |  7 -------
  scripts/push.bash  | 26 ++++++++++++++++++--------
  scripts/write.bash |  1 +
- 6 files changed, 30 insertions(+), 21 deletions(-)
-
-USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
-root         1  0.0  0.2  33764  8228 ?        Ss   Jun08   0:11 /sbin/init splash
-root         2  0.0  0.0      0     0 ?        S    Jun08   0:00 [kthreadd]
-root         3  0.0  0.0      0     0 ?        I<   Jun08   0:00 [rcu_gp]
-root         4  0.0  0.0      0     0 ?        I<   Jun08   0:00 [rcu_par_gp]
-root         8  0.0  0.0      0     0 ?        I<   Jun08   0:00 [mm_percpu_wq]
-root         9  0.0  0.0      0     0 ?        S    Jun08   0:00 [rcu_tasks_rude_]
-root        10  0.0  0.0      0     0 ?        S    Jun08   0:00 [rcu_tasks_trace]
-root        11  0.0  0.0      0     0 ?        S    Jun08   0:25 [ksoftirqd/0]
-root        12  0.0  0.0      0     0 ?        I    Jun08   0:02 [rcu_sched]
-root        13  0.0  0.0      0     0 ?        S    Jun08   0:00 [migration/0]
-root        14  0.0  0.0      0     0 ?        S    Jun08   0:00 [cpuhp/0]
-root        15  0.0  0.0      0     0 ?        S    Jun08   0:00 [cpuhp/1]
-root        16  0.0  0.0      0     0 ?        S    Jun08   0:00 [migration/1]
-root        17  0.0  0.0      0     0 ?        S    Jun08   0:00 [ksoftirqd/1]
-root        20  0.0  0.0      0     0 ?        S    Jun08   0:00 [cpuhp/2]
-root        21  0.0  0.0      0     0 ?        S    Jun08   0:00 [migration/2]
-root        22  0.0  0.0      0     0 ?        S    Jun08   0:00 [ksoftirqd/2]
-root        25  0.0  0.0      0     0 ?        S    Jun08   0:00 [cpuhp/3]
-root        26  0.0  0.0      0     0 ?        S    Jun08   0:00 [migration/3]
-root        27  0.0  0.0      0     0 ?        S    Jun08   0:00 [ksoftirqd/3]
-root        30  0.0  0.0      0     0 ?        S    Jun08   0:00 [kdevtmpfs]
-root        31  0.0  0.0      0     0 ?        I<   Jun08   0:00 [netns]
-root        35  0.0  0.0      0     0 ?        S    Jun08   0:00 [kauditd]
-root        36  0.0  0.0      0     0 ?        S    Jun08   0:00 [khungtaskd]
-root        37  0.0  0.0      0     0 ?        S    Jun08   0:00 [oom_reaper]
-root        38  0.0  0.0      0     0 ?        I<   Jun08   0:00 [writeback]
-root        39  0.0  0.0      0     0 ?        S    Jun08   0:35 [kcompactd0]
-root        57  0.0  0.0      0     0 ?        I<   Jun08   0:00 [kblockd]
-root        58  0.0  0.0      0     0 ?        I<   Jun08   0:00 [blkcg_punt_bio]
-root        59  0.0  0.0      0     0 ?        S    Jun08   0:00 [watchdogd]
-root        61  0.0  0.0      0     0 ?        I<   Jun08   0:00 [kworker/1:1H-kblockd]
-root        62  0.0  0.0      0     0 ?        I<   Jun08   0:00 [rpciod]
-root        63  0.0  0.0      0     0 ?        I<   Jun08   0:00 [kworker/u9:0-hci0]
-root        64  0.0  0.0      0     0 ?        I<   Jun08   0:00 [xprtiod]
-root        65  0.0  0.0      0     0 ?        S    Jun08   0:00 [kswapd0]
-root        66  0.0  0.0      0     0 ?        I<   Jun08   0:00 [nfsiod]
-root        67  0.0  0.0      0     0 ?        I<   Jun08   0:00 [kthrotld]
-root        68  0.0  0.0      0     0 ?        I<   Jun08   0:00 [iscsi_eh]
-root        69  0.0  0.0      0     0 ?        I<   Jun08   0:00 [iscsi_destroy]
-root        72  0.0  0.0      0     0 ?        I<   Jun08   0:00 [DWC Notificatio]
-root        73  0.0  0.0      0     0 ?        I<   Jun08   0:00 [uas]
-root        75  0.0  0.0      0     0 ?        S<   Jun08   0:00 [vchiq-slot/0]
-root        76  0.0  0.0      0     0 ?        S<   Jun08   0:00 [vchiq-recy/0]
-root        77  0.0  0.0      0     0 ?        S<   Jun08   0:00 [vchiq-sync/0]
-root        78  0.0  0.0      0     0 ?        I<   Jun08   0:00 [zswap-shrink]
-root        79  0.0  0.0      0     0 ?        I<   Jun08   0:00 [sdhci]
-root        80  0.0  0.0      0     0 ?        S    Jun08   0:00 [irq/47-mmc0]
-root        82  0.0  0.0      0     0 ?        I<   Jun08   0:00 [mmc_complete]
-root        83  0.0  0.0      0     0 ?        I<   Jun08   0:07 [kworker/0:1H-mmc_complete]
-root        84  0.0  0.0      0     0 ?        I<   Jun08   0:00 [kworker/2:1H-kblockd]
-root        85  0.0  0.0      0     0 ?        S    Jun08   0:03 [jbd2/mmcblk0p2-]
-root        86  0.0  0.0      0     0 ?        I<   Jun08   0:00 [ext4-rsv-conver]
-root        88  0.0  0.0      0     0 ?        I<   Jun08   0:00 [ipv6_addrconf]
-root       103  0.0  0.0      0     0 ?        I<   Jun08   0:00 [kworker/3:2H-kblockd]
-root       116  0.0  0.2  21252  9144 ?        Ss   Jun08   0:04 /lib/systemd/systemd-journald
-root       148  0.0  0.1  18472  3936 ?        Ss   Jun08   0:01 /lib/systemd/systemd-udevd
-root       177  0.0  0.0      0     0 ?        S    Jun08   0:00 [vchiq-keep/0]
-root       178  0.0  0.0      0     0 ?        S<   Jun08   0:00 [SMIO]
-root       188  0.0  0.0      0     0 ?        I<   Jun08   0:00 [mmal-vchiq]
-root       190  0.0  0.0      0     0 ?        I<   Jun08   0:00 [mmal-vchiq]
-root       191  0.0  0.0      0     0 ?        I<   Jun08   0:00 [mmal-vchiq]
-root       192  0.0  0.0      0     0 ?        I<   Jun08   0:00 [mmal-vchiq]
-root       212  0.0  0.0      0     0 ?        I<   Jun08   0:00 [cfg80211]
-root       213  0.0  0.0      0     0 ?        S    Jun08   0:00 [card0-crtc0]
-root       232  0.0  0.0      0     0 ?        I<   Jun08   0:00 [brcmf_wq/mmc1:0]
-root       236  0.0  0.0      0     0 ?        S    Jun08   0:00 [brcmf_wdog/mmc1]
-root       241  0.0  0.0      0     0 ?        S    Jun08   0:00 [v3d_bin]
-root       243  0.0  0.0      0     0 ?        S    Jun08   0:00 [v3d_render]
-root       244  0.0  0.0      0     0 ?        S    Jun08   0:00 [v3d_tfu]
-root       245  0.0  0.0      0     0 ?        S    Jun08   0:00 [v3d_csd]
-root       247  0.0  0.0      0     0 ?        S    Jun08   0:00 [v3d_cache_clean]
-root       352  0.0  0.1   7916  4688 ?        Ss   Jun08   0:00 /sbin/dhclient -4 -v -i -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0
-root       354  0.0  0.1  13152  5840 ?        Ss   Jun08   0:01 /lib/systemd/systemd-logind
-root       356  0.0  0.1  11768  4616 ?        SNs  Jun08   0:00 /usr/sbin/alsactl -E HOME=/run/alsa -s -n 19 -c rdaemon
-avahi      364  0.0  0.0   5768  2504 ?        Ss   Jun08   0:00 avahi-daemon: running [raspberrypi.local]
-root       368  0.0  0.0  25512  2996 ?        Ssl  Jun08   0:00 /usr/sbin/rsyslogd -n -iNONE
-root       381  0.0  0.0   7948  2360 ?        Ss   Jun08   0:01 /usr/sbin/cron -f
-avahi      384  0.0  0.0   5768   252 ?        S    Jun08   0:00 avahi-daemon: chroot helper
-root       391  0.0  0.0  27656    80 ?        SLsl Jun08   0:09 /usr/sbin/rngd -r /dev/hwrng
-message+   396  0.0  0.0   6548  3508 ?        Ss   Jun08   0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
-nobody     408  0.0  0.0   4320  2152 ?        Ss   Jun08   0:04 /usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user nobody --deviceglob /dev/input/event*
-root       409  0.0  0.0  10744  3736 ?        Ss   Jun08   0:02 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
-systemd+   561  0.0  0.1  21980  5396 ?        Ssl  Jun08   0:01 /lib/systemd/systemd-timesyncd
-root       607  0.0  0.1  10728  5368 ?        Ss   Jun08   0:00 /usr/sbin/sshd -D
-root       608  0.0  0.0   5620  2788 tty1     Ss   Jun08   0:00 /bin/login -f
-root       615  0.0  0.0      0     0 ?        I<   Jun08   0:00 [kworker/u9:2-hci0]
-root       616  0.0  0.0   2140   128 ?        S    Jun08   0:00 /usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow -
-root       621  0.0  0.0   9536  3300 ?        Ss   Jun08   0:00 /usr/lib/bluetooth/bluetoothd
-pi         630  0.0  0.1  14704  7376 ?        Ss   Jun08   0:00 /lib/systemd/systemd --user
-pi         631  0.0  0.0  35188  3532 ?        S    Jun08   0:00 (sd-pam)
-pi         641  0.0  0.0   8492  3768 tty1     S+   Jun08   0:00 -bash
-root      5119  0.0  0.0      0     0 ?        I<   Jun12   0:00 [kworker/1:0H]
-root      5543  0.0  0.0      0     0 ?        I<   Jun12   0:00 [kworker/2:2H]
-root      5546  0.0  0.0      0     0 ?        I    Jun12   0:16 [kworker/u8:2-ext4-rsv-conversion]
-root      5826  0.0  0.0      0     0 ?        I    Jun13   0:00 [kworker/2:1-events]
-root      6208  0.0  0.0      0     0 ?        I<   Jun13   0:00 [kworker/3:1H]
-root      6223  0.0  0.0      0     0 ?        I    Jun13   0:05 [kworker/u8:0-flush-179:0]
-root      6460  0.0  0.0      0     0 ?        I<   Jun13   0:00 [kworker/0:2H]
-root      6593  0.0  0.0      0     0 ?        I    Jun13   0:05 [kworker/3:0-events_power_efficient]
-root      6689  0.0  0.0      0     0 ?        I    Jun13   0:00 [kworker/2:0]
-root      6739  0.0  0.0      0     0 ?        I    Jun13   0:00 [kworker/3:2]
-root      6749  0.0  0.0      0     0 ?        I    Jun13   0:00 [kworker/1:3-events_freezable]
-root      6775  0.0  0.0      0     0 ?        I    Jun13   0:00 [kworker/0:0-events]
-root      6786  0.0  0.0      0     0 ?        I    Jun13   0:00 [kworker/0:3-events]
-root      6787  0.0  0.0      0     0 ?        I    Jun13   0:00 [kworker/1:0-cgroup_destroy]
-root      6788  0.0  0.0      0     0 ?        I    Jun13   0:00 [kworker/0:1-events]
-root      6789  0.0  0.0      0     0 ?        I    Jun13   0:00 [kworker/1:1-events]
-root      6790  0.0  0.0      0     0 ?        I    Jun13   0:00 [kworker/0:2-events]
-root      6791  0.0  0.0   9468  1964 ?        S    00:00   0:00 /usr/sbin/CRON -f
-pi        6792  0.0  0.0   1940   356 ?        Ss   00:00   0:00 /bin/sh -c /home/pi/Desktop/MessdatenSilo/scripts/pull.bash
-pi        6793  0.0  0.0   7676  2540 ?        S    00:00   0:00 /bin/bash /home/pi/Desktop/MessdatenSilo/scripts/pull.bash
-root      6808  0.0  0.0      0     0 ?        I    00:00   0:00 [kworker/u8:1]
-root      6809  0.0  0.1  27904  6656 ?        Ss   00:00   0:00 /usr/sbin/cupsd -l
-root      6810  0.0  0.2  40496  8880 ?        Ssl  00:00   0:00 /usr/sbin/cups-browsed
-root      6819  0.0  0.0      0     0 ?        I    00:00   0:00 [kworker/1:2]
-root      6822  0.0  0.0      0     0 ?        I<   00:01   0:00 [kworker/0:0H]
-pi        6860  0.0  0.0   7676  2396 ?        S    00:02   0:00 /bin/bash scripts/./push.bash
-pi        6861  0.0  0.0   6824   348 ?        S    00:02   0:00 tee -a bash.log
-pi        6864  0.0  0.0   9788  2556 ?        R    00:02   0:00 ps aux
-Info: DMS arduino: /dev/ttyACM0, Temp arduino: /dev/ttyACM1
+ 6 files changed, 30 insertions(+), 21 deletions(-)Info: DMS arduino: /dev/ttyACM0, Temp arduino: /dev/ttyACM1
 Checking connected devices...
 Checking installed cores...
 Compiling sketches...
 Uploading sketches...
 Finished
-Starting
-Didn't receive data from arduino
-Didn't receive data from arduino
-Didn't receive data from arduino
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-writing data
-Finished
 Starting python script:
 
 2022-06-14 00:28:51, WARNING, [main_logger.main:137]	Starting
diff --git a/config.yml b/config.yml
index 813b81c..d7592d6 100644
--- a/config.yml
+++ b/config.yml
@@ -1,5 +1,5 @@
 DataLogger:
-    backupCount: 28 # number of datalogs to keep
+    backupCount: 70 # number of datalogs to keep
     filename: data # filename for datalogs
     levels: # log level for outputting to file and to stdout respectivly
         - INFO
@@ -7,7 +7,7 @@ DataLogger:
 
 InfoLogger:
     backupCount: 10 # number of logs to keep
-    maxBytes: 1000000 # size of single log in bytes
+    maxBytes: 100000 # size of single log in bytes
     filename: log # filename for logs
     levels: # log level for outputting to file and to stdout respectivly
         - INFO
diff --git a/data/data b/data/data
deleted file mode 100644
index e69de29..0000000
diff --git a/data/log.2022-06-08_13.log b/data/log.2022-06-08_13.log
index 3b227a6..b674e78 100644
--- a/data/log.2022-06-08_13.log
+++ b/data/log.2022-06-08_13.log
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:c73e971e77219c1143fc9a2fdab4b687ecc3e636eccc476e12813266342ad385
-size 111922
+oid sha256:9525e132fa8b416e67c2205ae025d2ac076d09364880c920b87e05736ea13b28
+size 111830
diff --git a/data/log.2022-06-09_00.log b/data/log.2022-06-09_00.log
deleted file mode 100644
index 7640e0b..0000000
--- a/data/log.2022-06-09_00.log
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:2c37d4ec83b49d783f136cbf55574a16e02df650352d4038de5eadbfc53cdec9
-size 10388
diff --git a/data/log.2022-06-10_00.log b/data/log.2022-06-10_00.log
new file mode 100644
index 0000000..837fdfc
--- /dev/null
+++ b/data/log.2022-06-10_00.log
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cb2ec5d63a12f1d6998bb5b5db1123a6d737b3911ae0ba4f4657ad5ffb0ceedb
+size 247633
diff --git a/data/log.2022-06-11_00.log b/data/log.2022-06-11_00.log
new file mode 100644
index 0000000..883099a
--- /dev/null
+++ b/data/log.2022-06-11_00.log
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9852055a5b7a8e7f91f18d5fc6d5ddfcabd1335eff8e2b217e033614c54ee20f
+size 248340
diff --git a/data/log.2022-06-12_00.log b/data/log.2022-06-12_00.log
new file mode 100644
index 0000000..4b60b88
--- /dev/null
+++ b/data/log.2022-06-12_00.log
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b658312208068d539e86d448c40ca857655c1224c633454260c107a33dc101bf
+size 248302
diff --git a/data/log.2022-06-13_00.log b/data/log.2022-06-13_00.log
index ee5dc5f..28c478b 100644
--- a/data/log.2022-06-13_00.log
+++ b/data/log.2022-06-13_00.log
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:3ef14b9d2f699c60915d556d0eb1fa5667c729ecc09bf58bfee54c1600c85257
-size 983994
+oid sha256:c37229801740cf92f657526b57b191f07fb5aa4b4879c088de49fbdbcfd29f22
+size 249573
diff --git a/data/log.2022-06-14_00.log b/data/log.2022-06-14_00.log
index 5662eaa..7ab7a2a 100644
--- a/data/log.2022-06-14_00.log
+++ b/data/log.2022-06-14_00.log
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:f59aa745edb2e08a654a2993f3ea9eeb1123555bc9dd3bc1834e72836bfcc0a9
-size 244234
+oid sha256:1ef81decc3c924d9da939edbee2523fe3502832c0de141bcbf22499237c4f689
+size 244598
diff --git a/measure.py b/measure.py
index d1cabe1..f3ab757 100644
--- a/measure.py
+++ b/measure.py
@@ -101,8 +101,8 @@ def offset(connection: serial.Serial):
 
 
 @log_profile("write_data")
-def write_data():
-    print("writing data")
+def write_data(n: int):
+    print(f"writing data, {n}")
     time.sleep(10e-3)
 
 
@@ -128,9 +128,11 @@ def get_data(con1: serial.Serial, con2: serial.Serial):
 def loop(con1: serial.Serial, con2: serial.Serial):
     last_write = time.time()
     delta_time = 30
+    n = 0
     while time.time() - last_write < delta_time:
         get_data(con1, con2)
-    write_data()
+        n += 1
+    write_data(n)
 
 
 @log_profile("main")
diff --git a/scripts/push.bash b/scripts/push.bash
index c882fda..d192b72 100755
--- a/scripts/push.bash
+++ b/scripts/push.bash
@@ -8,15 +8,13 @@ while pidof  -x "python3 main.py">/dev/null; do
 done
 sleep 10
 
-ps aux
+# scripts/./write.bash
 
-scripts/./write.bash
+# sleep 10
 
-sleep 10
-
-python3 measure.py
+# python3 measure.py
 
-sleep 10
+# sleep 10
 
 echo -e "Starting python script:\n"
 loop_count=1
-- 
GitLab