Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nikelborm/alarm
https://github.com/nikelborm/alarm
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/nikelborm/alarm
- Owner: nikelborm
- License: mit
- Created: 2023-09-22T10:14:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-21T02:21:29.000Z (about 1 year ago)
- Last Synced: 2023-10-21T22:29:58.180Z (about 1 year ago)
- Language: JavaScript
- Size: 598 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Alarm
This script fetches the sunrise and sunset times for a specific location and schedules reminders to wake up and go to bed based on those times. It also plays a sound when it's time to wake up. The script runs indefinitely until it receives a SIGINT signal.
## Env
To use this project, you will need to set the following environment variables in a `.env` file:- `OPEN_WEATHER_MAP_API_KEY`: Your API key for the OpenWeatherMap API.
- `LOCATION_CITY`: The name of the city for which you want to fetch the sunrise and sunset times.
- `PATH_TO_WAKE_UP_SOUND_FILE`: The path to the sound file that should be played when it's time to wake up.Make sure to replace the values with your own API key, city name, and file path.