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.
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
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>
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
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
- Unparallel WeatherStation PCB
- Unparallel WeatherStation Enclosure
- Unparallel WeatherStation Documentation
- Unparallel WeatherStation Software
- Service-Connector-Core
- Service-Connector-Template
If you'd like to report a bug or a missing feature, please use GitHub issue tracker.
This software is free and is distributed under the MIT License.