diff --git a/apps.json b/apps.json index 87161d6d1..cda049380 100644 --- a/apps.json +++ b/apps.json @@ -2133,14 +2133,14 @@ { "id": "widgattbat", "name": "BLE GATT Battery Service", "shortName":"BLE Battery Service", - "icon": "widget.png", + "icon": "bluetooth.png", "version":"0.01", "description": "Adds the GATT Battery Service to advertise the percentage of battery currently remaining over Bluetooth.\n", - "tags": "ble,bluetooth,gatt,widget", + "tags": "battery,ble,bluetooth,gatt,widget", "type": "widget", "readme": "README.md", "storage": [ - {"name":"gattbat.wid.js","url":"widget.js"} + {"name":"gattbat.boot.js","url":"boot.js"} ] } ] diff --git a/apps/widgattbat/widget.png b/apps/widgattbat/bluetooth.png similarity index 100% rename from apps/widgattbat/widget.png rename to apps/widgattbat/bluetooth.png diff --git a/apps/widgattbat/widget.js b/apps/widgattbat/boot.js similarity index 74% rename from apps/widgattbat/widget.js rename to apps/widgattbat/boot.js index ee5f5b072..d67b766b5 100644 --- a/apps/widgattbat/widget.js +++ b/apps/widgattbat/boot.js @@ -7,10 +7,4 @@ if (!Bangle.bleAdvert) Bangle.bleAdvert = {}; setInterval(advertiseBattery, 60 * 1000); advertiseBattery(); - - WIDGETS["gattbat"]={ - area:"tl", - width:0, - draw:function() {} - }; -})() +})();