Skip to content

aklimko/rpi-display

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpi-display

Build Status Python Version

rpi-display shows daily useful info such as current time, date, weather, exchange rates and Instagram followers.

Table of contents

Prerequisites

  • Raspberry Pi (0 W version recommended)
  • ZeroSeg kit

How to use

This project uses pipenv as dependency management
In case you don't have pipenv installed:

pip3 install pipenv

Run program:

pipenv run python main.py

Command line arguments

Argument Description Default
-p Config location path ./config
-f Config file name (without .yml) config

Running program with these arguments will cause loading config file ./config/my-special-config.yml:

pipenv run python main.py -p ./config -f my-special-config

Configuration

Modes

Clock

Option Description Type Default value
modes.clock.enable Enable clock mode bool true
modes.clock.refresh Clock mode refresh rate in seconds int 1

Date

Option Description Type Default value
modes.date.enable Enable mode bool true
modes.date.refresh Date mode refresh rate in seconds int 5

Weather

Option Description Type Default value
modes.weather.enable Enable weather mode bool false
modes.weather.refresh Weather mode refresh rate in seconds int 5
modes.weather.update Frequency of downloading new data in seconds int 300
modes.weather.provider Data provider

Available options:
OWM - OpenWeatherMap
DS - DarkSky
str
modes.weather.unit Temperature unit

Available options:
C - Celsius
F - Fahrenheit
str
modes.weather.location Weather station location str
modes.weather.api_key API key str

Exchange rate

Option Description Type Default value
modes.exchange_rate.enable Enable exchange rate mode bool false
modes.exchange_rate.refresh Exchange rate mode refresh rate in seconds int 5
modes.exchange_rate.update Frequency of downloading new data in seconds int 300
modes.exchange_rate.types Types of exchange rates list

Instagram

Option Description Type Default value
modes.instagram.enable Enable exchange rate mode bool false
modes.instagram.refresh Exchange rate mode refresh rate in seconds int 5
modes.instagram.update Frequency of downloading new data in seconds int 300
modes.instagram.api_key API key str

Brightness

Option Description Type Default value
brightness.mode Active brightness mode

Available options:
standard
time_dependent
str standard

Standard

Option Description Type Default value
brightness.standard.default Default brightness level int 0
brightness.standard.increase_on_click Amount of level increase after click int 1
brightness.standard.max Max brightness level int 15

Time dependent

Option Description Type Default value
brightness.time_dependent.times Declared list of times and brightness levels list

About

Program for ZeroSeg 7-segment display

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages