Skip to content
Python script for Android's ASE which silences the phone between set hours
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Silent Night is a simple python script which silences and Android phone between set hours and unsilences the phone afterwards.

It's intended purpose is to suppress email chirps while the user is asleep.


* An Android-based device
* Android Scripting Environment (ASE) available at
* Python interpreter for ASE


* Using a file manager such as ASTRO, copy to /sdcard/ase/scripts

Alternate installation:

* Mount the phone's SD card on a PC.
* Copy to the ase/scripts directory


* Start ASE
* Long press on
* Press Edit
* Change MIN_HOUR to the hour you want the ringer silenced
* Change MAX_HOUR to the hour you want the ringer unsilenced
* * (Be sure to use 24 hour time, where 0 is 12 midnight)
* Press Menu
* Press Save

* Start ASE
* Long press on
* Press Start Service

The script will run in the background until stopped from the notification tray

Created by Christian Blades (
You can’t perform that action at this time.