Accessing global variable or node module in Windy API
I'm developing a NodeJS app and visualizing a windy map through the API.
In my WindyInit function I want to have access to a parameter in my MongoDB Database.
To do that I wanted to require('mongoose') or require('mongodb') in the WindyInit function but it's not working. I know these are NodeJS modules but I'm using Browserify to get a working js script displaying the map.
The other solution I tried was to access a global variable written in my HTML (script JS just before the div of the windy map) in my windyInit function but once again I don't know how to do that...
Does someone have a solution ?
Thanks a lot,
@korina Hi Korina, thanks for answering.
What do you mean by special conditions ?
Do you mention the 3.1.2 about private development and private application ?
I'm only using it for myself on a private app if that's the question.
@b-rochut Windy API shall not be used on an app or website, that is weather oriented, since it does not create any added value.
If you are using it for your own private project, it does not violate our ToU.