file_copy(cache_file, '/sbbs/etrucker/' + 'owm.json');writeln('Copied '+cache_file + 'to /sbbs/etrucker.owm.json');
moding /sbbs/exec/load/openweathermap.js to copy the /sbbs/temp/{response}.json file but it isn't working ...
OpenWeatherMap.prototype.write_cache = function (endpoint, params, response) {
const hash = base64_encode(endpoint + JSON.stringify(params));
cache_file = new File(system.temp_dir + 'openweathermap_' + hash + '.json');
cache_file.open('w');
cache_file.write(JSON.stringify(response));
cache_file.close();
file_copy(cache_file, '/sbbs/etrucker/' + 'owm.json');writeln('Copied '+cache_file + 'to /sbbs/etrucker.owm.json');
}
the file_copy(cache_file, '/sbbs/etrucker/' + 'owm.json'); seems to error
any ideas?
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,055 |
Nodes: | 17 (1 / 16) |
Uptime: | 00:33:09 |
Calls: | 501,024 |
Calls today: | 11 |
Files: | 109,384 |
D/L today: |
2,194 files (186M bytes) |
Messages: | 304,876 |
Posted today: | 1 |