Almost finished a first version

pull/2153/head
David Peer 2022-09-29 21:05:19 +02:00
parent 3ae639f990
commit f54cdd2025
7 changed files with 322 additions and 144 deletions

View File

@ -3,4 +3,5 @@
0.03: Disable past events display from settings 0.03: Disable past events display from settings
0.04: Added awareness of allDay field 0.04: Added awareness of allDay field
0.05: Displaying calendar colour and name 0.05: Displaying calendar colour and name
0.06: Added clkinfo for clocks. 0.06: Added clkinfo for clocks.
0.07: Clkinfo improvements.

View File

@ -18,7 +18,7 @@
dateStr += entry.durationInSeconds < 86400 ? "/ " + locale.time(date,1) : ""; dateStr += entry.durationInSeconds < 86400 ? "/ " + locale.time(date,1) : "";
agendaItems.items.push({ agendaItems.items.push({
name: "agendaEntry-" + i, name: null,
get: () => ({ text: title + "\n" + dateStr, img: null}), get: () => ({ text: title + "\n" + dateStr, img: null}),
show: function() { agendaItems.items[i].emit("redraw"); }, show: function() { agendaItems.items[i].emit("redraw"); },
hide: function () {} hide: function () {}

View File

@ -1,7 +1,7 @@
{ {
"id": "agenda", "id": "agenda",
"name": "Agenda", "name": "Agenda",
"version": "0.06", "version": "0.07",
"description": "Simple agenda", "description": "Simple agenda",
"icon": "agenda.png", "icon": "agenda.png",
"screenshots": [{"url":"screenshot_agenda_overview.png"}, {"url":"screenshot_agenda_event1.png"}, {"url":"screenshot_agenda_event2.png"}], "screenshots": [{"url":"screenshot_agenda_overview.png"}, {"url":"screenshot_agenda_event1.png"}, {"url":"screenshot_agenda_event2.png"}],

View File

@ -1,4 +1,5 @@
0.01: Release 0.01: Release
0.02: Includeas the ha.lib.js library that can be used by other apps or clocks. 0.02: Includeas the ha.lib.js library that can be used by other apps or clocks.
0.03: Added clkinfo for clocks. 0.03: Added clkinfo for clocks.
0.04: Feedback if clkinfo run is called. 0.04: Feedback if clkinfo run is called.
0.05: Clkinfo improvements.

View File

@ -10,7 +10,7 @@
triggers.forEach((trigger, i) => { triggers.forEach((trigger, i) => {
haItems.items.push({ haItems.items.push({
name: "haTrigger-" + i, name: null,
get: () => ({ text: trigger.display, img: trigger.getIcon()}), get: () => ({ text: trigger.display, img: trigger.getIcon()}),
show: function() { haItems.items[i].emit("redraw"); }, show: function() { haItems.items[i].emit("redraw"); },
hide: function () {}, hide: function () {},

View File

@ -1,7 +1,7 @@
{ {
"id": "ha", "id": "ha",
"name": "HomeAssistant", "name": "HomeAssistant",
"version": "0.04", "version": "0.05",
"description": "Integrates your BangleJS into HomeAssistant.", "description": "Integrates your BangleJS into HomeAssistant.",
"icon": "ha.png", "icon": "ha.png",
"type": "app", "type": "app",

File diff suppressed because one or more lines are too long