I use an MQTT 'bus' to communicate with openHAB.
forecast-io.py
queries a weather service once an hour and publishes retained messages to MQTT at, say,
home/weather/today/sunsetTime 1391963342
home/weather/today/sunsetTime-iso 2014-02-09T17:29:02
home/weather/today/sunsetTime-hhmm 17:29
(note that some of these values are calculated by the program, and not retrieved from the service)