mirror of
https://github.com/Koenkk/zigbee-OTA.git
synced 2026-06-24 13:18:14 +00:00
add firmware update for Insta/Jung wall transmitter 4-gang (#1)
This commit is contained in:
BIN
images/Insta/ZLL_WS_4f_J_Release_10.03.32.02.zigbee
Normal file
BIN
images/Insta/ZLL_WS_4f_J_Release_10.03.32.02.zigbee
Normal file
Binary file not shown.
@@ -38,5 +38,13 @@
|
|||||||
"imageType": 265,
|
"imageType": 265,
|
||||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Hue/Switch-ATmega_6.1.1.28573_0012.sbl-ota",
|
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Hue/Switch-ATmega_6.1.1.28573_0012.sbl-ota",
|
||||||
"path": "images/Hue/Switch-ATmega_6.1.1.28573_0012.sbl-ota"
|
"path": "images/Hue/Switch-ATmega_6.1.1.28573_0012.sbl-ota"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileVersion": 36832016,
|
||||||
|
"fileSize": 134487,
|
||||||
|
"manufacturerCode": 4474,
|
||||||
|
"imageType": 53250,
|
||||||
|
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Insta/ZLL_WS_4f_J_Release_10.03.32.02.zigbee",
|
||||||
|
"path": "images/Insta/ZLL_WS_4f_J_Release_10.03.32.02.zigbee"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -6,6 +6,7 @@ const baseURL = 'https://github.com/Koenkk/zigbee-OTA/raw/master';
|
|||||||
|
|
||||||
const manufacturerNameLookup = {
|
const manufacturerNameLookup = {
|
||||||
4107: 'Hue',
|
4107: 'Hue',
|
||||||
|
4474: 'Insta',
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!filename) {
|
if (!filename) {
|
||||||
@@ -27,14 +28,15 @@ if (!manufacturerNameLookup[parsed.header.manufacturerCode]) {
|
|||||||
const manufacturerName = manufacturerNameLookup[parsed.header.manufacturerCode];
|
const manufacturerName = manufacturerNameLookup[parsed.header.manufacturerCode];
|
||||||
const indexJSON = JSON.parse(fs.readFileSync('index.json'));
|
const indexJSON = JSON.parse(fs.readFileSync('index.json'));
|
||||||
const destination = path.join('images', manufacturerName, path.basename(file));
|
const destination = path.join('images', manufacturerName, path.basename(file));
|
||||||
|
const destinationPosix = destination.replace(/\\/g, '/');
|
||||||
|
|
||||||
const entry = {
|
const entry = {
|
||||||
fileVersion: parsed.header.fileVersion,
|
fileVersion: parsed.header.fileVersion,
|
||||||
fileSize: parsed.header.totalImageSize,
|
fileSize: parsed.header.totalImageSize,
|
||||||
manufacturerCode: parsed.header.manufacturerCode,
|
manufacturerCode: parsed.header.manufacturerCode,
|
||||||
imageType: parsed.header.imageType,
|
imageType: parsed.header.imageType,
|
||||||
url: `${baseURL}/${destination}`,
|
url: `${baseURL}/${destinationPosix}`,
|
||||||
path: destination,
|
path: destinationPosix,
|
||||||
};
|
};
|
||||||
|
|
||||||
const index = indexJSON.findIndex((i) => {
|
const index = indexJSON.findIndex((i) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user