On Monday, August 22, 2016 at 2:25:55 PM UTC-4, Jonathan Zitelman wrote: > > I'm looking into the feasibility of having multiple instances of weewx > reporting on multiple ObserverIPs on the same network. (more specifically > I plan on 3 WS-1400-IP) I have read how to run multiple instances of weewx > on the same server using different config files, but I'm getting stuck on > how to handle multiples of the same station. >
hi jonathan, you can run any number of instances from a single weewx installation. each instance must have its own configuration file, database, and destination for reports. i typically do it like this: /opt/weewx - location of weewx installation /etc/weewx/ - location of weewx config files /etc/weewx/station1.conf - configuration file for station 1 /etc/weewx/station2.conf - configuration file for station 2 /etc/weewx/station3.conf - configuration file for station 3 /etc/init.d/weewx-1 - init script for station 1 /etc/init.d/weewx-2 - init script for station 2 /etc/init.d/weewx-3 - init script for station 3 /var/lib/weewx/ - location of weewx databases /var/lib/weewx/station1.sdb - database for station 1 /var/lib/weewx/station2.sdb - database for station 2 /var/lib/weewx/station3.sdb - database for station 3 /var/www/html/station1/ - location of station 1 reports /var/www/html/station2/ - location of station 2 reports /var/www/html/station3/ - location of station 3 reports the rc files are the same except for the name of the config file and the instance name (for pid/runid). i use the --log-label argument to weewxd so that i can distinguish log entries between each instance. the .conf files are the same except for station name, driver identifier (in your case an ip address), database location, and HTML_ROOT for report destination. as for the ws1200/ws1400, i think you can specify an ip address in the configuration for the dkmcode instead of auto-detecting the station. 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.
