A PyQt5 based GUI program to show some interesting information on the Raspberry Pi with a 3.5inch GPIO screen.
Hardware:
Raspberry Pi 3B
and a 3.5 inch GPIO screen
Environment:
sudo apt install python3-pyqt5
pip install -r requirements.txt
Config file content:
[DEFAULT]
GH_TOKEN = YOUR_GITHUB_TOKEN
URL = CFD_ONLINE_JOBS_URL
Firstly, copy config file:
cp config.ini.example config.ini
Go to github token settings and generate a new personal token. Put it to YOUR_GITHUB_TOKEN
.
If you are a CFD engineer student who is seeking for a PhD scolarship, a Post-Doc position or an industry job, this DesktopPi provides a small screen showing the latest
job posted on cfd-online.
Choose one of the following jobs' url and put it to CFD_ONLINE_JOBS_URL
:
- https://www.cfd-online.com/Jobs/listjobs.php?category=Job%20in%20Industry
- https://www.cfd-online.com/Jobs/listjobs.php?category=Job%20in%20Academia
- https://www.cfd-online.com/Jobs/listjobs.php?category=Contract%20Work
- https://www.cfd-online.com/Jobs/listjobs.php?category=PostDoc%20Position
- https://www.cfd-online.com/Jobs/listjobs.php?category=PhD%20Studentship
- https://www.cfd-online.com/Jobs/listjobs.php?category=Internship
Right click menu bar
-> Panel Settings
-> Advanced
-> Check Minimize panel when not in use
.
python desktopPi.py
Type crontab -e
and put the following content at the end of the cronjob.
# Turn off screen at night time 23:30
30 23 * * * DISPLAY=:0 xset dpms force off
# Turn on screen at morning time 8:00
00 08 * * * DISPLAY=:0 xset dpms force on
The CPU/RAM's UI design and PyQt code are adapted from earthinversion/SystemMonitorApp (MIT License).
Thermo icon was taken from xiaoyou-bilibili/pi_tool.
Others used Alibaba Iconfont.