HomeTasker Plugins OverviewTasker Twilight plugin - Use the Sun as a context

Tasker Twilight plugin – Use the Sun as a context

From Dusk till Dawn

Until this plugin, my screen brightness has been regulated by a time-sensitive context. It was working great until the summer turned into winter and the daylight situation was no longer adequate to whatever time constraints I have introduced in Tasker. Twilight plugin for Tasker can do more than this. While being extremely battery friendly, the plugin allows you to create sunlight dependent profiles without using time context or a sensor.

Twilight plugin for Tasker

The plugin is essentially a sun calendar that stores the sunrise and sunset values for your location. These can be used as context in your profile. Apart from the classical understanding of sunsets and sunrises, the Twilight plugin recognises civil, nautical and astronomical periods.

You will find a very nice graphical interface to set your conditions. You shouldn’t have any issues figuring the interface out. If you wonder what the terms are here is a short explanation:

  • astronomical dawn/dusk – time of a night in which the Sun is at 18 degrees  below the horizon, historically the time when the stars started to shine brightly
  • nautical dawn/dusk –  time of a night in which the Sun is at 12 degrees below the horizon, historically the time when sailors used to be able to differentiate the horizon at sea
  • civil dawn/dusk  –  time of a night in which the Sun is at 6 degrees below the horizon, historically the time when contours were visible allowing public activities to commence
  • sunrise/sunset –  time at which sun completely crosses the horizon, or ‘forward’ edge of the sphere is tangent to the horizon line.


There are plenty of profiles that can rely on this plugin. The Twilight plugin could be used in gardening projects, light controllers, adaptive screen brightness profiles or car headlights reminders. As the plugin is free, there isn’t really a reason not to get it!


Nothing says "Thank you" better than keeping my coffee jar topped up!


Support me on Patreon and get an early access to tutorial files and videos.


Bitcoin (BTC)

Use this QR to keep me caffeinated with BTC: 1FwFqqh71mUTENcRe9q4s9AWFgoc8BA9ZU

New to Tasker?

Tasker Quick Start – Getting started with Tasker

From newb to not so newbie in 10 min

Best Tasker Projects

How to use Raspberry PI as WOL (wake on lan) server

While you could wake up your PC from a mobile directly, having a dedicated server capable of doing so is the best solution. The reason is simple. You can hook up as many devices as you wish with a single endpoint. This is why Raspberry Pi is perfect for this.

How to wake on LAN computers and put it to sleep with Power Menu,...

How to Wake on LAN properly via Android, Alexa, Google Assistant and Web

7 awesome Bluetooth keyboard shortcuts for Android

7 unique Android shortcuts that you can add to any Bluetooth keyboard.

Smart overnight charging with Tasker

Still keeping your phone plugged in overnight? Try smarter overnight charging with this profile

One thing that Join app can’t do and how to fix it with Tasker

It's not possible to share the clipboard automatically between join accounts registered to 2 different emails. But you can fix this with tasker.

Essential Guides

Tasker: Seconds into DD:HH:MM:SS (dynamic)

It's time to.... ok it's a pun, but I will show you how to master time and convert seconds to DD:HH:MM:SS dynamically

4 ways to organise Tasker projects

Keep your Tasker tidy!

A better way to store Tasker credentials

The more clever way of managing credentials

Annoyed with dozens of AutoApps populating your app drawer? Here is a fix!

Clear your app drawer from the clutter in seconds

Putting AutoTools pie chart to a good use – SSID logger

Who wants a piece of the pie (chart)?