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

@@ -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,
};