{
  "name": "chewie-plugin-date-time",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "devDependencies": {
    "chewie-system": "https://github.com/mbret/chewie-system",
    "cross-env": "^3.1.4"
  },
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "node .dev/index.js",
    "start:debug": "cross-env DEBUG=chewie* node .dev/index.js"
  },
  "author": "Maxime Bret",
  "license": "ISC",
  "chewie": {
    "modules": [
      {
        "id": "date",
        "name": "Date",
        "module": "src/triggers.js",
        "type": "trigger",
        "optionsConfig": [
          {
            "name": "date",
            "label": "Date",
            "value": null,
            "type": "datetime-local",
            "required": true
          }
        ]
      },
      {
        "id": "interval",
        "name": "Interval",
        "module": "src/triggers.js",
        "type": "trigger",
        "optionsConfig": [
          {
            "name": "interval",
            "label": "Interval",
            "value": 10,
            "type": "interval"
          }
        ]
      },
      {
        "id": "timeout",
        "name": "Wait for",
        "module": "src/triggers.js",
        "type": "trigger",
        "optionsConfig": [
          {
            "name": "timeout",
            "label": "Wait for",
            "value": null,
            "type": "interval",
            "required": true
          }
        ]
      },
      {
        "id": "hoursRange",
        "description": "Choose a time.",
        "name": "Time",
        "module": "src/triggers.js",
        "type": "trigger",
        "optionsConfig": [
          {
            "name": "from",
            "label": "Time",
            "value": null,
            "//": "RFC3339 (1970-01-01T02:47:00.000Z)",
            "type": "time",
            "required": true
          },
          {
            "name": "to",
            "description": "Allow you to trigger an action when entering a time range. Let's say you want to play some radio at 4pm and stop it at 5pm. There are some case where the system could not be able to trigger it at 4pm (restart, crash, etc). In this case you would still trigger the radio even at 4:30pm. This trigger allow you to handle these scenarios",
            "label": "Persist until",
            "value": null,
            "//": "RFC3339 (1970-01-01T02:47:00.000Z)",
            "type": "time",
            "required": false
          },
          {
            "//": "dos not work with days because there are several callback",
            "name": "repeat",
            "label": "Should the trigger be repeated?",
            "description": "By default the trigger will only occurs once. You can set it to be permanent with repeat mode. Take note that when using days option the repeat mode is always on.",
            "value": false,
            "type": "checkbox",
            "required": true
          },
          {
            "name": "days",
            "label": "Days",
            "type": "multipleSelect",
            "description": "If none selected, it will check only time range regardless the day",
            "required": false,
            "choices": [
              {
                "label": "Monday",
                "value": 1
              },
              {
                "label": "Tuesday",
                "value": 2
              },
              {
                "label": "Wednesday",
                "value": 3
              },
              {
                "label": "Thursday",
                "value": 4
              },
              {
                "label": "Friday",
                "value": 5
              },
              {
                "label": "Saturday",
                "value": 6
              },
              {
                "label": "Sunday",
                "value": 0
              }
            ]
          }
        ]
      }
    ]
  },
  "dependencies": {
    "lodash": "^4.17.4",
    "node-schedule": "^1.2.0"
  }
}
