Coder Social home page Coder Social logo

weatherly's Introduction

alt text Weatherly

Weather forecasting machine learning with IoT devices and fog computing

Weatherly is a distributed weather forecast application that uses Recurrent neural network(RNN) on fog nodes and iot sensors for temperature monitoring.

To run a Fog Node:

Build container image running the build.sh script or use the following command:

docker build -t fog-node:latest .

Run the Fog Node container with the following command:

docker run -e CITY=Rome -e BROKER_ADDRESS=192.168.1.2 -e BROKER_PORT=1883 -e BROKER_USERNAME=afjcjsbx
-e BROKER_PASSWORD=password -e INFLUXDB_ADDRESS=1.2.3.4 -e INFLUXDB_PORT=8086 -e INFLUXDB_DATABASE=home 
-e INFLUXDB_USERNAME=afjcjsbx -e INFLUXDB_PASSWORD=password -p 8086:8086 -p 1883:1883 fog-node

or use docker compose:

version: '3.6'

services:

   fog-node-1:
       image: fog-node:latest
       container_name: fog-node-1

       restart: always
       ports:
           - "8086:8086"
           - "1883:1883"
       environment:
           - CITY=Rome
           - BROKER_ADDRESS=broker.emqx.io
           - BROKER_PORT=1883
           - BROKER_USERNAME=username
           - BROKER_PASSWORD=password
           - INFLUXDB_ADDRESS=1.2.3.4
           - INFLUXDB_PORT=8086
           - INFLUXDB_DATABASE=home
           - INFLUXDB_USERNAME=username
           - INFLUXDB_PASSWORD=password

To run a sensor:

Build Jar from iot-sensor-mqtt module and run:

java -cp "iot-sensor-mqtt-1.0-SNAPSHOT-jar-with-dependencies.jar" com.afjcjsbx.iotsensor.SensorPython

Arguments

Parameter Example Description
--clientId "weather-sensor-1-name" Client ID to use when connecting
--lat 41.89 Weather locality latitude in coordinates
--lon 13.59 Weather locality longitude in coordinates
-e or --endpoint "broker.emqx.io" Local fog node ip or Mqtt cloud service
-apikey or --apikey 52cb6acs8ejvn42hc4b92bffc187beac openweathermap.org private API key
-t or --topic /weather/Rome Topic name to publish data

Libs

Java libs used in sensor:

Python libs used:

weatherly's People

Watchers

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