Python binding for the Raspberry Pi Vcgencmd command line executable
Project description
Raspberry Pi Vcgencmd
A small python library to programmatically access some of the internal sensors of the Raspberry Pi
Usage
Add the module into your git repository as a submodule and then commit it
git submodule add https://github.com/chewett/RaspberryPiVcgencmd
git commit
Include the module in your python file
from RaspberryPiVcgencmd.RaspberryPiVcgencmd import RaspberryPiVcgencmd
Once you have included it you can use it in your program as below
vcgencmd = RaspberryPiVcgencmd()
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for RaspberryPiVcgencmd-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08a8d18d31b28daacb659252f06f775c9c8f70a33271614c454d192393c99674 |
|
MD5 | 324132e930f52c3e9e98cb77f96ad4e3 |
|
BLAKE2b-256 | 79e2e10795ce88954d885205df36290d4d2bb33328ca8e69619d0fd35aacdfd0 |
Close
Hashes for RaspberryPiVcgencmd-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f13e2cf237274ef68fc40866a8da5d491f725a0fb5304a8b6ea2bfff35637811 |
|
MD5 | dee2fe6d405573b108d2c908a0cfa3d6 |
|
BLAKE2b-256 | 8151141b125e79f1d18641e7067fb7f8482facb69dd62d1856b353d1cee31f2c |