Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rexzhang/pi-hardware-info
Get Raspberry Pi hardware info
https://github.com/rexzhang/pi-hardware-info
raspberrypi
Last synced: about 2 months ago
JSON representation
Get Raspberry Pi hardware info
- Host: GitHub
- URL: https://github.com/rexzhang/pi-hardware-info
- Owner: rexzhang
- License: mit
- Created: 2019-03-01T12:59:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-11T03:11:07.000Z (over 2 years ago)
- Last Synced: 2024-08-10T10:38:17.300Z (5 months ago)
- Topics: raspberrypi
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
==============
PiHardwareInfo
==============.. image:: https://img.shields.io/pypi/v/PiHardwareInfo.svg
:target: https://pypi.org/project/PiHardwareInfo/
.. image:: https://img.shields.io/pypi/pyversions/PiHardwareInfo.svg
:target: https://pypi.org/project/PiHardwareInfo/
.. image:: https://img.shields.io/pypi/dm/PiHardwareInfo.svg
:target: https://pypi.org/project/PiHardwareInfo/Get Raspberry Pi hardware/version info from /proc/cpuinfo
Try
===run
.. code-block:: console
curl -s https://raw.githubusercontent.com/rexzhang/pi-hardware-info/master/pi_hardware_info.py | python3
result
.. code-block:: console
Install
=======.. code-block:: console
pip install PiHardwareInfo
Usage
=====.. code-block:: python
from pi_hardware_info import ModelType, get_info
info = get_info()
if info.model_type == ModelType.MODEL_3B_PLUS:
print('5G Wifi ready')elif info.model_type == ModelType.MODEL_3B:
print('only 2.4G Wifi')History
=======0.4.0
-----
* Add, support Zero2W/400/CM4
* Add, Overvoltage/OTP Program/OTP Read support0.3.3
-----
* Support raspberry pi 4B
* Rewrite some code0.2.0
-----
* Add old style revision code support, support 1A/1B0.1.0
-----
* First releaseAlternative
===========* https://github.com/tompreston/raspi-version
* https://pypi.org/project/pirev
* https://pypi.org/project/RPi.versionRef
===* https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#raspberry-pi-revision-codes
* https://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board-version/
* https://www.raspberrypi-spy.co.uk/2012/09/getting-your-raspberry-pi-serial-number-using-python/