Skip to content

Commit

Permalink
Merge pull request #221 from iobroker-community-adapters/new-gpio-lib
Browse files Browse the repository at this point in the history
Make work with libgpio in order to support newer Raspian / Debian systems
  • Loading branch information
Garfonso authored Oct 8, 2024
2 parents 66d63ad + 90119ec commit 3b4435f
Show file tree
Hide file tree
Showing 11 changed files with 1,152 additions and 1,423 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check if PR should be auto-merged
uses: ahmadnassri/action-dependabot-auto-merge@v2
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
push:
branches:
- "master"
- "new-gpio-lib"
tags:
# normal versions
- "v[0-9]+.[0-9]+.[0-9]+"
Expand All @@ -29,6 +30,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: libgpiod-dev
version: 1.0 #string to identify the cache.
- uses: ioBroker/testing-action-check@v1
with:
node-version: '18.x'
Expand All @@ -47,13 +52,18 @@ jobs:
os: [ubuntu-latest]

steps:
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: libgpiod-dev
version: 1.0 #string to identify the cache.
- uses: ioBroker/testing-action-adapter@v1
with:
node-version: ${{ matrix.node-version }}
os: ${{ matrix.os }}
# Uncomment the following line if your adapter cannot be installed using 'npm ci'
# install-command: 'npm install'


# Deploys the final package to NPM
deploy:
needs: [check-and-lint, adapter-tests]
Expand All @@ -71,6 +81,10 @@ jobs:
contents: write

steps:
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: libgpiod-dev
version: 1.0 #string to identify the cache.
- uses: ioBroker/testing-action-deploy@v1
with:
node-version: '18.x'
Expand Down
50 changes: 50 additions & 0 deletions CHANGELOG_OLD.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Older Changes
## 1.2.0 (2020-01-17)
- (janfromberlin) GPIO configuration as output with defined initial value
- (foxriver76) No longer use adapter.objects
- (Apollon77) Adjust gpio errors

## 1.1.1
- (Apollon77) Error messages for not existing values are logged only once

## 1.1.0
- (Apollon77) Nodejs 10 support

## 1.0.0 (2018-08-20)
- (bluefox) Admin3 support

## 0.3.2 (2017-11-29)
- (Homoran) fixed Mem available readings on Stretch

## 0.3.1 (2017-01-11)
- (olifre) Fixup swap_used calculation.

## 0.2.2 (2016-12-01)
- (bluefox) Add GPIO direction indication

## 0.2.2 (2016-11-22)
- (bluefox) Use BCM enumeration

## 0.2.1 (2016-10-29)
- (bluefox) fix start of adapter

## 0.2.0 (2016-10-23)
- (bluefox) just version change

## 0.1.1 (2016-10-13)
- (bluefox) implement GPIOs control

## 0.0.4 (2016-03-25)
- (bluefox) Try catch by eval
(bluefox) do not process if exec fails

## 0.0.3 (2015-12-28)
- (husky-koglhof) Fixed value calc.
Set Value to 2 digits

## 0.0.2 (2015-12-26)
- (husky-koglhof) Workaround for node 0.10.x
- (bluefox) Some Fixes

## 0.0.1 (2015-12-23)
- Initial commit. Alpha Version.
74 changes: 14 additions & 60 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,21 @@ Connect such a sensor to a GPIO pin as described on the [node-dht-sensor](https:
PLACEHOLDER for the next version:
### **WORK IN PROGRESS**
-->
### 2.0.0-alpha.3 (2024-05-24)
* (Garfonso) fix crash

### 2.0.0-alpha.2 (2024-05-24)
### 2.0.1 (2024-10-07)
* (Garfonso) make gpio library required dependency
* (Garfonso) make errors clearer, if gpio library could not be initialized.

### 2.0.0 (2024-06-24)
* (Garfonso) reworked GPIO input and output to work with Bookworm.
* (Garfonso) BREAKING CHANGE: removed support for GPIO-Buttons.
* (Garfonso) BREAKING CHANGE: remove unsupported button states and create input state.
* (Garfonso) add support for Raspberry 5.
* (Garfonso) on startup set GPIO outputs from ioBroker states.
* (Garfonso) switch to opengpio library.
* (Grothesk242) fixed: reading network and filesystem statistics.
* (Garfonso) move parsers from io-package.json to separate file.
* (Garfonso) get rid of old sync-exec.

### 2.0.0-alpha.1 (2024-05-23)
* (Garfonso) Fix stuff.

### 2.0.0-alpha.0 (2024-05-23)
* (Garfonso) Get stuff up to date...
* (Garfonso) Get development stuff up to date...

### 1.3.2 (2022-02-17)
* Important: This version requires at leas js-controller 3.3
Expand All @@ -181,56 +185,6 @@ Connect such a sensor to a GPIO pin as described on the [node-dht-sensor](https:
* (raintor) Configure internal Pull UP/Down Resistor
* (raintor) Add port 'label'/'friendly name' to GPIO config

### 1.2.0 (2020-01-17)
- (janfromberlin) GPIO configuration as output with defined initial value
- (foxriver76) No longer use adapter.objects
- (Apollon77) Adjust gpio errors

### 1.1.1
- (Apollon77) Error messages for not existing values are logged only once

### 1.1.0
- (Apollon77) Nodejs 10 support

### 1.0.0 (2018-08-20)
- (bluefox) Admin3 support

### 0.3.2 (2017-11-29)
- (Homoran) fixed Mem available readings on Stretch

### 0.3.1 (2017-01-11)
- (olifre) Fixup swap_used calculation.

### 0.2.2 (2016-12-01)
- (bluefox) Add GPIO direction indication

### 0.2.2 (2016-11-22)
- (bluefox) Use BCM enumeration

### 0.2.1 (2016-10-29)
- (bluefox) fix start of adapter

### 0.2.0 (2016-10-23)
- (bluefox) just version change

### 0.1.1 (2016-10-13)
- (bluefox) implement GPIOs control

### 0.0.4 (2016-03-25)
- (bluefox) Try catch by eval
(bluefox) do not process if exec fails

### 0.0.3 (2015-12-28)
- (husky-koglhof) Fixed value calc.
Set Value to 2 digits

### 0.0.2 (2015-12-26)
- (husky-koglhof) Workaround for node 0.10.x
- (bluefox) Some Fixes

### 0.0.1 (2015-12-23)
- Initial commit. Alpha Version.

## License
MIT License

Expand Down
2 changes: 1 addition & 1 deletion admin/index_m.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
<div class="col s12 m5 input-field">
<select class="portType" id="portType{gpioNo}">
<option value="in" class="translate">in</option>
<option value="button" class="translate">button</option>
<!--option value="button" class="translate">button</option-->
<option value="out" class="translate">out</option>
<option value="outlow" class="translate">outlow</option>
<option value="outhigh" class="translate">outhigh</option>
Expand Down
Loading

0 comments on commit 3b4435f

Please sign in to comment.