GMC
gmc geiger counter api
about the device
An inexpensive geiger counter that has many software interface projects.
This tool can be found on amazon.
aim of this project
This project gmc updates to python3 and attempts to simplify some of the features of the gmc api. Many of the bug fixes and were utilized from other projects as listed in
installation
Using pip I suggest creating a virtualenv first.
python3 -m venv venv
source ./venv/bin/activate
Then install gmc using pip from web
pip install gmc
Or from local directory
pip install ~/projects/rad/gmc
usage
python
>>> from gmc import GMC
>>> g = GMC() # or with configuration GMC({'DEFAULT_BAUDRATE':57600})
>>> g.version()
'GMC-300Re 4.22'
features
- access to gmc device api functions
- read and modify configuration
- read history
- heartbeat as non blocking process
- modular configuration per device model
- utilize ctypes.Structure for confiuration model
- tests using pytest
- preparation setup for pypi deployment
- GMC class has a logger = logging='gmc.gmc'
- inject configuration into GMC to override gmc.config
todo
- parse history logs
- issues with writing configuration - mostly works
- example scripts to report to internet radiation detection sites.
other projects
There are others out there too. Here is what I worked from.
radiation mapping sites
bash binary files
gmc produces a tmp file of history data. it is in binary format
take a look at the raw history data file.
example:
od -t x1 /tmp/tmpdmtc4ow1.bin
hexdump -x /tmp/tmpdmtc4ow1.bin
hd /tmp/tmpdmtc4ow1.bin | HEAD
xxd /tmp/tmpdmtc4ow1.bin | head
testing
testing could be harmful to your device. you may have to factory reset it with some types of commands.
this will activate all tests
pytest
just run one test by name
pytest --pdb -k test_device
usb connection
different per system.
create udev-usb to describe linux connections.
Metadata
Release files for gmc 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gmc-1.0.0.tar.gz | 11.8 kB | Without provenance | Details for gmc-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gmc-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for gmc-1.0.0-py3-none-any.whl |
Total release size: 37.4 kB
Release files / gmc-1.0.0.tar.gz
| Download URL | gmc-1.0.0.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7a75002256523b267b431cd3dc6e7e2f0afc084e96c892801812fd75d760843
|
|
BLAKE2b-256 checksum How to use checksums |
07ddc03c8bd5b0287b32aa77348314dd66ae2f5613ca41d64183e090d188f59a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Release files / gmc-1.0.0-py3-none-any.whl
| Download URL | gmc-1.0.0-py3-none-any.whl |
|---|---|
| Size | 25.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d81197e0c686de49495c3d774afa4df88d3aba1e3279fb0f594c87edd7e73f73
|
|
BLAKE2b-256 checksum How to use checksums |
23d60d488f66abc482c79097e7a32f873c7661d040bb8917f47510f38087a552
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Security for gmc 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.