Skip to main content

Taskbar app displaying the remaining play time of users monitored by LittleBrother

Project description

LittleBrotherTaskbar-Logo

Taskbar Tray Application for LittleBrother

Overview

LittleBrotherTaskbar is a simple application which can be installed into the tray of the window manager to display the remaining play time of the current user.

Contact

The taskbar does not have a homepage of its own. It is sharing LittleBrother's homepage. Visit the project at Facebook or write comments to little-brother(at)web.de.

Screenshots

The following screenshots show the display of LittleBrotherTaskbar.

Screenshot Status Screenshot Status

Change History

See here

GitHub Status

Continuous Integration Status Overview

Status Master Release
CircleCI
Test Coverage
Snyk Vulnerability Known Vulnerabilities not available
Codacy Code Quality not available

Note: The vulnerability status is derived from the Python PIP packages found in requirements.txt.

Features

LittleBrotherTaskbar has the following features:

  • Shows the status of a user monitored by LittleBrother
  • More to come

Prerequisites

LittleBrotherTask requires an active installation of LittleBrother. The taskbar client will contact the master process of LittleBrother. Also, some Linux packages have to be installed to enable the compilation of the Python PIP package wxPython. See the installation instructions below.

In case you want to use the MP3 speech generation for notification messages you have to install the PIP package python-google-speak.

Tested Distributions

Distribution Version Comments Most Recent Test
Debian testing 02.APR.2020

Quick Install

This guide will take you through the steps required to install, configure, and run the LittleBrotherTaskbar application on your system.

Install the Software

LittleBrotherTaskbar is available as a Python3 PIP package. Make sure you have the Debian packages

  • libgtk-3-dev
  • libpulse-dev

installed on your system. Also, the required library wxPython cannot be compiled successfully with version of the setuptools. Version 40.8.0 seems to work fine. Issue

pip install setuptools==40.8.0

to install exactly this version. Then type

pip3 install little-brother-taskbar

to install the latest version of the taskbar. If you want to install a specific version use

pip3 install little-brother-taskbar==[VERSION]

instead with [VERSION] replaced by the specific version.

Note: Compiling the wxPython library takes a LONG time. Depending on the speed of your system, compilation times of up to 15 minutes are not unusual. So, please, be patient!

Speech Generation and Output

In order to use the speech generation for notification messages, issue the command

pip3 install python-google-speak 

and use the --speech-engine command line option (see below). Also, install the Debian package mpg123:

apt-get install mpg123

Configure the Software

In its simplest setting the tool just needs to be started with the URL of the LittleBrother master API, e.g.

run_little_brother_taskbar --server-url=http://[HOSTNAME]:[PORT]

with [HOSTNAME] being the host where the LittleBrother master process is running and [PORT] being its port.

Extended Command Line Configuration

The tool recognizes the following extra options:

  • --username [NAME]: Set the username to [NAME]. If the option is not given the tool will try to derive the login name from the environment variable USER. If no user can be found, the tool will fail.

  • --locale [LOCALE]: Set the locale to [LOCALE], e.g. en_US. Note that this locale is only used until the taskbar receives the first status from the LittleBrother master since status contains the locale configured for the user.

  • --config [FILENAME]: Read the configuration file [FILENAME]. If this option is not given the tool will try to read the file ~/.config/LittleBrotherTaskbar.conf. See this file for an example.

  • --loglevel [LEVEL]: Set the log level to DEBUG, INFO, WARNING, or ERROR.

  • --speech-engine [ENGINE]: Activate and select the speech engine to speak messages for the monitored user. Possible values for [ENGINE] are: google (preferred; which requires PIP package python-google-speak) or external (which requires the Debian package festival and possibly some more configuration)

Installing LittleBrotherTaskbar as a StartUp Application

Once you have succeedef starting the tool on the command line (see above) it makes sense to install the tool as a startup application in your desktop environment. Most environments allow you to configure the applications which are automatically started upon logging into the desktop. Below you will find screenshots to guide you through the installation on a 19.3 Ubuntu system using the Mate Desktop.

  • From the main menu choose the entry Control Center. In the upcoming window click on Startup Applications.

    Startup Applications Step 1

  • Click on Add and enter your statement into the Command field. Chose a name and optionally set a comment.

    Startup Applications Step 2

  • Click on Add+ and and on Close.

  • Logout out of the desktop and login in again to test. If successful you should see the LittleTaskBar icon in the tray.

    Startup Applications Step 3

Troubleshooting

So, you went through all of the above but LittleBrotherTaskbar does not seem to work? Maybe this troubleshooting page can help you.

Caveats

The application LittleBrotherTaskbar is far from perfect. Issues are listed on GitHub (see here). Feel free to open new issues if you have any trouble with installing and/or running the application.

Internationalization

The application uses the PIP package Flask-Babel to provide internationalization for the web frontend, Currently, the following languages are supported/prepared (in the order they were made available):

Flag Language Locale Status Translation provided by
Flag USA English en Available Marcus Rickert
Flag Germany German de Available Marcus Rickert
Flag Italy Italian it Available Albano Battistella
Flag Netherlands Dutch nl Available Simone & Lex
Flag Finland Finnish fi Available Iisakki Kosonen
Flag Turkey Turkish tr Available Selay Dogan
Flag Russia Russian ru Available J. Moldawski
Flag Japan Japanese ja Available Arik M.
Flag Bangladesh Bangla bn Available Rownak Jyoti Zaman
Flag France French fr Available Albano Battistella
Flag Thailand Thai th Available Busaba Kramer
Flag Spain Spanish es In preparation N.N.
Flag Lithuania Lithuanian lt In preparation N.N.
Flag Croatia Croatian hr In preparation N.N.

Note that the spoken messages are provided by the LittleBrother master process. Check here for the availability of desired foreign language.

Sample Screenshots

Screenshot Status in Italian Screenshot Status in Finnish Screenshot Status in Turkish Screenshot Status in Russian Screenshot Status in Japanese Screenshot Status in Bangla Screenshot Status in French Screenshot Status in Thai

Sample Speech Audio Files

Your help with translations is greatly appreciated. Please, contact the author if you are interested in providing a translation. You do not necessarily have to clone this repository or be familiar with Python to do so.

Credits

  • Thanks to all the people maintaining the wonderful script language Python and the libraries on PyPi.

  • The country flags were taken from www.countryflags.com.

  • See the section about on internalization for credits regarding the translations.

  • The site www.mehr-schulferien.de maintains the vacation metadata for Germany.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

little-brother-taskbar-0.1.7.tar.gz (29.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page