Page 1 of 2

iCalendar Open Source Lib for LiveCode

Posted: Fri Aug 14, 2015 6:41 pm
by ToddFabacher
Over in the Create It with LiveCode Class, we have a request to create an open source project to read and write to the iCalendar universal calendar file format [.ics]. It is used by several email and calendar programs, including Microsoft Outlook, Google Calendar, and Apple Calendar; enabling users to publish and share calendar information on the Web and over email; often used for sending meeting requests to other users, who can import the events into their own calendars. Here are the specs:

https://en.wikipedia.org/wiki/ICalendar
https://www.ietf.org/rfc/rfc2445.txt

If you are interested and/or if you are interested in getting involved please let me know in this forum topic.

Thanks,

Todd

Re: iCalendar Open Source Lib for LiveCode

Posted: Fri Aug 14, 2015 7:05 pm
by FourthWorld
This project may help with some of that:
http://forums.livecode.com/viewtopic.php?f=108&t=25046

Re: iCalendar Open Source Lib for LiveCode

Posted: Fri Aug 14, 2015 7:14 pm
by netdzynr
There have been a few ICS-related projects done by LC developers. Here's one:
http://runtime-revolution.278305.n4.nab ... 71551.html

Re: iCalendar Open Source Lib for LiveCode

Posted: Sat Aug 15, 2015 6:59 pm
by Mikey
I might be interested, but I heard there might also be an external coming, sometime, too.

Re: iCalendar Open Source Lib for LiveCode

Posted: Sun Aug 16, 2015 6:22 am
by ToddFabacher
Well the future of LiveCode is widgets, and if we code it now there should not be an issue in converting it. Many people have emailed me, some with code and other with advice, so I will put everything together this week and report back.

Thanks,

Todd

Re: iCalendar Open Source Lib for LiveCode

Posted: Sun Aug 23, 2015 7:12 pm
by quailcreek
Hi Todd,
Is this going to incorporate the iOS calendar as well? I'm looking for a way to add an event to the iSO calendar.

Re: iCalendar Open Source Lib for LiveCode

Posted: Mon Aug 24, 2015 5:09 am
by ToddFabacher
it should because it also reads the .ics files. The file should update you cloud account, which in turn will update the iOS calendar.

--Todd

Re: iCalendar Open Source Lib for LiveCode

Posted: Mon Aug 24, 2015 5:26 am
by quailcreek
Thanks, Todd.
I'm not sure how much help I can but I'll watch for further updates.

Re: iCalendar Open Source Lib for LiveCode

Posted: Wed Sep 02, 2015 1:35 pm
by greg falda
Dear Todd, dear all

I'm the one who initially asked about a calendar connection (in thread http://forums.livecode.com/viewtopic.php?f=94&t=24976)

Sorry for my late response, but I was on vacation.

I'm interested in participating, have some free time for this and some LiveCode knowledge as well ( due to the great course, of course ;-) )

1) Todd, what could be my next steps?

2) I also would like to clarify whether this is what I initially asked for: I would like to achieve the following (I give here a simplest version)

a) Assume the user is running my (future) LiveCode app which somehow became aware of his/her calendar and its settings
b) My app gets the data about the calendar events and displays them (only read - in the simplest version), for instance for a particular day (set in my app)
c) When the calendar entries change, they change in my app as well (for instance - after pressing a "refresh" button in my app)
d) The connection between the calendar and the LiveCode app should be easy to set up by the user. In an ideal situation, this should be done automatically after the app gets calendar rights in the OS or after explicitely asking the user for calendar access permission
e) All this should run on multiple platforms (mobile, desktop, in the future - Web browser)

Is this achievable by ICS?

Best,
greg falda

Re: iCalendar Open Source Lib for LiveCode

Posted: Fri Apr 15, 2016 9:54 pm
by trevix
Is this topic dead?

Re: iCalendar Open Source Lib for LiveCode

Posted: Fri Aug 12, 2016 2:28 pm
by simon.schvartzman
Hi team, anybody know what happened with this project?

Was it accomplished? Where can I find the documentation?

I´m desperate to find a way to add events to the mobile calendar (both iOS and Android) and this would definitely help.

Any other suggestions are also welcomed.

Thanks

Re: iCalendar Open Source Lib for LiveCode

Posted: Fri Aug 12, 2016 3:48 pm
by trevix
Some time ago (5 years) I was trying to accomplish this and I was pretty sure that the best method would have been to sync to google calendar.
Once able to read and write to google calendar, using its API (https://developers.google.com/google-ap ... r/overview), i could then sync to any other (iCal,Outlook, etc).

At the time, in order to login, this was working:

Code: Select all

on mouseUp pMouseBtnNo
    libUrlSetSSLVerification true
    set the sslcertificates to "/usr/share/curl/curl-ca-bundle.crt"
    put "https://www.google.com/accounts/ClientLogin" into theURL
    put libUrlFormData("accountType", "GOOGLE", \
            "Email", MyEmail, \
            "Passwd", MyPassword, \
            "service", "xapi", \
            "source", "Blue Mango Learning Systems-ScreenSteps-2.1") into theData
    post theData to URL theURL
    put the result & cr & it
end mouseUp
It does not work anymore and have no time to go back to the API and see what has changed.
May be you will?

Re: iCalendar Open Source Lib for LiveCode

Posted: Fri Aug 12, 2016 4:23 pm
by simon.schvartzman
Trevix, many thanks for your answer / suggestion.

Yours is a smart approach but wouldn't work in my case because I'm developing a commercial App and I can't enforce the user to have a Google account.

I'm having a hard time to digest the fact that Livecode does not have this basic functionality...Too bad that I discovered it too late

Re: iCalendar Open Source Lib for LiveCode

Posted: Tue Jan 02, 2018 6:16 pm
by trevix
It appears that, in LiveCode, sync with Apple calendar, Google calendar, etc is going no where, on desktop and on mobile.
I discovered this service:
https://www.cronofy.com/google-calendar-api/

Problem is that works with cURL,Ruby,C#,JS,PHP but I would not know how to integrate it in a Livecode standalone that has it own home made calendar.
Maybe "revBrowserCallScript" with javascript?
Other easy options?

Trevix

Re: iCalendar Open Source Lib for LiveCode

Posted: Wed Jan 03, 2018 9:55 am
by MaxV
trevix wrote:
Tue Jan 02, 2018 6:16 pm
Problem is that works with cURL...
If it works with cURL, it should work with livecode PUT and GET.