Skip to content

bi119aTe5hXk/UART-Web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UART-Web

Using UART on web with logging

Screenshot

Screenshot 2025-11-20 at 23 53 54

Install

sudo apt install python3 python3-full
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt

or just

sudo apt install python3 python3-pip
pip3 install -r requirements.txt --break-system-packages

Fix Permission denied for /dev/ttyUSB* :

sudo usermod -a -G dialout pi

Useage

python3 app.py

Then open http://localhost.

Run on startup

sudo nano /etc/systemd/system/uart-web.service
[Unit]
Description=UART Web Console Service
After=network.target

[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/home/pi/UART-Web
ExecStart=/home/pi/UART-Web/.venv/bin/python /home/pi/UART-Web/app.py
Restart=always

[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl start uart-web.service
sudo systemctl enable uart-web.service

If failed, then

sudo journalctl -u uart-web.service -f
sudo systemctl status uart-web.service

and ask AI for help.😉

About

Using UART on web with logging

Topics

Resources

Stars

Watchers

Forks

Contributors