Day/Night Temperature Toggle

Hey all, @plaidman took inspiration from a post Xongle did a while back and expanded on it a bit. Install via archive installer, and read the readme for configuration options.

This package includes a script in Tasks to manually change between dark and light mode, with configurable temperature settings.
It also includes an optional automatic temperature adjustment script with configurable time and speed of adjustment.
config file is in SD1/MUOS/task/.daynight/daynight.ini. it’s pretty self-explanatory, but there are details in the readme.

Auto Day/Night mode:

For this to work you have to enable user init scripts. From main muOS menu go config → general settings → Advanced Settings → enable user init scripts

readme: cube-xx/day-night/README.md at main · plaidman/cube-xx · GitHub
pixie version: https://github.com/plaidman/cube-xx/raw/refs/heads/main/day-night/DayNightMode.muxzip
banana version: https://github.com/plaidman/cube-xx/raw/refs/heads/main/day-night/DayNightMode.zip

Goose version: https://github.com/imantorx/stuff/raw/refs/heads/main/DayNightMode.muxupd

future plans:
automatic day/night tracking if you have wifi enabled
also change brightness
maybe a UI to edit config values.

Day / Night Mode Manual Hotkeys":

I added a simple hotkey toggle to turn day/night mode off, if like me you need to use it for your kids nap time during the day and don’t want to exit your game.

R1+R2+Select = day
R1+R2+Start = night

https://github.com/imantorx/stuff/raw/e13801b357c7c85e3b1d469ea01373d0fa686c1e/DayNightHotkeysV2.muxzip

update for pixie patch 2:

Devices with analog sticks: https://github.com/imantorx/stuff/raw/refs/heads/main/DayNightHotkeys%20no%20analog%20sticks%20V2.2.muxzip

Devices with no analog sticks: https://github.com/imantorx/stuff/raw/refs/heads/main/DayNightHotkeys%20with%20analog%20sticks%20V2.2.muxzip

CANADA GOOSE 2508.1:

Devices with analog sticks:

https://github.com/imantorx/stuff/raw/refs/heads/main/Day%20Night%20Hotkey-with%20analog-2508.1%20CANADA%20GOOSE.muxupd

Devices with no analog sticks: https://github.com/imantorx/stuff/blob/main/Day%20Night%20Hotkey-no%20analog-2508.1%20CANADA%20GOOSE.muxupd

TSP: https://github.com/imantorx/stuff/raw/refs/heads/main/Day%20Night%20Hotkey-TSP-2508.1%20CANADA%20GOOSE.muxupd

SILLY GOOSE 2508.2

Devices with analog sticks: https://github.com/imantorx/stuff/raw/refs/heads/main/Day%20Night%20Hotkey-with%20analog-2508.2%20SILLY%20GOOSE.muxupd

Devices with no analog sticks: https://github.com/imantorx/stuff/raw/refs/heads/main/Day%20Night%20Hotkey-no%20analog-2508.2%20SILLY%20GOOSE.muxupd

TSP: https://github.com/imantorx/stuff/raw/refs/heads/main/Day%20Night%20Hotkey-TSP-2508.2%20SILLY%20GOOSE.muxupd

GOLDEN GOOSE 2508.3:

for golden goose on:

R1+R2+Start = swaps between day/night

https://github.com/imantorx/stuff/raw/refs/heads/main/Color%20Temp%20-%20Manual%20Shutdown%20Hotkey%20Golden%20Goose.muxupd


11 Likes

Woah good job Imantor!!!

2 Likes

Hey ! I noticed you’re using a generic icon in your script
May I provide you an icon for your app ? All you’d have to do is to replace # ICON: junk with a unique name, like daynight.

Thanks in advance

1 Like

I love the idea of this. Just commenting that hopefully we can get brightness change added also. It’d help a lot!

2 Likes

Hey Jay you can already do brightness with hotkeys. menu key + volume up and down will change it globally!

1 Like

Yeah i know, but would be cool to hit a hot key combo and it goes dim and warm for nightnode. Even cooler if it could also turn off LEDS

Love this app, it is really useful. Thank you!!!

I’m trying to use the hotkey toggle, but it isn’t using the values I set here: SD1/MUOS/task/.daynight/daynight.ini. I have also set automatic to no.

When I use the hotkey toggle it always uses the values that were initially set, the ones that came with the instalation. Maybe I’ve done something wrong…?
When I use the toggle in the Task Toolkit, it uses my values:

I’m using the pixie version and NightHotkeysV2.1.muxzip.
I’ve also installed this Issues with wifi and search in Pixie patch 2 (54c85a0f) - #7 by xonglebongle a few days ago to correct the issue with search.

If someone could help me, I would really appreciate that.
Thanks in advance!

The hotkeys use their own values, its unfortunately seperate from the automatic script. If you want to set those you’ll have to edit the values in the following file either on your device via ssh or in the muxzip before installing it:

/opt/muos/script/mux/hotkey.sh

and the specific one you’re looking for is:

#DAY NIGHT TOGGLE:
DAY) echo 0 > /sys/class/disp/disp/attr/color_temperature ;;
NIGHT) echo 250 > /sys/class/disp/disp/attr/color_temperature ;;

2 Likes

Alright! Thank you very much! :smiley:

Goose tag added as requested.

1 Like

Updated for SILLY GOOSE 2508.2

May I ask which line I should change in the script to change the temperature value?

I am trying to install this on my rg35sp on Loose Goose. But failing so far. I am confused which files I should download. Could someone help me?

Hi Mitchel it should be: Canada Goose: https://github.com/imantorx/stuff/raw/refs/heads/main/DayNightMode.muxupd if you’re having issues I can look into it later today.

Hey Max, did you figure out the value to change? If not is it for the hotkeys or for the auto script? Unfortunately they use value in different locations.

Talked to Max on discord and got it all sorted out.

Thanks, Imantor, this one worked!

It’s just the toggle though. I remember the older version had settings and an option to automatically switch based on the time of day. Is that feature coming back? (Also, the glyph icon isn’t loading.)
*nevermind see you mentoined it for future plans

That said, I’m very happy using it with the hotkeys for now. Thanks again!

That one should do it based on the time.

The readme on plaidmans site has info on how to change it if you desire