Skip to content

This scriptable widget displays the ping (in milliseconds), the HTTP status code and the size of the response (in characters) for a specified URL. It also updates the time of the last check. The design is simple, with a dark background and high-contrast text colors. Ideal for a quick overview of server availability and response data.

License

Notifications You must be signed in to change notification settings

404GamerNotFound/Scriptable-IP-Ping-Widget-IOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scriptable Server Ping Widget

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.

Features

  • 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.

Installation

  1. Download Scriptable: Ensure that you have the Scriptable app installed on your iOS device.
  2. Add the Script: Open Scriptable and tap on the "+" icon to create a new script.
  3. Copy and Paste: Copy the script provided below and paste it into the new script in Scriptable.

Usage

  • 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.

Example http-statuscode.com

Script

const ip = args.widgetParameter || "google.de"; // ADD IP OR DOMAIN as Widget Parameter
const url = `http://${ip}`;

// ... [rest of the script] ...

main();

Customization

You can customize the script by changing the server IP address or modifying the widget's appearance according to your preference.

Contribution

Contributions, suggestions, and feedback are welcome. Please feel free to fork, comment, or open an issue on this repository.

License

This script is released under the MIT License. See LICENSE for more information.

About

This scriptable widget displays the ping (in milliseconds), the HTTP status code and the size of the response (in characters) for a specified URL. It also updates the time of the last check. The design is simple, with a dark background and high-contrast text colors. Ideal for a quick overview of server availability and response data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published