Giter Club home page Giter Club logo

wmr's Introduction

wmr

Output data from Oregon Scientific WMR9xx (WMR918, WMR928, WMR968 etc.) weather stations serial port to XML on a Raspberry Pi.

I made this stuff along time ago for an old XP box and now I got a Raspberry Pi I decided to port it.

It is a rather rudimentary implementation with a small footprint.

It will read the serial port provided and output the detected sensor data as XML. There are two outputs, on stdout you will get the XML element currently detected and in a file you will get the entire XML document. You can use the XML document to play with XSLT on your web server, read it into a JavaScript, or load it from your mobile app to present the weather station data however you like. The included Document Type Definition wmr.dtd contains the description of the potential output.

It supports the following sensors:

  • Rain sensor
  • Wind sensor
  • Pressure/Temperature/Humidity (BaroThermoHygro or BTH)
  • Temp/Humidity (TH, one on the main channel and 3 on the auxillary channels 1-3)
  • Temp (T, up to 3 on the auxillary channels 1-3)

as well as the station data itself. The WMR918 is capable of outputting:

  • Clock (System time is used instead until it is detected)
  • Battery status

This has been tested to run on Raspbian but compiling it on any Linux flavor should be fairly straightforward.

Build: make -k Makefile all

Deploy (Copies binary to your users bin directory): make -k Makefile deploy

Run: ./wx <serial port> <output file>

Example: ./wx /dev/ttyUSB0 /var/www/mywmr.xml

As an example of output you can see my weather station running on my Raspberry Pi here: http://raspberry.troest.com/current.xml

wmr's People

Contributors

jensmoes 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.