Welcome to mqtt-ia-concept 👋

Ubuntu Python Documentation

Mqtt-ia-concept it's an project thats concepts an architecture idea of devices sendind data with mqtt to rabbitmq and create linear regression events that provides predictions to this devices

Install

Change .env-example to .env to all services run properly

  docker-compose up -d
  sudo su
  setup.sh

Linux privileges

Also you need do grant all privileges to your unix user

    sudo chown -R $user .

Usage (with .venv activated)

  python predictor/manage.py migrate
  python predictor/manage.py createsuperuser --email example@example.com.br --username admin
  python predictor/manage.py runserver

After this go to http://localhost:8000/devices and create two devices

Publish and consume data from rabbitmq

  python mqtt/publisher.py
  python mqtt/consumer.py

Services

  • rabbitmq: http://127.0.0.1:15672 (user: rabbitmq | password: rabbitmq)
  • postgres: 127.0.0.1:5432 (user: root | password: postgres)

Author

👤 Jefferson Amorim

📝 License

Copyright © 2021 Jefferson Amorim.