maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Calendar Command Line Tool (https://talk.maemo.org/showthread.php?t=76722)

jackburton 2011-09-14 02:00

[Announce] Calendar Command Line Tool
 
This is a simple wrapper around the calendar-backend API that allows for:
  • import ics files
  • export ics files
  • deleting completed tasks (batch)
  • moving late tasks to today (batch)

It's been in extras-devel for awhile now, but finally added the bug tracker and promoted to testing.

I am using it to script import and export operations from the Maemo calendar since I do not connect my phone to my company's Exchange server. I think I have finer control this way.

Hope it's useful and will see more use in extras-testing.

reinob 2011-09-14 07:33

Re: [Announce] Calendar Command Line Tool
 
Thanks for this tool!

BTW, link here: http://maemo.org/packages/package_in...caltool/0.0.9/

I just installed it but I'm not sure where it actually got installed. I may have a look at the deb file later, but perhaps you could post some examples of how to run this tool (including the path and name of the tool itself :)

Cheers.

jackburton 2011-09-14 11:22

Re: [Announce] Calendar Command Line Tool
 
You run it from the command line.

E.g. to export a calendar:

Code:

maecaltool --operation export --calendar N900 --file calendar.ics
You'll want to get the internal name of the calendar with this first before performing operations:
Code:

maecaltool --operation list
Run it with no options to get all operations available.

Run an operation with no options to see the individual operation usage.

reinob 2011-09-14 13:11

Re: [Announce] Calendar Command Line Tool
 
Thanks jackburton,

I know it's a command line tool (it's in the title of the thread :), but for sure it's not in the user's PATH, so my question was were exactly this thing got installed so I can find it (and possible add its path to the PATH).

reinob 2011-09-14 13:22

Re: [Announce] Calendar Command Line Tool
 
OK I just did # dpkg -L maecaltool
and apparently it's only installed stuff in /usr/share/doc/maecaltool
(in particular, a file named "copyright")

