mirror of
https://github.com/mtan93/homeassistant-addons.git
synced 2026-03-07 21:21:50 +00:00
[adsb-multi-portal-feeder] Add adsb-hassio-sensors
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
## [1.27.0] - 2023-06-24
|
||||
|
||||
- Update `thomx/fr24feed-piaware` to `1.27.0` that brings RadarBox support - see [their release notes](https://github.com/Thom-x/docker-fr24feed-piaware-dump1090/releases/tag/1.27.0) for more
|
||||
- Add [adsb-hassio-sensors](https://github.com/plo53/adsb-hassio-sensors) that brings aircraft sensors - see INFO and [#172](https://github.com/MaxWinterstein/homeassistant-addons/issues/172) for more
|
||||
|
||||
## [1.26.1] - 2023-06-21
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
ARG BUILD_FROM
|
||||
FROM $BUILD_FROM
|
||||
|
||||
ENV TZ=UTC
|
||||
|
||||
# add bashio (thx https://github.com/hassio-addons/addon-debian-base/blob/main/base/Dockerfile#L47)
|
||||
ADD https://github.com/hassio-addons/bashio/archive/v0.14.3.tar.gz /tmp/bashio.tar.gz
|
||||
ADD https://github.com/hassio-addons/bashio/archive/v0.15.0.tar.gz /tmp/bashio.tar.gz
|
||||
RUN apt-get update && apt-get install -y curl jq && mkdir /tmp/bashio \
|
||||
&& tar zxvf \
|
||||
/tmp/bashio.tar.gz \
|
||||
@@ -11,13 +13,18 @@ RUN apt-get update && apt-get install -y curl jq && mkdir /tmp/bashio \
|
||||
&& mv /tmp/bashio/lib /usr/lib/bashio \
|
||||
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio
|
||||
|
||||
# Add hassio sensors - thx to https://github.com/plo53
|
||||
ARG version=1.0.1
|
||||
ARG sha256sum=40636f3dae484a82485f7c08cbc1f4a413e2ccf3c8b7c3a1e67651974645067d
|
||||
ADD https://github.com/plo53/adsb-hassio-sensors/archive/refs/tags/${version}.tar.gz /tmp/
|
||||
RUN echo "${sha256sum} /tmp/${version}.tar.gz" | sha256sum --check
|
||||
RUN tar xvfz /tmp/${version}.tar.gz adsb-hassio-sensors-${version}/{etc,usr} --strip-components=1 -C /
|
||||
|
||||
# add the options.json to environment variable magic
|
||||
COPY export-env-from-config.sh /export-env-from-config.sh
|
||||
|
||||
RUN find /etc/s6-overlay/s6-rc.d/ -name script | xargs sed -i '1 a\source /export-env-from-config.sh'
|
||||
RUN find /etc/s6-overlay/s6-rc.d/ -name run | xargs sed -i '1 a\source /export-env-from-config.sh'
|
||||
|
||||
ENV TZ=UTC
|
||||
|
||||
# Add the nice banner
|
||||
|
||||
@@ -30,5 +37,7 @@ RUN mkdir -p /etc/s6-overlay/s6-rc.d/banner && \
|
||||
chmod +x /etc/s6-overlay/s6-rc.d/banner/script && \
|
||||
sed -i '1 s/^.*$/#!\/command\/with-contenv bashio/' /etc/s6-overlay/s6-rc.d/banner/script
|
||||
|
||||
|
||||
|
||||
# enhance timeout, as sometimes the api calls are slow (rate limited?)
|
||||
ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=30000
|
||||
|
||||
@@ -20,6 +20,19 @@ I just added a few sprinkles to make it work with Home Assistant.
|
||||
|
||||
## Sensors for Home Assistant
|
||||
|
||||
### Automatically added sensors
|
||||
|
||||
With version `1.27.0` I integrated the lovely project [adsb-hassio-sensors](https://github.com/plo53/adsb-hassio-sensors/tree/master) from [plo53](https://github.com/plo53).
|
||||
|
||||
This exposes sensors related to the feeder, e.g. `sensor.adsbfi_icao`, `sensor.adsbfi_mlat`, `sensor.adsbfi_mode_s`, `sensor.adsbfi_status` for the Adsb.fi feeder.
|
||||
|
||||

|
||||

|
||||
|
||||
Current discussion about that freshly added thing can be found within [#172](https://github.com/MaxWinterstein/homeassistant-addons/issues/172)
|
||||
|
||||
### Rest Sensors
|
||||
|
||||
If you would like some nice statistics you can use a rest sensor with some template magic to show e.g. the number of aircrafts currently tracked:
|
||||
|
||||

|
||||
|
||||
BIN
adsb-multi-portal-feeder/images/Home Assistant ADS-B sensors.jpg
Normal file
BIN
adsb-multi-portal-feeder/images/Home Assistant ADS-B sensors.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
BIN
adsb-multi-portal-feeder/images/Home Assistant adsb.fi stats.jpg
Normal file
BIN
adsb-multi-portal-feeder/images/Home Assistant adsb.fi stats.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
Reference in New Issue
Block a user