pmon - Process Monitor
Copyright 2014 Matthew Wall

pmon is a weewx extension to monitor memory usage of a single process.
 
Installation instructions:

1) expand the tarball:

cd /var/tmp
tar xvfz ~/Downloads/weewx-pmon.tgz

2) copy files

cd /var/tmp/weewx-pmon
# copy the module to your weewx installation:
cp bin/user/pmon.py /home/weewx/bin/user
# copy the sample template files to the skin directory:
cp -r skins/pmon /home/weewx/skins

3) modify weewx.conf

# add a section to the StdReport
[StdReport]
    [[pmon]]
        skin = pmon
        HTML_ROOT = public_html/pmon

# add the pmon configuration
[ProcessMonitor]
    database = pmon_sqlite
    max_age = 2592000 # 30 days; None to store indefinitely

# add the pmon database configuration
[Databases]
    ...
    [[pmon_sqlite]]
        root = %(WEEWX_ROOT)s
        database = archive/pmon.sdb
        driver = weedb.sqlite

# add to the service list
[Engines]
    [[WxEngine]]
        service_list = ..., user.pmon.ProcessMonitor

4) restart weewx

sudo /etc/init.d/weewx stop
sudo /etc/init.d/weewx start
