From 4a8ac522012fe5ea3b26b657cf9f489fe78096dd Mon Sep 17 00:00:00 2001 From: Raphael Maenle Date: Mon, 18 May 2020 23:52:18 +0200 Subject: [PATCH] backend now uses calendar_id and this is the frontend upgrade - calendar_id is unique and therefore creates less problems - changing id of DOM from item.name to calendar_id --- README.md | 13 ++++++++++++- app.db | Bin 45056 -> 49152 bytes backend | 2 +- server/googleHandler.py | 7 ++++--- server/models.py | 6 +++--- server/routes.py | 12 +++++++----- server/template/calendar.html | 9 ++++----- 7 files changed, 31 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 8989126..5ab0ea2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,15 @@ ### summary: this repository includes the webpage frontend for the calendar watch server -it gets served via a python server \ No newline at end of file +it gets served via a python server + +### app description: + +Longitude is a 24h slow watch-face. +The Sun moves around the watch over the course of the day, while the planet completes a rotation every hour. Add your Calendar via a web-platform, so that every glance at your watch shows a summary of your day. + +Version 0.1 (beta): +- This version of the watchface includes the sun and the planet for time visualization + +Future (beta): +- The next version will add support for connecting the device to the web platform diff --git a/app.db b/app.db index b9794f2dcb97b6c11a3a870f183f0911221e5af6..c834ba8fe557b707439e5bd950ecccf13463b264 100644 GIT binary patch delta 666 zcmZp8z|_#dJVBZ_je&uI2Z|XdYM3*oZA@6GugxjKAjH0jk$*0~4PPQ3BkuxU2cBy@ zxm*u9mAM_c7jczy@p7(Z-^8(s!)Ie-8#`yCxB$C(BXg_K#Cv>Wqc|hqOie~^ zb4|lWQ{JW3U7nK-^F${l$@HQ5SCe-Su$C_T9M7%*~!?%2x^Y#6;UAdjE0ltYP9)W5;Jou6@p6=^HLN- z3$WuP|D5BD=kS?vQjXbys*l7^7kNA htRb0Isd-pjG5I{ucTk^hcC6iRv{_K#KL5lCiU2a(#FYR5 delta 394 zcmZo@U~YK8G(nozi-CcG8;HSRqJ}x6*T#f}`r1IQ5Qh%~|6G0>zC=Do-UYl4JlA+~ zd3d>7xE;B!bLDgKa<1hR;aJ7tv$0WuW3rFM364fF0e167=F-U zb~Q71HaDKU*76X08ZSs*6f8g0%3cU8Z|Q1g>FAch1Co*iOC7LwglKiKFmy6AnCxin z%+bik1yT?SR^VhA4^iM`Z0X|SH2I-b!sc9?8OE$^dl}gFZfq=PVd8Gw*l5MXGs%IG z+g#JI(Uf}qC!eVhocylF4yt=!1>fXXm2zAfdHD(
-
+
@@ -73,7 +73,6 @@ ($(".colorPickSelector").each(function() { // console.log($( this )[0].attributes.getNamedItem("style")); - var color = $( this )[0].attributes.getNamedItem("defaultcolor").nodeValue; var style = document.createAttribute("style"); style.value = 'background-color: ' + color + '; color: ' + color + ';'; @@ -84,7 +83,7 @@ })); function post(type, id, data) { - var url = "https://192.168.68.103.xip.io:1234/calendar"; + var url = "calendar"; var method = "POST"; switch (type) { case "color": @@ -125,4 +124,4 @@ init = true; -{% endblock %} \ No newline at end of file +{% endblock %}