mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 03:39:55 +00:00
Added calendar URL to config
This commit is contained in:
parent
d3d2099b01
commit
6921f0f800
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Set the url of the calendar feed.
|
// Set the url of the calendar feed.
|
||||||
$url = 'https://p01-calendarws.icloud.com/ca/subscribe/1/n6x7Farxpt7m9S8bHg1TGArSj7J6kanm_2KEoJPL5YIAk3y70FpRo4GyWwO-6QfHSY5mXtHcRGVxYZUf7U3HPDOTG5x0qYnno1Zr_VuKH2M';
|
$url = $_GET['url'];
|
||||||
|
|
||||||
/*****************************************/
|
/*****************************************/
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ var calendar = {
|
|||||||
|
|
||||||
calendar.updateData = function (callback) {
|
calendar.updateData = function (callback) {
|
||||||
|
|
||||||
new ical_parser("calendar.php", function(cal) {
|
new ical_parser("calendar.php" + "?url="+encodeURIComponent(config.calendar.url), function(cal) {
|
||||||
var events = cal.getEvents();
|
var events = cal.getEvents();
|
||||||
this.eventList = [];
|
this.eventList = [];
|
||||||
|
|
||||||
|
@ -34,7 +34,8 @@ var config = {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
calendar: {
|
calendar: {
|
||||||
maximumEntries: 10
|
maximumEntries: 10,
|
||||||
|
url: "https://p01-calendarws.icloud.com/ca/subscribe/1/n6x7Farxpt7m9S8bHg1TGArSj7J6kanm_2KEoJPL5YIAk3y70FpRo4GyWwO-6QfHSY5mXtHcRGVxYZUf7U3HPDOTG5x0qYnno1Zr_VuKH2M"
|
||||||
},
|
},
|
||||||
news: {
|
news: {
|
||||||
feed: 'http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml'
|
feed: 'http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user