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.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README
silent_night.py

README

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.

Requirements:

* An Android-based device
* Android Scripting Environment (ASE) available at http://code.google.com/p/android-scripting
* Python interpreter for ASE

Installation:

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

Alternate installation:

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

Setup:

* Start ASE
* Long press on silent_night.py
* 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

Usage:
* Start ASE
* Long press on silent_night.py
* Press Start Service

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

Created by Christian Blades (christian.blades@docblades.com)
You can’t perform that action at this time.