Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API updates #7

Closed
wants to merge 46 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
59bdc2a
Use denon-client InputOptions to get list of inputs since the Denon h…
dfuchslin Jul 21, 2019
944a35e
updated node-roon-api dependency. Fixes "this.moo.close is not a func…
jcharr1 Oct 25, 2021
fc33df0
added Dockerfile
jcharr1 Oct 25, 2021
c29f497
Create docker-image.yml
jcharr1 Oct 25, 2021
3a0b0ff
bump version number
jcharr1 Oct 25, 2021
2554b63
Merge branch 'master' of github.com:jcharr1/roon-extension-denon
jcharr1 Oct 25, 2021
b608324
Update app.js
arthursoares Mar 8, 2022
187e1ad
Update package.json
arthursoares Mar 8, 2022
ce369f5
Merge pull request #1 from arthursoares/master
jcharr1 Feb 9, 2023
6e5403e
Update docker-image.yml
jcharr1 Feb 9, 2023
80b8e5b
updated node-roon-api and bumped version numbers
jcharr1 Feb 9, 2023
c08734f
updated roon api. Bump version. Added docker-compose.yaml
jcharr1 Dec 27, 2023
94bd394
added restart to docker compose
jcharr1 Dec 27, 2023
902da09
added restart to docker compose
jcharr1 Dec 27, 2023
8a2e0dc
fixed docker compose image
jcharr1 Dec 27, 2023
b916b73
added build & deploy script because I always forget the commands
jcharr1 Dec 27, 2023
7b1f056
signing test
jcharr1 Dec 27, 2023
a1cad98
signing test
jcharr1 Dec 27, 2023
d534a26
signing test
jcharr1 Dec 27, 2023
01cf44b
signing test
jcharr1 Dec 27, 2023
8df90ce
signing test with global set test
jcharr1 Dec 27, 2023
e120c7d
signing test with global set test
jcharr1 Dec 27, 2023
fcf955e
Update docker-image.yml
jcharr1 Dec 27, 2023
ebd2b02
Create deploy_to_ghrc.yml
jcharr1 Dec 27, 2023
1532e86
Update deploy_to_ghrc.yml
jcharr1 Dec 27, 2023
17a1114
Update deploy_to_ghrc.yml
jcharr1 Dec 27, 2023
a361207
Update deploy_to_ghrc.yml
jcharr1 Dec 27, 2023
2c3b8af
Update deploy_to_ghrc.yml
jcharr1 Dec 27, 2023
be101af
Update deploy_to_ghrc.yml
jcharr1 Dec 27, 2023
98a4089
Update deploy_to_ghrc.yml
jcharr1 Dec 27, 2023
4f6030b
Update deploy_to_ghrc.yml
jcharr1 Dec 27, 2023
5bbc930
Update deploy_to_ghrc.yml
jcharr1 Dec 27, 2023
e6af9af
Update deploy_to_ghrc.yml
jcharr1 Dec 27, 2023
30a1271
Update deploy_to_ghrc.yml
jcharr1 Dec 27, 2023
4632b53
Update deploy_to_ghrc.yml
jcharr1 Dec 27, 2023
9e0d430
Update deploy_to_ghrc.yml
jcharr1 Dec 27, 2023
fd587fe
Update deploy_to_ghrc.yml
jcharr1 Dec 27, 2023
8465745
Update deploy_to_ghrc.yml
jcharr1 Dec 27, 2023
17aa9b3
updated docker compose to use ghrc.io instead of Docker Hub
jcharr1 Dec 27, 2023
bc6406e
Merge branch 'master' of github.com:jcharr1/roon-extension-denon
jcharr1 Dec 27, 2023
a7d602b
added support for Node 22 courtesy of OonihiloO's patch
jcharr1 Jan 17, 2025
f8dd321
removed absolute path to docker
jcharr1 Jan 17, 2025
5fdb3ae
bump version to 0.0.14
jcharr1 Jan 17, 2025
f07c622
bump version to 0.0.14
jcharr1 Jan 17, 2025
8d69cee
bump node in docker to 23
jcharr1 Jan 17, 2025
b24d30d
Merge remote-tracking branch 'upstream/master'
jcharr1 Jan 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/deploy_to_ghrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#
name: Create and publish a Docker image

# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
push:
branches: ['master']

# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
build-and-push-image:
runs-on: ubuntu-latest
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
permissions:
contents: read
packages: write
#
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages.
# It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository.
# It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
20 changes: 20 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Docker Image CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag docker.io/jcharr1/roon-extension-denon:latest
- name: Push the Docker imagme
run: docker push docker.io/jcharr1/roon-extension-denon:latest
8 changes: 4 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ function create_volume_control(denon) {
state: denon.volume_state,
control_key: 1,

set_volume: function (req, mode, value) {
set_volume: function(req, mode, value) {
debug("set_volume: mode=%s value=%d", mode, value);

let newvol =
Expand All @@ -341,7 +341,7 @@ function create_volume_control(denon) {
req.send_complete("Failed");
});
},
set_mute: function (req, inAction) {
set_mute: function(req, inAction) {
debug("set_mute: action=%s", inAction);

const action = !this.state.is_muted ? "on" : "off";
Expand Down Expand Up @@ -421,7 +421,7 @@ function create_source_control(denon) {
});
}
},
standby: function (req) {
standby: function(req) {
denon.client.getPower().then((val) => {
denon.client
.setPower(val === "STANDBY" ? "ON" : "STANDBY")
Expand Down Expand Up @@ -463,4 +463,4 @@ function create_source_control(denon) {

setup_denon_connection(mysettings.hostname);

roon.start_discovery();
roon.start_discovery();
7 changes: 7 additions & 0 deletions build_and_deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

echo "Building docker image..."
docker build . --file Dockerfile --tag docker.io/jcharr1/roon-extension-denon:latest

echo "Pushing to Docker Hub..."
docker push docker.io/jcharr1/roon-extension-denon:latest
7 changes: 7 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '3'
services:
roon-extension-denon:
image: ghcr.io/jcharr1/roon-extension-denon:master
container_name: roon-extension-denon
network_mode: host
restart: unless-stopped
Loading