The sample file is running the simulation with an overcast sky which is not taking location into consideration. That’s why the sky is generated with CertainIlluminanceLevel
.
sky = CertainIlluminanceLevel(illuminance_value=2000)
It depends on the type of the study but if you are looking for a point-in-time simulation then you should use climate-based sky instead:
To pass weather data you can use from_wea
classmethod: honeybee.radiance.sky package — Honeybee 0.0.04 documentation
from ladybug.wea import Wea
from honeybee.radiance.sky.climatebased import ClimateBased
epw_file = 'PATH TO EPW FILE'
wea = Wea.from_epw_file(epw_file)
sky = ClimateBased(wea, month=6, day=21, hour=12)
# the rest of the code is pretty much the same
# ...
NOTE: I’m using a newer version of honeybee with breaking changes and didn’t test this code but it should at least give you an idea where to start.