iCalendar Open Source Lib for LiveCode

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

ToddFabacher
Posts: 280
Joined: Fri Jan 09, 2015 6:15 pm

iCalendar Open Source Lib for LiveCode

Post by ToddFabacher » Fri Aug 14, 2015 6:41 pm

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5826
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: iCalendar Open Source Lib for LiveCode

Post by FourthWorld » Fri Aug 14, 2015 7:05 pm

This project may help with some of that:
http://forums.livecode.com/viewtopic.php?f=108&t=25046
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

netdzynr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 60
Joined: Sat Apr 08, 2006 6:04 am
Contact:

Re: iCalendar Open Source Lib for LiveCode

Post by netdzynr » Fri Aug 14, 2015 7:14 pm

There have been a few ICS-related projects done by LC developers. Here's one:
http://runtime-revolution.278305.n4.nab ... 71551.html

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 576
Joined: Fri Jun 27, 2008 9:00 pm

Re: iCalendar Open Source Lib for LiveCode

Post by Mikey » Sat Aug 15, 2015 6:59 pm

I might be interested, but I heard there might also be an external coming, sometime, too.

ToddFabacher
Posts: 280
Joined: Fri Jan 09, 2015 6:15 pm

Re: iCalendar Open Source Lib for LiveCode

Post by ToddFabacher » Sun Aug 16, 2015 6:22 am

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

quailcreek
Posts: 688
Joined: Sun Feb 04, 2007 11:01 pm
Location: McKenna, WA

Re: iCalendar Open Source Lib for LiveCode

Post by quailcreek » Sun Aug 23, 2015 7:12 pm

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.
Tom
MacBook Pro OS High Sierra 10.13.3

ToddFabacher
Posts: 280
Joined: Fri Jan 09, 2015 6:15 pm

Re: iCalendar Open Source Lib for LiveCode

Post by ToddFabacher » Mon Aug 24, 2015 5:09 am

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

quailcreek
Posts: 688
Joined: Sun Feb 04, 2007 11:01 pm
Location: McKenna, WA

Re: iCalendar Open Source Lib for LiveCode

Post by quailcreek » Mon Aug 24, 2015 5:26 am

Thanks, Todd.
I'm not sure how much help I can but I'll watch for further updates.
Tom
MacBook Pro OS High Sierra 10.13.3

greg falda
Posts: 77
Joined: Thu Jan 15, 2015 6:51 pm
Location: Warsaw

Re: iCalendar Open Source Lib for LiveCode

Post by greg falda » Wed Sep 02, 2015 1:35 pm

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

trevix
Posts: 361
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: iCalendar Open Source Lib for LiveCode

Post by trevix » Fri Apr 15, 2016 9:54 pm

Is this topic dead?
Trevix

simon.schvartzman
Posts: 138
Joined: Tue Jul 29, 2014 12:52 am

Re: iCalendar Open Source Lib for LiveCode

Post by simon.schvartzman » Fri Aug 12, 2016 2:28 pm

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
Simon

trevix
Posts: 361
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: iCalendar Open Source Lib for LiveCode

Post by trevix » Fri Aug 12, 2016 3:48 pm

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?
Trevix

simon.schvartzman
Posts: 138
Joined: Tue Jul 29, 2014 12:52 am

Re: iCalendar Open Source Lib for LiveCode

Post by simon.schvartzman » Fri Aug 12, 2016 4:23 pm

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
Simon

trevix
Posts: 361
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: iCalendar Open Source Lib for LiveCode

Post by trevix » Tue Jan 02, 2018 6:16 pm

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
Trevix

MaxV
Posts: 1467
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: iCalendar Open Source Lib for LiveCode

Post by MaxV » Wed Jan 03, 2018 9:55 am

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.
Livecode Wiki: http://livecode.wikia.com
My blog: http://livecodeitalia.blogspot.it
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”