mirror of
https://github.com/Koenkk/zigbee-OTA.git
synced 2026-10-07 03:17:39 +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:
Binary file not shown.
+15
-6
@@ -706,8 +706,8 @@
|
|||||||
"manufacturerCode": 4687,
|
"manufacturerCode": 4687,
|
||||||
"imageType": 0,
|
"imageType": 0,
|
||||||
"modelId": "GL-FL-005P",
|
"modelId": "GL-FL-005P",
|
||||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/GLEDOPTO/GL-FL-005P_V14_OTAV4_20210119_100%25.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"
|
"path": "images/Gledopto/GL-FL-005P_V14_OTAV4_20210119_100%.OTA"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fileVersion": 4,
|
"fileVersion": 4,
|
||||||
@@ -715,8 +715,8 @@
|
|||||||
"manufacturerCode": 4687,
|
"manufacturerCode": 4687,
|
||||||
"imageType": 0,
|
"imageType": 0,
|
||||||
"modelId": "GL-FL-006P",
|
"modelId": "GL-FL-006P",
|
||||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/GLEDOPTO/GL-FL-006P_V14_OTAV4_20210119_100%25.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"
|
"path": "images/Gledopto/GL-FL-006P_V14_OTAV4_20210119_100%.OTA"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fileVersion": 4,
|
"fileVersion": 4,
|
||||||
@@ -724,8 +724,8 @@
|
|||||||
"manufacturerCode": 4687,
|
"manufacturerCode": 4687,
|
||||||
"imageType": 0,
|
"imageType": 0,
|
||||||
"modelId": "GL-C-008P",
|
"modelId": "GL-C-008P",
|
||||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/GLEDOPTO/GL-C-008P_V14_OTAV4_20210114_100%25.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"
|
"path": "images/Gledopto/GL-C-008P_V14_OTAV4_20210114_100%.OTA"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fileVersion": 264,
|
"fileVersion": 264,
|
||||||
@@ -741,5 +741,14 @@
|
|||||||
"manufacturerCode": 4107,
|
"manufacturerCode": 4107,
|
||||||
"imageType": 282,
|
"imageType": 282,
|
||||||
"url": "https://firmware.meethue.com/storage/100b-11a/16778754/307362cd-5f4f-40a1-a205-7d871cfcde1a/100B-011A-01000602-SmartPlug-EFR32MG21.zigbee"
|
"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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
+8
-2
@@ -2,6 +2,7 @@ const path = require('path');
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const ota = require('../lib/ota');
|
const ota = require('../lib/ota');
|
||||||
const filenameOrURL = process.argv[2];
|
const filenameOrURL = process.argv[2];
|
||||||
|
const modelId = process.argv[3];
|
||||||
const baseURL = 'https://github.com/Koenkk/zigbee-OTA/raw/master';
|
const baseURL = 'https://github.com/Koenkk/zigbee-OTA/raw/master';
|
||||||
|
|
||||||
const manufacturerNameLookup = {
|
const manufacturerNameLookup = {
|
||||||
@@ -15,7 +16,8 @@ const manufacturerNameLookup = {
|
|||||||
4648: 'Terncy',
|
4648: 'Terncy',
|
||||||
4098: 'Tuya',
|
4098: 'Tuya',
|
||||||
4151: 'Eurotronic',
|
4151: 'Eurotronic',
|
||||||
4678: 'Danfoss'
|
4678: 'Danfoss',
|
||||||
|
4687: 'Gledopto',
|
||||||
};
|
};
|
||||||
|
|
||||||
const main = async () => {
|
const main = async () => {
|
||||||
@@ -70,6 +72,10 @@ const main = async () => {
|
|||||||
imageType: parsed.header.imageType,
|
imageType: parsed.header.imageType,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (modelId) {
|
||||||
|
entry.modelId = modelId;
|
||||||
|
}
|
||||||
|
|
||||||
if (isURL) {
|
if (isURL) {
|
||||||
entry.url = filenameOrURL;
|
entry.url = filenameOrURL;
|
||||||
} else {
|
} else {
|
||||||
@@ -79,7 +85,7 @@ const main = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const index = indexJSON.findIndex((i) => {
|
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) {
|
if (index !== -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user