https://github.com/gablau/rpi-revision-codes-utility
Some utility for Raspberry Pi revision codes
https://github.com/gablau/rpi-revision-codes-utility
raspberry-pi raspberrypi revision-codes rpi
Last synced: 5 months ago
JSON representation
Some utility for Raspberry Pi revision codes
- Host: GitHub
- URL: https://github.com/gablau/rpi-revision-codes-utility
- Owner: gablau
- License: mit
- Created: 2019-06-24T20:38:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-07-12T06:53:16.000Z (12 months ago)
- Last Synced: 2025-07-12T08:34:52.433Z (12 months ago)
- Topics: raspberry-pi, raspberrypi, revision-codes, rpi
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rpi-revision-codes-utility
Some utility for Raspberry Pi revision codes
**rpi-decode:** Decode revision codes in a readable format.\
**rpi-generator:** Generate a json file with all Raspberry Pi models
## How to use
### rpi-decode
From CLI run `npm run rpi-decode ` to decode one or more codes
Example:
```
$ npm run rpi-decode 0010 00C03111
> rpi-revision-codes-utility@0.1.0 rpi-decode C:\gitbase\rpi-revision-codes-utility
> node rpi-decode.js "0010" "00C03111"
### Code: 0010 #############################################################
Model: B+
Revision: 1.0
RAM: 512 MB
Manufacturer: Sony UK
Processor: n/a
String: Raspberry Pi Model B+ Rev 1.0 - 512 MB (Sony UK) (Broadcom n/a)
### Code: c03111 #############################################################
Model: 4B
Revision: 1.1
RAM: 4GB
Manufacturer: Sony UK
Processor: BCM2711
String: Raspberry Pi 4 Model B Rev 1.1 - 4GB (Sony UK) (Broadcom BCM2711)
```
### rpi-generator
From CLI run `npm run rpi-generator` to generate models json file `pi-models.json`
Example:
```
$ npm run rpi-generator
> rpi-revision-codes-utility@0.1.0 rpi-generator C:\gitbase\rpi-revision-codes-utility
> node rpi-model-generator.js
Extracting RPI model from:
https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
Found 42 different models!
Saving pi-model.json ...
... done!
```