pimatic-datetime

0.3.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i pimatic-datetime

Weekly Downloads

0

Version

0.3.1

License

MIT

Unpacked Size

10 kB

Total Files

7

Last publish

Collaborators

  • saxn-paule