Update toogoodtogo-ha-mqtt-bridge==1.0.0

This commit is contained in:
Max Winterstein
2021-01-15 00:24:12 +01:00
parent e3e3b5fe58
commit e8654bcc2d
5 changed files with 25 additions and 7 deletions

View File

@@ -1,4 +1,9 @@
# Changelog # Changelog
## [1.0.0] - 2020-12-31
- Update `toogoodtogo-ha-mqtt-bridge` to `1.0.0` (see [release notes](https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/releases))
- Add config for the new pull interval setting `every_n_minutes`.
**Add `every_n_minutes: 10` to your configuration! (See example config)**
## [0.1.0] - 2020-12-31 ## [0.1.0] - 2020-12-31
- Initial release - Initial release

View File

@@ -1,3 +1,3 @@
# sneaky trick to get around the requirement of {arch}-variabe based docker repositories # sneaky trick to get around the requirement of {arch}-variabe based docker repositories
FROM maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge:latest FROM maxwinterstein/homeassistant-addon-toogoodtogo-ha-mqtt-bridge:1.0.0

View File

@@ -11,7 +11,7 @@ RUN poetry config virtualenvs.create false
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
# add source and unpack # add source and unpack
ADD "https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/tarball/main" /src.tar.gz ADD "https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/archive/v1.0.0.tar.gz" /src.tar.gz
RUN mkdir /app && tar xvfz /src.tar.gz -C /app --strip-components=1 RUN mkdir /app && tar xvfz /src.tar.gz -C /app --strip-components=1
# install # install

View File

@@ -5,4 +5,15 @@
## 🚨 This is some experimental release! 🚨 ## 🚨 This is some experimental release! 🚨
--- ---
**The underlaying docker image will be build every night until there is some kind of versioning available.** Example Config:
```toml
mqtt:
host: homeassistant
port: 1883
username: mqtt
password: mqtt
tgtg:
email: me@example.ocm
password: iliketurtles
every_n_minutes: 10
```

View File

@@ -1,6 +1,6 @@
{ {
"name": "TooGoodToGo Home Assistant MQTT Bridge", "name": "TooGoodToGo Home Assistant MQTT Bridge",
"version": "0.1.0", "version": "1.0.0",
"slug": "tgtg-ha-mqtt-bridge", "slug": "tgtg-ha-mqtt-bridge",
"description": "Publish TooGoodToGo stock as MQTT messages", "description": "Publish TooGoodToGo stock as MQTT messages",
"arch": [ "arch": [
@@ -19,8 +19,9 @@
"password": "mqtt" "password": "mqtt"
}, },
"tgtg": { "tgtg": {
"email": "me@example.ocm", "email": "me@example.com",
"password": "iliketurtles" "password": "iliketurtles",
"every_n_minutes": 5
} }
}, },
"schema": { "schema": {
@@ -32,7 +33,8 @@
}, },
"tgtg": { "tgtg": {
"email": "str", "email": "str",
"password": "str" "password": "str",
"every_n_minutes": "float(0.5,)"
} }
}, },
"stage": "experimental", "stage": "experimental",