I had to do this in one of my node_helper modules… Hope it helps:
request({
url: url,
method: ‘GET’,
headers: {
‘User-Agent’: ‘MagicMirror/1.0 (’ + this.config.email + ‘)’
}
You won’t need the +this.config.email but it was required for the data I was seeking :)
@bhepler the script will work fine. it will setup to run in server mode.
there is only one install, and three ways to run
I had a free tier aws instance that only cost $10 a month!
and remember there are some modules that talk to pi hardware that can’t run in that env. just like they can’t run on Linux or windows.