A small app which will calculated the Sunrise and Sunset each day at 01: 30 AM based on your current location then if it detects the phone being used in car mode and the time is after sunset will turn the night mode on.