gsd 6 months ago
parent
commit
d073ce3e73
  1. 2
      pipboyIO/next/serialAX.py
  2. 1
      pipboyIO/readme

2
pipboyIO/next/serialAX.py

@ -140,6 +140,7 @@ class Listener(asyncio.Protocol):
if self.transport and not self.transport.is_closing():
msg = f"{DISPLAY_ID} {cpu_percent:5.1f} 0\n"
print(msg)
self.transport.write(msg.encode())
await asyncio.sleep(1)
@ -155,6 +156,7 @@ class Listener(asyncio.Protocol):
if self.transport and not self.transport.is_closing():
msg = f"{DISPLAY_ID} {mem_percent:5.1f} 0\n"
print(msg)
self.transport.write(msg.encode())
await asyncio.sleep(1)

1
pipboyIO/readme

@ -3,6 +3,7 @@ sudo apt install python3-pip
#usermode
python3 -m pip install --user --break-system-packages pyserial-asyncio
python3 -m pip install --user --break-system-packages psutil
export DISPLAY=:0
xdotool key Return

Loading…
Cancel
Save