25 Commits

Author SHA1 Message Date
renovate[bot]
74c98c66df Update docker/setup-qemu-action action to v3 2023-09-12 14:53:16 +00:00
8aad456f3a Merge pull request #11 from nikdoof/renovate/python-3.x
Update python Docker tag to v3.11
2023-03-23 21:42:49 +00:00
645c1cea46 Merge pull request #10 from nikdoof/renovate/requests-2.x
Update dependency requests to v2.28.2
2023-03-23 21:42:39 +00:00
4dac5df0d4 Merge pull request #6 from nikdoof/renovate/docker-setup-qemu-action-2.x
Update docker/setup-qemu-action action to v2
2023-03-23 21:40:48 +00:00
36413e4ac0 Merge pull request #8 from nikdoof/renovate/docker-login-action-2.x
Update docker/login-action action to v2
2023-03-23 21:40:25 +00:00
28052728e7 Merge pull request #9 from nikdoof/renovate/docker-setup-buildx-action-2.x
Update docker/setup-buildx-action action to v2
2023-03-23 21:40:07 +00:00
bb30d70e6b Merge pull request #12 from nikdoof/renovate/docker-build-push-action-4.x
Update docker/build-push-action action to v4
2023-03-23 21:39:35 +00:00
renovate[bot]
a44690641f Update docker/build-push-action action to v4 2023-03-22 19:51:16 +00:00
renovate[bot]
cdf9c4beda Update dependency requests to v2.28.2 2023-03-22 19:51:11 +00:00
renovate[bot]
f0a38b8e0a Update python Docker tag to v3.11 2022-11-20 09:33:05 +00:00
Renovate Bot
7e9b056bf4 Update docker/setup-buildx-action action to v2 2022-05-05 22:20:13 +00:00
Renovate Bot
089f80270b Update docker/login-action action to v2 2022-05-05 19:42:24 +00:00
Renovate Bot
b5ae671835 Update docker/setup-qemu-action action to v2 2022-05-05 16:52:00 +00:00
ad84d9129f Add build docker images workflow 2022-05-05 13:57:38 +01:00
662411a03e Merge pull request #4 from nikdoof/renovate/pin-dependencies
Pin dependencies
2022-05-05 13:56:04 +01:00
Renovate Bot
3bad53138b Pin dependencies 2022-05-05 12:55:49 +00:00
b9ce0c198e Merge pull request #5 from nikdoof/renovate/python-3.x
Update dependency python to v3.10
2022-05-05 13:55:36 +01:00
Renovate Bot
d6a7349593 Update python Docker tag to v3.10 2022-01-20 03:56:45 +00:00
220acde8a4 Merge pull request #3 from nikdoof/renovate/configure
Configure Renovate
2021-12-18 13:51:12 +00:00
Renovate Bot
4f518fafdb Add renovate.json 2021-12-05 09:20:30 +00:00
e44ca5f5bd Merge pull request #2 from nikdoof/development
v0.3.1
2020-10-01 07:09:13 +01:00
0be702f663 Version 0.3.1 2020-10-01 07:08:32 +01:00
f82f3da790 Update Changelog 2020-07-11 11:20:26 +01:00
5a41ae16b8 Call paho loop to ensure messages are sent 2020-05-16 17:52:17 +01:00
ce40ad30e8 Add CHANGELOG 2020-05-16 16:21:31 +01:00
7 changed files with 61 additions and 6 deletions

View File

@@ -0,0 +1,32 @@
name: ci
on:
push:
branches:
- "master"
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
uses: docker/login-action@v2
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/aaisp2mqtt:${{ github.ref_name }}
ghcr.io/${{ github.repository_owner }}/aaisp2mqtt:latest

17
CHANGELOG.md Normal file
View File

@@ -0,0 +1,17 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.3.1]
### Fixed
- Resolved issue where messages were not being delivered to the MQTT server in time for disconnection.
## [0.3.0] - 2020-04-16
### Added
- Support for Home Assistant auto-discovery
[Unreleased]: https://github.com/nikdoof/aaisp2mqtt/compare/0.3.0...HEAD
[0.3.0]: https://github.com/nikdoof/aaisp2mqtt/compare/0.3.0

View File

@@ -1,4 +1,4 @@
FROM python:3.8-alpine
FROM python:3.11-alpine
COPY requirements.txt /app/
COPY aaisp2mqtt.py /app/

View File

@@ -14,7 +14,7 @@ import requests
LOG = logging.getLogger(__name__)
VERSION = '0.3.0'
VERSION = '0.3.1'
AAISP_INFO_URL = 'https://chaos2.aa.net.uk/broadband/info'
@@ -162,6 +162,7 @@ def main():
# disconnect
LOG.info('Disconnecting from MQTT')
client.loop()
client.disconnect()

5
renovate.json Normal file
View File

@@ -0,0 +1,5 @@
{
"extends": [
"config:base"
]
}

View File

@@ -1,3 +1,3 @@
paho-mqtt>=1.2
humanfriendly>=2.1
requests>=2.23.0
paho-mqtt==1.6.1
humanfriendly==10.0
requests==2.28.2

View File

@@ -6,7 +6,7 @@ with open("README.md", "r") as fh:
setup(
name='aaisp2mqtt',
version='0.3.0',
version='0.3.1',
description='A script to publish Andrews & Arnold / AAISP broadband quota and sync rates to MQTT',
long_description=long_description,
long_description_content_type='text/markdown',