Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| ru:docs:guide-user:services:remote_control:im_email [2024/12/15 00:22] – XMPP stokito | ru:docs:guide-user:services:remote_control:im_email [2024/12/17 19:28] (current) – [Telegram] stokito | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ===== EMail ===== | ===== EMail ===== | ||
| Как отправить почту смотрите в статье про [[: | Как отправить почту смотрите в статье про [[: | ||
| - | Получение писем с коммандами возможно с помощью SMTP сервера, | + | Получение писем с командами возможно с помощью SMTP сервера, |
| Но в целом почтовый сервер использовать проблематично из-за множества ограничений: | Но в целом почтовый сервер использовать проблематично из-за множества ограничений: | ||
| ===== Telegram ===== | ===== Telegram ===== | ||
| - | Наиболее вменяемая и часто используемуе средство. У Телеграмма [[https:// | + | Наиболее вменяемый и часто используемуй способ. У Телеграмма [[https:// |
| <code bash> | <code bash> | ||
| - | wget --post-data="chat_id=idчата&text=сообщение" | + | TOKEN="токен вашего бота" |
| + | CHAT_ID="id чата | ||
| + | MSG="сообщение" | ||
| + | wget -q -O - --post-data=" | ||
| </ | </ | ||
| + | |||
| Если интересно разобраться читайте [[https:// | Если интересно разобраться читайте [[https:// | ||
| Line 19: | Line 23: | ||
| * cam_movie: Record 25 seconds of a camIP and send it. | * cam_movie: Record 25 seconds of a camIP and send it. | ||
| - | * cam_mv: Move the camera | + | * cam_mv: Move the camera |
| * cam_shot: Get a Pic from the camera. | * cam_shot: Get a Pic from the camera. | ||
| * cam_vdo: Get a 25 seconds record from a camIP. | * cam_vdo: Get a 25 seconds record from a camIP. | ||
| - | * chromego_add: | + | * chromego_add: |
| - | * chromego_del: | + | * chromego_del: |
| - | * chromego_list: | + | * chromego_list: |
| * fw_add: Block a hostname using a deny rule in firewall, if append time to command will block from 23:00 to 8:00 | * fw_add: Block a hostname using a deny rule in firewall, if append time to command will block from 23:00 to 8:00 | ||
| * fw_delete: Remove a hostname from a deny firewall rule, if hostname is empty, will remove all rules created by this bot. | * fw_delete: Remove a hostname from a deny firewall rule, if hostname is empty, will remove all rules created by this bot. | ||
| Line 35: | Line 39: | ||
| * fw_unblock: Remove a hostname from a deny firewall rule, if hostname is empty, will remove all rules created by this bot. | * fw_unblock: Remove a hostname from a deny firewall rule, if hostname is empty, will remove all rules created by this bot. | ||
| * get_ip: Get WAN IPAddress. | * get_ip: Get WAN IPAddress. | ||
| - | * get_mac: Get the Organization that onwer the MacAddr. | + | * get_mac: Get the Organization that own the MacAddr. |
| - | * get_ping: Ping a address or host, return Up or Down. | + | * get_ping: Ping an address or host, return Up or Down. |
| * get_uptime: Return the uptime from this Device. | * get_uptime: Return the uptime from this Device. | ||
| * hst_list: Get hosts in the dhcp Leases. If a hostname is present, search only for this hostname. | * hst_list: Get hosts in the dhcp Leases. If a hostname is present, search only for this hostname. | ||
| * ignoredmac_add: | * ignoredmac_add: | ||
| * ignoredmac_list: | * ignoredmac_list: | ||
| - | * interface_down: | + | * interface_down: |
| - | * interface_restart: | + | * interface_restart: |
| * interfaces_list: | * interfaces_list: | ||
| - | * interface_up: | + | * interface_up: |
| * lights: Turn On or Off house Lights. | * lights: Turn On or Off house Lights. | ||
| * msg_tv: Send Message to Samsung TV | * msg_tv: Send Message to Samsung TV | ||
| * netstat: Prints netstat table in ESTABLISHED, | * netstat: Prints netstat table in ESTABLISHED, | ||
| * opkg_install: | * opkg_install: | ||
| - | * opkg_update: | + | * opkg_update: |
| * ping_udp: Create a UDP packet to puncture a hole through a NAT firewall of your ISP | * ping_udp: Create a UDP packet to puncture a hole through a NAT firewall of your ISP | ||
| * proc_list: List all process in execution | * proc_list: List all process in execution | ||
| Line 65: | Line 69: | ||
| * wifi_list: List all wireless devices. | * wifi_list: List all wireless devices. | ||
| * wifi_restart: | * wifi_restart: | ||
| - | * wll_list: Get a wifi clients list that is connected to this device | + | * wll_list: Get a Wi-Fi clients list that is connected to this device |
| - | Есть ещё один бот https:// | + | Есть ещё один бот https:// |
| - | Важно понимать что бот всё же ограничен в том что он может делать. | + | Важно понимать что бот всё же ограничен в том что он может делать. |
| ===== XMPP ===== | ===== XMPP ===== | ||
| Line 77: | Line 81: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | |||
| + | ===== UnifiedPush ===== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | * [[https:// | ||
| + | * Тоже самое но я хочу использовать Google по какой-то причине: | ||
| + | * У меня есть сервер Nextcloud: [[https:// | ||
| + | * Я использую XMPP клиент Conversations: | ||
| + | |||
| + | ==== Отправка оповещений через ntfy.sh ==== | ||
| + | Пример скрипта для отправки пуш нотификаций через [[https:// | ||
| + | |||
| + | <code bash> | ||
| + | NTFY_QUEUE=" | ||
| + | NEW_CLIENT_IP=" | ||
| + | MSG=" | ||
| + | |||
| + | A new client with IP $NEW_CLIENT_IP joined. | ||
| + | Please check if it's not an intruder." | ||
| + | |||
| + | wget -q -O - " | ||
| + | --header " | ||
| + | --header "Tags: ghost" \ | ||
| + | --header " | ||
| + | --header " | ||
| + | --header " | ||
| + | --post-data=" | ||
| + | </ | ||
| + | |||
| + | **ВНИМАНИЕ: | ||
| + | |||
| + | ==== Смотрите также ==== | ||
| + | |||
| + | * [[https:// | ||
| + | |||