Skip to main content

Magnetometer

This is a magnetometer command-line tool that reads from physical magnetic sensors via Belay.

Installation

Install Magnetometer through pip:

pip install magnetometer

Usage

To start the program, invoke magnetometer along with the port your CircuitPython board is connected to.

magnetometer DEVICE_PORT --sensor SENSOR_TYPE

You can use the debugging sensor sin without any physical hardware interactions. CircuitPython must be installed on-device and must be configured with rw storage. Magnetometer will automatically upload all necessary code to device. Run magnetometer --help to see more options.

Supported Sensors

Want to support another sensor? Open an issue (or even a PR) on Github and we can try to add it!

Acknowledgements

This tool uses many awesome libraries that keep the implementation terse and the outputs beautiful:

  • Belay - Seameless python/hardware interactions. Used for all hardware interactions.
  • AutoRegistry - Automatic registry design-pattern library for mapping names to functionality. Used to manage sensor hardware abstraction layer.
  • Textual - Text User Interface framework for Python inspired by modern web development. Used for dynamic user input.
  • Rich - Python library for rich text and beautiful formatting in the terminal. Used for general UI text rendering.
  • AsciiChartPy - Nice-looking lightweight console ASCII line charts. Used for chart plotting. Modified to be rich-compatible.
  • CircuitPython Bundle - A bundle of useful CircuitPython libraries ready to use from the filesystem.

Metadata

Release files for magnetometer 0.2.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 magnetometer 0.2.1
File Size Uploaded
magnetometer-0.2.1.tar.gz 28.1 kB Details

Built distribution (wheel)

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

Total release size: 68.1 kB

Release files / magnetometer-0.2.1.tar.gz

Download URL magnetometer-0.2.1.tar.gz
Size 28.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aa133d5bfaed6cc94f940164158e8dc74c91a6734ab6cc53d2ce5414996b67f0
BLAKE2b-256 checksum
How to use checksums
48df2270bef5dac5c7db06f638bb483e3fe982a35124483f5efaed1a394b5d1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.2 Linux/5.15.0-1031-azure

Release files / magnetometer-0.2.1-py3-none-any.whl

Download URL magnetometer-0.2.1-py3-none-any.whl
Size 40.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
503275e811f6d6a2d2b5cd3558a923f897c3711fd2769e2ebba509ff29fe244e
BLAKE2b-256 checksum
How to use checksums
b6d9ab28f48f8c0a8ab44279d114f9df5b942acfaf84c8dd0025b8a1d1c39306
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.2 Linux/5.15.0-1031-azure

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

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