Skip to content

unparallel-innovation/WeatherStation-Connector

Repository files navigation

License: MIT

WeatherStation Connector

Service Connector logo WeatherStation Connector logo

The WeatherStation Connector was made using the service-connector npm package that allows to easily create a service to connect different data sources, clouds, databases, APIs, files, etc.

The service-connector is configured to periodically request data from Sigfox, that was sent from one of the weather stations defined in the configuration file. The Sigfox message is then decoded into weather data that is printed to the console and posted to MQTT and Weather Underground.

For more information about the Unparallel Weather Station check the Related Repositories and Iot-Catalogue.

Quick Start

Clone this repo and edit the Sigfox and Wunderground credentials in config.json.

You can also change the MQTT broker configuration and add more weather stations to the configuration file if desired.

Run the WeatherStation Connector with:

node start.js

or

./start.sh

Docker

Use the included Dockerfile to create a docker image and run it.

docker build -t weather-station-connector . --no-cache
docker run -d weather-station-connector

Check if the container if running and see the output.

docker ps
docker logs <CONTAINER-ID>

To stop the container use:

docker stop <CONTAINER-ID>

docker-compose

Use the included docker-compose.yml to run with docker-compose.

docker-compose -f docker-compose.yml up -d

Check if the container if running and see the output.

docker ps
docker logs <CONTAINER-ID>

Stop the WeatherStation Connector with:

docker-compose -f docker-compose.yml down

docker stack

Use the included docker-compose.yml to create a docker stack.

docker stack deploy -c docker-compose.yml weather-station-connector

Check if the container if running and see the output.

docker stack ls
docker ps
docker logs <CONTAINER-ID>

Stop the WeatherStation Connector stack with:

docker stack rm weather-station-connector

Related Repositories:

Getting Support

If you'd like to report a bug or a missing feature, please use GitHub issue tracker.

License

This software is free and is distributed under the MIT License.


This work was done in the context of SmartAgriHubs Research Project, which has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 818182

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •