Skip to content

Console User Interface in SSH (legacy)

dexdan edited this page Apr 30, 2019 · 1 revision

In this section, a user interface through SSH will be explained. This is legacy provision - it is not necessary to use in the latest release.

The user inteface has been developed to facilitate the user experience and to prevent from remembering the command lines, replaced by menus and guidances. It is made of 2 menus: 1. The main menu in which main functions are located 2. Advanced Settings menu in which you have advanced functions for configurations and debugging purposes.

Access to the console: To access to the console, you need to log in SSH to your raspberry pi and type: ./omnipy/scripts/console-ui.sh

The following screen should then be displayed:

Console Main Menu

Note that if you want to have the console shown at SSH logon, please refer to the section 2.11 Enable/Disable menu at SSH login

1. Main Menu

1.1 Activate New POD

This part allows a new pod to be activated from Omnipy standpoint. There are a couple of steps to follow within this function in order to activate the pod properly like retrieving the Radio Address, filling the POD Lot number and Serial numbers.

1.2 Deactivate POD

This part handles the POD deactivation. Note that once the confirmation message answered, the pod will be deactivated straigh away.

1.3 Configure Raspberry Pi

This only call Raspi-config to access and configure quickly the raspberry pi

1.4 Update Omnipy

This section updates the omnipy on your raspberry with the latest master branch and it also automatically create a backup file before the update. This backup file can be restored with the dedicated menu in the Advanced Settings menu.

1.5 Safe Reboot

This reboots safely the raspberry pi.

1.6 Safe Shutdown

This shuts down safely the raspberry pi.

1.7 Escape to Shell

This escapes the menu and display the shell prompt for command lines inputs

1.8 Advanced Settings

This displays the Advanced Settings menu

2. Advanced Settings:

Advanced Settings Menu

2.1 Rig Status

This shows the rig status with a text editor called VIM. The status is opened as read-only so it can't be overwritten.

Note: To escape VIM, press :q + ENTER

2.2 View POD.log

This shows the POD log with a text editor called VIM. The status is opened as read-only so it can't be overwritten.

Note: To escape VIM, press :q + ENTER

2.3 View omnipy.log

This shows the last omnipy log with a text editor called VIM. The status is opened as read-only so it can't be overwritten.

Note: To escape VIM, press :q + ENTER

2.4 Stop Services

This stops all the omnipy related services on the raspberry pi.

2.5 Restart Services

This restarts all the omnipy related services on the raspberry pi.

2.6 Check RileyLink

This checks if the RileyLink is detected and works well.

2.7 Configure Bluetooth

This launches the Bluetooth configuration on the pi. This function goes through all the steps to set up the bluetooth pairing between the phone and the raspberry pi, including the Bluetooth Tethering part.

2.8 Reset REST-API password

This allows you to change your REST-API password that is need in the Pi and in AndroidAPS.

2.9 Backup current Omnipy config

This allows you to back up the current Omnipy configuration. There is a name by default in the prompt that can be changed if required.

2.10 Restore Omnipy backup

This lists all the backup found in the pi and it restores the configuration of the selected backup.

2.11 Enable/Disable menu at SSH login

If you want to have the menu displayed automatically when logging in SSH, you can activate this feature. This functionality can be activated and deactivated whenever wanted. Note: deactivation of this function will take effect only after a new SSH session.