Search in sources :

Example 6 with AstroThingHandler

use of org.eclipse.smarthome.binding.astro.handler.AstroThingHandler in project smarthome by eclipse.

the class PositionalJob method run.

@Override
public void run() {
    AstroThingHandler astroHandler = AstroHandlerFactory.getHandler(getThingUID());
    if (checkNull(astroHandler, "AstroThingHandler is null")) {
        return;
    }
    astroHandler.publishPositionalInfo();
}
Also used : AstroThingHandler(org.eclipse.smarthome.binding.astro.handler.AstroThingHandler)

Aggregations

AstroThingHandler (org.eclipse.smarthome.binding.astro.handler.AstroThingHandler)6 Planet (org.eclipse.smarthome.binding.astro.internal.model.Planet)2 Channel (org.eclipse.smarthome.core.thing.Channel)2 MethodHandles (java.lang.invoke.MethodHandles)1 Arrays.asList (java.util.Arrays.asList)1 Calendar (java.util.Calendar)1 SECOND (java.util.Calendar.SECOND)1 Collections.singletonList (java.util.Collections.singletonList)1 List (java.util.List)1 Objects.isNull (java.util.Objects.isNull)1 Collectors.toList (java.util.stream.Collectors.toList)1 DateUtils.truncatedEquals (org.apache.commons.lang.time.DateUtils.truncatedEquals)1 AstroBindingConstants (org.eclipse.smarthome.binding.astro.AstroBindingConstants)1 MoonHandler (org.eclipse.smarthome.binding.astro.handler.MoonHandler)1 SunHandler (org.eclipse.smarthome.binding.astro.handler.SunHandler)1 AstroChannelConfig (org.eclipse.smarthome.binding.astro.internal.config.AstroChannelConfig)1 Range (org.eclipse.smarthome.binding.astro.internal.model.Range)1 Sun (org.eclipse.smarthome.binding.astro.internal.model.Sun)1 SunPhaseName (org.eclipse.smarthome.binding.astro.internal.model.SunPhaseName)1 DateTimeUtils (org.eclipse.smarthome.binding.astro.internal.util.DateTimeUtils)1