[READ-ONLY] Mirror of https://github.com/jmrplens/ShellFish-Widgets. Bash scripts to send information from the server to the widget.
0

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #2 from jmrplens/jmrplens-patch-1

Minor fix

authored by

José M. Requena Plens and committed by
GitHub
(Sep 7, 2024, 9:56 PM +0200) fc85cd26 7e924fb7

+13 -5
+12 -4
README.md
··· 21 21 ``` 22 22 3. Run it: 23 23 ``` 24 - /opt/shellfish_widgets/small_widget_A.sh --server-name Example 24 + /opt/shellfish_widgets/small_widget_A.sh --server_name Example 25 25 ``` 26 26 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: 27 - - **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`. 27 + - **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`. 28 28 - **Disk**: If you want to send the used space of a disk other than the main one `--disk /volumeX`. 29 29 - **CPU temperature**: If you want to use another sensor or manually specify the sensor because it is not recognized `--cpu_sensor Tctl`. 30 - - **Target**: To send the information to a specific widget, indicate the widget's reference `--target widget1`. 30 + - **Target**: To send/create the information to a specific widget, indicate the widget's reference `--target Small_A`. 31 31 32 32 4. (Optional) Add it to the crontab (in this example, it runs every 10 minutes) to have updated information periodically: 33 33 ``` ··· 39 39 40 40 #### Type A 41 41 42 - By running `./your_path/small_widget_A.sh --server-name Example`, the widget will look like this: 42 + By running `./your_path/small_widget_A.sh --server_name Example`, the widget will look like this: 43 43 44 44 <img src=".github/small_widget_A.png" width="150"> 45 + 46 + Using the parameter `--target XX` you can display the information of several servers in different widgets: 47 + 48 + - `./your_path/small_widget_A.sh --server_name Mastodon --target Mastodon_Small` 49 + - `./your_path/small_widget_A.sh --server_name NGINX --target NGINX_Small` 50 + - `./your_path/small_widget_A.sh --server_name HA --target Home_Assistant_Small` 51 + 52 + <img src=".github/small_widget_a_full.png" width="300">
+1 -1
small_widget_A.sh
··· 7 7 DEFAULT_DISK="" 8 8 DEFAULT_SERVER_NAME=$(hostname) 9 9 DEFAULT_CPU_TEMP_SENSOR="" # Blank to trigger auto-detection 10 - DEFAULT_TARGET="Small_Widget_A" 10 + DEFAULT_TARGET="Small_A" 11 11 12 12 # Parse flags for server_name, disk, and cpu_sensor 13 13 while [[ "$#" -gt 0 ]]; do
.github/small_widget_a_full.png

This is a binary file and will not be displayed.