{"id":4801,"date":"2022-01-26T14:02:58","date_gmt":"2022-01-26T13:02:58","guid":{"rendered":"https:\/\/arduino.net.pl\/?p=4801"},"modified":"2022-01-29T21:02:41","modified_gmt":"2022-01-29T20:02:41","slug":"google-calendar-appsscript","status":"publish","type":"post","link":"https:\/\/arduino.net.pl\/index.php\/google-calendar-appsscript\/","title":{"rendered":"Google Calendar + AppsScript"},"content":{"rendered":"\n<p>\u0179r\u00f3d\u0142o -&gt; <a href=\"https:\/\/youtu.be\/sm1-l5-z3ag\">ESP8266 &#8211; Google Calendar Reminder: How To Make Your Wife\/Girlfriend happy (Arduino)<\/a> (many thanks to <a href=\"https:\/\/www.youtube.com\/channel\/UCu7_D0o48KbfhpEohoP7YSQ\">Andreas Spiess<\/a>)<br><br>oraz <a href=\"https:\/\/youtu.be\/ZFgh2KFLeGA\">Update Google Calendar Reminder including read and write<\/a><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"#189 Update Google Calendar Reminder including read and write\" width=\"774\" height=\"435\" src=\"https:\/\/www.youtube.com\/embed\/ZFgh2KFLeGA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"ustawienie-skryptow-kalendarza-i-programu\">Ustawienie skrypt\u00f3w, kalendarza i programu<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>Instalujemy Apps Script (Google)<ul><li>Z aplikacji <strong>Google<\/strong> wybieramy -&gt;Dysk -&gt; Nowy -&gt; Wi\u0119cej -&gt; + Pod\u0142\u0105cz wi\u0119cej aplikacji -&gt; (<em>lupa<\/em>) Google Apps Script -&gt; instaluj<\/li><\/ul><\/li><li>Otwieramy <strong>Google Apps Script <\/strong><ul><li>Wpisujemy nazw\u0119 skryptu: <strong>CreateCalendarEvent<\/strong><\/li><li>Z github: <a href=\"https:\/\/github.com\/SensorsIot\/Reminder-with-Google-Calender\/blob\/master\/CreateCalendarEvent.gs\">CreateCalendarEvent.gs<\/a> kopiujemy kod, nast\u0119pnie <strong>Zapisz projekt<\/strong>, Wdr\u00f3\u017c -&gt; Nowe wdro\u017cenie -&gt; <em>wybierz tryb<\/em> -&gt; aplikacja internetowa<br><em>Wykonaj jako<\/em> &#8211; <strong>Ja<\/strong>, <em>Kto ma dost\u0119p<\/em> -&gt; <strong>Ka\u017cdy<\/strong>, <strong>Wdr\u00f3\u017c<\/strong>, kopiuj <em>Identyfikator wdro\u017cenia<\/em>, <strong>Gotowe<\/strong><br>Przy pierwszym u\u017cyciu trzeba udzieli\u0107 dost\u0119pu aplikacji <\/li><li>To samo robimy ze skryptem: <a href=\"https:\/\/github.com\/SensorsIot\/Reminder-with-Google-Calender\/blob\/master\/ReadCalendarEvent.gs\"><strong>ReadCalendarEvent.gs<\/strong><\/a><\/li><li>Nale\u017cy pami\u0119ta\u0107 \u017ceby w skryptach <strong>zmieni\u0107 nazw\u0119 kalendarza na w\u0142asn\u0105<\/strong>, u mnie: [<em>var _calendarName = 'yarogniew_zadania&#8217;<\/em>]<\/li><\/ul><\/li><li>Otwieramy <strong>Kalendarz Google<\/strong><ul><li><strong>Inne kalendarze + <\/strong>-&gt; <strong>Utw\u00f3rz nowy kalendarz<\/strong><\/li><li>Wpisujemy nazw\u0119 (u mnie <em>yarogniew_zadania<\/em>)<\/li><li>klikamy <strong>Utw\u00f3rz kalendarz<\/strong><\/li><\/ul><\/li><li>Z github <strong>SensorsIOT<\/strong> \u015bci\u0105gamy pliki <a href=\"https:\/\/github.com\/SensorsIot\/Reminder-with-Google-Calender\/tree\/master\/ReminderV2\">ReminderV2<\/a> i otwieramy w Arduino IDE<ul><li>Pami\u0119tajmy, by wpisa\u0107 <strong>ssid<\/strong> i <strong>password<\/strong> naszej sieci WiFi oraz oba identyfikatory <em>GScriptIdRead<\/em> i <em>GScriptIdWrite<\/em> z <strong>Google Apps Script <\/strong>(p.2)<\/li><\/ul><\/li><\/ol>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"linki\">LINKI<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Update Google Calendar Reminder including read and write<ul><li><a href=\"https:\/\/youtu.be\/ZFgh2KFLeGA\">https:\/\/youtu.be\/ZFgh2KFLeGA<\/a><\/li><\/ul><\/li><li>Github<ul><li><a href=\"https:\/\/github.com\/SensorsIot\/Reminder-with-Google-Calender\">Reminder-with-Google-Calender<\/a><\/li><\/ul><\/li><li>Build a talking Alarm Clock synced to Google calendars. \/\/ Project<ul><li><a href=\"https:\/\/youtu.be\/IoX6t03ULnc\">https:\/\/youtu.be\/IoX6t03ULnc<\/a><\/li><\/ul><\/li><li>ESP8266-Google-Calendar-Arduino (github)<ul><li><a href=\"https:\/\/github.com\/wilda17\/ESP8266-Google-Calendar-Arduino\">wilda17\/ESP8266-Google-Calendar-Arduino: Interaction between an ESP8266 and the Google Calendar. (github.com)<\/a><\/li><\/ul><\/li><li>Dokumentacja CalendarApp<ul><li><a href=\"https:\/\/developers.google.com\/apps-script\/reference\/calendar\/calendar-app\">Class CalendarApp \u00a0|\u00a0 Apps Script \u00a0|\u00a0 Google Developers<\/a><\/li><\/ul><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"apps-script-dokumentacja-i-tutoriale\">Apps Script &#8211; dokumentacja i tutoriale<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Google Apps Script Tutorial For Beginners<ul><li><a href=\"https:\/\/youtu.be\/zkjQ-l6Zpis\">https:\/\/youtu.be\/zkjQ-l6Zpis<\/a><\/li><\/ul><\/li><li>Data i czas w JavaScript<ul><li><a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/understanding-date-and-time-in-javascript#:~:text=The%20Date%20object%20is%20a%20built-in%20object%20in,object%20corresponding%20to%20the%20current%20date%20and%20time.\">How To Work with Date and Time in JavaScript using Date Objects | DigitalOcean<\/a><\/li><li><a href=\"https:\/\/attacomsian.com\/blog\/javascript-current-timezone\">Jak uzyska\u0107 bie\u017c\u0105c\u0105 stref\u0119 czasow\u0105 w JavaScript (attacomsian.com)<\/a><\/li><\/ul><\/li><li>Google Apps Script Web App Tutorial (<em>m. in. zasada dzia\u0142ania funkcji doGet()<\/em>)<ul><li><a href=\"https:\/\/youtu.be\/RRQvySxaCW0\">https:\/\/youtu.be\/RRQvySxaCW0<\/a><\/li><\/ul><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u0179r\u00f3d\u0142o -&gt; ESP8266 &#8211; Google Calendar Reminder: How To Make Your Wife\/Girlfriend happy (Arduino) (many thanks to Andreas Spiess) oraz Update Google Calendar Reminder including read and write Ustawienie skrypt\u00f3w,&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,5],"tags":[132],"class_list":["post-4801","post","type-post","status-publish","format-standard","hentry","category-arduino","category-esp8266","tag-googleappsscript"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/posts\/4801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/comments?post=4801"}],"version-history":[{"count":18,"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/posts\/4801\/revisions"}],"predecessor-version":[{"id":4831,"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/posts\/4801\/revisions\/4831"}],"wp:attachment":[{"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/media?parent=4801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/categories?post=4801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arduino.net.pl\/index.php\/wp-json\/wp\/v2\/tags?post=4801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}