No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CHANGELOG.md
LICENSE
README.md
datetime-config-schema.coffee
datetime.coffee
device-config-schema.coffee
package.json

README.md

Description

This plugin provides date and time information

Configuration

Sample Plugin Config:

{
  "plugin": "datetime"
}

Sample Device Config:

There are four optional configuration parameters

  • interval - the update interval of the device in ms. Default: 5000
  • locale - is used for formatting the local variables
  • dateformat - is used for formatting the "formatted" variable
  • timezone - is used for calculating date and time from different timezones
  • referenceDate - a fix reference date for date calculations. Format: YYYY-MM-dd HH:mm:ss
  • differenceFormat - the format for date calculation differences [days|hours|minutes|seconds]
    {
      "name": "datetime",
      "class": "DateTimeDevice",
      "xAttributeOptions": [],
      "id": "datetime",
      "locale": "en-US",
      "dateformat": "YYYY-MM-DD"
    }

Beware

This plugin is in an early alpha stadium and you use it on your own risk. I'm not responsible for any possible damages that occur on your health, hard- or software.

License

MIT