Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creation of device templates with virtual feeds does not work #51

Open
TrystanLea opened this issue Feb 12, 2020 · 1 comment
Open

Creation of device templates with virtual feeds does not work #51

TrystanLea opened this issue Feb 12, 2020 · 1 comment
Labels

Comments

@TrystanLea
Copy link
Member

See: https://community.openenergymonitor.org/t/what-is-the-feed-template-for-a-device-with-a-virtual-feed/13297

@TrystanLea TrystanLea added the bug label Feb 12, 2020
@MyForest
Copy link
Contributor

Thanks @TrystanLea - you've done a great job at capturing the essence of the problem with that template.

For posterity I've captured the current behaviour in the device initialization wizard so you've got a tangible thing to show progress against :)

image

I used your device file. I'll copy it here just in case the forum link goes stale if the forum software changes.

{
    "name": "VirtualFeedTest",
    "category": "VirtualFeedTest",
    "group": "VirtualFeedTest",
    "description": "VirtualFeedTest",
    "inputs": [
        {
            "name": "raw_input_1",
            "description": "raw_input_1",
            "processList": [
                {
                    "process": "log_to_feed",
                    "arguments": { "type": "ProcessArg::FEEDID", "value": "raw_feed_1" }
                }
            ]
        }
    ],

    "feeds": [
        {
            "name": "raw_feed_1",
            "type": "DataType::REALTIME",
            "engine": "Engine::PHPFINA",
            "interval": "10",
            "unit": "W"
        },
        {
            "name": "virtual_feed_1",
            "type": "DataType::REALTIME",
            "engine": "Engine::VIRTUALFEED",
            "processList": [
                {
                    "process": "source_feed_data_time",
                    "arguments": {
                        "type": "ProcessArg::FEEDID",
                        "value": "raw_feed_1"
                    }
                }
            ],
            "unit": "W"
        }
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants