Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
raspberrypi-sys-info
Advanced tools
A Node.js library to retrieve system information (temperature, memory usage, disk activity, etc.) from a Raspberry Pi. This library wraps system calls in Node.js using Typescript for easy access to Raspberry Pi's hardware stats
This project is an npm library for extracting various metrics from Raspberry Pi.
To use this library in your project, you need to install it via npm. Make sure you have Node.js and npm installed.
npm i raspberrypi-sys-info
Below is an example of how to use the library to fetch and display various metrics from a Raspberry Pi.
import { getCpuTemperature, getGpuTemperature } from 'raspberrypi-sys-info';
async function displaySystemInfo() {
try {
const cpuTemp = await getCpuTemperature();
console.log(`CPU Temperature: ${cpuTemp}°C`);
const gpuTemp = await getGpuTemperature();
console.log(`GPU Temperature: ${gpuTemp}°C`);
} catch (error) {
console.error(error.message);
}
}
displaySystemInfo();
getCPUTemperature()
Returns the CPU temperature in degrees Celsius.
getGpuTemperature()
Returns the GPU temperature in degrees Celsius.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
git checkout -b feature-branch
).git commit -m 'Add some feature'
).git push origin feature-branch
).This project is licensed under the MIT License.
FAQs
A Node.js library to retrieve system information (temperature, memory usage, disk activity, etc.) from a Raspberry Pi. This library wraps system calls in Node.js using Typescript for easy access to Raspberry Pi's hardware stats
The npm package raspberrypi-sys-info receives a total of 0 weekly downloads. As such, raspberrypi-sys-info popularity was classified as not popular.
We found that raspberrypi-sys-info demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.