
Strange however is that my appointments are not ordered from new to old, but randomly it seems... Anyone else noticed similar behaviour?
Regards,
Wizjos
Moderators: leecollings, htilburgs, robgeerts
Are you on beta branch? buttons.calendar is not for this module.mvveelen wrote:I added the URL (webcal://p29-calendars.icloud.com/published/2/nhsdjfgdsfgdsjfhfy3ef_DSgEIaCw_Tv6VZAn0xMLLCMhlEE-RIreVpahV4zKT-fE_XyvWaKHmFSf4cTYEptui-tRa1buriW7k)madrian wrote:Me.mvveelen wrote:Any users with an Apple calendar? Trying to get the calendar plugin to work, but nothing shows up.config.js is correctly configured? Google Calendar works?
^^
the URL is just an example
But in the config.js I use buttons.calendar (the config_default.js isn't clear about what else to use) and nothing is showing up. I'm not using a Google calendar, but an Apple calendar.
Timezone problem, I am working on this, but first I am trying to implement support for repeating events.wizjos wrote:Great new feature this ical calender add-on. However, I've noticed some strange behaviour as to the time of my appointments. They all
Regards,
Wizjos
Yes, I am. But what IS ?madrian wrote:Are you on beta branch? buttons.calendar is not for this module.mvveelen wrote:I added the URL (webcal://p29-calendars.icloud.com/published/2/nhsdjfgdsfgdsjfhfy3ef_DSgEIaCw_Tv6VZAn0xMLLCMhlEE-RIreVpahV4zKT-fE_XyvWaKHmFSf4cTYEptui-tRa1buriW7k)madrian wrote:
Me.config.js is correctly configured? Google Calendar works?
^^
the URL is just an example
But in the config.js I use buttons.calendar (the config_default.js isn't clear about what else to use) and nothing is showing up. I'm not using a Google calendar, but an Apple calendar.
See my previous post from yesterday:
https://www.domoticz.com/forum/viewtopi ... 20#p131601
Code: Select all
var _ICALENDAR_URL = 'https://p9-calendars.icloud.com/published/2/nuh36ehsdfsdfsdf4TyqqnRy3ef_DSgEIaCw_Tv6VZAn0xMLLCMhlEE-sdfhkjdf-tRa1buriW7k'; //supports .ics type calendars (Google Calendar, Apple Calendar etc.)
var _ICALENDAR_DATEFORMAT = 'friendly'; //'friendly', 'MM.DD.YYYY HH:mm', 'DD.MM.YYYY HH:mm', 'YYYY.MM.DD HH:mm'
var _ICALENDAR_LOCALE = 'nl'; //en,hu, etc.
Code: Select all
columns[3] = {}
columns[3]['blocks'] = ['icalendar']
columns[3]['width'] = 2;
Ive added this function to ical_parser.jsmadrian wrote:Timezone problem, I am working on this, but first I am trying to implement support for repeating events.wizjos wrote:Great new feature this ical calender add-on. However, I've noticed some strange behaviour as to the time of my appointments. They all
Regards,
Wizjos
Code: Select all
function ConvertUTCTimeToLocalTime(UTCDateString)
{
var convertdLocalTime = new Date(UTCDateString);
var hourOffset = convertdLocalTime.getTimezoneOffset() / 60;
convertdLocalTime.setHours( convertdLocalTime.getHours() + hourOffset );
return convertdLocalTime;
}
invar utcdatems = Date.UTC(dtutc.year, (dtutc.month-1), dtutc.day, dtutc.hour, dtutc.minute);
Code: Select all
var utcdatems = ConvertUTCTimeToLocalTime(Date.UTC(dtutc.year, (dtutc.month-1), dtutc.day, dtutc.hour, dtutc.minute));
Not at this moment, but it's a great idea. Maybe if we ask @Rob nicely?SwordFish wrote:Great job the calendar plugin.
Is it possible to add two google calendars on Dashticz, one for my wife and one for me?
Code: Select all
var _ICALENDAR_URL = [
{"calendar":1,"title":"Lisa's calendar","url":"http://calendar.google.com/basic.ics"},
{"calendar":2,"title":"SwordFish's calendar","url":"webdav://adaospdaspdokaspdo.ics"},
];
Yeah something like that.madrian wrote:Not at this moment, but it's a great idea. Maybe if we ask @Rob nicely?SwordFish wrote:Great job the calendar plugin.
Is it possible to add two google calendars on Dashticz, one for my wife and one for me?He is better in these things.
I can imagine the following format:
If no title were given, do not display title (as now).Code: Select all
var _ICALENDAR_URL = [ {"calendar":1,"title":"Lisa's calendar","url":"http://calendar.google.com/basic.ics"}, {"calendar":2,"title":"SwordFish's calendar","url":"webdav://adaospdaspdokaspdo.ics"}, ];
From a few posts back (Question of mine)mvveelen wrote:I added the URL (webcal://p29-calendars.icloud.com/published/2/nhsdjfgdsfgdsjfhfy3ef_DSgEIaCw_Tv6VZAn0xMLLCMhlEE-RIreVpahV4zKT-fE_XyvWaKHmFSf4cTYEptui-tRa1buriW7k)madrian wrote:Me.mvveelen wrote:Any users with an Apple calendar? Trying to get the calendar plugin to work, but nothing shows up.config.js is correctly configured? Google Calendar works?
^^
the URL is just an example
But in the config.js I use buttons.calendar (the config_default.js isn't clear about what else to use) and nothing is showing up. I'm not using a Google calendar, but an Apple calendar.
You need to run the beta version of this dashboard'Its a totally new module + you must install dashticz from beta branch, check new CONFIG_DEFAULT.js. buttons.calendar is not for this new module.
BTW this is how you clone beta branch into dashticz directory:
CODE: SELECT ALL
git clone https://github.com/robgeerts/dashticz_v2.git --branch beta dashticz
Or simple click here. https://github.com/robgeerts/dashticz_v ... e/beta.zip
Or go to the project page: https://github.com/robgeerts/dashticz_v2.git then click on 2 branches then select beta branch.
This did the trick, thanks !madrian wrote:Ahh, sorry:
Code: Select all
columns[3] = {} columns[3]['blocks'] = ['icalendar'] columns[3]['width'] = 2;
Code: Select all
https://gadgets.buienradar.nl/gadget/zoommap/?lat=61.49911&lng=23.78712&overname=2&zoom=8&naam=Tampere&size=2&voor=0"%20scrolling=no%20width=256%20height=256
I also still got an error and did nothing to the script since yesterdaypoudenes wrote:Hi Guys,
Suddenly i got errors for the Moon...:
Error: EventSystem: in MOON 17.04.27: [string "-- Variables to customize -------------------..."]:136: attempt to concatenate global 'moonsetMinute' (a nil value)
It worked, didn't do anything about scripting of testing... it started .....
Add me too it. Also Rain script is throwing this to me.SwordFish wrote:I also still got an error and did nothing to the script since yesterdaypoudenes wrote:Hi Guys,
Suddenly i got errors for the Moon...:
Error: EventSystem: in MOON 17.04.27: [string "-- Variables to customize -------------------..."]:136: attempt to concatenate global 'moonsetMinute' (a nil value)
It worked, didn't do anything about scripting of testing... it started .....
Error: EventSystem: in Moon: [string "-- Variables to customize -------------------..."]:65: attempt to concatenate global 'moonsetMinute' (a nil value)
Code: Select all
2017-04-29 18:35:00.223 Error: EventSystem: in Regen Verwacht: [string "local RainTextIDX = 113 -- your domoticz te..."]:13: attempt to index global 'file' (a nil value)
2017-04-29 18:35:00.495 Error: EventSystem: in Moon: [string "-- Variables to customize..."]:54: attempt to index global 'file' (a nil value)
2017-04-29 18:35:37.130 Error: Logitech Media Server: No response from server 192.168.0.10:9000
2017-04-29 18:36:00.272 Error: EventSystem: in Regen Verwacht: [string "local RainTextIDX = 113 -- your domoticz te..."]:13: attempt to index global 'file' (a nil value)
2017-04-29 18:36:00.517 Error: EventSystem: in Moon: [string "-- Variables to customize..."]:54: attempt to index global 'file' (a nil value)
Same here....SwordFish wrote:I also still got an error and did nothing to the script since yesterdaypoudenes wrote:Hi Guys,
Suddenly i got errors for the Moon...:
Error: EventSystem: in MOON 17.04.27: [string "-- Variables to customize -------------------..."]:136: attempt to concatenate global 'moonsetMinute' (a nil value)
It worked, didn't do anything about scripting of testing... it started .....
Error: EventSystem: in Moon: [string "-- Variables to customize -------------------..."]:65: attempt to concatenate global 'moonsetMinute' (a nil value)
Code: Select all
blocks['news_1'] = {} // NU.NL
blocks['news_1']['feed'] = 'https://crossorigin.me/http://www.telegraaf.nl/rss';
blocks['news_2'] = {} // TWEAKERS
blocks['news_2']['feed'] = 'https://crossorigin.me/http://feeds.feedburner.com/tweakers/nieuws';
columns[4] = {}
columns[4]['blocks'] = ['news_1','news_2']
columns[4]['width'] = 5;
1, work released, waiting for Rob to merge request.This did the trick, thanks !
I see that you guys are working on the 2 hours time difference, but now at least I can see the calendar.
Now, we have more than 1 calendar (private, work, kids). Would it be possible to merge them?
Users browsing this forum: No registered users and 1 guest