1
0
Fork 0
Commit Graph

47 Commits

Author SHA1 Message Date
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
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 efbd8e882c Compress artifacts 2024-02-11 14:49:34 +01:00
Michał Rudowicz 349fe504ae Add pre-commit to CI 2024-02-11 14:45:14 +01:00
Michał Rudowicz 901aa8cfd6 Mock time functions 2024-02-11 11:51:41 +01:00
Michał Rudowicz 9f67c17fc4 Make sure to send leftover messages when application is closing 2024-02-11 00:24:11 +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 3937112ef9 Add pre-commit 2024-02-09 23:32:00 +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