Digital Nightstand for the Tingbot/Raspberry Pi.
Features includes:
- Weather Forecast
- Digital Clock
- Alarm Clock
- Web Frontend
- Translated into:
- English (en)
- Norwegian Bokmal (nb)
- Norwegian Nynorsk (nn)
Button | Action |
---|---|
midright |
Snooze current alarm |
midright (hold) |
Stop current alarm |
right (hold) |
Take screenshot |
Get weather forecast for a place on Earth.
Currently supports:
- Display current weather conditions on the Clock page - summary, temperature and icon
- Displaying the summary in different languages
- Display the temperature by different units - location dependent or user set
Shows the current time and date. The time is shown big, and the date medium size but still readable.
The time and date is formatted based on the locale of the computer.
Also shows the next scheduled alarm (if any).
Supports configurable alarms from a JSON file.
The alarms can have a customized title
, time
, repeat
, and days
.
Easily set-up from the Web Frontend.
The Web Frontend provides configuration and control of the Nightstand from a web browser.
Accepts connections default on port 8000
.
Supports:
- Setting up the alarms (total 5)
- Setting up the weather forecast (including latitude/longitude coordinates, desired language and units)
The configuration and data files are stored within a specific folder path unique for each platform.
config.json
- contains all user configured settings. This includes all settings configured with the Web Frontend (excluding the Dark Sky API Key)weather/private.json
- contains private user data that should not be shared. This includes the Dark Sky API Key set from the Web Frontend
When downloaded weather data using the weather forecast service, a Dark Sky API Key must be provided.
This can be set from the Web Frontend.
When the value of Dark Sky API Key field is changed the API Key is
automatically saved to weather/private.json
. If successful the field is cleared to prevent reading of the API key.
The Dark Sky API Key is never loaded to the configuration page.
This application has been inspired, and contains/uses other projects.
- Background image by skeeze from Pixabay
- Color palette was generated from the background image with the Pictaculous service
This project uses the following Python libraries:
appdirs
-appdirs
is created by ActiveState Software Inc and distributed under the MIT licensearrow
-arrow
is created by Chris Smith and licensed under the Apache License, Version 2.0pygame
-pygame
is developed by the Pygame Community and distributed under GNU LGPL version 2.1python-forecastio
-python-forecastio
is created by Ze'ev Gilovitz and licensed under the 'BSD 2-clause license'schedule
-schedule
is created by Daniel Bader and distributed under the MIT licensetingbot-python
-tingbot-python
is created by Tingbot and licensed under the 'BSD 2-clause license'
Uses Material alarm sounds from the platforms_frameworks_base
repository by
The Android Open Source Project.
Built with jQuery Mobile by jQuery Foundation, Inc. released under the MIT license.
Uses the nativeDroid2 template by Raphael Wildhaber, Godesign Webpublishing GmbH released under the MIT license.
Also uses the DateBox JavaScript library by J.T. Sage released under the MIT license.