This commit is contained in:
Koen Kanters
2020-03-15 20:55:02 +01:00
parent 993c12c810
commit fabfd02ce6
2 changed files with 3 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
"fileSize": 256632,
"manufacturerCode": 4107,
"imageType": 261,
"url": "TODO",
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Hue/WhiteLamp-Atmel-Target_0105_5.130.1.30000_0012.sbl-ota",
"path": "images/Hue/WhiteLamp-Atmel-Target_0105_5.130.1.30000_0012.sbl-ota"
}
]

View File

@@ -2,6 +2,7 @@ const path = require('path');
const fs = require('fs');
const ota = require('../lib/ota');
const filename = process.argv[2];
const baseURL = 'https://github.com/Koenkk/zigbee-OTA/raw/master';
const manufacturerNameLookup = {
4107: 'Hue',
@@ -32,7 +33,7 @@ const entry = {
fileSize: parsed.header.totalImageSize,
manufacturerCode: parsed.header.manufacturerCode,
imageType: parsed.header.imageType,
url: 'TODO',
url: `${baseURL}/${destination}`,
path: destination,
};