I just log to tmpfs (essentially ramdisk) and it is not an issue for me. Add this to your /etc/fstab and reboot
#---- put logs and tmp dirs in ramdisk --- tmpfs /tmp tmpfs defaults,nosuid,mode=0755,nodev,noatime 0 0 tmpfs /var/log tmpfs defaults,nosuid,mode=0755,nodev,noatime 0 0 tmpfs /var/tmp tmpfs defaults,nosuid,mode=0755,nodev,noatime 0 0 #--------------------------------------------- Note that the result here is that you will lose 'all' logs when you reboot, but the upside is it never writes to SD card. In this configuration your pi SD is close to read-only. On Wednesday, July 26, 2023 at 2:40:26 AM UTC-7 Tomasz Lewicki wrote: > Hi WX users. > > I'd like to ask about logging in Weewx (I'm using version 4.10.2). To make > a long story short, I'd like to completely turn off logging by Weewx - > because I'm using Raspberry Pi with SD card and want to minimize write > operations as much as possible. > > I've read article on wiki ( > https://github.com/weewx/weewx/wiki/WeeWX-v4-and-logging) but do not > clearly understand new way of control logging. I'd like to have simple > switch in weewx.conf, for example "completely_disable_logging = True" or > something similar. Is there some switch in [Logging] block as I see it in > wiki? If I change "disable_existing_loggers = False" to > "disable_existing_loggers = True", will I get the expected effect? > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/12b8d981-10d1-4f0a-acf4-327b6804db1an%40googlegroups.com.
