Skip to content

Commit

Permalink
Merge branch 'future3/develop' into future3/merge-hotfix-3.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller authored Feb 19, 2024
2 parents 5138bb5 + 21639b9 commit 958ada9
Show file tree
Hide file tree
Showing 9 changed files with 128 additions and 144 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bundle_webapp_and_release_v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
tar -czvf ${{ steps.vars.outputs.webapp_bundle_name }} build
- name: Artifact Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.vars.outputs.webapp_bundle_name }}
path: ${{ steps.build-webapp.outputs.webapp-root-path }}/${{ steps.vars.outputs.webapp_bundle_name }}
Expand All @@ -119,7 +119,7 @@ jobs:

steps:
- name: Artifact Download
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ needs.build.outputs.webapp_bundle_name }}

Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/test_docker_debian_codename_sub_v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
BASE_TEST_IMAGE=${{ steps.vars.outputs.image_tag_name_local_base }}
- name: Artifact Upload Docker Image
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.vars.outputs.image_file_name }}
path: ${{ steps.vars.outputs.image_file_path }}
Expand All @@ -159,7 +159,7 @@ jobs:
uses: docker/[email protected]

- name: Artifact Download Docker Image
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ needs.build.outputs.image_file_name }}

Expand All @@ -177,15 +177,15 @@ jobs:
args: |
./${{ matrix.test_script }}
# cleanup after test execution
cleanup:
# run only if tests didn't fail: keep the artifact to make job reruns possible
if: ${{ !failure() }}
needs: [build, test]
runs-on: ${{ inputs.runs_on }}

steps:
- name: Artifact Delete Docker Image
uses: geekyeggo/delete-artifact@v2
with:
name: ${{ needs.build.outputs.image_file_name }}
## cleanup after test execution
#cleanup:
# # run only if tests didn't fail: keep the artifact to make job reruns possible
# if: ${{ !failure() }}
# needs: [build, test]
# runs-on: ${{ inputs.runs_on }}
#
# steps:
# - name: Artifact Delete Docker Image
# uses: geekyeggo/delete-artifact@v4
# with:
# name: ${{ needs.build.outputs.image_file_name }}
16 changes: 9 additions & 7 deletions documentation/builders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,31 @@
## Features

* Audio
* [Audio Output](./audio.md)
* [Bluetooth audio buttons](./bluetooth-audio-buttons.md)
* [Audio Output](./audio.md)
* [Bluetooth audio buttons](./bluetooth-audio-buttons.md)
* [GPIO Recipes](./gpio.md)
* [Card Database](./card-database.md)
* [RFID Cards synchronisation](./components/synchronisation/rfidcards.md)
* [RFID Cards synchronisation](./components/synchronisation/rfidcards.md)
* [Auto Hotspot](./autohotspot.md)
* File Management
* [Network share / Samba](./samba.md)
* [Network share / Samba](./samba.md)

## Hardware Components

* [Power](./components/power/)
* [OnOff SHIM for safe power on/off](./components/power/onoff-shim.md)
* [OnOff SHIM for safe power on/off](./components/power/onoff-shim.md)
* [Battery Monitor based on a ADS1015](./components/power/batterymonitor.md)
* [Soundcards](./components/soundcards/)
* [HiFiBerry Boards](./components/soundcards/hifiberry.md)
* [HiFiBerry Boards](./components/soundcards/hifiberry.md)
* [RFID Readers](./../developers/rfid/README.md)

## Web Application

* Music
* [Playlists, Livestreams and Podcasts](./webapp/playlists-livestreams-podcasts.md)
* [Playlists, Livestreams and Podcasts](./webapp/playlists-livestreams-podcasts.md)

## Advanced

* [Troubleshooting](./troubleshooting.md)
* [Concepts](./concepts.md)
* [System](./system.md)
Expand Down
33 changes: 33 additions & 0 deletions documentation/builders/components/power/batterymonitor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Battery Monitor based on a ADS1015

