| Sysop: | KK4QBN |
|---|---|
| Location: | Chatsworth, GA |
| Users: | 22 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 05:33:27 |
| Calls: | 1,220 |
| Calls today: | 1 |
| Files: | 94,829 |
| U/L today: |
0 files (0K bytes) |
| D/L today: |
221 files (1,988M bytes) |
| Messages: | 30,384 |
| Posted today: | 0 |
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?