What You Need
Cellular Smart Outlet with API
A smart outlet that accepts RESTful API commands for remote control.
Globalping API
A network monitoring API that detects downtime and performance issues.
Zapier
An automation platform that connects different services via APIs.
Modems, Routers, or Other Devices
The hardware that requires automated reboots.
1Install and Configure the Cellular Smart Outlet
- Set Up the Outlet: Plug the smart outlet into a power source and connect it to the device you want to reboot.
- Activate and Configure: Visit the Logmor Device Management Portal to activate the outlet, then open Cloud API and click Generate Token. The API guide has copy-paste examples.
2Access Globalping API
- Sign Up and Obtain Credentials: Register on Globalping.io to access its API.
-
Identify Relevant Metrics: Use API endpoints to monitor key network conditions such as:
- Downtime: No response from a device.
- High Latency: Ping response time above 100ms.
3Configure Zapier for Workflow Automation
- Create a Zapier Account: Sign up on Zapier and explore its automation interface.
-
Set Up Triggers and Actions:
- Trigger: Monitor Globalping metrics (e.g., latency >100ms).
- Action: Send the power-cycle command to the smart outlet, which turns it off for 30 seconds and back on.
4Build the Workflow
- Trigger: Network Condition Monitoring
Schedule regular API calls to Globalping via Zapier to check network status. -
Condition: Threshold for Reboot
- Downtime: No response for X seconds.
- High Latency: Above 100ms.
-
Action: Device Reboot via Smart Outlet
One API call: sendarg=PowerCycleto the outlet'scontrolfunction. It turns off for 30 seconds, then back on by itself.
(Outlets with firmware v7 or later. On older firmware, sendarg=0, wait 10 seconds, thenarg=1.)
5Test and Monitor
- Simulate Network Conditions: Use mock data from Globalping to verify Zapier triggers and smart outlet actions.
- Deploy and Monitor: Activate live API monitoring and observe automatic device reboots during network issues.
Benefits of Automated Device Reboots
- Seamless Internet Connectivity: Reduce downtime by automatically restarting modems and routers.
- Hands-Free Network Maintenance: No need for manual intervention during network failures.
- Improved Network Performance: Eliminate high-latency issues with proactive reboots.
Related Guides
Final Thoughts
By integrating a cellular smart outlet, Globalping API, and Zapier, you can automate network troubleshooting and ensure a stable internet connection. This simple yet effective setup minimizes disruptions and optimizes your network performance.