Skip to content

Commit

Permalink
Merge pull request #16 from ikifar2012/dev
Browse files Browse the repository at this point in the history
2023.3.3
  • Loading branch information
ikifar2012 authored Mar 25, 2023
2 parents adf3740 + 6350867 commit cd3e777
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 30 deletions.
11 changes: 10 additions & 1 deletion amcrest2mqtt-addon/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# 2023.3.3

- Fix MQTT service not available #15
- Temporarily switch to my own fork with dependency fix
- Bump base image to 13.1.4
- Fix config options

**Full Changelog**: https://github.com/ikifar2012/amcrest2mqtt-addon/compare/2023.3.2...2023.3.3

# 2023.3.2

- Set permissions on rootfs services to executable
Expand Down Expand Up @@ -45,4 +54,4 @@

- Initial release

**Full Changelog**: https://github.com/ikifar2012/amcrest2mqtt-addon/commits/2022.1.0
**Full Changelog**: https://github.com/ikifar2012/amcrest2mqtt-addon/commits/2022.1.0
2 changes: 1 addition & 1 deletion amcrest2mqtt-addon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apk add --no-cache \
python3 \
py3-pip \
git
RUN git clone https://github.com/carefulcomputer/amcrest2mqtt.git
RUN git clone -b ikifar https://github.com/ikifar2012/amcrest2mqtt.git
# Copy data for add-on
RUN pip install -r /amcrest2mqtt/requirements.txt
COPY rootfs /
Expand Down
18 changes: 9 additions & 9 deletions amcrest2mqtt-addon/build.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
squash: false
build_from:
aarch64: ghcr.io/hassio-addons/base/aarch64:13.1.3
amd64: ghcr.io/hassio-addons/base/amd64:13.1.3
armhf: ghcr.io/hassio-addons/base/armhf:13.1.3
armv7: ghcr.io/hassio-addons/base/armv7:13.1.3
i386: ghcr.io/hassio-addons/base/i386:13.1.3
codenotary:
signer: [email protected]
squash: false
build_from:
aarch64: ghcr.io/hassio-addons/base/aarch64:13.1.4
amd64: ghcr.io/hassio-addons/base/amd64:13.1.4
armhf: ghcr.io/hassio-addons/base/armhf:13.1.4
armv7: ghcr.io/hassio-addons/base/armv7:13.1.4
i386: ghcr.io/hassio-addons/base/i386:13.1.4
codenotary:
signer: [email protected]
base_image: [email protected]
32 changes: 16 additions & 16 deletions amcrest2mqtt-addon/config.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
name: amcrest2mqtt
version: 2023.3.2
version: 2023.3.3
slug: amcrest2mqtt-addon
description: A Home Assistant addon for amcrest2mqtt
url: https://github.com/ikifar2012/amcrest2mqtt-addon/blob/master/README.md
arch:
- armhf
- armv7
- aarch64
- amd64
- i386
- armhf
- armv7
- aarch64
- amd64
- i386
image: ikifar/amcrest2mqtt-addon-{arch}
codenotary: [email protected]
startup: services
boot: auto
init: false
map:
- ssl:ro
- ssl:ro
services:
- mqtt:want
- mqtt:need
options:
amcrest_host: ''
amcrest_port: '80'
amcrest_username: 'admin'
amcrest_password: ''
storage_poll_interval: '3600'
device_name: ''
amcrest_host: ""
amcrest_port: 80
amcrest_username: "admin"
amcrest_password: ""
storage_poll_interval: 3600
device_name: ""
home_assistant: true
home_assistant_prefix: ''
home_assistant_prefix: ""
schema:
amcrest_host: str
amcrest_port: int
Expand All @@ -35,4 +35,4 @@ schema:
storage_poll_interval: int
device_name: str
home_assistant: bool
home_assistant_prefix: str
home_assistant_prefix: str
3 changes: 2 additions & 1 deletion amcrest2mqtt-addon/rootfs/etc/services.d/amcrest2mqtt/finish
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bashio
#!/command/with-contenv bashio
# shellcheck shell=bash
# ==============================================================================
# Take down the S6 supervision tree when amcrest2mqtt exits with an error
# s6-overlay docs: https://github.com/just-containers/s6-overlay
Expand Down
5 changes: 3 additions & 2 deletions amcrest2mqtt-addon/rootfs/etc/services.d/amcrest2mqtt/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bashio
#!/command/with-contenv bashio
# shellcheck shell=bash
# ==============================================================================
# Start the amcrest2mqtt service
# s6-overlay docs: https://github.com/just-containers/s6-overlay
Expand Down Expand Up @@ -26,5 +27,5 @@ else
bashio::log.warning "MQTT service not available, please ensure the MQTT Broker addon is installed and configured"
fi

cd /amcrest2mqtt/ || exit
cd /amcrest2mqtt/ || bashio::exit.nok "Failed to change directory to /amcrest2mqtt/"
exec /usr/bin/python3 -u src/amcrest2mqtt.py || bashio::exit.nok "Failed to start amcrest2mqtt"

0 comments on commit cd3e777

Please sign in to comment.