Book Image

Raspberry Pi Blueprints

Book Image

Raspberry Pi Blueprints

Overview of this book

Table of Contents (17 chapters)
Raspberry Pi Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Configuration


Now that the web application has been deployed to the Pi and the display enclosure is constructed, it is time to configure what information is shown and how it is shown on the mirror.

Note that when changing the style sheet, simply reload the page in Chromium by pressing F5 on a connected keyboard to show the change. Changes to widget configurations will require you to restart the web application by using the following commands:

sudo supervisord stop mirror_webapp
sudo supervisord start mirror_webapp

Widgets

The widgets are configured using several configuration files in the /home/pi/widget_configs/ directory. Each widget that is displayed on the mirror requires its own configuration file.

The configuration files are divided into several sections: core, ui, position, and widget, each containing several values related to the widget. These options are described as follows:

  • core

    • class: The name of the widget class

    • update_time: The interval at which the UI is refreshed (in seconds; it...