maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [ANNOUNCE] tiny webcal auto importer :: pywebcalai (https://talk.maemo.org/showthread.php?t=61203)

yoyoek1 2010-08-27 08:48

[ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Hi all
http://yoyo.ghost.pl/down/ico_ical_64_64.png
I'm writing a tiny script in python for automatic import webcal's / icals from internet.

This application lets you to add / edit / delete web links to ical files.
After entering these links, you can update your local (phone) calendar by one click.


juuupii :) package on repo :) Extras-devel
package name pywebcalai

homepage: https://garage.maemo.org/projects/pywebcalai/

# 2011 05 31
thx to John added support for calendars with no name (name is taken from http filename), and I added support for recurring events. You can now import events from calendar.yahoo.com with this version

# 2010 10 18
add webcal:// address handler

# 2010 09 30
add depends
new file " run-standalone.sh /opt/pywebcalai/pywebcalai_no_gui.sh " for no gui use

# 2010 09 25
on request:
- add support for localfile system ical
- add command line (no gui import)

# 2010 09 13
more resistant to convert text to date

# 2010 09 08
adding the missing required library

# 2010 08 30
- some gui :)
http://yoyo.ghost.pl/down/pywebcal_steps/001.jpg
first run

http://yoyo.ghost.pl/down/pywebcal_steps/002.jpg
configuration add/edit/del

http://yoyo.ghost.pl/down/pywebcal_steps/003.jpg
adding some webcal

http://yoyo.ghost.pl/down/pywebcal_steps/004.jpg
ready to import in 10, 9, 8, .... :)

http://yoyo.ghost.pl/down/pywebcal_steps/005.jpg
tiny info after import :)


http://yoyo.ghost.pl/down/pywebcal_steps/006.jpg
in my call :)

http://yoyo.ghost.pl/down/pywebcal_steps/007.jpg
imported event

# 2010 08 28
- no icalendar exception handler
- no internet connection handler
- status dialog
- fix configuration list
- speed up all process ~x100 :)

sorry for my mistakes but my English level is quite low

yoyoek1 2010-09-05 07:25

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
testers / feedback welcome

dekkelkamp 2010-09-06 16:42

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Hello,

The program 'starts' (black screen, rotatating icon in titlebar) but then it quits.

It doesnt work at all on my n900.

I am looking for a way to to download an .ics file and import it every week on monday. Is that possible with your program

yoyoek1 2010-09-08 08:35

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
thanks for the feedback! :)
All saving innovations described in the first post.

If you update an application does not run refill after every information, please calls xterm command

# run-standalone.sh /opt/pywebcalai/pywebcalai.sh

jukey 2010-09-09 09:33

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Hi I would love to use your application. It sounds great but there seem to be some problems.

1. How I can delete an entry?
2. Do you have an iCal-example I can use to try it out?
3. Will there be a possibility to select a calendar for importing the data?
4. I always get the error message "google.com connection error" when I try to use this ical: http://www.google.com/calendar/ical/...blic/basic.ics

Thanks jukey

yoyoek1 2010-09-13 07:42

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Quote:

Originally Posted by jukey (Post 811513)
1. How I can delete an entry?

start app > preferences > select webcal > edit > and there will bee delete button

Quote:

Originally Posted by jukey (Post 811513)
2. Do you have an iCal-example I can use to try it out?

is that goal to work every ical.
tested. from version 10.09.13 yours example ical is working

Quote:

Originally Posted by jukey (Post 811513)
3. Will there be a possibility to select a calendar for importing the data?

Describe more feature

Quote:

Originally Posted by jukey (Post 811513)
4. I always get the error message "google.com connection error" when I try to use this ical: http://www.google.com/calendar/ical/...blic/basic.ics

working,
maybe some typo?
remember not to write at the beginning http://
You can manually add an entry ~ /. pywebcal.config

jukey 2010-09-21 10:13

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
A few days ago everything worked fine but now I'm unable to start pywebcalai:
Code:

~ $ run-standalone.sh /opt/pywebcalai/pywebcalai.sh
Traceback (most recent call last):
  File "./pywebcalai.py", line 76, in <module>
    import gtk.glade
ImportError: No module named glade

Do you know how to solve the problem?

yoyoek1 2010-09-22 10:57

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Quote:

