Skip to content

How to add support for a new weewx version

Tom Mitchell edited this page Mar 17, 2016 · 1 revision

To support a new weewx version in the Dockerfile:

  1. Copy default weewx.conf from dist to ./conf/default

  2. Add a Simulator section (example from weewx 3.5.0): ##############################################################################

    [Simulator] # This section for the weewx weather station simulator

     # The time (in seconds) between LOOP packets.
     loop_interval = 2.5
    
     # The simulator mode can be either 'simulator' or 'generator'.
     # Real-time simulator. Sleep between each LOOP packet.
     mode = simulator
     # Generator.  Emit LOOP packets as fast as possible (useful for testing).
     #mode = generator
    
     # The start time. If not specified, the default is to use the present time.
     #start = 2011-01-01 00:00
    
     driver = weewx.drivers.simulator
    

    ##############################################################################

  3. Change station type to Simulator so the default run works

  4. run 'docker build -t mitct02/docker-weewx:

  5. If the version is the latest and greatest production version, repeat #5 but use latest as the version number

  6. Push the new image to the repo!

Clone this wiki locally