On Tuesday, March 14, 2017 at 5:56:39 PM UTC-4, Theophanis Kontogiannis 
wrote:
>
> The second solution you suggested bellow looks more preferable in my 
> environment. You see the root filesystem is on high end CF cards running on 
> RAID 1, so it is fast, with steady low consumption, and available 
> continuously day and night.
>
> "you might consider having weewx run all the time, but send its data to a 
> sqlite database on a tmpfs (ramdisk)."
>
> Any guidance on what to look for to implement it?
>

the first part is trivial.

1) create a mount point

sudo mkdir /var/weewx

2) create a tmpfs by adding an entry to fstab:

echo "weewx /var/weewx tmpfs=100M,noexec,nosuid,nodev 0 0" | sudo tee -a 
/etc/fstab

3) mount the filesystem

sudo mount -a

4) modify weewx.conf to put the weewx database on the tmpfs

[DatabaseTypes]
    [[SQLite]]
        driver = weedb.sqlite
        SQLITE_ROOT = /var/weewx

the second part will take a bit more work.  you'll have to find/write 
something that periodically queries the sqlite database and inserts the 
results into the database on the RAID filesystem.

m

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to