_hour_: Input a number to indicate hour (0..23) (default: 12).
    Returns:
        sky: Honeybee sky. You can use this sky to create a point-in-time
            daylight recipe.

"""

ghenv.Component.Name = "HoneybeePlus_Custom Sky"
ghenv.Component.NickName = 'customSky'
ghenv.Component.Message = 'VER 0.0.05\nOCT_22_2018'
ghenv.Component.Category = "HoneybeePlus"
ghenv.Component.SubCategory = '02 :: Daylight :: Light Sources'
ghenv.Component.AdditionalHelpFromDocStrings = "1"

try:
    from honeybee.radiance.sky.climatebased import ClimateBased
    from ladybug.location import Location
except ImportError as e:
    raise ImportError('\nFailed to import honeybee:\n\t{}'.format(e))

if _location and _dir_rad is not None and _dif_rad is not None:
    if not hasattr(_location, 'isLocation'):
        _location = Location.fromLocation(_location)

    # set default values if they are not set
    north_ = 0 if north_ is None else north_
    _month_ = 6 if _month_ is None else _month_
    _day_ = 21 if _day_ is None else _day_
    _hour_ = 12 if _hour_ is None else _hour_
    sky = ClimateBased(_location, _month_, _day_, _hour_, _dir_rad, _dif_rad,
                       north_)
            Y-axis (default: 0 degrees).
        _wea: A Ladybug wea.
        _month_: Input a number to indicate month (1..12) (default: 6).
        _day_: Input a number to indicate day (1..31) (default: 21).
        _hour_: Input a number to indicate hour (0..23) (default: 12).
    Returns:
        sky: Honeybee sky. You can use this sky to create a point-in-time
            daylight recipe.

"""

ghenv.Component.Name = "HoneybeePlus_Climatebased Sky"
ghenv.Component.NickName = 'climateBased'
ghenv.Component.Message = 'VER 0.0.05\nOCT_22_2018'
ghenv.Component.Category = "HoneybeePlus"
ghenv.Component.SubCategory = '02 :: Daylight :: Light Sources'
ghenv.Component.AdditionalHelpFromDocStrings = "1"

try:
    from honeybee.radiance.sky.climatebased import ClimateBased
except ImportError as e:
    raise ImportError('\nFailed to import honeybee:\n\t{}'.format(e))

if _wea:
    # set default values if they are not set
    north_ = north_ or 0
    _month_ = _month_ or 6
    _day_ = _day_ or 21
    _hour_ = _hour_ or 12
    sky = ClimateBased.from_wea(_wea, _month_, _day_, _hour_, north_)