1
0
Fork 0
Commit Graph

44 Commits

Author SHA1 Message Date
Michał Rudowicz cf790e88ff Fix: Actually running the memory profile storage every 24hrs 2024-04-08 19:27:35 +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 050dcbe72b Little refactoring 2024-03-10 23:30:15 +01:00
Michał Rudowicz 7815009318 (hopefully) fix not all chatIds being used 2024-03-10 21:15:51 +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 ed9981afbe HTTP Callback for activated alarm 2024-03-06 22:31:08 +01:00
Michał Rudowicz 4728a18dcb Improve alarm reporting 2024-03-06 19:39:43 +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 f0a16ab443 Bump go-satel; remove throttling of messages 2024-03-05 22:30:48 +01:00
Michał Rudowicz 2e513fb4da Retrieve partition names from Satel 2024-03-04 22:01:35 +01:00
Michał Rudowicz b19ae59a9c Get persistence file path from $STATE_DIRECTORY 2024-03-03 13:54:42 +01:00
Michał Rudowicz 765a41f8a1 Log Satel disconnections 2024-03-03 12:59:02 +01:00
Michał Rudowicz 6d0c67f92a Separate DataStore object to allow for querying from separate place 2024-02-28 21:38:42 +01:00
Michał Rudowicz 795ffb66d9 Telegram message formatting 2024-02-19 19:52:40 +01:00
Michał Rudowicz 0e01644c3b Properly close Satel connection on interrupt 2024-02-18 19:36:54 +01:00
Michał Rudowicz 9360d89fe1 Ignore empty change type or index in command line parameters 2024-02-18 19:23:04 +01:00
Michał Rudowicz 23004084b4 Attempt to handle ctrl+c 2024-02-18 19:15:56 +01:00
Michał Rudowicz 557f5481fd Possibility to filter by indexes 2024-02-18 19:00:49 +01:00
Michał Rudowicz ab5bd412f2 Possibility to filter by ChangeType 2024-02-18 18:44:08 +01:00
Michał Rudowicz 079e32e893 Some TG-specific improvements with possible other methods as well 2024-02-18 18:00:01 +01:00
Michał Rudowicz 1e89fea274 Small simplifcation 2024-02-18 12:38:24 +01:00
Michał Rudowicz 7a9a973904 Shuffling things around in hope that it'll be better in the end 2024-02-18 09:42:27 +01:00
Michał Rudowicz e776813230 Split sending into chained goroutines 2024-02-18 01:44:10 +01:00
Michał Rudowicz 8c8b7c4f9b Actually use FilterByLastSeen() 2024-02-15 20:20:56 +01:00
Michał Rudowicz ef746d73ec Remove unnecessary newline 2024-02-11 23:06:30 +01:00
Michał Rudowicz 3c3636637e Fix possible lock 2024-02-11 22:51:33 +01:00
Michał Rudowicz bec0241d9c Logging 2024-02-11 22:48:11 +01:00
Michał Rudowicz 1f03609182 General cleanup, testing improvements 2024-02-11 14:56:03 +01:00
Michał Rudowicz 901aa8cfd6 Mock time functions 2024-02-11 11:51:41 +01:00
Michał Rudowicz 6f0f78907c More reorganizing, new throttling 2024-02-11 00:13:31 +01:00
Michał Rudowicz 7f3b5a4abe Little reorganizing 2024-02-10 07:51:36 +01:00
Michał Rudowicz f574369d0d Message throttling, OMIT_TG 2024-02-09 23:32:32 +01:00
Michał Rudowicz b4ef77a93d Change command line args from _ to - 2024-02-08 22:09:31 +01:00
Michał Rudowicz e625bcfcf5 Add ability to specify more than one tg_chat_id 2024-02-08 20:57:16 +01:00
Michał Rudowicz c0a6540500 Initial commit 2024-02-08 19:23:46 +01:00