Commit graph

1614 commits

Author SHA1 Message Date
Christian Hesse
b963761874 mod/notification-telegram: support sending in reply 2023-02-24 12:13:44 +01:00
Christian Hesse
8213c5ed61 netwatch-notify: support sending silent notifications 2023-02-24 12:13:35 +01:00
Christian Hesse
fe0460ef6d INITIAL-COMMANDS: link to new paragraphs 2023-02-17 12:27:47 +01:00
Christian Hesse
da46c42d4a README: add a paragraph for scheduled automatic updates 2023-02-17 12:23:05 +01:00
Christian Hesse
c247fe5a96 README: move configuration down, make it a separate paragraph 2023-02-17 08:05:15 +01:00
Christian Hesse
49e89070a1 packages-update: put reboot into a function
Make the logic even simpler... Let's put the reboot code into a
function. That is volatile, so device does not reboot if it is
rebooted already.
2023-02-16 12:03:46 +01:00
Christian Hesse
7c2ac135e3 packages-update: check version before reboot from scheduler
Chances are that the device was rebooted manually... Do not reboot then.
2023-02-16 11:53:05 +01:00
Christian Hesse
95b8a47b81 telegram-chat: log command with failed syntax validation 2023-02-14 23:01:24 +01:00
Christian Hesse
f1ad240e59 telegram-chat: never decrease the local offset 2023-02-14 23:01:24 +01:00
Christian Hesse
77d26e02d4 telegram-chat: add debug message for handled updates 2023-02-14 23:01:16 +01:00
Christian Hesse
2a7576f4e4 telegram-chat: add updateid in log messages 2023-02-14 21:28:15 +01:00
Christian Hesse
c48509683c check-health: wording: load -> utilization
The load is defined as something different...

https://en.wikipedia.org/wiki/Load_(computing)

So let's update the wording and use 'utilization' instead.

---- ✂️ ----
🧮📈️ Health warning: CPU utilization

The average CPU utilization on MikroTik is at 76%!
---- ✂️ ----
🧮📉️ Health recovery: CPU utilization

The average CPU utilization on MikroTik decreased to 64%.
---- ✂️ ----
2023-02-14 20:24:06 +01:00
Christian Hesse
e50e25c638 doc/check-health: make the voltage limit a separate point 2023-02-13 21:10:35 +01:00
Christian Hesse
b6d2cb44c1 doc/check-health: add line break between screenshots 2023-02-13 21:10:35 +01:00
Christian Hesse
ad75d6e031 README: give hint about converting line endings 2023-02-13 21:10:35 +01:00
Christian Hesse
f5d872a990 global-functions: $PrettyPrint: use $Unix2Dos 2023-02-13 10:36:56 +01:00
Christian Hesse
d54c46ab98 global-functions: introduce $Dos2Unix 2023-02-13 10:36:56 +01:00
Christian Hesse
7d3c4738d0 global-functions: introduce $Unix2Dos 2023-02-13 10:35:27 +01:00
Christian Hesse
62707dc549 ipv6-update: support host addresses in address-list 2023-02-10 11:36:12 +01:00
Christian Hesse
a34d5d7141 ipv6-update: accept a single prefix only 2023-02-09 22:43:09 +01:00
Christian Hesse
769edbcf61 ipv6-update: rename variable 2023-02-09 22:42:36 +01:00
Christian Hesse
c6245b3125 ipv6-update: use identical parameters to find address 2023-02-09 22:10:48 +01:00
Christian Hesse
15fc0b91e9 doc/backup-upload: new option $BackupSendGlobalConfig 2023-02-08 09:44:52 +01:00
Christian Hesse
f2f7d66b2d doc/backup-email: new option $BackupSendGlobalConfig 2023-02-08 09:44:21 +01:00
Christian Hesse
818638d0f4 backup-upload: use :use inside :execute for global-config-overlay 2023-02-08 09:14:02 +01:00
Christian Hesse
b9eaab8e77 backup-email: use :use inside :execute for global-config-overlay
This will add carriage return and line feed, but works around the
limitation of reading just four kilobytes from file.
2023-02-08 09:14:02 +01:00
Christian Hesse
d63db7ea95 global-functions: $ScriptInstallUpdate: use complete property name 2023-02-07 21:20:49 +01:00
Christian Hesse
58a6fac3d9 telegram-chat: use complete property name 2023-02-07 21:19:57 +01:00
Christian Hesse
aee42d31e1 Merge branch 'backup-g-c-o' into next 2023-02-07 21:19:57 +01:00
Christian Hesse
ba730708f5 notify about backup for global-config-overlay 2023-02-07 21:19:57 +01:00
Christian Hesse
5d263ca11e backup-upload: support uploading global-config-overlay 2023-02-07 21:19:57 +01:00
Christian Hesse
0527503c8e backup-email: support sending global-config-overlay 2023-02-07 21:19:57 +01:00
Christian Hesse
48bf54644a global-config: new option to backup global-config-overlay 2023-02-07 20:24:50 +01:00
Christian Hesse
9c066599e8 telegram-chat: handle exceeded file read size 2023-02-04 23:24:44 +01:00
Christian Hesse
600203797b telegram-chat: no need to :put ...
... a simple change to root dir is sufficient.
2023-02-03 22:30:08 +01:00
Christian Hesse
04c26d3d2e telegram-chat: log with severity debug only...
... as failed request are quite common.
2023-02-03 22:01:35 +01:00
Christian Hesse
8a900dce00 telegram-chat: delay confirmation of updates
Several devices can communicate with the same bot, and we want all of
them to receive their updates. However this can be tricky, as...

