# \[Paid\] Automatic Day/Night Mode

**URL:** https://meta.discourse.org/t/paid-automatic-day-night-mode/86190
**Category:** Marketplace
**Created:** [4월 26, 2018, 3:06오전 UTC](https://meta.discourse.org/t/paid-automatic-day-night-mode/86190 "2018-04-26T03:06:02Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![BlackKnob](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blackknob/32/93549_2.png) [@BlackKnob](https://meta.discourse.org/u/BlackKnob)
#### Post date: [4월 26, 2018, 3:06오전 UTC](https://meta.discourse.org/t/paid-automatic-day-night-mode/86190/1 "2018-04-26T03:06:02Z")

</div>

**What would you like done?**  
I need someone to write a simple Day/Night Mode plugin, which would automatically switch between a Light Theme and Dark Theme at user’s specified times (according to user’s local time).  
It should have the following UX:

In Admin Plugin Options:

- **Automatic Day/Night Mode Plugin** On and Off  
if On:
- Select a **$Daytime\_Theme** from a list of installed themes
- Select a **$Nighttime\_Theme** from a list of installed themes
- Select menu **User Default: Automatic Day/Night Theme Switching is** On or Off
- Select menu **User Default: Nighttime starts at** (only PM hours)
- Select menu **User Default: Daytime starts at** (only AM hours)

In User Preferences:

- **Automatic Day/Night Theme Switching** On and Off  
if On:
- Select menu **$Nighttime starts at** (only PM hours)
- Select menu **$Daytime starts at** (only AM hours)

Script:

- Javascript switching between $Daytime\_Theme at $Daytime and $Nighttime\_Theme at $Nighttime (user’s local time).

**When do you need it done?**  
no rush

**What is your budget, in $ USD that you can offer for this task?**  
up to $200

**Additional Info**  
It expect that it should be quite simple for someone experienced with Discourse plugins and Javascript. I’d like to keep it Open Source, so it would be great if it could be hosted on GitHub.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [4월 26, 2018, 3:46오전 UTC](https://meta.discourse.org/t/paid-automatic-day-night-mode/86190/2 "2018-04-26T03:46:16Z")

</div>

> [@BlackKnob](#):
>
> should be quite simple

That would depend on how much is setting driven and how much is “automatic”.

First I’m assuming you don’t really mean AM (1 minute after midnight) and PM (1 minute after noon), but rather daylight and darkness.

Depending on ones latitude, seasonal differences, and whether or not daylight savings time are observed would complicate any precise automatic dawn/dusk change. Settings such as “enter night mode at \_\_\_”, “enter day mode at \_\_\_” on the other hand would be relatively easier, but require user action, which they could adjust during the course of the year as seasonal changes got out of sync and when daylight savings changed.

Because it is easy enough to switch themes now via the hamburger menu I’m guessing your goal is to eliminate the need to switch up to twice daily. How many settings are you thinking would be an acceptable number, the ones you posted?

I’m thinking six settings could work if six wouldn’t be settings bloat. i.e.

- mid-winter dawn time
- mid-winter dusk time
- mid-summer dawn time
- mid-summer dusk time
- daylight savings begin date
- daylight savings end date

---

<div class="post-metadata">

### Author: ![BlackKnob](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blackknob/32/93549_2.png) [@BlackKnob](https://meta.discourse.org/u/BlackKnob)
#### Post date: [4월 26, 2018, 4:57오전 UTC](https://meta.discourse.org/t/paid-automatic-day-night-mode/86190/3 "2018-04-26T04:57:49Z")

</div>

I need just the settings I mentioned. We live mostly according to our life style, not sunlight. If I finish my dinner at 8pm, this is when my evening starts.

If users really like it, we can add “Sunset to Sunrise” in the future. This would require much more coding and likely asking permission to access a user’s location. Too complex. Right now I’d like to start with just basic functionality. Also, it’s a non-profit, so I can’t spend more.

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [4월 26, 2018, 10:29오전 UTC](https://meta.discourse.org/t/paid-automatic-day-night-mode/86190/5 "2018-04-26T10:29:10Z")

</div>

There’s a theme that has the switcher icon already built. This may give you a starting point.

> [@Alien Night Theme - A free Dark Theme for Discourse](https://meta.discourse.org/t/alien-night-theme-a-free-dark-theme-for-discourse/54175):
>
> discourse2Summary Discourse Alien Night is a dark focused clean theme with the Dark/Light toggle component in mind to enhance your forum!eyeglassesPreview [Preview on theme-creator.discourse.org](https://theme-creator.discourse.org/theme/B-iggy/alien-night-theme)hammer_and_wrenchRepository Link [GitHub - B-iggy/alien-night-discourse-dark-theme: A night friendly dark Discourse theme - dark/light switcher inclusive](https://github.com/B-iggy/alien-night-discourse-dark-theme)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Note: with the release 4.0.0 I redesig…

---

<div class="post-metadata">

### Author: ![BlackKnob](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blackknob/32/93549_2.png) [@BlackKnob](https://meta.discourse.org/u/BlackKnob)
#### Post date: [4월 28, 2018, 5:40오전 UTC](https://meta.discourse.org/t/paid-automatic-day-night-mode/86190/6 "2018-04-28T05:40:46Z")

</div>

thanks, I’ve been using the Hamburger Theme Selector script, so my users can already switch themes from the menu. The missing step is automation with basic configuration options.

---

<div class="post-metadata">

### Author: ![BlackKnob](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blackknob/32/93549_2.png) [@BlackKnob](https://meta.discourse.org/u/BlackKnob)
#### Post date: [4월 30, 2018, 10:51오후 UTC](https://meta.discourse.org/t/paid-automatic-day-night-mode/86190/7 "2018-04-30T22:51:06Z")

</div>

Is this project too small to bother or is the compensation inadequate for the job?  
I’d appreciate some advice.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [4월 30, 2018, 10:56오후 UTC](https://meta.discourse.org/t/paid-automatic-day-night-mode/86190/8 "2018-04-30T22:56:07Z")

</div>

My guess is that your budget is off by a factor of 3-5.

And the 6-setting options is arguably more cumbersome than having someone select the theme they want from the hamburger menu.

And the elegant solution (inferring sunrise/sunset from, say, user-entered LON/LET) is probably twice that.

---

<div class="post-metadata">

### Author: ![BlackKnob](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blackknob/32/93549_2.png) [@BlackKnob](https://meta.discourse.org/u/BlackKnob)
#### Post date: [5월 1, 2018, 1:29오전 UTC](https://meta.discourse.org/t/paid-automatic-day-night-mode/86190/9 "2018-05-01T01:29:21Z")

</div>

> [@pfaffman](#):
>
> And the 6-setting options is arguably more cumbersome than having someone select the theme they want from the hamburger menu.

no, it’s only 2 settings on the user side.

> [@pfaffman](#):
>
> My guess is that your budget is off by a factor of 3-5.

I don’t want to offend anybody, but a $1000 for such a simple script? People code full websites for this kind of money. I guess, I have to find those people 😉

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [5월 1, 2018, 4:15오전 UTC](https://meta.discourse.org/t/paid-automatic-day-night-mode/86190/10 "2018-05-01T04:15:02Z")

</div>

Perhaps it’s much easier than I think, but you asked why you’d not gotten responses.

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [5월 1, 2018, 12:47오후 UTC](https://meta.discourse.org/t/paid-automatic-day-night-mode/86190/11 "2018-05-01T12:47:37Z")

</div>

I don’t think this is a $1,000 job but I do think it’s a bit overly complicated for what you’re after. If you can remove the user level definitions and go site-wide it makes it simpler.

I’d be open to working towards a quote with you offline. [joe@joebuhlig.com](mailto:joe@joebuhlig.com)

---

<div class="post-metadata">

### Author: ![BlackKnob](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blackknob/32/93549_2.png) [@BlackKnob](https://meta.discourse.org/u/BlackKnob)
#### Post date: [5월 2, 2018, 5:41오후 UTC](https://meta.discourse.org/t/paid-automatic-day-night-mode/86190/12 "2018-05-02T17:41:43Z")

</div>

thanks @joebuhlig. I’ve sent you an email.  
The user-side settings are even simpler than iOS Nightshift feature. I can’t imagine not having any. You’d have to at least allow to turn it off. And once you’ve added an on/off switch, a user-setting database record has to be implemented, so you may as well add the user-side time selectors.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [6월 1, 2018, 5:49오후 UTC](https://meta.discourse.org/t/paid-automatic-day-night-mode/86190/13 "2018-06-01T17:49:58Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
