@snowball789 saidThis reddit thread says it's possible but requires a very large input of energy. It might be a good idea for cooling the water in a public drinking fountain, for example. The hot sun would normally warm up the water and a peltier effect cooling box would keep the water cool. For anything more than that, You would be better off getting a solar panel HVAC unit.
I have this alternative energy idea using a black box for heat from the sun. but i don't know much about electricity. how do you use the heat from the sun to make a peltier cooling effect using a black box to trap the heat? i thought putting a hole in the top or bottom. and putinng a solar powered fan somewhere in it. or a funnel inside or under it so the air speeds up. a junction of two different metals, inside the box.
https://www.reddit.com/r/SolarDIY/comments/1j8dd3w/simple_peltier_solar_cooling_explained_in_comments/