Socket
Socket
Sign inDemoInstall

raspberry-info

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

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)


Version published
Weekly downloads
21
increased by600%
Maintainers
1
Install size
9.88 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 13 Sep 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc