Volttron Crate Historian Error: Invalid data not saved

Volttron Crate Historian Error: Invalid data not saved

希望你一切顺利。

CrateHistorian 不工作。我已经使用以下配置安装它:

{
    "connection": {
        "type": "crate",
        # Optional table prefix defaults to historian
        "schema": "monday_schema",
        "params": {
            "host": "localhost:4200"
        }
    }
}

localhost:4200 上观看 crate admin UI,我创建了两个 table,名称为 datatopics .

主题存储在主题 table 中,但数据 table 没有添加任何内容。

尝试了 运行 tail volttron.log 来查看可能是什么问题,并得到了 crate agent 的结果:

2021-02-08 15:02:32,748 (cratedbagent-3.3 8267) main DEBUG: 无效数据未保存 ('2021-02-08T09:47: 40.340678+00:00', 'my_campus/my_building/room2/Setpoint.3', 'scrape', 63.0, {'units': 'degreesFahrenheit', 'type': 'integer', 'tz': 'UTC'})

这是对我试图保存的所有数据点完成的。

配置可能有什么问题?

感谢期待。

您从哪里获得这些数据? historian 的格式基于 https://volttron.readthedocs.io/en/develop/agent-framework/historian-agents/historian-topic-syntax.html.

请注意上面粘贴的内容与以下内容之间的语法差异:

# Message Format:

# WITH METADATA
# Messages contains a two element list.  The first element contains a
# dictionary of all points under a specific parent.  While the second
# element contains a dictionary of meta data for each of the specified
# points.  For example devices/pnnl/building/OutsideAirTemperature and
# devices/pnnl/building/MixedAirTemperature ALL message would be created as:
[
    {"OutsideAirTemperature ": 52.5, "MixedAirTemperature ": 58.5},
    {
       "OutsideAirTemperature ": {'units': 'F', 'tz': 'UTC', 'type': 'float'},
       "MixedAirTemperature ": {'units': 'F', 'tz': 'UTC', 'type': 'float'}
    }
]

这是平台驱动程序(以前的主驱动程序)还是来自不同的代理发布到主题?