Electric Roller Shade

I have an electric roller shade that is setup as a switch. I want it to open at sunrise, and shut at sunset. Or, shut if the temperature is below 40 degrees or above 90. At night time it shouldn’t ipen though. Doe anyone know what variety of smart apps should be used to obtain this? I have no outdoor temperature sensors.