Giter Site home page Giter Site logo

weewx-docker's Introduction

weewx-docker

A Dockerfile for the WeeWX weather station.

Installing the image

You can get this directly from Docker Hub with

docker pull makobdk/weewx4:latest

Running the image

Please run this via docker-compose:

UID=`id -u' GID=`id -g` USER=`whoami` docker-compose up

Set the UID, GID and USER variables to whatever is appropriate for your system.

You can use the weewx4.service file as a systemd user unit file. Please check that the paths are correct.

Do have a look at the docker-compose.yml file to see what volumes are mapped in (there are quite a lot of them).

You can copy out the default configuration once the container is running with docker cp <CONTAINER_ID>:/home/weewx/weewx.conf default-weewx.conf so you don't start completely from scratch.

Note that if you don't map in the public_html, archive and weewx.conf volumes, WeeWX will use the default configuration which is basically to run in simulator mode.

The passwd volume map is needed for rsync; rsync requires the current user to have an entry in /etc/passwd. Redirect getent passwd $USER to a file and mount that if you want to expose a more limited set of users to the container.

Building the image

Because I'm lazy, the provided Makefile can help you build the image:

make build

Adjust the INSTALL_PLUGINS="<url>,<url>,..." variable in Dockerfile to specify a comma-separated list of WeeWX plugins to install within the Docker image.

The default INSTALL_PLUGINS is set to install the following plugins:

Note that the Dockerfile patches WeeWX to output log messages to the console.

There's also a make push target for pushing the image to Docker Hub, although that will only work if you have access to my repository.

weewx-docker's People

Contributors

makob avatar thellef avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.