A lightweight Svelte-based system monitoring dashboard for the Orange Pi Zero 2W. This dashboard provides real-time insights into CPU, memory, network usage, disk statistics, and basic system information. The backend is powered by Python's psutil library.
NOTE: i made this keeping orangepi zero 2w in mind, but this should work with any SBC or any machine like your pc or a vps
psutil (for fetching system stats)git clone https://github.com/Karniverse/svelte-orangepizero2w-dashboard.git
cd svelte-orangepizero2w-dashboard
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate.bat`
pip install -r requirements.txt
python backend/server.py
NOTE: you can also your use own backend api. you just need to change the "http://localhost:7000/api/stats" in ./src/lib/apidata.js. and the json data from the backend should be similar like this
{
"cpu": {
"usage": 10.6,
"frequency": 3801
},
"systeminfo": {
"processor": "Intel(R) Core(TM) i7-10700KF CPU @ 3.80GHz",
"cpuspeed": "3.8000 GHz",
"corecount": 8,
"threadcount": 16,
"machinename": "Ronald",
"platform": "Windows",
"version": "10",
"uptime": "8:56:08"
}
}
npm install
npm run dev
http://localhost:5173/.Feel free to fork and submit pull requests to improve the project!
This project is licensed under the MIT License.
Created by Karniverse. Reach out for collaboration or suggestions!