Skip to content

New Share your ideas with the AWTRIX community. Keep your creations together in your account.

Sign in

Which AWTRIX do you have? Choose it once and the Hub shows what runs on it.

ScriptAWTRIX NG

NightMode

On an AWTRIX display
NightMode shown on an AWTRIX display
NightMode · by bagrue256

On your display

NightMode displays a dimmed ...ZZZ screen

Which AWTRIX do you have? See below where it runs, or choose your device.
Topic
Miscellaneous
Includes
Script

Runs on

  • Runs on 32×8 (TC001 & DIY)
  • Runs on 52×16 (TC002)
  • Does not run on 32×8 with AWTRIX 3 (TC001 & DIY) Made for AWTRIX NG.

Choose your display in the next step.

Send to AWTRIX

Choose your AWTRIX

NightModeAWTRIX NG script

Install this script on your AWTRIX NG. Its icons and sounds are installed with it.

Your AWTRIX’s local address, for example 192.168.178.39 or awtrix.local.

The name shown in your AWTRIX script list. Use letters, digits, hyphens or underscores.

Connection & device login

Connect your phone or computer to the same network as your AWTRIX. Allow local network access if your browser asks.

Use the device’s IP address, without a page path such as /#/apps.

If your AWTRIX requires a login, the username and password fields will appear when you connect.

Sign in to the Hub to install scripts. Attached files are installed separately.

Script description

NightMode displays a dimmed ...ZZZ screen during a configurable nighttime period. By default, it activates at 23:00, sets the display brightness to 1%, disables automatic brightness, and keeps the nighttime screen visible until 06:01.

The ZZZ characters use a compact custom 3 × 5 pixel font. The text colour and spacing between the characters can be adjusted in the app settings.

Before NightMode starts, the app saves the current brightness and automatic-brightness setting. When night mode ends, these settings are restored automatically.

NightMode then returns to the app positioned immediately before it in the AWTRIX app rotation. The daytime app can either remain fixed on the display or allow normal app rotation, depending on the “Keep daytime app on screen” setting.

Main features:

  • Configurable start and end times
  • Adjustable nighttime brightness
  • Customisable text colour
  • Adjustable spacing between the Z characters
  • Automatic saving and restoration of brightness settings
  • Optional fixed daytime display
  • Automatic return to NightMode if another app is selected during the night
  • Automatic positioning and centring of the ...ZZZ graphic

More scripts in Miscellaneous

Something wrong with this script? Report it.