1
0
Fork 0
Commit Graph

63 Commits

Author SHA1 Message Date
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
Michał Rudowicz 6ba9ac238e Bump go-satel 2024-03-04 22:11:08 +01:00
Michał Rudowicz 2e513fb4da Retrieve partition names from Satel 2024-03-04 22:01:35 +01:00
Michał Rudowicz d8e67643f5 Describe index meaning 2024-03-03 14:25:34 +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 0cb91aed62 Merge remote-tracking branch 'srht/main' 2024-02-28 21:39:03 +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 bd5a9b300d Switch go-satel to my fork 2024-02-25 07:58:23 +01:00
Michał Rudowicz a8fdc59d5e Reduce build output file size 2024-02-22 16:52:58 +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 eca858c01e FilterByLastSeen() persistence 2024-02-15 20:06:06 +01:00
Michał Rudowicz 919ddf569e FilterByLastSeen(); TODO: persistence 2024-02-14 21:34:16 +01:00
Michał Rudowicz 0d263179b4 FilterByType() 2024-02-13 23:20:15 +01:00
Michał Rudowicz ef746d73ec Remove unnecessary newline 2024-02-11 23:06:30 +01:00
Michał Rudowicz 9aed6bf218 Disable arm* builds as they aren't used right now anyway 2024-02-11 22:58:20 +01:00
Michał Rudowicz 3c3636637e Fix possible lock 2024-02-11 22:51:33 +01:00