> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.utils.timers.Timer

- Component: `appmixer.utils.timers.Timer`
- Kind: Trigger
- Version: 1.0.1
- Visibility: Public
- Connector: [appmixer.utils.timers 1.5.3](https://connectors.appmixer.com/connector/appmixer.utils.timers/1.5.3.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.utils.timers/1.5.3/component/appmixer.utils.timers.Timer>

This trigger fires at the frequency provided by the interval configuration property. First message is sent to output when flow is started, this message does not have 'lastTick' and 'elapsed' property set.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Interval (in minutes, min 5, max 35000) (`interval`) | number | 5 min is the minimum interval allowed. 35000 min is the maximum for interval |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Now (`now`) | - | - |
| Last tick time (`lastTick`) | - | - |
| Time elapsed (ms) (`elapsed`) | - | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.utils.timers.Timer",
  "author": "Martin Krčmář <martin@client.io>",
  "description": "This trigger fires at the frequency provided by the interval configuration property. First message is sent to output when flow is started, this message does not have 'lastTick' and 'elapsed' property set.",
  "version": "1.0.1",
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "properties": {
          "lastTick": {
            "type": "string",
            "format": "date-time"
          },
          "now": {
            "type": "string",
            "format": "date-time"
          },
          "elapsed": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "lastTick",
          "elapsed",
          "now"
        ]
      },
      "options": [
        {
          "label": "Now",
          "value": "now"
        },
        {
          "label": "Last tick time",
          "value": "lastTick"
        },
        {
          "label": "Time elapsed (ms)",
          "value": "elapsed"
        }
      ]
    }
  ],
  "properties": {
    "schema": {
      "properties": {
        "interval": {
          "type": "integer",
          "minimum": 5,
          "maximum": 35000
        }
      },
      "required": [
        "interval"
      ]
    },
    "inspector": {
      "inputs": {
        "interval": {
          "type": "number",
          "index": 1,
          "label": "Interval (in minutes, min 5, max 35000)",
          "tooltip": "5 min is the minimum interval allowed. 35000 min is the maximum for interval"
        }
      }
    }
  },
  "icon": "(data URI omitted)"
}
```
