1

试图制作一个仅显示 20 分钟中断时间的门户。不能准时上班。尝试了 2 种不同的格式。始终从 1970 年 1 月 1 日开始。请告知。

[configuration]
 title = ECP_PROD_PEAKVIEW
    width-units = 6
    height-units = 8
    offset-right = 50
    update-interval = 15
     display-date = true
    startime = 2017-12-21 09:20:00
    endtime = 2017-12-21 09:45:00
    auto-scale = true
    auto-period = true
   entity = dnvrco-ecp01
    endtime = now 
        alert-style = fill: red; stroke: red


and 

[configuration]
 title = ECP_PROD_PEAKVIEW
    width-units = 6
    height-units = 8
    offset-right = 50
    update-interval = 15
     display-date = true
     startime = 2017-12-21T09:20:00Z
     endtime = 2017-12-21T09:45:00Z
     auto-scale = true
    auto-period = true
   entity = dnvrco-ecp01
    endtime = now 
    alert-style = fill: red; stroke: red
4

1 回答 1

0

看起来该startime设置缺少一个t.

  starttime = 2017-12-21 09:20:00 

您可以添加破折号以使参数更可重复:

  start-time = 2017-12-21 09:20:00
  end-time = 2017-12-21 09:45:00

示例:https ://apps.axibase.com/chartlab/47fbef76

我还将删除该部分中的重复endtime设置[configuration]

如果您需要显示最近的 20 分钟,只需指定并完全timespan删除。start-timeend-time

start-time和设置都end-time接受日历表达式

  start-time = previous_hour
  end-time = current_hour

或者,或者:

  timespan = 1 hour
  end-time = current_hour
于 2017-12-22T11:09:53.547 回答