Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:guide-user:services:remote_control:im_email [2024/12/15 00:26] – [Telegram] stokito | docs:guide-user:services:remote_control:im_email [2024/12/17 16:07] (current) – grammar stokito | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Remote control OpenWrt device | + | ====== Remote control OpenWrt device |
| A device can send notifications and receive commands directly to you. | A device can send notifications and receive commands directly to you. | ||
| ===== EMail ===== | ===== EMail ===== | ||
| - | To send email see [[: | + | To send an email see [[: |
| Receiving email can be done with '' | Receiving email can be done with '' | ||
| - | But email server is problematic to setup on a router because of many limitations: | + | But email server is problematic to set up on a router because of many limitations: |
| Line 15: | Line 15: | ||
| * 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 31: | Line 31: | ||
| * 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 61: | Line 61: | ||
| * 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 |
| Line 68: | Line 68: | ||
| The [[https:// | The [[https:// | ||
| - | * [[https:// | + | * [[https:// |
| * [[https:// | * [[https:// | ||
| + | |||
| + | |||
| + | ===== UnifiedPush ===== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | * [[https:// | ||
| + | * The same but I want to use Google for some reason: [[https:// | ||
| + | * I have a Nextcloud server: [[https:// | ||
| + | * I use Conversations XMPP client: [[https:// | ||
| + | |||
| + | ==== Send push notification via ntfy.sh ==== | ||
| + | Example of a script to send a notification via the [[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=" | ||
| + | </ | ||
| + | |||
| + | **NOTE:** the '' | ||
| + | |||
| + | ==== See also ==== | ||
| + | |||
| + | [[https:// | ||
| + | |||