• Wow, that's very cool. So do you have to turn the ATX power supply on before turning on WiFi, or does it provide enough standby power that you can connect to the internet even without turning the main part of it on?

  • New code updated
    https://github.com/wga22/esp8266/blob/master/espurino/landscape.js

    Code for sleeping until the sunset, based upon the wunderground API:

          if(nHoursTilSunset > 0)
            {
    			//add 15 minutes from sunset
    			var nMinutesTilSS = weather.moon_phase.sunset.minute - weather.moon_phase.current_time.minute + 15;
    			var nSleepTime = (nHoursTilSunset*nMilisPerHour) + (nMinutesTilSS*60000);
    			setMode("sleeping until sunset", "Turn on lights", nMilisForLights);
    			setTimeout(turnOnLights, nSleepTime);
            }
    
About

Avatar for Gordon @Gordon started