Skip to main content

Raspberry Pi Vcgencmd

A small python library to programmatically access the internal sensors of the Raspberry Pi.

Usage

Install this via pip:

python3 -m pip install RaspberryPiVcgencmd

Include the module in your python file

from RaspberryPiVcgencmd import Vcgencmd

Once you have included it you can use it in your program as below

vcgencmd = Vcgencmd()
print(vcgencmd.get_version())

Exposed Functions

The majority of the useful output from vcgencmd is exposed in the class with the below functions

  • get_cpu_temp - Gets the system temperature of the soc in Celsius or Fahrenheit
  • get_ram_split - Gets the memory split between the gpu and cpu
  • measure_volts - Measures the voltage of various internal components
  • measure_clock - Mesures the clock frequency of various internal components
  • is_codec_available - Returns whether the codec specificed video/audio codec is available on the Raspberry Pi
  • get_version - Gets the version of the firmware installed on the Raspberry Pi
  • set_display_power - Allows turning off/on the video output of the Raspberry Pi

Todo

  • The first time vcgencmd is requested to run it should run and then check what commands are available on that Raspberry Pi. This should then confirm that the command is available and also stop any commands which are not available on the Pi.
  • Combine some of the output functions so that it doesnt use several different formatting methods

Want to help?

Suggestions and improvements are welcome, if you have anything to add feel free to make a pull request on github.

Metadata

Release files for RaspberryPiVcgencmd 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for RaspberryPiVcgencmd 1.0.1
File Size Uploaded
RaspberryPiVcgencmd-1.0.1.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for RaspberryPiVcgencmd 1.0.1
File Interpreter ABI Platform
RaspberryPiVcgencmd-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / RaspberryPiVcgencmd-1.0.1.tar.gz

Download URL RaspberryPiVcgencmd-1.0.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
afba369b60f44dbf36d3c5871583a2229644924695c51fccf054f355359dfd8b
BLAKE2b-256 checksum
How to use checksums
e5eb8afc2bbd8b74d219df5c17cd653c32cd266d355d8f1b48e67476a1b57026
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.2

Release files / RaspberryPiVcgencmd-1.0.1-py3-none-any.whl

Download URL RaspberryPiVcgencmd-1.0.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e6bcfc6b6ad1acd54af6f651068af3607e570e5d521dd464cc2f99912e76f31
BLAKE2b-256 checksum
How to use checksums
ab27743d5446a9bc4e9d541ec6d3fe5b77f2ec52b3b7f47052dfd9b03f60cd18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.2

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0

2 release files

0.2.1

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page