Welcome Guest.   Make a donation to an author on the site September 21, 2014, 01:09:18 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
View the new Member Awards and Badges page.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Farr and Rainlendar?  (Read 14097 times)
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« on: March 30, 2009, 02:32:27 PM »

Hi

Has anyone managed to create aliases for Rainlendar calendar application?  I saw that it has a launchy plugin. It would be great if one could use Farr to do the same thing as well




Logged
skajfes
Honorary Member
**
Posts: 204


View Profile Give some DonationCredits to this forum member
« Reply #1 on: March 30, 2009, 03:21:23 PM »

You can add rainlander events trough -a or --add command switch of rainlendar2.exe but is very limited. It only ads events trough default template and does not allow setting categories and such.

I wrote a plugin some time ago that inserts and displays events directly from ics calendars (which rainlendar uses) which has some more flexibility. But it is beta, and abandoned as i really don't have a need for it anymore. If you are willing to wait I can port it to new c# sdk and get it to somewhat runnable state. Or if anyone wants to mess arround with bad c# code i am willing to post the code.
Logged

It is impossible to make anything foolproof because fools are so ingenious.
skajfes
Honorary Member
**
Posts: 204


View Profile Give some DonationCredits to this forum member
« Reply #2 on: March 30, 2009, 07:11:14 PM »

Well i couldn't sleep....

So here goes... I've managed to get the plugin to a runnable state and it should work with no problem. Just unzip it to plugins folder, and go to options and set the calendars.

By default you type "cal " to input an event, "cal todo" to input a task. Dates and times should be recognized normally. You can view existing events or tasks by typing "cal todos" and "cal events". I am not sure if it works correctly but you can do a "cal sum" with additional dates or categories to get a total time of events for a period of time. You can specify categories with "+category", location with "@location",  calendar with "!calendar" and separate description from summary with "|".

If you take a look in the advanced options window (found in plugin properties) you can see a list of calendars along with their name(this is the name the plugin uses to identify calendars), some keywords and some regular expressions. Set the correct calendar path or you'll get an exception. I think that other fields are self explanatory but here goes, you can set which keywords you want to use for adding a task, viewing a list of tasks and events. You can also set regular expressions for recognising dates and times, calendars, locations, categories etc. Defaults work pretty fine so there no real need to change them unless you know what you are doing.

NOTE:
- first calendar in settings is considered default so if no calendar is specified, that one is used.

EDIT: I found an error. i forgot to put the dll in the package..... so here is the updated package.

* Calendar.zip (242.85 KB - downloaded 372 times.)
« Last Edit: March 31, 2009, 03:39:38 AM by skajfes » Logged

It is impossible to make anything foolproof because fools are so ingenious.
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #3 on: March 30, 2009, 07:14:39 PM »

Hey thanks I will give it a go. I am guessing that this actually has nothing to do wih rainlendar and it should work with any .ics file?


Edit

Ok after couple initial tests I could not get it to do anything. I have changed the default calendar to "c:\calendar\share.ics" which I use to share within my network. It does neither read nor write to the calendar. I cannot get the list of events or todos. This is a calendar published by Thunderbird and shared among other apps like Thunderbird and Rainlendar on my network. None of those have any issues witht the data in this ics so I assume that the data structure is intact and complies with the standards.


« Last Edit: March 30, 2009, 09:03:42 PM by kartal » Logged
mouser
First Author
Administrator
*****
Posts: 33,372



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: March 30, 2009, 08:47:50 PM »

Rainlendar (note spelling) is here by the way: http://www.rainlendar.net/cms/index.php

kartal, what other programs make ics files?
Logged
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #5 on: March 30, 2009, 09:02:50 PM »

Mouser,

as far as I know

-Thunderbird http://www.mozilla.org/projects/calendar/sunbird/ (active)
-Calimanjaro http://www.calimanjaro.com/ (dead project)
-Calizo http://calizo.sourceforge.net/ (somewhat active)
-Rainlendar http://www.rainlendar.net/cms/index.php (active)


These do read and write in realtime(or close). They do not just export or import
« Last Edit: March 30, 2009, 09:05:54 PM by kartal » Logged
skajfes
Honorary Member
**
Posts: 204


View Profile Give some DonationCredits to this forum member
« Reply #6 on: March 31, 2009, 03:26:50 AM »

It should work with any .ics calendar. I used Dday library for access to the calendars and they say they comply with standards. You'll find a log in c:\FARRCalendar.txt that should say what's wrong with it. If I am not mistaken, you should get an error that the file is used by another process. I am currently on a different computer and it is not working either for the same reason. I hope to get this fixed as soon as I get home.

By the way, My Phone Explorer works with .ics calendars too (not i realtime though). It is a great way to sync your rainlendar with your SonyEricsson.

EDIT: I found an error. i forgot to put the dll in the package..... so here it is.

* Calendar.zip (242.85 KB - downloaded 229 times.)
« Last Edit: March 31, 2009, 03:38:41 AM by skajfes » Logged

It is impossible to make anything foolproof because fools are so ingenious.
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #7 on: March 31, 2009, 03:19:24 PM »

Hey that seems to work now. That is really cool! This plugin should be part of Farr release.

If you can simply explain how to format visible data  in Farr window that would be great. I do not have much clue about regex stuff myself.
Logged
skajfes
Honorary Member
**
Posts: 204


View Profile Give some DonationCredits to this forum member
« Reply #8 on: March 31, 2009, 04:33:04 PM »

That is really cool! This plugin should be part of Farr release.

Hey, thanks!

If you can simply explain how to format visible data in Farr window that would be great.
You just put html codes in the strings for caption and group. Caption is bold by default so if you want non bold text you put it between
[copy or print]
</b> <b>
This closes the bold tag and opens it again later (kind of like an sql injection, but for html cheesy). You can also use
to start a new line etc. Mouser should know more...

I do not have much clue about regex stuff myself.
Regex is used to extract description, dates, times, categories, calendars and locations from the input string. I think there really is no need for changing the regex, but I have put what I feel is simple enough, and thus the option for changing. If you want to play around with it you can use http://gskinner.com/RegExr/ for examining and building regex.
« Last Edit: March 31, 2009, 04:36:25 PM by skajfes » Logged

It is impossible to make anything foolproof because fools are so ingenious.
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #9 on: April 03, 2009, 01:25:32 PM »

skajfes

When I try to custom override the regex name (cal) it does not work. I am not sure if it is a bug with Farr or bug with your plugin. I do not want to use "cal" I want to use something else because Farr cannot recall my calculator anymore because of name similarity.


Logged
nitrix-ud
Charter Member
***
Posts: 482

View Profile Give some DonationCredits to this forum member
« Reply #10 on: April 03, 2009, 02:01:26 PM »

same with delicious plugin
Logged
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #11 on: April 04, 2009, 12:33:08 PM »

mouser?
Logged
mouser
First Author
Administrator
*****
Posts: 33,372



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #12 on: April 04, 2009, 03:03:53 PM »

ok i'll look into it.
Logged
skajfes
Honorary Member
**
Posts: 204


View Profile Give some DonationCredits to this forum member
« Reply #13 on: April 05, 2009, 08:33:42 AM »

It is the problem with the C# SDK. For some reason the sdk is adding " {0,1}" to whatever keyword is defined in the plugin meaning that the keyword with or without trailing space will trigger the plugin.
Just add a custom keyword with a trailing space in the plugins dialog and you should be just fine.
Logged

It is impossible to make anything foolproof because fools are so ingenious.
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #14 on: April 05, 2009, 11:58:22 PM »

Hi
I am not having any success at all.
Logged
skajfes
Honorary Member
**
Posts: 204


View Profile Give some DonationCredits to this forum member
« Reply #15 on: April 06, 2009, 05:16:50 AM »

I don't get it. I have jscalc with calc as keyboard, and calendar as "cal " defined as keyword (notice the space after cal). When i type calc jscalc activates, when I type cal calendar activates... Maybe i am missing something?
Logged

It is impossible to make anything foolproof because fools are so ingenious.
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #16 on: April 06, 2009, 10:22:43 AM »

Well I am not sure but when I type "cal" nothing else comes up that is why I am trying to change the default regex name.
Logged
skajfes
Honorary Member
**
Posts: 204


View Profile Give some DonationCredits to this forum member
« Reply #17 on: April 06, 2009, 12:03:09 PM »

