Compare commits
No commits in common. "main" and "v1.0.0" have entirely different histories.
21
LICENSE
21
LICENSE
@ -1,21 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2023 Mike Cifelli
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
@ -1,6 +1,6 @@
|
|||||||
# chutney
|
# chutney
|
||||||
|
|
||||||
A Raspberry Pi project for displaying the time, temperature and garage door status. A Unicorn HAT HD is used for a simple display.
|
A Raspberry Pi project for displaying the time, temperature and garage door status. A Unicorn Hat HD is used for a simple display.
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
```
|
```
|
||||||
|
@ -9,4 +9,3 @@ lon=lon
|
|||||||
uri=uri
|
uri=uri
|
||||||
ntfy=ntfy.sh
|
ntfy=ntfy.sh
|
||||||
topic=topic
|
topic=topic
|
||||||
auth=auth
|
|
||||||
|
@ -7,5 +7,3 @@ PINK = [255, 0, 64 ]
|
|||||||
GREEN = [0, 255, 0 ]
|
GREEN = [0, 255, 0 ]
|
||||||
BLUE = [0, 64, 128]
|
BLUE = [0, 64, 128]
|
||||||
|
|
||||||
DARK_ORANGE = [255, 48, 0 ]
|
|
||||||
SOFT_WHITE = [240, 220, 210]
|
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
|
||||||
class HaltException(Exception):
|
class HaltException(Exception):
|
||||||
pass
|
pass
|
||||||
|
@ -11,9 +11,8 @@ class GarageListener:
|
|||||||
|
|
||||||
ntfy = config['garage'].get('ntfy')
|
ntfy = config['garage'].get('ntfy')
|
||||||
topic = config['garage'].get('topic')
|
topic = config['garage'].get('topic')
|
||||||
auth = config['garage'].get('auth')
|
|
||||||
|
|
||||||
self.ntfyUri = f'https://{ntfy}/{topic}/json?auth={auth}'
|
self.ntfyUri = f'https://{ntfy}/{topic}/json'
|
||||||
|
|
||||||
def listenForNotifications(self, queue):
|
def listenForNotifications(self, queue):
|
||||||
with requests.get(self.ntfyUri, stream=True, timeout=60) as response:
|
with requests.get(self.ntfyUri, stream=True, timeout=60) as response:
|
||||||
|
Loading…
Reference in New Issue
Block a user