Package org.openhab.binding.astro.internal.calc

Examples of org.openhab.binding.astro.internal.calc.SunZodiacCalc


    // sun
    SunCalc sunCalc = new SunCalc();
    Sun sun = sunCalc.getSunInfo(now, context.getConfig().getLatitude(), context.getConfig().getLongitude());
    sunCalc.setSunPosition(now, context.getConfig().getLatitude(), context.getConfig().getLongitude(), sun);

    SunZodiacCalc zodiacCalc = new SunZodiacCalc();
    sun.setZodiac(zodiacCalc.getZodiac(now));

    SeasonCalc seasonCalc = new SeasonCalc();
    sun.setSeason(seasonCalc.getSeason(now, context.getConfig().getLatitude()));
    context.getJobScheduler().scheduleSeasonJob(sun.getSeason());
View Full Code Here

TOP

Related Classes of org.openhab.binding.astro.internal.calc.SunZodiacCalc

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.