A digital clock and weather app built with Python for the Raspberry Pi
Check out the documentation to get started.
These instructions are for anyone wanting to change the source code.
git clone git@github.com:aalcala07/home_dashboard.git
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
.env
file and copy your API key to OPEN_WEATHER_MAP_API_KEY
LOCATION_LAT
and LOCATION_LONG
(go to Google Maps and right click your city or any point on the map to get coordinates)SCREEN_WIDTH
and SCREEN_HEIGHT
to match your screen resolution or desired resolutionTo start the venv use:
source venv/bin/activate
To exit the venv use:
deactivate
Run the script inside of your project directory (make sure venv is activated):
python main.py
If you install any new packages using pip, save them to the requirements so they are added when setting up a new environment.
pip freeze > requirements.txt
Create a new custom component to display in the app:
components
directorytemplates.json
fileAll components must have a draw
function with screen
, rect
and props
arguments. Check out the existing components for examples.
You can add a component to an existing row's columns in the template.json
or create a new row.