Home Tasker Plugins Overview Tasker 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 in style with crypto-currency

New to Tasker?

Tasker Quick Start – Getting started with Tasker

From newb to not so newbie in 10 min

Best Tasker Projects

Tasker PC control – #Tutorial 3 (Apps menu)

Launch apps and websites from the mobile!

Tasker PC control – #Tutorial 2 (Volume Menu)

If you missed the part one, I strongly recommend you to check it out. It tells you all about the framework used,...

How to control your PC like a boss – Tasker Project

Control PC, and other devices from a custom notification system.

Bluetooth battery monitor – monitor any Bluetooth battery with Tasker

Measure the battery use of Bluetooth devices

The Minimal & Elegant giveaway WINNERS

Picking the winners live! Livestream and making a Tasker Winners project!

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)?