mirror of
https://github.com/Koenkk/zigbee-OTA.git
synced 2026-06-24 12:42:10 +00:00
Adds OTA image for GL-S-007P (#23)
* Adds OTA image for GL-S-007P * Full rename of GLEDOPTO to Gledopto
This commit is contained in:
BIN
images/Gledopto/GL-S-007P_V15_A1_OTAV5_20210201_90%.ota
Normal file
BIN
images/Gledopto/GL-S-007P_V15_A1_OTAV5_20210201_90%.ota
Normal file
Binary file not shown.
23
index.json
23
index.json
@@ -706,8 +706,8 @@
|
||||
"manufacturerCode": 4687,
|
||||
"imageType": 0,
|
||||
"modelId": "GL-FL-005P",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/GLEDOPTO/GL-FL-005P_V14_OTAV4_20210119_100%25.ota",
|
||||
"path": "images/GLEDOPTO/GL-FL-005P_V14_OTAV4_20210119_100%.OTA"
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Gledopto/GL-FL-005P_V14_OTAV4_20210119_100%25.ota",
|
||||
"path": "images/Gledopto/GL-FL-005P_V14_OTAV4_20210119_100%.OTA"
|
||||
},
|
||||
{
|
||||
"fileVersion": 4,
|
||||
@@ -715,8 +715,8 @@
|
||||
"manufacturerCode": 4687,
|
||||
"imageType": 0,
|
||||
"modelId": "GL-FL-006P",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/GLEDOPTO/GL-FL-006P_V14_OTAV4_20210119_100%25.ota",
|
||||
"path": "images/GLEDOPTO/GL-FL-006P_V14_OTAV4_20210119_100%.OTA"
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Gledopto/GL-FL-006P_V14_OTAV4_20210119_100%25.ota",
|
||||
"path": "images/Gledopto/GL-FL-006P_V14_OTAV4_20210119_100%.OTA"
|
||||
},
|
||||
{
|
||||
"fileVersion": 4,
|
||||
@@ -724,8 +724,8 @@
|
||||
"manufacturerCode": 4687,
|
||||
"imageType": 0,
|
||||
"modelId": "GL-C-008P",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/GLEDOPTO/GL-C-008P_V14_OTAV4_20210114_100%25.ota",
|
||||
"path": "images/GLEDOPTO/GL-C-008P_V14_OTAV4_20210114_100%.OTA"
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Gledopto/GL-C-008P_V14_OTAV4_20210114_100%25.ota",
|
||||
"path": "images/Gledopto/GL-C-008P_V14_OTAV4_20210114_100%.OTA"
|
||||
},
|
||||
{
|
||||
"fileVersion": 264,
|
||||
@@ -741,5 +741,14 @@
|
||||
"manufacturerCode": 4107,
|
||||
"imageType": 282,
|
||||
"url": "https://firmware.meethue.com/storage/100b-11a/16778754/307362cd-5f4f-40a1-a205-7d871cfcde1a/100B-011A-01000602-SmartPlug-EFR32MG21.zigbee"
|
||||
},
|
||||
{
|
||||
"fileVersion": 5,
|
||||
"fileSize": 291622,
|
||||
"manufacturerCode": 4687,
|
||||
"imageType": 0,
|
||||
"modelId": "GL-S-007P",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Gledopto/GL-S-007P_V15_A1_OTAV5_20210201_90%.ota",
|
||||
"path": "images/Gledopto/GL-S-007P_V15_A1_OTAV5_20210201_90%.ota"
|
||||
}
|
||||
]
|
||||
]
|
||||
@@ -2,6 +2,7 @@ const path = require('path');
|
||||
const fs = require('fs');
|
||||
const ota = require('../lib/ota');
|
||||
const filenameOrURL = process.argv[2];
|
||||
const modelId = process.argv[3];
|
||||
const baseURL = 'https://github.com/Koenkk/zigbee-OTA/raw/master';
|
||||
|
||||
const manufacturerNameLookup = {
|
||||
@@ -15,7 +16,8 @@ const manufacturerNameLookup = {
|
||||
4648: 'Terncy',
|
||||
4098: 'Tuya',
|
||||
4151: 'Eurotronic',
|
||||
4678: 'Danfoss'
|
||||
4678: 'Danfoss',
|
||||
4687: 'Gledopto',
|
||||
};
|
||||
|
||||
const main = async () => {
|
||||
@@ -70,6 +72,10 @@ const main = async () => {
|
||||
imageType: parsed.header.imageType,
|
||||
};
|
||||
|
||||
if (modelId) {
|
||||
entry.modelId = modelId;
|
||||
}
|
||||
|
||||
if (isURL) {
|
||||
entry.url = filenameOrURL;
|
||||
} else {
|
||||
@@ -79,7 +85,7 @@ const main = async () => {
|
||||
}
|
||||
|
||||
const index = indexJSON.findIndex((i) => {
|
||||
return i.manufacturerCode === entry.manufacturerCode && i.imageType === entry.imageType
|
||||
return i.manufacturerCode === entry.manufacturerCode && i.imageType === entry.imageType && (!i.modelId || i.modelId === entry.modelId)
|
||||
});
|
||||
|
||||
if (index !== -1) {
|
||||
|
||||
Reference in New Issue
Block a user