Secondary port

This page documents the secondary port configuration

Configuration file fields

This section is autogenerated from the Rule Schema file.


Power schedule secondaryport.power_schedule

The daily power schedule is defined by a number of power-on from/to intervals. Define no power-on intervals to keep always off. Define one interval with from/to both set to 00:00 to keep always on. Time format is HH:MM (1 minute resolution)

Type

Default

Max items

array

[]

5

Item secondaryport.power_schedule.item

From secondaryport.power_schedule.item.from

Power-on FROM time in format HH:MM. Shall be before power-on TO time. E.g. at midnight 00:00

Type

Default

string

00:00

To secondaryport.power_schedule.item.to

Power-on TO time in format HH:MM. Shall be after power-on FROM time. E.g. at midday 12:00.

Type

Default

string

00:00


Configuration explained

This section contains additional information and examples.

Note

Power out scheduling has resolution of 1 min and 1 min tolerance

Note

Power scheduling uses adjusted local time (as set in the configuration)

Example: Secondary port power is scheduled to be on daily in the interval 00:00-04:00 and 12:00-16:00. Secodary port configuration:

"secondaryport": {
  "power_schedule": [
    {
      "from": "00:00",
      "to": "04:00"
    },
    {
      "from": "12:00",
      "to": "16:00"
    }
  ]
}

The power is turned off when the time changes from 03:59 to 04:00 and 15:59 to 16:00.