mirror of
https://github.com/Koenkk/zigbee-OTA.git
synced 2026-08-22 22:26:23 +00:00
Xiaomi/Aqara OTA-firmware (#28)
* fix for relative path (for windows). no throw error when no file. * Xiaomi/Aqara ota-firmware
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+109
-1
@@ -855,5 +855,113 @@
|
||||
"sha512": "deca704c355a895b9d4c4b292e581866d7d0198ce2ecb63922465312e2a0062d9ca7596555d8becb6d7cc23f2be72b0081ce74437f6c6f6bdc608b439c6b0362",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Sengled/1594189489604_RDS2017039_E12_N1E_V0.0.30_20200630_SVN396.ota",
|
||||
"path": "images/Sengled/1594189489604_RDS2017039_E12_N1E_V0.0.30_20200630_SVN396.ota"
|
||||
},
|
||||
{
|
||||
"fileVersion": 22,
|
||||
"fileSize": 240606,
|
||||
"manufacturerCode": 4447,
|
||||
"imageType": 9480,
|
||||
"sha512": "cac4c908c5bb8e5142d23affa8f1cc2b9575527aca8a57ac385e39855897fe31a4ca15e1e81eef1b3629a14c16910b0a2288458f40339a998e35b9afa3a044b6",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Xiaomi/OTA_lumi.airmonitor.acn01_V.0.22_test.20200630113132.ota",
|
||||
"path": "images/Xiaomi/OTA_lumi.airmonitor.acn01_V.0.22_test.20200630113132.ota"
|
||||
},
|
||||
{
|
||||
"fileVersion": 62,
|
||||
"fileSize": 190302,
|
||||
"manufacturerCode": 4447,
|
||||
"imageType": 257,
|
||||
"sha512": "ae207109dfd2afe1e85079d87cb39ace45c3d00392dba09d65ce38104570d805ade1591fd149ed810f98bd9d1c6636e772ff0cbcc1ec9444f67f48c51e912424",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Xiaomi/OTA_lumi.switch.b2nacn02_0.0.0_0062_20200827_3282B0.20200831122819.ota",
|
||||
"path": "images/Xiaomi/OTA_lumi.switch.b2nacn02_0.0.0_0062_20200827_3282B0.20200831122819.ota"
|
||||
},
|
||||
{
|
||||
"fileVersion": 24,
|
||||
"fileSize": 240014,
|
||||
"manufacturerCode": 4447,
|
||||
"imageType": 9224,
|
||||
"sha512": "fc2fc192a1e41f551bb5f8a5c5293035b2d5d75be43adfd922ec5948c56409afe837672245bf0785d4913b9e44c008e197e5c7d8a8e1ea00645457386b2cbb3e",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Xiaomi/LM19_BatteryCurtain_V1.0.24_20200803_Enc_F3D9.20200903160047.ota",
|
||||
"path": "images/Xiaomi/LM19_BatteryCurtain_V1.0.24_20200803_Enc_F3D9.20200903160047.ota"
|
||||
},
|
||||
{
|
||||
"fileVersion": 18,
|
||||
"fileSize": 207358,
|
||||
"manufacturerCode": 4447,
|
||||
"imageType": 8712,
|
||||
"sha512": "8d8615f9f2d4e24f99fb860de82618799767061bf57ceab0370ca51ae3cea00684f374e8826b62f04fcf9c8ef1ce7128d299ae3066b1f85658b6a5450e3aac48",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Xiaomi/OTA_lumi.flood.agl02_V1.0.18_20190814.20191008104903.ota",
|
||||
"path": "images/Xiaomi/OTA_lumi.flood.agl02_V1.0.18_20190814.20191008104903.ota"
|
||||
},
|
||||
{
|
||||
"fileVersion": 25,
|
||||
"fileSize": 285038,
|
||||
"manufacturerCode": 4447,
|
||||
"imageType": 1800,
|
||||
"sha512": "bdd19e7caac673df5546f97fe7b68d5c815bf4d2d5083cac5b2cd0407befdc488149dd20bbe33bd88e62802d5aa76c08f5ddbae92bf1c4a44638bc29d468c190",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Xiaomi/OTA_lumi.light.cwopcn01_V25_20200328_86DF8E.20200702155802.ota",
|
||||
"path": "images/Xiaomi/OTA_lumi.light.cwopcn01_V25_20200328_86DF8E.20200702155802.ota"
|
||||
},
|
||||
{
|
||||
"fileVersion": 25,
|
||||
"fileSize": 285038,
|
||||
"manufacturerCode": 4447,
|
||||
"imageType": 1928,
|
||||
"sha512": "bffc6ff8f2017693e3608f9e8bc6a5447eee176f44821a8bdf20ede738ada69252b88472d67a3d2c17a7eefe9f40ef44205b25cf318a9d2ea73395ed0b2ebe49",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Xiaomi/OTA_lumi.light.cwopcn02_V25_20200328_6C8C9C.20200702155957.ota",
|
||||
"path": "images/Xiaomi/OTA_lumi.light.cwopcn02_V25_20200328_6C8C9C.20200702155957.ota"
|
||||
},
|
||||
{
|
||||
"fileVersion": 25,
|
||||
"fileSize": 285038,
|
||||
"manufacturerCode": 4447,
|
||||
"imageType": 2056,
|
||||
"sha512": "1bbcc31a494f0c1ee2442cd4ace4843c16292ea626bab0a4038505eb7c6d1aefb864cfcda5d89d85bc8f8995bc3ababee6c7feb51ad0ba45fe4be08853eb6ee0",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Xiaomi/OTA_lumi.light.cwopcn03_V25_20200328_0022DA.20200702160124.ota",
|
||||
"path": "images/Xiaomi/OTA_lumi.light.cwopcn03_V25_20200328_0022DA.20200702160124.ota"
|
||||
},
|
||||
{
|
||||
"fileVersion": 32,
|
||||
"fileSize": 278094,
|
||||
"manufacturerCode": 4447,
|
||||
"imageType": 24,
|
||||
"sha512": "e91499339cf5f247cf5496ad704207ce7862e7cf04adecac217e365a7ad1e0037f5932be9315e574ed112ab04eeb264cf2fde1367414c5a57c66ca9449919057",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Xiaomi/OTA_lumi.plug.maeu01_V32_20200922_C11F8A.20200924102946.ota",
|
||||
"path": "images/Xiaomi/OTA_lumi.plug.maeu01_V32_20200922_C11F8A.20200924102946.ota"
|
||||
},
|
||||
{
|
||||
"fileVersion": 22,
|
||||
"fileSize": 276030,
|
||||
"manufacturerCode": 4447,
|
||||
"imageType": 16408,
|
||||
"sha512": "a7fec7851a60696fb4f482f8fbbcfd638631bc460dca328427351baaf3a0c65a85191d450dab96700dd46c2ca9228efcd9a30c909d598718fe60210ee551d4f8",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Xiaomi/OTA_lumi.plug.mmeu01_V22_20190906_D32362.20191008105750.ota",
|
||||
"path": "images/Xiaomi/OTA_lumi.plug.mmeu01_V22_20190906_D32362.20191008105750.ota"
|
||||
},
|
||||
{
|
||||
"fileVersion": 21,
|
||||
"fileSize": 209006,
|
||||
"manufacturerCode": 4447,
|
||||
"imageType": 8584,
|
||||
"sha512": "61ffabff02870c62fbd1ac20290248d3d506da1545a96ce044e32b0b8b370321947bd26048a1188a9bcabfdbb0411eec5acb73a07f6527c39e3fc43d2b2fea28",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Xiaomi/OTA_lumi.remote.b286acn03_V1.0.21_20191127.20200310172748.ota",
|
||||
"path": "images/Xiaomi/OTA_lumi.remote.b286acn03_V1.0.21_20191127.20200310172748.ota"
|
||||
},
|
||||
{
|
||||
"fileVersion": 18,
|
||||
"fileSize": 212206,
|
||||
"manufacturerCode": 4447,
|
||||
"imageType": 9096,
|
||||
"sha512": "b64d5670271617c06695049aee0a832f3667aa2a15ba84ee84c879dcc5089e046b570918ec5ad0e509b195bf3c7a315d1984939256b386c6766f471f8b7ef922",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Xiaomi/OTA_lumi.sen_ill.mgl01_V1.0.18_20190814.20191008105225.ota",
|
||||
"path": "images/Xiaomi/OTA_lumi.sen_ill.mgl01_V1.0.18_20190814.20191008105225.ota"
|
||||
},
|
||||
{
|
||||
"fileVersion": 27,
|
||||
"fileSize": 271982,
|
||||
"manufacturerCode": 4447,
|
||||
"imageType": 1288,
|
||||
"sha512": "dc09d2a451cf89927342a27b70e6e823b23f5ad118cf6a1b4c444dd4af1508ae2c52810ca96d309d4a1aea17dccb2402b356b3177831fa510e30d9d5d09091bc",
|
||||
"url": "https://github.com/Koenkk/zigbee-OTA/raw/master/images/Xiaomi/OTA_lumi_switch_l3acn3_0_0_0_0027_20200619_283DA8_20200702151504.ota",
|
||||
"path": "images/Xiaomi/OTA_lumi_switch_l3acn3_0_0_0_0027_20200619_283DA8_20200702151504.ota"
|
||||
}
|
||||
]
|
||||
]
|
||||
+9
-1
@@ -19,6 +19,7 @@ const manufacturerNameLookup = {
|
||||
4151: 'Eurotronic',
|
||||
4678: 'Danfoss',
|
||||
4687: 'Gledopto',
|
||||
4447: 'Xiaomi',
|
||||
};
|
||||
|
||||
const main = async () => {
|
||||
@@ -98,7 +99,14 @@ const main = async () => {
|
||||
indexJSON[index] = entry;
|
||||
|
||||
if (entry.path && entry.path !== destination) {
|
||||
fs.unlinkSync(entry.path);
|
||||
try {
|
||||
fs.unlinkSync(path.resolve(entry.path));
|
||||
} catch (err) {
|
||||
if (err && err.code != 'ENOENT') {
|
||||
console.error("Error in call to fs.unlink", err);
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.log(`Added new entry (${JSON.stringify(entry)})`);
|
||||
|
||||
Reference in New Issue
Block a user