Giter Club home page Giter Club logo

nmodbus.weatherserver's Introduction

Weather Modbus Server

Uses the API at weather.com to publish the status of a Personal Weather Station (PWS).

Configuration

The application can be configured via:

  • appsettings.json
  • command line arguments
  • environment variables
Setting Default Description
WEATHER__APIKEY The API key for weather.com (from weather underground).
WEATHER__POLLINTERVALSECONDS 60*5 The number of seconds between calls to the service.
WEATHER__STATIONID The id of the PWS to query for.
MODBUS__UNITID 1 The Modbus Unit Id.
MODBUS__PORT 502 The port on which to serve Modbus.
MODBUS__IPADDRESS The local IP Address to use for the Modbus server. Not normally needed.
MODBUS__VERBOSE false Set this to get more logging for Modbus.
MODBUS__DEVICE_TYPE Tcp (Tcp/Udp) The type of Modbus transport to use

Modbus Registers

All data is presented in input (read-only) registers.

Address Name Units Scale
0 Temperature Degrees C 0.0
1 Heat Index
2 Dew Point Degrees C
3 Wind Chill Degrees C
4 WindGust KPH
5 Pressure 0.0
6 Precipitation Rate
7 Precipitation Total
8 Elevation Meters

Running

docker-compose.yaml

version: "3.7"
services:
  modbusweather:
    image: nmodbus/weatherserver:1.0
    restart: always
    ports:
     - 502:502
    environment:
      WEATHER__APIKEY: aaaaaaaaaaaaaaaaaaaaaaaaaaa
      WEATHER__STATIONID: SSSSSSSSSSSS

or command line:

docker run -e WEATHER__APIKEY=QQQQQQQQQ -e WEATHER__STATIONID=FFFFFFFFF nmodbus/modbusweather

nmodbus.weatherserver's People

Contributors

rquackenbush avatar

Watchers

James Cloos 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.