kedder / openvario-shell

Main Menu Shell for Openvario
GNU General Public License v3.0
12 stars 8 forks source link
openvario soaring tui urwid

Main Menu Shell for Openvario

Build Status Coverage Status Checked with mypy Code style: black Maintainability

This is a replacement for stock main menu shipped with official Openvario images. It is implemented in Python and offers more extensibility and richer user interface than stock shell script-based one.

The goal of this project is to provide a user interface for managing Openvario device that is:

Features

Feature Demo

Installation

The easiest way to install is using opkg package manager on internet-connected Openvario device.

wget https://raw.githubusercontent.com/kedder/openvario-shell/master/scripts/openvario-shell-install.sh -O - | sh

After executing this command, ovshell command should be available. It will start automatically next time Openvario boots up.

In case you didn't like it and would like to return to stock Openvario menu, run this command:

wget https://raw.githubusercontent.com/kedder/openvario-shell/master/scripts/openvario-shell-uninstall.sh -O - | sh

Development

It is not required to own or have access to Openvario device in order to develop ovshell. The only requirements are Python 3.7 or higher and terminal emulator, readily available on MacOS or Linux operating systems. There are lots of free options for Windows as well.

Setting up the development environment

ovshell uses pipenv for managing dependencies and dev environment. If you don't have it yet, install with:

pip install pipenv  # or pip3 if you don't have "pip"

After checking out the sources, cd to openvario-shell directory and run:

pipenv shell
pipenv sync

After that, your development environment is ready, you should be able to run the app:

ovshell

It is possible to adjust few options by providing them in .env file, located in project directory. You can copy the sample file sample.env to .env and adjust values there.

Development tools

ovshell uses various tools to check the code quality. They are generally available through make program. Most useful are these: