Git Product home page Git Product logo

datahubhel's Introduction

DataHubHel

DataHubHel is an IoT platform for Helsinki.

Warning

Work on progress. Come back in a few weeks or so.

The project consists of the following parts:

backend
API backend powered by Django Rest Framework.
frontend
React app for testing log-in flows and Thing/Service registration.
docker
Docker containers for running a SensorThings Server and a MQTT Broker.

Development

Backend

First create a Python virtualenv:

virtualenv -p python3.6 venv
. venv/bin/activate

Then install the Python packages to the virtualenv:

pip install prequ
prequ sync backend/requirements*.txt

And create a PostgreSQL database:

sudo -u postgres createuser -d -P datahubhel
sudo -u postgres createdb -O datahubhel datahubhel

SensortThings Server and MQTT Broker

The SensorThings Server (STS) and the Mosquitto MQTT Broker can be run using Docker:

cd docker
docker-compose up

The command will create two docker images "sts" and "mqttbroker" and run containers using them.

The STS is configured to expose it's HTTP SensorThings API (running on Tomcat) on local port 8080 and the STS's own MQTT broker on port 11883. The STS is also configured to connect to a PostgreSQL server in the host machine. (db: sensorthings, username: sensorthings, password: sensorthings) The database tables can be created by visiting http://localhost:8080/SensorThingsService/DatabaseStatus.

The mosquitto service is configured to expose itselft on local port 1883. It's also configured to bridge the STS's MQTT Broker. The mosquitto will query authentication and authorization from the local datahubhel backend on port 8000.

datahubhel's People

Contributors

aapris avatar frwickst avatar mikkokeskinen avatar suutari-ai avatar

Stargazers

 avatar

Watchers

 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.