Michał Rudowicz
b0d87a2d64
Synchronous filter for type conversion in stream
2025-01-08 21:16:18 +01:00
Michał Rudowicz
1e899a5351
Actual usage of synchronous workers
2025-01-08 20:44:32 +01:00
Michał Rudowicz
a5034ca3b5
Synchronous HTTP notification
2025-01-07 00:11:03 +01:00
Michał Rudowicz
499fa82d96
Collect improvements
2025-01-07 00:10:21 +01:00
Michał Rudowicz
dd02763e84
Synchronous throttling
2025-01-07 00:09:41 +01:00
Michał Rudowicz
76bd8e42d4
SyncFilter is now generic
2025-01-06 23:29:54 +01:00
Michał Rudowicz
5f93bc084e
Sync senders
2025-01-06 21:38:43 +01:00
Michał Rudowicz
f7bb03721c
SyncFilterImpl
2025-01-06 20:53:08 +01:00
Michał Rudowicz
88c86a9581
Initial work on synchronous filters
2025-01-06 14:55:08 +01:00
Michał Rudowicz
ba5e74d3c6
HTTP Request timeout to avoid issues when services are down
2025-01-03 23:39:32 +01:00
Michał Rudowicz
e0fe26c41b
Add missing newline
2025-01-03 22:01:13 +01:00
Michał Rudowicz
803a174ace
Omit telegram if no bot api key is provided
2025-01-03 21:47:07 +01:00
Michał Rudowicz
f6ff93c783
Get Telegram Bot API from config instead of env
2025-01-03 20:33:36 +01:00
martyna
0e59be7421
added multi-stage builds to dockerfile
2025-01-03 19:54:37 +01:00
martyna
d03bfb9896
dockerised alarmbot
2025-01-03 18:29:25 +01:00
Michał Rudowicz
cdcef69618
Ability to use config file only
2025-01-02 19:55:31 +01:00
Michał Rudowicz
7e9c341270
Documentation
2025-01-02 14:09:04 +01:00
Michał Rudowicz
64780e249c
Fix race condition in Matterbridge sender
2025-01-02 14:08:39 +01:00
Michał Rudowicz
15f6e8bc24
Matterbridge is optional and can appear many times
2025-01-02 13:42:53 +01:00
Michał Rudowicz
94a47b2962
Matterbridge sender
2025-01-02 13:42:53 +01:00
Michał Rudowicz
64f4930b4e
Avoid possible race condition with waitgroups
...
Looks like calling wg.Add(1) from a goroutine can cause a race condition
with wg.Wait() - can be easily avoided by calling Add() before the
subroutine is created.
2025-01-02 13:40:25 +01:00
Michał Rudowicz
cf790e88ff
Fix: Actually running the memory profile storage every 24hrs
2024-04-08 19:27:35 +02:00
Michał Rudowicz
8b33722b1c
xz -> zstd
2024-04-06 12:13:12 +02:00
Michał Rudowicz
eca8fb90ba
Option to store a memory profile once a day
...
References https://todo.sr.ht/~michalr/hswro-alarm-bot/10
2024-04-06 12:08:41 +02:00
Michał Rudowicz
a1f5ce5d2b
Remove reconnection attempts, return error unless ctrl+c was sent
2024-03-30 07:21:37 +01:00
Michał Rudowicz
4f91940047
Read config from YAML file
2024-03-24 18:39:12 +01:00
Michał Rudowicz
39ec8f2764
Make config fields public
2024-03-24 16:54:33 +01:00
Michał Rudowicz
12fc45ec38
Potentially multiple callback URLs for events
2024-03-24 09:32:03 +01:00
Michał Rudowicz
2c3286206e
Introduction of AppConfig
2024-03-23 10:40:20 +01:00
Michał Rudowicz
c026863342
Try again to connect after Satel disconnects
2024-03-23 10:26:36 +01:00
Michał Rudowicz
df2fdc970b
Revert "Force GC when each event is at the end of its path"
...
This reverts commit c5efc28c82
.
2024-03-12 16:56:52 +01:00
Michał Rudowicz
c5efc28c82
Force GC when each event is at the end of its path
2024-03-11 23:41:42 +01:00
Michał Rudowicz
050dcbe72b
Little refactoring
2024-03-10 23:30:15 +01:00
Michał Rudowicz
a7eb36aa92
Update README
2024-03-10 21:42:03 +01:00
Michał Rudowicz
7815009318
(hopefully) fix not all chatIds being used
2024-03-10 21:15:51 +01:00
Michał Rudowicz
0c873ff77d
Fix memory leak* when new message is received
...
*) technically the memory could still be referenced, so some would argue
that it was not a memory leak, but when I see a program balooning up
without a reason for it so OOM Killer deals with it I call it a
memory leak, sue me
2024-03-10 14:08:39 +01:00
Michał Rudowicz
2b17a34ff7
Fix hang on close
2024-03-10 13:55:29 +01:00
Michał Rudowicz
57c66c4690
Collect message contents during throttling
...
References https://todo.sr.ht/~michalr/hswro-alarm-bot/9
2024-03-10 11:25:36 +01:00
Michał Rudowicz
3e3eb3bc5d
Message throttling
2024-03-10 10:52:27 +01:00
Michał Rudowicz
6b69fed5b8
Synchronize filtering goroutines
2024-03-10 10:12:04 +01:00
Michał Rudowicz
0f858c7767
Remove not needed "Received following changes" text from TG notification
2024-03-07 20:16:41 +01:00
Michał Rudowicz
ed9981afbe
HTTP Callback for activated alarm
2024-03-06 22:31:08 +01:00
Michał Rudowicz
71d05dade9
Fix PartitionAlarm
2024-03-06 19:47:26 +01:00
Michał Rudowicz
4728a18dcb
Improve alarm reporting
2024-03-06 19:39:43 +01:00
Michał Rudowicz
906db90651
Bump go-satel (polling for alarms)
2024-03-06 19:26:05 +01:00
Michał Rudowicz
b12d7168c9
HTTP callbacks for partition arm/disarm
2024-03-06 18:51:21 +01:00
Michał Rudowicz
7a19f0b5fd
Configurable pooling interval
2024-03-06 08:00:39 +01:00
Michał Rudowicz
8237eda13d
Join filters etc. to limit numbers of goroutines that aren't needed
...
References: https://todo.sr.ht/~michalr/hswro-alarm-bot/7
2024-03-05 23:01:38 +01:00
Michał Rudowicz
93b9c0c822
ArmedPartition status text change
2024-03-05 22:42:03 +01:00
Michał Rudowicz
f0a16ab443
Bump go-satel; remove throttling of messages
2024-03-05 22:30:48 +01:00