Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 648 Bytes

File metadata and controls

25 lines (20 loc) · 648 Bytes

Ship's Bell

A little Python 3 app that plays the well-known ship's bell sounds every half an hour.

Requirements

  1. Standard Python installation, version >= 3.3
  2. A command-like MP3 player like mpg321, eg.:
    sudo apt-get install mpg321
    
    If you use a different MP3 player, adapt MP3_PLAYER_CALL in ships_bell.py accordingly.

Basic usage

# Show help:
python3 ./ships_bell.py --help

# Bell sounds from 00:00 to 24:00:
python3 ./ships_bell.py

# No bell sounds before 9:00 and after 20:00:
python3 ./ships_bell.py  --from 9 --to 20

License

See file LICENSE.