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

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


  @Override
  protected void executeJob(JobDataMap jobDataMap) {
    Sun sun = (Sun) context.getPlanet(PlanetName.SUN);

    SeasonCalc seasonCalc = new SeasonCalc();
    sun.setSeason(seasonCalc.getSeason(Calendar.getInstance(), context.getConfig().getLatitude()));

    planetPublisher.publish(PlanetName.SUN);
  }
View Full Code Here


    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());

    context.setPlanet(PlanetName.SUN, sun);
    planetPublisher.publish(PlanetName.SUN);
View Full Code Here

TOP

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

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.