【问题标题】:Volttron Crate Historian Error: Invalid data not savedVolttron Crate Historian 错误:无效数据未保存
【发布时间】:2021-05-11 22:29:19
【问题描述】:

希望你做得很好。

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

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

localhost:4200 上观看 crate 管理 UI,我创建了两个名称为 datatopics 的表。

主题存储在主题表中,但数据表不添加任何内容。

尝试运行 tail volttron.log 以查看可能是什么问题并得到了 crate 代理的以下结果:

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

这是针对我要保存的所有数据点完成的。

配置中可能存在什么问题?

感谢期待。

【问题讨论】:

    标签: python database crate volttron historian


    【解决方案1】:

    您从哪里获得这些数据? 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'}
        }
    ]
    

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

    【讨论】:

    • 是的,它是一个平台驱动程序,它使用 BACnet 代理从 BACnet IP 设备读取数据。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多