rpi-info
Allow to recognize and display information for the current RaspberryPi
Last updated 10 months ago by chok .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rpi-info 
SYNC missed versions from official npm registry.

RPI Info

Last update: 2019-07-18

npm version license

This library is written in coffee-script and allow to display information about the current RaspberryPi. If no revision is provided, /proc/cpuinfo is parsed to retrieve the revision.

Rpis infos are taken from :

Installation

rpi-info can be installed globally and used at command line or programmatically.

[sudo] npm install [-g] rpi-info

Usage

Usage: rpi-info [options] [command]

Commands:

  field|f <field>  [version, model, releaseDate, revisions]
  after|a <date>   Check if this raspberry pi is released after the given date
  before|b <date>  Check if this raspberry pi is released before the given date
  unknown|u        Check if this raspberry pi has a recognized hardware revision
  all              Show all available infos for this raspberry pi

Options:

  -h, --help              output usage information
  -V, --version           output the version number
  -r, --revision [value]  Revision
  -s, --silent            Display raw information only

By default :

rpi-info

render something like :

RaspberryPi 3 Model B released Q1 2016
Revision : 'a02082'
All revisions availables for this kind of device : [ 'a02082', 'a22082' ]

Programmatically

var RPI = require('rpi-info');
var rpi = new RPI(revision); // revision is optionnal - if not present, /proc/cpuinfo is parsed

rpi.getRevision();

rpi.getVersions();

rpi.getField(name);

rpi.getVersion();

rpi.getModel();

rpi.getReleaseDate();

rpi.getAllRevisions();

rpi.isReleasedBefore(date);

rpi.isReleasedAfter(date)

rpi.isUnknown();

rpi.getInfos();

Current Tags

  • 1.0.7                                ...           latest (10 months ago)

8 Versions

  • 1.0.7                                ...           10 months ago
  • 1.0.6                                ...           10 months ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 2
Last Day 0
Last Week 0
Last Month 8
Dependencies (9)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |