Create a dynamic datasource

You can use the NodeJS script to collect information from 3rd party datasources (e.g. external database or webservices) and return their values as a datasource table. This way you can integrate any datasource to WB system.

When you call the script you can pass over parameters as here:

http://editor.wallboard.info/localscripts/datasource?name=John&age=25

You can receive the parameters as here:

const get = (req, res) => {

const name= req.query.name;const age= req.query.age;}

When the results are retrieved you have to pass them back to WB server in the following format:

res.setHeader('Content-Type', 'application/text');res.send(name+" is " + age + " years old");