This widget for the Scriptable app displays the ping time, HTTP status code, and response size for a specified server. It's designed for quick monitoring of server response and availability.
- Ping Measurement: Shows the time taken (in milliseconds) to receive a response from the server.
- HTTP Status Code: Displays the status code of the HTTP response.
- Response Size: Indicates the size of the server's response in characters.
- Last Updated Time: Provides the time when the widget was last updated.
- Download Scriptable: Ensure that you have the Scriptable app installed on your iOS device.
- Add the Script: Open Scriptable and tap on the "+" icon to create a new script.
- Copy and Paste: Copy the script provided below and paste it into the new script in Scriptable.
- Set the server IP or domain as a widget parameter. Default is set to "http-statuscode.com".
- To do this, long press the widget on your home screen and choose "Edit Widget".
- In the "Parameter" field, enter the desired IP address or domain name.
- The script will use this parameter to monitor the specified server.
- Run the script in Scriptable to see the widget preview.
- Add the widget to your home screen for continuous monitoring.
const ip = args.widgetParameter || "google.de"; // ADD IP OR DOMAIN as Widget Parameter
const url = `http://${ip}`;
// ... [rest of the script] ...
main();
You can customize the script by changing the server IP address or modifying the widget's appearance according to your preference.
Contributions, suggestions, and feedback are welcome. Please feel free to fork, comment, or open an issue on this repository.
This script is released under the MIT License. See LICENSE for more information.