Giter VIP home page Giter VIP logo

Comments (4)

sn0wcat avatar sn0wcat commented on July 23, 2024

@ToSa27

Hi

I am having a bit of trouble reproducing this.

Config:
image

Node-RED Node:

image

image

could you include

msg._forceGetConfig=true;

in your message to force the node to refresh the configuration?

I also looked into the code and it enumerates accross all data sources.

    model.dataSources.forEach(function(elem) {
        elem.dataPoints.forEach(function(elem2) {
            dataPointIdArray.push(elem2.id);
            valueArray.push(elem2.type.toString());
        });
    });

Btw, this seems to work too (just 2nd datasource...)

image

from node-red-contrib-mindconnect.

sn0wcat avatar sn0wcat commented on July 23, 2024

@ToSa27 One more question :) Are you by any chance using TIMESTAMP or BIG_STRING data points in your configuration?

from node-red-contrib-mindconnect.

ToSa27 avatar ToSa27 commented on July 23, 2024

@sn0wcat Adding msg._forceGetConfig=true; fixed it. The second data source was definitely created after the NodeRed flow was setup so this makes some sense but even after quite some time it still failed. Without forcing it, will the config ever be pulled again e.g. on a given frequency or is there a way to manually trigger a one-time refresh (other than removing and re-adding the node)?
I'm not using TIMESTAMP or BIG_STRING.

from node-red-contrib-mindconnect.

sn0wcat avatar sn0wcat commented on July 23, 2024

@ToSa27 the node pulls the data source once from the mindsphere and never again unless you force it. you should remove the msg._forceGetConfig now, to minimize the load on the system.

I am planning to change the node configuration a bit now that the agents actually can get list of assets from Mindsphere (we will provide a dialog where you can select the assets and the agent will automatically create data source config and mappings for them). For that I have to touch that code anyhow, I will see if I can do here a bit more ...

from node-red-contrib-mindconnect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.