🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

raspberry-info

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raspberry-info

A module that turns possible getting information from Raspberry. Information such as GPU temperature and CPU temperature, serial number, IP and etc. (Linux only)

1.0.4
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

raspberry-info NPM version Build Status Dependency Status

A module that turns possible getting information from Raspberry. Information such as GPU temperature and CPU temperature, serial number, IP and etc. (Linux only)

Installation

$ npm install --save raspberry-info

Usage

const raspiInfo = require('raspberry-info');

// Get current time and Host
raspiInfo.getCurrentTimeAndHost().then(output => console.log(output));
// qui set  6 16:50:57 -03 2018 @ host

// Get GPU temperature
// @param useSignal Default true
raspiInfo.getGPUTemperature().then(output => console.log(output));
// 39.7°C

// Get CPU temperature
// @param useSignal Default true
raspiInfo.getCPUTemperature().then(output => console.log(output));
// 40.2°C

// Get Serial Number
raspiInfo.getSerialNumber().then(output => console.log(output));
// 00000000xxXxXXXX

// Get IP
raspiInfo.getIP().then(output => console.log(output));
// 00.000.000.00

// Get memory total
// @param useSignal Default true
raspiInfo.getMemoryTotal().then(output => console.log(output));
// 764720 kB

// Get memory free
// @param useSignal Default true
raspiInfo.getMemoryFree().then(output => console.log(output));
// 315036 kB

// Get memory available
// @param useSignal Default true
raspiInfo.getMemoryAvailable().then(output => console.log(output));
// 200012 kB

// Get memory usage
// @param useSignal Default true
raspiInfo.getMemoryUsage().then(output => console.log(output));
// 56%

License

MIT © Wenderson Pires

Keywords

raspberry

FAQs

Package last updated on 13 Sep 2018

Did you know?

Socket

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.

Install

Related posts