Hi All,
I've read some threads about adding library js, but didn't get work. I want to use library from this site:
http://praytimes.org/manual
and library is
praytimes
I've add to my function global
And try to using it as a function. But still not working.
[{"id":"de86cd8d.e98f7","type":"function","z":"8f3ffe88.a77cf","name":"","func":" var prayTimes = global.get('prayTimes')\n var times = prayTimes.getTimes(new Date(), [43, -80], -5);\nmsg.payload = times;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":630,"y":740,"wires":[["9f6c8586.20b888"]]},{"id":"ad6e6ab9.e346f8","type":"inject","z":"8f3ffe88.a77cf","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":390,"y":740,"wires":[["de86cd8d.e98f7"]]},{"id":"9f6c8586.20b888","type":"debug","z":"8f3ffe88.a77cf","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":840,"y":760,"wires":[]}]
Many thanks for your advise, Sir!