···2121 ```
22223. Run it:
2323 ```
2424- /opt/shellfish_widgets/small_widget_A.sh --server-name Example
2424+ /opt/shellfish_widgets/small_widget_A.sh --server_name Example
2525 ```
2626 With this, you will have already sent the information to the widget you set on your iOS. If you want, you can configure some details:
2727- - **Server name**: This is the name that will appear on the widget, if it is not configured, the hostame of the server will be used `--server-name Example`.
2727+ - **Server name**: This is the name that will appear on the widget, if it is not configured, the hostame of the server will be used `--server_name Example`.
2828 - **Disk**: If you want to send the used space of a disk other than the main one `--disk /volumeX`.
2929 - **CPU temperature**: If you want to use another sensor or manually specify the sensor because it is not recognized `--cpu_sensor Tctl`.
3030- - **Target**: To send the information to a specific widget, indicate the widget's reference `--target widget1`.
3030+ - **Target**: To send/create the information to a specific widget, indicate the widget's reference `--target Small_A`.
313132324. (Optional) Add it to the crontab (in this example, it runs every 10 minutes) to have updated information periodically:
3333 ```
···39394040#### Type A
41414242-By running `./your_path/small_widget_A.sh --server-name Example`, the widget will look like this:
4242+By running `./your_path/small_widget_A.sh --server_name Example`, the widget will look like this:
43434444<img src=".github/small_widget_A.png" width="150">
4545+4646+Using the parameter `--target XX` you can display the information of several servers in different widgets:
4747+4848+- `./your_path/small_widget_A.sh --server_name Mastodon --target Mastodon_Small`
4949+- `./your_path/small_widget_A.sh --server_name NGINX --target NGINX_Small`
5050+- `./your_path/small_widget_A.sh --server_name HA --target Home_Assistant_Small`
5151+5252+<img src=".github/small_widget_a_full.png" width="300">
+1-1
small_widget_A.sh
···77DEFAULT_DISK=""
88DEFAULT_SERVER_NAME=$(hostname)
99DEFAULT_CPU_TEMP_SENSOR="" # Blank to trigger auto-detection
1010-DEFAULT_TARGET="Small_Widget_A"
1010+DEFAULT_TARGET="Small_A"
11111212# Parse flags for server_name, disk, and cpu_sensor
1313while [[ "$#" -gt 0 ]]; do