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
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.
- Python 3
- Pip
- Multitech Gateway
- Web Browser
- CLI interface
- 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
- http://<gateway_ip> (i.e. 192.168.2.1)
- 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:
- Install the mosquitto software - https://mosquitto.org/download/
mosquitto_sub -t lora/+/+ -v -h 192.168.2.1
- Then reboot MDot
pip install -r requirements.txtpython3 server.py