Each of these events is caused by a time change.
Time Event Types.
- http://id.webbrick.co.uk/events/time/second
- http://id.webbrick.co.uk/events/time/minute
- http://id.webbrick.co.uk/events/time/hour
- http://id.webbrick.co.uk/events/time/day
- http://id.webbrick.co.uk/events/time/month
- http://id.webbrick.co.uk/events/time/year
- http://id.webbrick.co.uk/events/time/sunrise
- http://id.webbrick.co.uk/events/time/sunset
- http://id.webbrick.co.uk/events/time/lightingupstart
- http://id.webbrick.co.uk/events/time/lightingupend
- http://id.webbrick.co.uk/events/time/daystart
- http://id.webbrick.co.uk/events/time/dayend
- http://id.webbrick.co.uk/events/time/dayperiod
- http://id.webbrick.co.uk/events/time/runtime
Time Event Sources.
- time/second
- time/minute
- time/hour
- time/day
- time/month
- time/year
- time/sunrise
- time/sunset
- time/runtime
- time/lightingupstart
- time/lightingupend
- time/daystart
- time/dayend
- time/dayperiod
Other data attributes
The general other_data in these events is as follows, depending on the event some details may be irrelevcant or ommitted.- second, in the minute range 0 to 61 - at times one or more leap seconds may be inserted in public time signals, e.g. Rugby
- minute, in the hour range 0 to 59
- hour, this is the hour of the day in 24 hour format. range of values 0 to 23
- day, this is the day of the week range of values 0 to 6, Monday is 1 and sunday is 0.
- date, date within the month in the range 1 to 31
- month, month in year range 1 to 12
- year, year i.e. 2007
- timestr string representation of time
- datetimestr ISO8601 string of date and time
- datestr string of date.
http://id.webbrick.co.uk/events/time/minute
Event generated at the start of a minute. The time event generator may be configured to not send events on every minute for performance reasons.
The additional data constists of.
- minute
- hour
- day
- date
- month
- year
http://id.webbrick.co.uk/events/time/hour
Event generated at the start of each hour.
The additional data constists of.
- hour
- day
- date
- month
- year
http://id.webbrick.co.uk/events/time/day
Event generated at the start of each day, i.e. at midnight.
The additional data constists of.
- day
- date
- month
- year
http://id.webbrick.co.uk/events/time/month
Event generated at the start of each month, i.e. at midnight on the first.
The additional data constists of.
- month
- year
http://id.webbrick.co.uk/events/time/year
Event generated at the start of each year, i.e. at midnight on the first of january.
The additional data constists of.
- year
http://id.webbrick.co.uk/events/time/sunrise
Event generated at sunrise, time of day is dependant on the date.
Their is no additional data.
http://id.webbrick.co.uk/events/time/sunset
Event generated at sunset, time of day is dependant on the date.
Their is no additional data.
http://id.webbrick.co.uk/events/time/runtime
Event generated at 5 second intervals for a configured time after WebBrick Gateway start. The intended use is to handle sequencing of actions at restart.
The additional data constists of.
- runtime, measured in seconds.
http://id.webbrick.co.uk/events/time/lightingupstart
Event generated at beginning of lighting up time, time of day is dependant on the date.
Their is no additional data.
http://id.webbrick.co.uk/events/time/lightingupend
Event generated at end of lighting up time, time of day is dependant on the date.
Their is no additional data.
http://id.webbrick.co.uk/events/time/dayphase
Event generated to identify which of the 4 phases of the day is active. These are Night, Morning, Day, Evening. The uses of these phases are household dependant.
The additional data is:
- dayphase - numberic. 0,1,3,5,7
- dayphasetext - text string. Unknown,Night,Morning,Day,Evening
http://id.webbrick.co.uk/events/time/dayphaseext
Event generated to identify which of the 8 phases of the day is active. This is an extension of dayphase to identify dark and light phases. Note: In some parts of the world it is possible for the night to be light or the day to be dark.
The additional data is:
- dayphase - numberic. 0,1,2,3,3,5,6,7,8
- dayphasetext - text string. Unknown,Night:Dark,Night:Light,Morning:Dark,Morning:Light,Day:Dark,Day:Light,Evening:Dark,Evening:Light
http://id.webbrick.co.uk/events/time/daystart
Event generated at local start of day, locally defined may be day of week dependant.
Their is no additional data.
http://id.webbrick.co.uk/events/time/dayend
Event generated at local end of day, locally defined may be day of week dependant.
Their is no additional data.
