Skip to content

MultiTech-FAE/network_dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

119 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MultiTech Network Dashboard

My Skills

Description

This application uses flask and flask extensions to create a simple webserver and API in python. For more information about these libraries used in the app see the docs below

How to Run Application On conduit

Project Files

  • server.py: The main file that runs the Flask server and serves the dashboard.
  • templates/: Contains the HTML files for the dashboard. Dynamically generated using Jinja2.
  • base.html: The base HTML file that all other HTML files extend.
  • static/: Contains the CSS JavaScript, Python, data and image files for the dashboard.
  • requirements.txt: Contains the Python libraries required for the project.
  • README.md: The file you are currently reading.
  • .env: Create this file and make sure that it is not uploaded to any public database. This contains private API keys. As of version 2.0.0 add and assign the OpenAI API key to this file to enable ChatGPT integration functionality. If hosting on the cloud make sure to specify the environment variables on the cloud hosting service.
  • other files you can ignore for now.

Requirements

  • Python 3
  • Pip
  • Multitech Gateway
  • Web Browser
  • CLI interface

Configuring Gateway

  • Navigate to the MultiTech Gateway dashboard console in your browser:
    • http://<gateway_ip> (i.e. 192.168.2.1)
      • login with your account
      • navigate to the firewall settings
      • add a new rule for "Input Filter Rules"
      • name the firewall filter rule and accept the rest of the default settings
      • ensure that "Output Filter Rules" has Allow Outbound enabled
  • SSH to the gateway in your computers CLI
    • ssh @gateway_ip
    • enter your password
    • navigate to the /etc/mosquitto directory
    • enter the following command:
      sudo nano mosquitto.conf
    • add a "#" in from of the following lines to the file:
    • "bind_address 127.0.0.1"
    • save and exit nano
    • restart the mosquitto service with the following command:
      /etc/init.d/mosquitto restart
    • exit the ssh session.
  • Remote PC:
    mosquitto_sub -t lora/+/+ -v -h 192.168.2.1
    • Then reboot MDot

Installation

pip install -r requirements.txt

Running the Application

python3 server.py

About

Configure sensor downlinks and decode and analyze MQTT uplink packets

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors