Smart DayNight switcher

by Andrii Hrushetskyi
5
4
3
2
1
Score: 30/100

Description

The Smart DayNight switcher plugin automatically adjusts your Obsidian theme based on local sunrise and sunset times, offering a seamless transition between light and dark modes throughout the day. By entering your location coordinates manually, the plugin calculates accurate time changes and adapts the theme accordingly without sending data externally. This setup removes the need to manually switch themes as daylight changes. It works entirely offline and ensures your workspace aligns naturally with your environment.

Reviews

No reviews yet.

Stats

2
stars
2,074
downloads
0
forks
604
days
596
days
608
days
3
total PRs
0
open PRs
0
closed PRs
3
merged PRs
2
total issues
2
open issues
0
closed issues
0
commits

Latest Version

2 years ago

Changelog

Implemented corrections from https://github.com/obsidianmd/obsidian-releases/pull/5684#issuecomment-2744079414 . Functionality left the same, but there were changes in code.

README file from

Github

🌓 Smart DayNight Switcher

Calculates daily sunrise and sunset times for your location and automatically switches your Obsidian theme: light mode when the sun rises ☀️ and dark mode when it sets 🌒.

No more manual theme switching!

Sunrise and sunset are calculated on your device. Two free services are used only to guess or name your location, and nothing else is sent anywhere (see the settings for details).

❔️ Can it switch a bit before or after sunrise/sunset?

Yes. Set a sunrise and/or sunset offset (up to 3 hours) in the settings, e.g. to turn on dark mode 10 minutes before sunset.

❔️ Can I turn it off for a while?

Yes. Turn on “Pause automatic switching” in the settings, and Obsidian’s own light/dark setting applies until you turn it off. The “Pause or resume automatic switching” command does the same, and the “Set hotkey” button next to the toggle lets you give it a hotkey.

Plugin settings tab in dark mode: status line, pause toggle, location, offsets and a seven-day sunrise and sunset schedule

🐛💡 Found a bug or have a feature idea?

Feel free to open an issue in this repository. I’ll check it out and do my best to help!

Credits

Sunrise and sunset are calculated with SunCalc by Vladimir Agafonkin, whose formulas are based on the Astronomy Answers articles on the position of the sun.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Apex Dashboard
5 months ago by PandoraReads
Stop switching between Obsidian notes. One page. Everything you need. Memo your thoughts, crush your todos, track your projects — and make it look incredible doing it.
基于第二大脑理念的Obsidian工作台,一站式管理笔记、待办、备忘录、项目和你的日常工作流
Auto Class
5 years ago by Nathonius
Automatically add CSS classes to notes based on file path.
Banners Reloaded
8 months ago by Dani García
Banners Reloaded offers a simple, fast, and lightweight way to add beautiful and customizable banners to your Obsidian notes. Designed for performance, it gives you powerful control over your vault's appearance through an intuitive interface. Set banners globally, by tag, or override them on any individual note.
Callout Manager
4 years ago by eth-p
An Obsidian.md plugin that makes creating and configuring callouts easy.
Code Styler
3 years ago by Mayuran Visakan
A plugin for Obsidian.md for styling codeblocks and inline code
Color Folders and Files
2 years ago by Mithadon
Obsidian plugin to customize the appearance of folders and files through a context menu with color picker and style options.
Day and Night
4 years ago by Kevin Patel
An Obsidian plugin to automatically switch between day and night themes based on a set schedule
Dynamic Background
4 years ago by Samuel Song
Adding dynamic background effects to the Obsidian editor
Fast Text Color
2 years ago by Leon Holtmeier
Obsidian plugin to enable colored text with a custom syntax.
Group Snippets
4 years ago by Mara-Li
Create folder of snippets to activate them in one click !
HelpMate
3 years ago by TfTHacker
HelpMate for Obsidian - providing help and documentation from within Obsidian
Hide Traffic Lights
8 months ago by Ben Phillips
ICOR for Life - Interface
3 months ago by Paperless Movement S.L.
The vault's chrome in one place: hide the ribbon and Obsidian's own controls, and give any folder a colour, an icon and a label. Writes no CSS; the INKLINE theme draws it. Part of the ICOR for Life suite.
Image Border Style
2 years ago by Anurag Shenoy
An Obisidian plugin to configure rounded borders for images (both in-editor and in reading-mode).
Mermaid Themes
3 years ago by jvsteiner
mermaid themes for obsidian
Minimal Theme Settings
6 years ago by @kepano
Settings plugin to control colors and fonts in Minimal Theme
Native Notes
a month ago by Pratiyush Tiwari
Apple-inspired styling and editing tools for Obsidian, with five coordinated themes and portable settings.
Rainbow-Colored Sidebar
2 years ago by Kevin Woblick
Automatically color your sidebar like a rainbow. No configuration needed. 18 themes included.
Style Settings
6 years ago by mgmeyers
A dynamic user interface for adjusting theme, plugin, and snippet CSS variables within Obsidian
Theme Controller
2 years ago by Binaris
Set when and how the themes will be displayed
Theme Design Utilities
5 years ago by pseudometa
Some utilities and Quality-of-Life features for designers of Obsidian themes.
Theme Picker
5 years ago by kenset
Theme Toggler
4 years ago by larsmagnus
Toggle the theme in Obsidian's panels
VARE
3 years ago by 4Source
This is a plugin for Obsidian (https://obsidian.md). Allows you to easily manage your plugins and themes inside Obsidian.