On Friday, March 3, 2017 at 1:30:15 PM UTC-8, Alec Bennett wrote: > > I'm trying to display realtime wind data on a remote monitor. I could > easily do that by writing to a file or database in weewx/engine.py with > every loop packet, but I'm worried about SD card corruption on my Pi with > such frequent file writing, which has happened to me in the past. > > Write to something in a tmpfs filesystem, that is in RAM and doesn't touch physical disk.
> I'm wondering if anyone can think of some way to make the data accessible > to my webserver (lighttpd, but could be something else) without writing a > file? Maybe some variable that's stored only in memory, temporarily? > > Or maybe I'm over thinking it and I should just write the data to a file? > The main issue is that the weather station is installed in an office full > of people who are somewhat unlikely to use the power button if they ever > need to unplug the Pi, so I'm worried that they're going to unplug it while > a file is being written. > > > > That's a different problem, the pi writes a lot to SD card with or without weewx. Again, it's possible to mount basically everything to tmpfs so the pi is read-only by simply editing your /etc/fstab and remounting or rebooting, but you'll have to periodically stash your database to disk via cron or something. There have been lots of discussions on different ways to do that in the google group, search a little for 'ramdisk' or 'tmpfs' for those threads. -- 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 weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.