Originally Posted by jukey (Post 822156)
A few days ago everything worked fine but now I'm unable to start pywebcalai:
Code:

~ $ run-standalone.sh /opt/pywebcalai/pywebcalai.sh
Traceback (most recent call last):
  File "./pywebcalai.py", line 76, in <module>
    import gtk.glade
ImportError: No module named glade

Do you know how to solve the problem?

This error indicates that there is something wrong with pyglade.
is not there
pyglade is in python-gtk, I think so

erniadeldesktop 2010-09-22 11:16

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
hi yoyoek1,
your app is almost what I was looking for: I've just wrote an app that generate vcal. I would like to somehow pipe my output to your app and exploit your sync script. Should you adapt it for receving also local ics files? We can speak in private for more details
thanks!

yoyoek1 2010-09-22 21:37

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Quote:

Originally Posted by erniadeldesktop (Post 823240)
hi yoyoek1,
your app is almost what I was looking for: I've just wrote an app that generate vcal. I would like to somehow pipe my output to your app and exploit your sync script. Should you adapt it for receving also local ics files? We can speak in private for more details
thanks!

ok
When I find a moment I will try to implement:
- import start from command line (good for cron start)
- possibility to work on http and local file

something else?

erniadeldesktop 2010-09-23 04:48

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
that should be awesome!
my idea was:
on_menuaction_sync: exec(pywebcalai --local --import my.ics file)
or to call a quick update when closing.
this will be super super cool.
thanks!

yoyoek1 2010-09-25 15:27

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
new release :)

fw190 2010-09-25 18:29

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
which web calendar should I use with this app?

erniadeldesktop 2010-09-29 15:39

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
hi, I've tried many times. and all flavours of combination of sudo, run standalone and simple commands, but is not syncing with the calendar db. where i do wrong? I do have to refresh it somehow?

to reply to some previous post, you should add in the dependences "python-glade2" (I had the same issues!)
thanks again!


EDIT:
i've found an error message: error in ical parsing str.
looking at the sources, happens calling:
cal = Calendar.from_string( str(ical_str) )

this means my calendar is not properly formatted, right?
and also with this one is crashing. here's a copy for you to reproduce the error

Code:

BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
CATEGORIES:MEETING
STATUS:TENTATIVE
DTSTART:20100921T033000Z
DTEND:20100921T043000Z
SUMMARY:Your Proposal Review
DESCRIPTION:Steve and John to review newest proposal material
CLASS:PRIVATE
END:VEVENT
BEGIN:VEVENT
CATEGORIES:MEETING
STATUS:TENTATIVE
DTSTART:20100921T053000Z
DTEND:20100921T063000Z
SUMMARY:test2
DESCRIPTION:ahua
CLASS:PRIVATE
END:VEVENT
END:VCALENDAR

can you tell'me if i'm missing any statement in exporting?

yoyoek1 2010-09-30 11:15

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
I'w add python-glade2. it will bee on depends list in next release.
about ical file. it shoud have "X-WR-CALNAME"

BEGIN:VCALENDAR
PRODID:-//rcspot.pl//rcspot Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:eventy rcspot
X-WR-TIMEZONE:UTC
X-WR-CALDESC:
BEGIN:VEVENT
DTSTART:20100311T142000Z
DTEND:20100311T153000Z
SUMMARY:Poznań,funfly
......


no calendar name in ical file bug whose solved in some previous version.

andreas.baer 2010-10-14 11:38

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
thanks for that piece of software!

Our webcal-server is secured via username and password - would it be possible to pass that to pywebcalai?

Carlito 2010-10-18 08:39

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Can't get it work with Flogs . . . is this possible?

yoyoek1 2010-10-18 11:31

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Quote:

Originally Posted by Carlito (Post 843946)
Can't get it work with Flogs . . . is this possible?

I did some tests and it working correct after little pimp :P
delete from adres webcal://
and replace %40 to @

have fun :)

I will add to my list TODO in next release.
in next release it will make it automatically.

yoyoek1 2010-10-18 11:33

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Quote:

Originally Posted by andreas.baer (Post 840820)
thanks for that piece of software!

Our webcal-server is secured via username and password - would it be possible to pass that to pywebcalai?

