piAPI is an API server for displaying Raspberry PI system information.
- Provides system information about Raspberry Pi.
- Built with Node.js and Express.
-
Clone the repository:
git clone https://github.com/J-Henry00/piapi.git cd piapi -
Install dependencies:
npm install
Create a .env file in the root directory by copying template.env and filling in the values:
cp template.env .envEdit the .env file with your specific configurations:
PORT= # Port for the API server (e.g., 3000)
CLOUDFLARE_API= # Your Cloudflare API key (if using Cloudflare)
CLOUDFLARE_ZONE= # Your Cloudflare Zone ID
CLOUDFLARE_TUNNEL= # Cloudflare Tunnel ID
CLOUDFLARE_ACCOUNT= # Cloudflare Account ID
PUBLIC_IP_KEY= # Key for a public IP service (e.g., ipify.org API key)
RESTART_KEY= # Key for restarting services (e.g., pm2)npm run devnpm start- Node.js
- Express.js
- pm2
- systeminformation
- dockerode
- axios
- chart.js
- canvas
- cors
- dotenv
- ping
This project is licensed under the MIT License - see the LICENSE file for details.
J-Henry00