rpi-display shows daily useful info such as current time, date, weather, exchange rates and Instagram followers.
- Raspberry Pi (
0 W
version recommended) - ZeroSeg kit
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
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
Option | Description | Type | Default value |
---|---|---|---|
modes.clock.enable | Enable clock mode | bool | true |
modes.clock.refresh | Clock mode refresh rate in seconds | int | 1 |
Option | Description | Type | Default value |
---|---|---|---|
modes.date.enable | Enable mode | bool | true |
modes.date.refresh | Date mode refresh rate in seconds | int | 5 |
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 |
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 |
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 |
Option | Description | Type | Default value |
---|---|---|---|
brightness.mode | Active brightness mode Available options: standard time_dependent |
str | 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 |
Option | Description | Type | Default value |
---|---|---|---|
brightness.time_dependent.times | Declared list of times and brightness levels | list |