1.2.0 • Published 5 years ago

mozaik-ext-timev1digital v1.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Mozaïk time widgets

  • Added digital clock

Time — Clock

Show analog clock from local or another timezone.

clock

parameters

keyrequireddescription
titlenoTitle of the widget
timezoneno Name of the timezone, like America/Los_Angeles. See http://momentjs.com/timezone/ for possible values. Defaults to local time.
infonoFree textual value to show within clock. Special values are: timezone, date, time.
sunRisenoLocal time when sun rises (used for day/night indicator). Defaults to 6:00.
sunSetnoLocal time when sun sets (used for day/night indicator). Defaults to 18:00.

usage

{
  type: 'time.clock',
  info: 'date',
  columns: 1, rows: 1, x: 0, y: 0
},
{
  type: 'time.clock',
  timezone: 'America/Los_Angeles',
  info: 'timezone',
  sunRise: '6:30',
  sunSet: '17:43',
  columns: 1, rows: 1, x: 1, y: 0
},
{
  type: 'time.clock',
  info: 'Time is money!',
  columns: 1, rows: 1, x: 2, y: 0
}