https://github.com/bemxio/virtual-school-bell
A basic Python script to play a sound at a designated time
https://github.com/bemxio/virtual-school-bell
bell keyboard python school sound
Last synced: 3 months ago
JSON representation
A basic Python script to play a sound at a designated time
- Host: GitHub
- URL: https://github.com/bemxio/virtual-school-bell
- Owner: bemxio
- License: mit
- Created: 2021-12-21T11:16:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-29T15:38:11.000Z (over 2 years ago)
- Last Synced: 2025-01-16T03:15:46.071Z (5 months ago)
- Topics: bell, keyboard, python, school, sound
- Language: Python
- Homepage:
- Size: 874 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# virtual-school-bell
a basic Python script to play a sound at a designated time.## getting started
### Windows
1. install Python 3.7+ (to check which version you have, run `python --version`)
2. install `ffmpeg` (use [this tutorial](https://www.wikihow.com/Install-FFmpeg-on-Windows) to install it)
3. (optional, only if you want to manually invoke the bell) install `keyboard` with `pip` (`python -m pip install keyboard`)### Linux
1. install Python 3.7+ (to check which version you have, run `python3 --version`)
2. install `ffmpeg` (`sudo apt-get install ffmpeg` or `pacman -S ffmpeg`, depends on your package manager)
3. (optional, only if you want to manually invoke the bell) install `keyboard` with `pip` (`python3 -m pip install keyboard`)## configuration
put in sections into `hours.ini` in the following format:
```ini
[hour]
SoundPath=
```
where:
- `[hour]` is the time in a 24-hour format (e.g. `[13:15]`)
- `SoundPath` is the path to the sound file to play (e.g. `SoundPath=sounds/default.wav`)## running
to run it, just do it with `python main.py` (or `python3 main.py`)if you want to run it in the background, you can use `nohup python3 main.py` (linux only)