-
Search and display SDk2 apps + updates
(SDk3 is OK, but SDk2 is deprecated) -
Show all app permissions; Possible incompatible apps with Pro 2023: ledring, speech, sound, nfc (pls tell me if this is not correct)
Just save and run this Homeyscript, the result is sent to Timeline:
// Search and display app updates for SDk2 (SDk3 is OK, but SDk2 is deprecated)
// Show all app permissions; Possible incompatible apps with Pro 2023: ledring, speech, sound, nfc
let updatesArr = await Homey.apps.getApps().then(f => Object.values(f).reduce((r,b)=>Object.assign(r,b.sdk == 2 ? {[b.name]:b.updateAvailable} : ''), {}));
let appUpdates = JSON.stringify(updatesArr, null, 1);
//console.log('SDk2 apps with Update available:\n' + appUpdates);
let permissionsArr = await Homey.apps.getApps().then(f => Object.values(f).reduce((r,b)=>Object.assign(r,
{[b.name]:b.permissions}), {}));
let appPermissions = JSON.stringify(permissionsArr, null, 1);
//console.log('\nPermissions:\nPossible incompatible apps with Pro 2023: ledring, speech, sound, nfc\n' + appPermissions);
Homey.flow.runFlowCardAction({
uri: 'homey:manager:notifications',
id: 'create_notification',
args: {
text: 'SDk2 apps with Update available:\n' + appUpdates +'\n\n' + 'Permissions:\nPossible incompatible apps with Pro 2023: ledring, speech, sound, nfc\n' + appPermissions + '\n\nScript sdk2-apps_show_updates_-_show_all_permissions'
}
});
It’s now combined with this nice one:
(run this code in playground)