> [!CAUTION]
> Lithium and other batteries are dangerous and must be treated with care.
> Rechargeable Lithium Ion batteries are potentially hazardous and can
> present a serious **FIRE HAZARD** if damaged, defective or improperly used.
> Do not use this circuit to a lithium ion battery without expertise and
> training in handling and use of batteries of this type.
> Use appropriate test equipment and safety protocols during development.
> There is no warranty, this may not work as expected or at all!
The script in [src/jukebox/components/battery_monitor/batt_mon_i2c_ads1015/\_\_init\_\_.py](../../../../src/jukebox/components/battery_monitor/batt_mon_i2c_ads1015/__init__.py) is intended to read out the voltage of a single Cell LiIon Battery using a [CY-ADS1015 Board](https://www.adafruit.com/product/1083):

```text
3.3V
+
|
.----o----.
___ | | SDA
.--------|___|---o----o---------o AIN0 o------
| 2MΩ | | | | SCL
| .-. | | ADS1015 o------
--- | | --- | |
Battery - 1.5MΩ| | ---100nF '----o----'
2.9V-4.2V| '-' | |
| | | |
=== === === ===
```

> [!WARNING]
>
> * the circuit is constantly draining the battery! (leak current up to: 2.1µA)
> * the time between sample needs to be a minimum 1sec with this high impedance voltage divider don't use the continuous conversion method!
97 changes: 65 additions & 32 deletions documentation/developers/docstring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@
* [pbox\_set\_state](#components.rfid.hardware.fake_reader_gui.gpioz_gui_addon.pbox_set_state)
* [que\_set\_pbox](#components.rfid.hardware.fake_reader_gui.gpioz_gui_addon.que_set_pbox)
* [create\_outputs](#components.rfid.hardware.fake_reader_gui.gpioz_gui_addon.create_outputs)
* [components.rfid.hardware.generic\_nfcpy.description](#components.rfid.hardware.generic_nfcpy.description)
* [components.rfid.hardware.generic\_nfcpy.generic\_nfcpy](#components.rfid.hardware.generic_nfcpy.generic_nfcpy)
* [ReaderClass](#components.rfid.hardware.generic_nfcpy.generic_nfcpy.ReaderClass)
* [cleanup](#components.rfid.hardware.generic_nfcpy.generic_nfcpy.ReaderClass.cleanup)
* [stop](#components.rfid.hardware.generic_nfcpy.generic_nfcpy.ReaderClass.stop)
* [read\_card](#components.rfid.hardware.generic_nfcpy.generic_nfcpy.ReaderClass.read_card)
* [components.rfid.hardware.generic\_usb.description](#components.rfid.hardware.generic_usb.description)
* [components.rfid.hardware.generic\_usb.generic\_usb](#components.rfid.hardware.generic_usb.generic_usb)
* [components.rfid.hardware.rc522\_spi.description](#components.rfid.hardware.rc522_spi.description)
Expand Down Expand Up @@ -1948,6 +1954,61 @@ Add all output devices to the GUI

List of all added GUI objects

<a id="components.rfid.hardware.generic_nfcpy.description"></a>

# components.rfid.hardware.generic\_nfcpy.description

List of supported devices https://nfcpy.readthedocs.io/en/latest/overview.html


<a id="components.rfid.hardware.generic_nfcpy.generic_nfcpy"></a>

# components.rfid.hardware.generic\_nfcpy.generic\_nfcpy

<a id="components.rfid.hardware.generic_nfcpy.generic_nfcpy.ReaderClass"></a>

## ReaderClass Objects

```python
class ReaderClass(ReaderBaseClass)
```

The reader class for nfcpy supported NFC card readers.


<a id="components.rfid.hardware.generic_nfcpy.generic_nfcpy.ReaderClass.cleanup"></a>

#### cleanup

```python
def cleanup()
```

The cleanup function: free and release all resources used by this card reader (if any).


<a id="components.rfid.hardware.generic_nfcpy.generic_nfcpy.ReaderClass.stop"></a>

#### stop

```python
def stop()
```

This function is called to tell the reader to exit its reading function.


<a id="components.rfid.hardware.generic_nfcpy.generic_nfcpy.ReaderClass.read_card"></a>

#### read\_card

```python
def read_card() -> str
```

Blocking or non-blocking function that waits for a new card to appear and return the card's UID as string


<a id="components.rfid.hardware.generic_usb.description"></a>

# components.rfid.hardware.generic\_usb.description
Expand Down Expand Up @@ -2659,7 +2720,7 @@ def stop_autohotspot()

Stop auto hotspot functionality

Basically disabling the cronjob and running the script one last time manually
Stopping and disabling the timer and running the service one last time manually


<a id="components.hostif.linux.start_autohotspot"></a>
Expand All @@ -2671,9 +2732,9 @@ Basically disabling the cronjob and running the script one last time manually
def start_autohotspot()
```

start auto hotspot functionality
Start auto hotspot functionality

Basically enabling the cronjob and running the script one time manually
Enabling and starting the timer (timer will start the service)


<a id="components.misc"></a>
Expand Down Expand Up @@ -2966,35 +3027,7 @@ class battmon_ads1015(BatteryMonitorBase.BattmonBase)

Battery Monitor based on a ADS1015

> [!CAUTION]
> Lithium and other batteries are dangerous and must be treated with care.
> Rechargeable Lithium Ion batteries are potentially hazardous and can
> present a serious **FIRE HAZARD** if damaged, defective or improperly used.
> Do not use this circuit to a lithium ion battery without expertise and
> training in handling and use of batteries of this type.
> Use appropriate test equipment and safety protocols during development.
> There is no warranty, this may not work as expected or at all!

This script is intended to read out the Voltage of a single Cell LiIon Battery using a CY-ADS1015 Board:

3.3V
+
|
.----o----.
___ | | SDA
.--------|___|---o----o---------o AIN0 o------
| 2MΩ | | | | SCL
| .-. | | ADS1015 o------
--- | | --- | |
Battery - 1.5MΩ| | ---100nF '----o----'
2.9V-4.2V| '-' | |
| | | |
=== === === ===

Attention:
* the circuit is constantly draining the battery! (leak current up to: 2.1µA)
* the time between sample needs to be a minimum 1sec with this high impedance voltage divider
don't use the continuous conversion method!
See [Battery Monitor documentation](../../builders/components/power/batterymonitor.md)


<a id="components.gpio.gpioz.plugin"></a>
Expand Down
2 changes: 1 addition & 1 deletion documentation/developers/rfid/mock_reader.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ machine - probably in a Python virtual environment.

**place-capable**: yes

If you [mock the GPIO pins](../../../src/jukebox/components/gpio/gpioz/README.rst#use-mock-pins), this GUI will show the GPIO devices.
If you [mock the GPIO pins](../../builders/gpio.md#use-mock-pins), this GUI will show the GPIO devices.

![image](mock_reader.png)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,36 +37,7 @@
class battmon_ads1015(BatteryMonitorBase.BattmonBase):
"""Battery Monitor based on a ADS1015
> [!CAUTION]
> Lithium and other batteries are dangerous and must be treated with care.
> Rechargeable Lithium Ion batteries are potentially hazardous and can
> present a serious **FIRE HAZARD** if damaged, defective or improperly used.
> Do not use this circuit to a lithium ion battery without expertise and
> training in handling and use of batteries of this type.
> Use appropriate test equipment and safety protocols during development.
> There is no warranty, this may not work as expected or at all!
This script is intended to read out the Voltage of a single Cell LiIon Battery using a CY-ADS1015 Board:
3.3V
+
|
.----o----.
___ | | SDA
.--------|___|---o----o---------o AIN0 o------
| 2MΩ | | | | SCL
| .-. | | ADS1015 o------
--- | | --- | |
Battery - 1.5MΩ| | ---100nF '----o----'
2.9V-4.2V| '-' | |
| | | |
=== === === ===
Attention:
* the circuit is constantly draining the battery! (leak current up to: 2.1µA)
* the time between sample needs to be a minimum 1sec with this high impedance voltage divider
don't use the continuous conversion method!
See [Battery Monitor documentation](../../builders/components/power/batterymonitor.md)
"""

def __init__(self, cfg):
Expand Down
55 changes: 0 additions & 55 deletions src/jukebox/components/controls/bluetooth_audio_buttons/README.rst

This file was deleted.

6 changes: 3 additions & 3 deletions src/jukebox/jukebox/version.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

VERSION_MAJOR = 3
VERSION_MINOR = 5
VERSION_PATCH = 2
VERSION_EXTRA = ""
VERSION_MINOR = 6
VERSION_PATCH = 0
VERSION_EXTRA = "alpha"

# build a version string in compliance with the SemVer specification
# https://semver.org/#semantic-versioning-specification-semver
Expand Down

0 comments on commit 958ada9

Please sign in to comment.