GithubHelp home page GithubHelp logo

rpi-weewx's Introduction

Docker implementation of weewx for FineOffSetUSB

This small set of files lets you spin up a working Docker instance of weewx on top of Raspbian within just a few minutes.

You can easily get Docker for Raspberry Pi by using HypriotOS. This Docker repo may be easily modified to work with Resin.io, but hopefully they will better support USB storage in the future. I have the Weather databases saved in the volume /media/WXdisk. You will have to link the volume on your host machine to the container for this to work properly.

The root password is 'root' which you should of course change to something suitably obscure for you.

Yes, I called the resulting image 'rpi-weewx' :-)

build instructions

make a working directory
cd into there
copy the contents of this repo into that directory

modify files for your configuration

  • Dockerfile —if you would like to enable webcam upload
  • weewx.conf —Weather station settings
  • wunderground_upload_cam.conf —if you would like to use webcam uploader

build the image with the desired image tag name

docker build -t WXpiimage .

verify your image is available in docker

$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
weebian             latest              62ae86bf4f67        14 hours ago        323.6 MB
debian              latest              4d6ce913b130        4 days ago          84.98 MB

run the image in a new container

$ run -dit --name wxpi --privileged -p 22 -v /media/WXdisk:/media/WXdisk  --restart always WXpiimage
00a256c24b2b97342fc8a5768e1aeab6cfa6d17df159550e738319dded6c8931
$ docker ps -a
CONTAINER ID        IMAGE               COMMAND                CREATED             STATUS              PORTS                                          NAMES
00a256c24b2b        weebian:latest      "/usr/bin/supervisor   9 seconds ago       Up 8 seconds
0.0.0.0:49228->22/tcp, 0.0.0.0:49229->80/tcp   drunk_jang

to expose ports to the local host

$ run -dit --name wxpi --privileged -p 2201:22 -v /media/WXdisk:/media/WXdisk  --restart always WXpiimage
(this exposes container port 22 to localhost 2201)

See the Dockerfile here for more info at the top...

rpi-weewx's People

Contributors

vinceskahan avatar

Watchers

Drew McCal 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.