hyyy it is password secure by htaccess ? cookie?

andreas.baer 2010-10-19 11:25

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
sorry for the delay - no, it's not a htaccess, its plain login+password

yoyoek1 2010-10-19 13:03

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Quote:

Originally Posted by andreas.baer (Post 844946)
sorry for the delay - no, it's not a htaccess, its plain login+password

hyyyy still very little information
if it is seen as a form on the website, this authorization process is the site author's thoughts.

the only opportunity that gets a cookie after correct login.
if so
be possible to do some graft to send the cookie when downloading ical

I need to address the authorization and may account:)
the process of adding a new calendar to import will be terribly complicated but it is possible to solve, for a satisfied user

andreas.baer 2010-10-19 13:08

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Oh well, sorry, that i can't give exact informations...

I tried to get the file via wget - with success. I have to provide --http-user and --http-password and the whole calendar is downloaded

yoyoek1 2010-10-19 13:19

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Quote:

Originally Posted by andreas.baer (Post 845018)
Oh well, sorry, that i can't give exact informations...

I tried to get the file via wget - with success. I have to provide --http-user and --http-password and the whole calendar is downloaded

it is excellent information !
ok then
I will try to implement some https, login, password handler and make new release.
I need some time to figureout how to make it :P

until that time I suggest to write a little bash for download file, and in pywebcalai add local, downloaded file :P

hyyy you can add it to /opt/pywebcalai/pywebcalai.sh :) easiest solution

jackburton 2010-10-20 13:11

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Is there a way to export a calendar to an .ICS file from the command line? I would like to grab my individual calendars and FTP them using scripts. I could use syncevolution, but I'd rather write scripts that do what I want. I know there is a way to export using the GUI, but I'd like to automate things with the shell.

yoyoek1 2010-10-21 08:53

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Quote:

Originally Posted by jackburton (Post 846063)
Is there a way to export a calendar to an .ICS file from the command line? I would like to grab my individual calendars and FTP them using scripts. I could use syncevolution, but I'd rather write scripts that do what I want. I know there is a way to export using the GUI, but I'd like to automate things with the shell.

pywebcalai is a importer not a exporter :/

Carlito 2010-10-24 10:19

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Imported the schedule of Ajax. The times of the games in the champions league are good. But the times of the competition aint. Played with offset. But can't seem to get it to work. It's one or the other that's displayed well but not both. When I look on the flogs site. Times displayed well... Can you tell me what to do?

andreas.baer 2010-11-03 22:46

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Quote:

Originally Posted by yoyoek1 (Post 845028)
it is excellent information !
ok then
I will try to implement some https, login, password handler and make new release.
I need some time to figureout how to make it :P

until that time I suggest to write a little bash for download file, and in pywebcalai add local, downloaded file :P

hyyy you can add it to /opt/pywebcalai/pywebcalai.sh :) easiest solution

Thanks for the suggestions - i wrote a little script and added that to a new shortcut put on the desktop.

Its working!

One thing i noticed: the alarms are disabled during import, better: they are not imported. Any plans for that?

Cheers,
Andi

yoyoek1 2010-11-07 11:33

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Quote:

Originally Posted by andreas.baer (Post 862699)
Thanks for the suggestions - i wrote a little script and added that to a new shortcut put on the desktop.

Its working!

One thing i noticed: the alarms are disabled during import, better: they are not imported. Any plans for that?

Cheers,
Andi

can you send me a file with declared alarm?
I will try to parse it and implement it into code.

andreas.baer 2010-11-08 22:30

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
1 Attachment(s)
Hi,

you asked for some examples to implement an alarm-import.

I attached you two versions of the same calendars:
1. direct export (download via wget from caldav-server)
2. exported file from thunderbird (via lightning-plugin)

Hope that helps, thanks for your efforts and the fine piece of software,
cheers,
andi

canuckkat 2011-06-01 13:02

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
Thanks for this! I use google calendars a lot and this was one of the features from android that I missed. :)

Joseph9560 2012-02-23 17:27

Re: [ANNOUNCE] tiny webcal auto importer :: pywebcalai
 
I tried to import facebook events and its taking forever to complete! Anyone imported facebook events successfully?


All times are GMT. The time now is 19:23.

vBulletin® Version 3.8.8