@makepad/rpi-monitor
v2.0.6
Published
Basic Raspberry Pi monitoring functions
Downloads
17
Readme
@makepad/rpi-monitor
A basic Raspberry Pi monitoring functions
Installation
Use the package manager npm
to install @makepad/rpi-monitor
npm i @makepad/rpi-monitor
Usage
const rpi = require('@makepad/rpi-monitor');
rpi.hostname; // Returns the hostname of the machine
rpi.freeMemoryPercentage().then((result) => {
// Returns the free memory percentage
});
rpi.cpuPercentage().then((result) => {
// Returns the CPU percentage as a list for each core
});
rpi.temperature(); // Returns the temperature of the device
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.