image`.
A [Python script](misc/collect.py) is included to merge the JSON files:
-`./collect.py bin/ --url
+`./collect.py bin/ --download-url
'https://downloads.openwrt.org/releases/{version}/targets/{target}' >
overview.json`.
"target": "x86/64"
}
},
- "url": "https://downloads.openwrt.org/releases/{version}/targets/{target}",
+ "download_url": "https://downloads.openwrt.org/releases/{version}/targets/{target}",
"version_code": "r7976-ca47026b7d"
}
\ No newline at end of file
"target": "x86/64"
}
},
- "url": "https://downloads.openwrt.org/releases/{version}/targets/{target}",
+ "download_url": "https://downloads.openwrt.org/releases/{version}/targets/{target}",
"version_code": "r10911-c155900f66"
}
\ No newline at end of file
parser = argparse.ArgumentParser()
parser.add_argument("input_path", nargs='+',
help="Input folder that is traversed for OpenWrt JSON device files.")
-parser.add_argument('--url', action="store", default="",
+parser.add_argument('--download-url', action="store", default="",
help="Link to get the image from. May contain {target}, {version} and {commit}")
parser.add_argument('--formatted', action="store_true",
help="Output formatted JSON data.")
if not 'version_code' in output:
output = {
'version_code': code,
- 'url': args.url,
+ 'download_url': args.download_url,
'models' : {}
}
"target": "lantiq/xrx200"
}
},
- "url": "https://downloads.openwrt.org/snapshots/targets/{target}",
+ "download_url": "https://downloads.openwrt.org/snapshots/targets/{target}",
"version_code": "r13342-e35e40ad82"
}
\ No newline at end of file
setupAutocompleteList($('models'), Object.keys(obj['models']), false, updateImages, models => {
var model = models.value;
if (model in obj['models']) {
- var url = obj.url || 'unknown';
+ var url = obj.download_url || 'unknown';
var code = obj.version_code || 'unknown';
var mobj = obj['models'][model];
updateImages(version, code, build_date, model, url, mobj, false);