mirror of
https://github.com/nikdoof/aaisp2mqtt.git
synced 2025-12-24 16:19:26 +00:00
Compare commits
24 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8aad456f3a | |||
| 645c1cea46 | |||
| 4dac5df0d4 | |||
| 36413e4ac0 | |||
| 28052728e7 | |||
| bb30d70e6b | |||
|
|
a44690641f | ||
|
|
cdf9c4beda | ||
|
|
f0a38b8e0a | ||
|
|
7e9b056bf4 | ||
|
|
089f80270b | ||
|
|
b5ae671835 | ||
| ad84d9129f | |||
| 662411a03e | |||
|
|
3bad53138b | ||
| b9ce0c198e | |||
|
|
d6a7349593 | ||
| 220acde8a4 | |||
|
|
4f518fafdb | ||
| e44ca5f5bd | |||
|
0be702f663
|
|||
|
f82f3da790
|
|||
|
5a41ae16b8
|
|||
|
ce40ad30e8
|
32
.github/workflows/build-docker-image.yaml
vendored
Normal file
32
.github/workflows/build-docker-image.yaml
vendored
Normal 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@v2
|
||||
- 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
17
CHANGELOG.md
Normal 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
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM python:3.8-alpine
|
||||
FROM python:3.11-alpine
|
||||
|
||||
COPY requirements.txt /app/
|
||||
COPY aaisp2mqtt.py /app/
|
||||
|
||||
@@ -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
5
renovate.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": [
|
||||
"config:base"
|
||||
]
|
||||
}
|
||||
@@ -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
|
||||
|
||||
2
setup.py
2
setup.py
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user