* ... sometimes internet connection can be unreliable or saturated.
* ... device can be busy with long running command.
* ... the Telegram bot api servers seem to implement what ever kind of
  rate limiting. Anybody can give details?

So let's confirm the update id after third request only. 😁 This gives
delayed devices some extra chances to catch up.
2023-02-03 21:59:26 +01:00
Christian Hesse
4bc5b9cf5f telegram-chat: log warning only when trying to activate 2023-02-03 09:56:30 +01:00
Christian Hesse
9d1cf87489 telegram-chat: handle missing username 2023-02-03 09:53:49 +01:00
Christian Hesse
490a738af1 backup-email: wait for the mail to be sent 2023-02-02 11:52:23 +01:00
Christian Hesse
c47c9a2906 telegram-chat: discard messages without text 2023-02-02 11:30:49 +01:00
Christian Hesse
82003bc7d1 telegram-chat: allow to modify the time to wait for command
For now this is a hidden settings... Do we want this to be documented?
2023-02-02 11:24:45 +01:00
Christian Hesse
978c03131a global-functions: $WaitForFile: use delay instead of iterations 2023-02-02 11:20:14 +01:00
Christian Hesse
b794d98cbb telegram-chat: reply with a hint when untrusted...
... but only when activating via identity.
2023-02-02 10:06:42 +01:00
Christian Hesse
08383daa5c telegram-chat: always reply to origin chat 2023-02-02 10:06:42 +01:00
Christian Hesse
2cb74f0269 mod/notification-telegram: support sending to specific chatid 2023-02-02 09:11:34 +01:00
Christian Hesse
bf1af61d2d doc/telegram-chat: give an example on how to work around command runtime 2023-02-01 17:28:45 +01:00
Christian Hesse
049a029170 doc/telegram-chat: add hint on output size 2023-02-01 14:30:52 +01:00
Christian Hesse
8dd53c80f5 telegram-chat: modify text if no output available 2023-02-01 14:26:28 +01:00
Christian Hesse
b5399099c6 telegram-chat: also give a hint on failed syntax validation
... and drop the warning in log instead.
2023-02-01 11:29:56 +01:00