Sorry I cannot actually see the .deb contents (at work, and only XP), but I think you should have a look at it (or someone else confirm if I'm right or wrong?).

sakya 2011-09-14 13:27

Re: [Announce] Calendar Command Line Tool
 
Quote:

Originally Posted by reinob (Post 1088176)
Sorry I cannot actually see the .deb contents (at work, and only XP),

You can open deb files in Windows using 7-Zip

Quote:

but I think you should have a look at it (or someone else confirm if I'm right or wrong?).
I can see only the copyright file in the deb found at
http://maemo.org/packages/package_in...caltool/0.0.9/

reinob 2011-09-14 13:44

Re: [Announce] Calendar Command Line Tool
 
@sakya,

Thanks for confirming that only the copyright file is there.
And no, I (we) only have an old version of Winzip.. and no possibility of running/installing non-approved software :(

algiz 2011-09-14 14:28

Re: [Announce] Calendar Command Line Tool
 
Quote:

Originally Posted by reinob (Post 1088194)
And no, I (we) only have an old version of Winzip.. and no possibility of running/installing non-approved software :(

Not even some portable stuff?

http://portableapps.com/apps/utilities/7-zip_portable

reinob 2011-09-14 14:35

Re: [Announce] Calendar Command Line Tool
 
@algiz,

OFF-TOPIC: yeah, I guess that would work (officially not allowed, but would work..), but hey, I also have to work :), it's enough that I spend a large % of my time reading this forum :)

jackburton 2011-09-14 21:31

Re: [Announce] Calendar Command Line Tool
 
Sorry guys, I'll double check the packaging and see what has gone wrong. It should be installed in the path. I'll look at it tonight.

jackburton 2011-09-15 03:00

Re: [Announce] Calendar Command Line Tool
 
A fixed build is in extras-devel now at version 0.0.10.

An old, broken .pro file got into the mix from a previous build. :(

I'll promote to testing again when it becomes available to do so.

klinglerware 2011-09-15 16:11

Re: [Announce] Calendar Command Line Tool
 
It's very promising. I just tried to update my past-due tasks to the current date. It pulled most, but not all of my tasks. The only thing that I can think of that might be different about those tasks that weren't pulled could be that those tasks were ones where I have changed the status (pending to complete back to pending) several times.

Once I combine this with an alarmed command to run this automatically, this should improve the usefulness of the task list considerably for me.

PMaff 2011-09-15 16:49

Re: [Announce] Calendar Command Line Tool
 
Quote:

Originally Posted by jackburton (Post 1087871)
This is a simple wrapper around the calendar-backend API that allows for:
  • import ics files
  • export ics files
  • deleting completed tasks (batch)
  • moving late tasks to today (batch)

It's been in extras-devel for awhile now, but finally added the bug tracker and promoted to testing.

I am using it to script import and export operations from the Maemo calendar since I do not connect my phone to my company's Exchange server. I think I have finer control this way.

Hope it's useful and will see more use in extras-testing.

Is your tool capable of importing the diverse repeating events like pointed out in this thread:
http://talk.maemo.org/showthread.php?t=36161 ?

Thanks in advance.

jackburton 2011-09-15 17:33

Re: [Announce] Calendar Command Line Tool
 
Quote:

Originally Posted by klinglerware (Post 1088986)
It's very promising. I just tried to update my past-due tasks to the current date. It pulled most, but not all of my tasks. The only thing that I can think of that might be different about those tasks that weren't pulled could be that those tasks were ones where I have changed the status (pending to complete back to pending) several times.

Once I combine this with an alarmed command to run this automatically, this should improve the usefulness of the task list considerably for me.

If you can recreate the conditions, feel free to file a bug and I'll take a look.

jackburton 2011-09-16 00:59

Re: [Announce] Calendar Command Line Tool
 
Quote:

Originally Posted by PMaff (Post 1089018)
Is your tool capable of importing the diverse repeating events like pointed out in this thread:
http://talk.maemo.org/showthread.php?t=36161 ?

Thanks in advance.

All my tool does is call the calendar-backend api to import and export calendars.

I went ahead and created a test calendar with a repeating event that cannot be created via the calendar GUI. I then used my tool to import the calendar and it shows correctly.

This entry repeats every 10 days for 5 occurrences:
Code:

BEGIN:VCALENDAR
VERSION:1.0
PRODID://Nokia Corporation//Maemo5 Calendar PR1.2//EN
BEGIN:VEVENT
CREATED:20110217T023020Z
SUMMARY:Trash Day
DESCRIPTION:Take the damn trash out
UID:3
DTSTART:20110216T200000Z
DTEND:20110216T201500Z
ATTACH:
SEQUENCE:0
LAST-MODIFIED:20110217T023020Z
RRULE:FREQ=DAILY;INTERVAL=10;COUNT=5
BEGIN:VALARM
TRIGGER;VALUE=DATE-TIME:20110921T200000Z
DURATION:PT1M
REPEAT:1
ACTION:AUDIO
END:VALARM
END:VEVENT
END:VCALENDAR

I suggest creating some valid .ics file in a tool of your choice and try to import it and see if it shows up right.

BTW. The details screen of the calendar just shows that it repeats every day (the FREQ= value). There may be frequncies that the calendar-gui make choke on. I don't know. Something to try out on your own.

Also, don't edit the event from the GUI or it will revert to repeating every day. The interval will get wiped out. It looks like we'd need a different program to make detailed edits outside of the default calendar GUI.

woody14619 2011-09-16 01:50

Re: [Announce] Calendar Command Line Tool
 
I've found the same to be true when syncing with Nokia PC Suite. You can set more complex alarm times, patterns, exceptions, etc. It syncs correctly, but editing it on the device makes it go wonky. Sucks that they implemented a great system under the hood and the crippled it with a half-*** GUI. I'd have much preferred text fields to a listbox...

jackburton 2011-09-16 11:41

Re: [Announce] Calendar Command Line Tool
 
Quote:

Originally Posted by woody14619 (Post 1089279)
I've found the same to be true when syncing with Nokia PC Suite. You can set more complex alarm times, patterns, exceptions, etc. It syncs correctly, but editing it on the device makes it go wonky. Sucks that they implemented a great system under the hood and the crippled it with a half-*** GUI. I'd have much preferred text fields to a listbox...

Yeah. There's a lot of stuff under the hood that works really well. For example the calendar and tasks support categories, but that is not exposed in the UI.

I had started work on a new GUI to manage the built-in tasks that exposes these things, but I have gotten delayed. I hope to resume soon and maybe get *something* out to extras-devel.

klinglerware 2011-09-16 16:02

Re: [Announce] Calendar Command Line Tool
 
Quote:

Originally Posted by jackburton (Post 1089058)
If you can recreate the conditions, feel free to file a bug and I'll take a look.

Thanks. I was able to recreate it via some "test" entries and will file a bug shortly...

jackburton 2011-09-18 19:15

Re: [Announce] Calendar Command Line Tool
 
Quote:

Originally Posted by klinglerware (Post 1089605)
Thanks. I was able to recreate it via some "test" entries and will file a bug shortly...

Thanks. I think I found the issue. I updated the bug tracker and pushed a new package to extras-devel. It should show up in extras-testing at some point as well.

klinglerware 2011-09-20 02:16

Re: [Announce] Calendar Command Line Tool
 
Thanks, it's working for me now.


All times are GMT. The time now is 13:04.

vBulletin® Version 3.8.8