Skip to main content

Library for RadiaCode-101

Project description

RadiaCode

Описание на русском языке

This is a library to work with the radiation detector and spectrometer RadiaCode-101.

The project is still under development and not stable. Thus, the API might change in the future.

Example project (backend, frontend): radiacode-webserver-example

Installation and example projects

# install library together with all the dependencies for the examples, remove [examples] if you don't need them
$ pip3 install 'radiacode[examples]' --upgrade

# launch the webserver from the screenshot above
# bluetooth: replace with the address of your device
$ python3 -m radiacode-examples.webserver --bluetooth-mac 52:43:01:02:03:04
# or the same, but via usb
$ sudo python3 -m radiacode-examples.webserver

# simple example for outputting information to the terminal, options are similar to the webserver example
$ python3 -m radiacode-examples.basic

# send data to the public monitoring project narodmon.ru
$ python3 -m radiacode-examples.narodmon --bluetooth-mac 52:43:01:02:03:04

Development

$ poetry install
$ poetry run python3 radiacode-examples/basic.py --bluetooth-mac 52:43:01:02:03:04 # or without --bluetooth-mac for USB connection

MacOS

The library used to communicate over Bluetooh (bluepy) is not supported on MacOS. Only the USB connection is available on Apple devices. A USB Serial Number, obtainable from the Device Info menu on the device itself, can be specified if more than one Radiacode is connected via USB at the same time.

Make sure libusb is installed on your system, if you use Brew you can run: brew install libusb

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

radiacode-0.3.3.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

radiacode-0.3.3-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file radiacode-0.3.3.tar.gz.

File metadata

  • Download URL: radiacode-0.3.3.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1018-azure

File hashes

Hashes for radiacode-0.3.3.tar.gz
Algorithm Hash digest
SHA256 33dccbe010389b1a3284e24df7c4ee408a7ab8477a8b242848ae49793211d36b
MD5 a8f77ddb1bbec56d7213406ab0beb5e4
BLAKE2b-256 75bfaa3d77957af3367792a225621b6093409615513b4bc3795f80bfe0863e2d

See more details on using hashes here.

File details

Details for the file radiacode-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: radiacode-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1018-azure

File hashes

Hashes for radiacode-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d2e805124a5f2c8b707a1a0465a7329e2b9c2637d6af611787be7085a193d65b
MD5 6412707f93be4800d93db2e10cf6e2ef
BLAKE2b-256 690f6477293e071c6790cb0cbb7d216f32f8616f50befa65fc30e95f846c6838

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page