How to use the nightlight function