Menu

#225 Push plugins do not apply command_transform

accepted
nobody
None
v2.5
v2.4
bug
2017-06-18
2017-06-18
user2684
No

"command_transform" is in parse() while push plugins invoke directly store()

Test case:

        {
          "module_id": "test",
          "group_id": "test",
          "sensor_id": "test",
          "enabled": true,
          "format": "temperature",
          "command_transform": "echo print %value% + -0.2 | python",
          "plugin": {
            "plugin_name": "command",
            "command_poll": "echo 21.5",
            "poll_on_demand": true
          },
          "summarize": {
            "avg": true,
            "min_max": true
          }
        }
pi@pi:/projects/myHouse $ sudo python sensors.py test test test save
[2017-06-18 11:43:38] [sensors.py:195 - store()] INFO: [test][test][test] (2017-06-18 11:43:38) saving test: 21.3°C

Discussion


Log in to post a comment.