did you add a space after "cal"? this is the most important thing....
can't you change the regex to something completly different? cc, kal, calendar, blabla... ?
Logged

It is impossible to make anything foolproof because fools are so ingenious.
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #18 on: April 06, 2009, 02:58:49 PM »

Yes I changed to somethingelse and it is not working for me. When I type"tak" I get nothing

here is a screenshot



* FindAndRunRobot_Yakala_04-06-2009_14-57-54.png (22.25 KB, 580x598 - viewed 385 times.)
Logged
skajfes
Honorary Member
**
Posts: 204


View Profile Give some DonationCredits to this forum member
« Reply #19 on: April 06, 2009, 06:29:22 PM »

I have run some tests and when I override the regex the plugin never gets called. It is initialized on FARR start and all, but that's it, no subsequent calls are made to the plugin. Mouser, any ideas?
In the meantime here's a newer version. I've managed to remove {0,1} from the regex and put a default alias cal which should not interfere with calc plugin.

Yeah, after some further testing I have managed to narrow it down to the c# sdk. The c# layer never checks if the plugin settings like regex are overriden.

EDIT: Overriding the regex should work just fine now.

* Calendar.zip (234.77 KB - downloaded 316 times.)
« Last Edit: April 06, 2009, 06:51:41 PM by skajfes » Logged

It is impossible to make anything foolproof because fools are so ingenious.
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #20 on: April 06, 2009, 06:56:44 PM »

Hey this works!  Thanks again and sorry for the hassle!
Logged
skajfes
Honorary Member
**
Posts: 204


View Profile Give some DonationCredits to this forum member
« Reply #21 on: April 07, 2009, 02:23:14 AM »

Nah, I am just glad someone is using it smiley
Logged

It is impossible to make anything foolproof because fools are so ingenious.
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #22 on: May 07, 2009, 05:48:56 PM »

skajfes, your calendar does not work anymore. I am not sure why it is not working. I have gotten couple Farr updates since then. Would there be any issues with latest Farr version(v2.56.02)?
Logged
skajfes
Honorary Member
**
Posts: 204


View Profile Give some DonationCredits to this forum member
« Reply #23 on: May 08, 2009, 08:51:59 AM »

Define "not working"? cheesy

To be honest, I am not using it so much anymore, but now I have tested it out a bit, and it works almost fine for me with the latest version of FARR. I am not sure why, but it does not display todo list anymore, but everything else works fine.
Logged

It is impossible to make anything foolproof because fools are so ingenious.
johnk
Charter Member
***
Posts: 245


View Profile Give some DonationCredits to this forum member
« Reply #24 on: July 11, 2009, 06:59:19 PM »

Okay, my first attempt at an alias -- for those who simply want to add an event or task to your default Rainlendar calendar via the command line:

Save the following code as rainlendar.alias to your FindAndRunRobot\AliasGroups\MyCustom folder.

[copy or print]
<?xml version="1.0" encoding="Legacy" ?>
<!-- This file defines aliases for use by the Find and Run Robot program (http://www.donationcoder.com/Software/Mouser/findrun/index.html). -->
<FarrAliasFile>
    <FileFormatVersion>1</FileFormatVersion>
    <AliasSetDescription>Rainlendar command line alias</AliasSetDescription>
    <AliasEntry>
        <AliasText>rld</AliasText>
        <Score>1000</Score>
        <Regex>^rld (.*)</Regex>
        <Results>
            <Result>Rainlendar $$1 | %PROGRAMFILES%\Rainlendar2\Rainlendar2.exe --add=&quot;$$1&quot; </Result>
        </Results>
    </AliasEntry>
</FarrAliasFile>

Then in FARR, simply type rld and the event details (without quotes -- the alias adds the quote marks), e.g. type:

rld meeting tomorrow at 7pm

The alias will add the appointment to your Rainlendar default calendar. Hopefully. Works for me anyway, with the latest version of Rainlendar.

You'll need to change the location of the Rainlendar executable (%PROGRAMFILES%\Rainlendar2\Rainlendar2.exe in the alias) if you did not install Rainlendar to the default folder.
Logged
Pages: [1] 2 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.044s | Server load: 0 ]