![]() |
#1 |
Member
![]() ![]() ![]() Posts: 20
Karma: 270
Join Date: Feb 2008
Device: Irex Iliad
|
Calendar Generator v0.3
Greetings all,
I've been wanting a calendar for my Iliad, and was not too satisfied with the Dates program that has been ported to it. Of course, the proper solution would be to polish Dates and adapt it to the Iliads interface, but I'm not that good a programmer. So, instead, I've put together a python script that will generate a pdf calendar for the current month. It uses hyperlinks to add some interactivity, so that, for instance, clicking on a day will will zoom in to a daily overview. Clicking on the title will take you back to the month view. Being a pdf, you can scribble on this to your hearts content, and use the pagebar to flip through days/weeks. While I am not yet done with this, it has reached a point where I thought it might be useful to others, so I'm uploading my current version. Current features: Month, week, and day views. Scribbles and pagebar navigation. Upcoming features: Get events from Google Calendar. Iliad port (Currently it must by run on your computer and the file transfered to the Iliad. This can easily be set up to happen automatically, but an Iliad port would allow you to update the events without need of a computer) Installation: You will need Python with the Reportlab libraries. Go to www.python.org for instructions for you platform. Once you have this installed, simply run the Calendar.py script, and the pdf will be generated in the current directory. I've also attached the calendar for this month, in case anyone wants to play with it, without mucking about with Python. Suggestions and comments are much appreciated. |
![]() |
![]() |
![]() |
#2 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 281
Karma: 904
Join Date: Oct 2007
Location: Kent, UK
Device: iRex iLiad, Psion 5MX, nokia n800
|
Very nice! And I just had an interesting experience looking at this on my laptop. I went to a day view and wanted to go to the next page. My hand automatically went to find the flipbar.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Hi there,
some weeks ago I also started to write a python program to automatically generate a year agenda in .pdf format. I haven't taken a look at Ian code yet, but looking at the .pdfs, results are similar. These days I haven't got any time to continue improving it but I expect to finish the program in March. Of course, all comments are welcome. Best regards, Iņigo Serna |
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() Posts: 86
Karma: 10
Join Date: Dec 2006
Device: Iliad
|
Very nice pdfs and very useful. Iņigo, have you had time to finish your "agenda". I think itīs a very useful file just if i knew python.
Thanks. |
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() Posts: 86
Karma: 10
Join Date: Dec 2006
Device: Iliad
|
I tried installed Python with the Reportlab libraries on a windows machine, but i must be doing something wrong since i canīt run any of the above scripts.
Thanks. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() ![]() ![]() Posts: 20
Karma: 270
Join Date: Feb 2008
Device: Irex Iliad
|
Are you getting any error messages? I'm no python guru, but I might be able to help figure out what's going wrong. Otherwise, I do plan to put together a nice package once I get it running on the Iliad (just need to find time to work on it again).
|
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() Posts: 86
Karma: 10
Join Date: Dec 2006
Device: Iliad
|
Thanks for the reply, no no error, just it opens a dos windows for a second but nothing happens. I suppose i installed it right, i downloaded python for windows and saved the ReportLab libraries for windows in the Dlls folder. Then i run either your script or Iņigoīs and they run (they have the phython icon) but nothing happens (dos windows for a sec and thats all).
Thanks for your help. Jose |
![]() |
![]() |
![]() |
#8 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Hi,
: "i downloaded python for windows and saved the ReportLab libraries for windows in the Dlls folder" I suppose you mean python2.5 DLL directory, and not windows system directory. This should be ok. Also note that both Ian's program and mine are command line applications; so you should run them inside a terminal window (in windows: run => cmd.exe). Then, go to the directory you have put the files in ("cd path_to_files") and type "python Calendar.py" to run Ian's program or "python c.py" to run mine. Note you must have python interpreter in your PATH (python installation program for windows does it afaik). Both programs creates .pdf files in current directory. Look for "Calendar.pdf" or "agenda-2008.pdf". Please try it again and show us the error messages that appears in the terminal if it doesn't work. Disclaimer: I don't use windows myself so perhaphs some of the above indications are not totally correct. As Ian, I don't have much time to finish the program, but it is in my TODO list, someday... Best regards, Iņigo PD: I've attached a slightly modified version. This accepts some parameters. Run with "python iliad-agenda --help" for options. |
![]() |
![]() |
![]() |
#9 |
Connoisseur
![]() Posts: 86
Karma: 10
Join Date: Dec 2006
Device: Iliad
|
Hi, thanks for replying.
I followed your instructions and the message that i get in the terminal window when i type python Calendar.py or python c.py is: "python" is not recognized as an internal or external command, operable program or batch file. Thanks for helping. Jose |
![]() |
![]() |
![]() |
#10 |
Connoisseur
![]() Posts: 86
Karma: 10
Join Date: Dec 2006
Device: Iliad
|
I think i made some progress. I open a Python shell in windows and loaded your scripts so i actually can see all the lines of the script (of course itīs chinese for me). Then i go to run, and there i click in "Run Module F5" and i get this message:
Traceback (most recent call last): File "E:\Iliad\Iliad scripts\Calendar.py", line 2, in <module> from reportlab.pdfgen import canvas ImportError: No module named reportlab.pdfgen So i donīt know if i do it right, note that i donīt use a dos shell i use python as a windows application. Thanks again. |
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27
Karma: 12644
Join Date: Nov 2007
Location: Davie, Fl.
Device: PalmTX/Illiad v2/PB 360/Nexus 7/Kobo Clara/Boox Nova Pro
|
Go to Reportlab.org at http://www.reportlab.org/ and download the toolkit. Unzip it to the Python directory so you end up with for example c:\Python25\reportlab\pdfgen. Move the Calendar.py file to the Python directory and run from there.
|
![]() |
![]() |
![]() |
#12 |
Connoisseur
![]() Posts: 86
Karma: 10
Join Date: Dec 2006
Device: Iliad
|
Thanks MicheleC, now i got it working.
|
![]() |
![]() |
![]() |
#13 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
agenda2pdf released
I finally finished my tool which generates pdf agenda files in pdf format.
Find it in https://www.mobileread.com/forums/sho...d.php?p=605534 Regards, Iņigo |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Interactive Dan Brown Plot Generator | Superlucky | Lounge | 2 | 09-18-2009 07:14 AM |
[PRS Recollect]A folder-hierarchy-based collection generator | howdypda | Sony Reader | 4 | 08-07-2009 01:33 PM |
Smashwords adds coupon generator for indie authors | Smashwords | News | 0 | 12-16-2008 03:03 PM |
Newspaper generator | doctorow | Lounge | 0 | 05-11-2006 04:55 AM |