See your computer's CPU usage, RAM usage, GPU usage, and disk usage on your PyPortal display!
Note: This is mostly only compatible with Windows, and stuff might not work. I'm not great at python, but if anyone else knows how to create better compatibility, create a PR!
To get the data from your computer to the display, this project uses Serial. On your computer, a python file is running and monitoring your computer and sending the data over to the PyPortal over Serial. The python file does need to be running on your computer at all times for it to work, though.
- First, clone the repository over to your computer. The code files for both the PyPortal and your computer are located in the src file.
- Move the images, fonts, and code.py file over into your pyportal.
- Next, you are going to want to get the required libraries for this file and put them into your
/lib/
file on your PyPortal. Here are the required libraries:
- adafruit_bitmap_font
- adafruit_display_text
- adafruit_touchscreen
- At this point, your PyPortal should work and the display should show the labels, but no numbers yet. To do this, we're going to have to use a python script running on your computer.
- First, install the pip packages. Here's what you need:
pip3 install pyserial
pip3 install psutil
pip3 install shutil
pip3 install GPUtil
- Then, at the top of the sendData.py file, change the
DEVICE
variable to the device's USB port. On windows, this looks likeCOM5
. On mac, this looks likedev/tty.devicename
. Use google to figure out how to find this device if you do not know which one it is. - Now, start the file with
python3 /path/to/file/sendData.py
. If all is working, you should see data displayed on your PyPortal! If not feel free to open an issue, or fix an issue yourself with a PR.
Thanks for checking out the project!