Thanks! I had seen how do run the multiple instances, but was unaware that the IP address could be specified in the dkmcode.
So it sounds like I'll need 3 copies of the driver with the static IP set? I'm not great with python but looking through the driver on line 586 it says hostname not required. Further down, would I just specify it on line 670? Or is it much simpler and can just be defined in the configuration file under the correct 'driver' paramater as "hostname = 192.168.x.x"? -JZ On Mon, Aug 22, 2016 at 2:14 PM, mwall <[email protected]> wrote: > > > 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 a topic in the > Google Groups "weewx-user" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/weewx-user/0omPJSkxEYc/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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.
