1
0
Fork 0
mirror of https://github.com/jeffsf/pyDE1.git synced 2026-09-21 10:13:32 +00:00
Mirror of https://github.com/jeffsf/pyDE1 — BLE↔MQTT bridge for the Decent DE1 (pull-mirror, syncs with upstream)
  • Python 99.3%
  • Shell 0.7%
Find a file
2023-02-12 20:24:02 -08:00
docs docs: Update API documentation 2023-02-12 20:24:01 -08:00
install Convert to the use of entry_point directives in setup.cfg 2023-02-04 18:29:59 -08:00
src/pyDE1 de1: CalData and FeatureFlag log messages through DE1().logger 2023-02-12 20:24:01 -08:00
tests Update copyright for 2023 2023-02-04 18:37:41 -08:00
.gitignore Managed bleak client/device introduced and utilized 2022-12-24 10:34:31 -08:00
LICENSE alpha-2021-06-08 2021-06-08 19:13:11 -07:00
make-source-data.sh Managed bleak client/device introduced and utilized 2022-12-24 10:34:31 -08:00
pyproject.toml Enable pytest harness for project 2022-11-11 11:42:01 -08:00
pytest.ini Managed bleak client/device introduced and utilized 2022-12-24 10:34:31 -08:00
README.rst Update CHANGELOG and version bump for v1.0.0, minor doc tweaks 2022-01-24 10:27:22 -08:00
setup.cfg setup.cfg: Update for v2.0.0 2023-02-12 20:24:02 -08:00

..
    Copyright © 2021, 2022 Jeff Kletsky. All Rights Reserved.

    License for this software, part of the pyDE1 package, is granted under
    GNU General Public License v3.0 only
    SPDX-License-Identifier: GPL-3.0-only

pyDE1 Overview
==============

Description
-----------

A fully functional, API-first implementation of core software for
control and use of the Decent Espresso DE1.

It provides core components, which can be run as an unattended service
that automatically starts at boot, to supply stable, versioned APIs to
provide all primary functions of use of a DE1 and data collection around
it.

A web app has been able to demonstrate sufficiency of the APIs and
functionality for the majority of day-to-day operations, including
real-time graphing and history display. A running example is available,
linked from DecentForum.com. It uses the supplied, stand-alone "replay"
application to play back a shot in real time. This tool is also useful
for development of companion applications.

Profiles and real-time data are captured into a SQLite3 database that
allows multiple, concurrent access.

A stand-alone program is provided that can automatically upload "shots"
to Visualizer as soon as they complete. It can also notify consumers of
the URL returned.

An example program is provided that generates legacy-style, "shot files"
that are compatible with Visualizer and John Weiss' shot-plotting
programs.

The APIs are under semantic versioning. The REST-like, HTTP-transport
versions can be retrieved from ``version`` at the document root, and
also include the Python and package versions installed. Each of the
JSON-formatted, MQTT packets contains a ``version`` key:value for that
payload.

Consumers of these APIs should only need to understand high-level
actions, such as "Here is a profile blob, please load it." The
operations and choice of connectivity to the devices is "hidden" behind
the APIs.


Documentation and Source
------------------------

Documentation is available at https://pyde1.readthedocs.io/en/latest/

Source code is available at https://github.com/jeffsf/pyDE1.git


Requirements
------------

Python 3.8 or later.

Current plans are to continue to support two versions prior to the
latest Python version. `PEP
664 <https://www.python.org/dev/peps/pep-0664/>`__ shows a schedule of
October, 2022 for Python 3.11.0 release. Users should plan on moving to
at least Python 3.9 prior to that release. Python 3.9 is
"standard" with the Debian Bullseye distro, as well as the current,
Raspberry Pi OS release.

Available through ``pip`` and installed as dependencies:

-  ``aiosqlite``
-  ``bleak``
-  ``paho-mqtt``
-  ``PyYAML``
-  ``requests``

An MQTT broker compatible with MQTT 5 clients, such as ``mosquitto 2.0``

A production-quality web server, such as ``nginx`` is highly recommended
operating as a reverse proxy, rather than directly exposing the Python
web server.


Status — Release
----------------

This code is used on a daily basis for operation of the author's DE1.


License
-------

Copyright © 2021, 2022 Jeff Kletsky. All Rights Reserved.

License for this software, part of the pyDE1 package, is granted under

GNU General Public License v3.0 only

SPDX-License-Identifier: GPL-3.0-only