Hi!
I'm using fet for my university proyect and I must use Ical format as output.
I would like to know if someone is working on this task or even whether to put the idea to do so.
Thanks.
Hi
as far as i know nobody is working on that.
Some time ago there was already an iCal format output in FET. (just get FET 4.2.8 version. For example here: DELETED, because it is old. NEW one: http://www.timetabling.de/download/old/ ).
i never used that, because i haven't an Apple system.
i don't know why Liviu removed it. Maybe because the structure changed a little bit with FET 5.0.0.
like you maybe know, i upgraded the xhtml output file during that time. If i remember correct, then the internal structure of the variables didn't change much at that time. Liviu changed only the structure of the variables of the "rooms". Maybe that was the only reason why Liviu removed it.
So i think it will be an easy task to code that if you know the ical format.
Just do it like in timetableexport.cpp (that is the xhtml output). Maybe that task can be done in very short time if you just get the old fet 4.2.8 source and convert it to the new 5.x.x.
So please wait a few days until Liviu return. So he can tell you why he removed ical and what to care about.
I'm back.
Yes, you can see the old ical export in FET-4.2.8. I removed it in FET-5 because I thought nobody used that.
I think you can write an ical export easily, by following the code from timetableexport.cpp.
Please let me know if you have any problems and I'll answer.
Hi
I was busy in the last weeks but I'm working on iCalc format.
Using the timetableexport I make some iCal calendars, but I was trying to separate each teacher from the other teachers (and the same thing for students and rooms)
When you make a new calendar, and view the timetable, you can select one teacher and then you only see the timetable corresponding to that teacher.
It could be possible to use that table to export to an iCal format? adding some button there to export?
How this table is generated?
Thanks.
QuoteHi
I was busy in the last weeks but I'm working on iCalc format.
Using the timetableexport I make some iCal calendars, but I was trying to separate each teacher from the other teachers (and the same thing for students and rooms)
When you make a new calendar, and view the timetable, you can select one teacher and then you only see the timetable corresponding to that teacher.
It could be possible to use that table to export to an iCal format? adding some button there to export?
How this table is generated?
Thanks.
Method 1: you could save in multiple files the calendar for each teacher (using what you worked so far, from timetableexport.cpp).
Method 2: you can add a button in timetable view form and export the timetable of current teacher in iCal format.
Which one do you prefer? I would prefer 1.
Adding a button is easy if you worked a bit with Qt. You will need old Qt-3.3.x to open the timetableviewteachersform_template.ui, add a button and make a slot for it and then write the C++ code (no more Qt). I could try to do that for you, if you cannot do it.
Qt-3.3.x is not available freely for Windows (Qt-4 is).
Surely I select the Method1, save each teacher/group/room is more simple than programing a new button, and in this way i don't have problems if the interface changes.
Don't worry about Qt-3.3x I'm a linux user, and i know c++ programming
Thanks for your fast response.
Maybe it would be best to get some XSL(T) to run on the actual XML output? This way no modification of FET would be necessary.
Could you please tell me how can I convert a fet file to the
ical format or how can I generate ical format files as FET output.
Many thanks
jvo
i don't know if osv finished his work. i never saw results from him. so let's hope he will answer.
i saw my previous link doesn't work anymore.
use this one if you want to use the old ical source:
http://www.timetabling.de/download/old/
Thank you for your answer.
I am trying to re-introduce the Export to iCalendar functionality from fet-4.2.8 into the new fet-5.12.2 version, but I'm experiencing some dificulties.
For instance, in file timetableexporticalstudentsform.h
it is included timetableexporticalstudentsform_template.h that I cannot find in the fet-4.2.8 distribution.
Am I missing something?
Many thanks
QuoteThank you for your answer.
I am trying to re-introduce the Export to iCalendar functionality from fet-4.2.8 into the new fet-5.12.2 version, but I'm experiencing some dificulties.
For instance, in file timetableexporticalstudentsform.h
it is included timetableexporticalstudentsform_template.h that I cannot find in the fet-4.2.8 distribution.
Am I missing something?
Many thanks
timetableexporticalstudentsform_template.h is automatically generated by qmake from timetableexporticalstudentsform_template.ui. You also might want to convert this timetableexporticalstudentsform_template.ui from Qt 3 to Qt 4.
The task you are trying to do might be too difficult. I advise you to do a separate module, using the xml timetables obtained with FET.
The reasons why I removed the iCal export from FET was that I thought nobody used this format. Also, the iCal export in FET 4 was not perfect, you may want firstly to use FET 4 on a simple file to see how this export works.
Thank you for your advise that I will follow as I do not have any experience with qt and I need those ical files ASAP.
ical files are becoming more and more useful. At my instituition we are just getting started to use FET and we would like to import the generated tables to google calendar and to mobile devices.
Please consider the re-introduction of Export to iCalender functionality into FET again, as a standard issue.
Again, many thanks
jvo from Algarve, Portugal
you don't need to know (much) qt to code that.
but i saw ical fromat changed a bit in september 2009 (compare http://tools.ietf.org/html/rfc5545 )
the "old" format was from novermber 1998 (comapre http://tools.ietf.org/html/rfc2445 )
i didn't read the full description yet.
i want to finish my suggested activity planning form first. maybe i will have a look at that after i am finished with that work. (i am not sure, maybe i will try to code direct printing from fet first. i am not sure.)
i read the new documentation the last days. i think i know how to do it, but it will take much time to code.
the old code (from fet 4.2.8) is not very usefull.
the internal code must changed a bit, because the internal data structure changed a bit.
that isn't to much work, i guess 1 day.
but the interface must changed much. the old version is useless, because the time between 2 periods is always the same, but nearly no school has it that way.
so there is a new form/dialog needed where a user can add start- and endtime of each period.
there is also a start date and end date needed to do a good export. this is also critical, because it is normaly only possible with a 7 days week. of cause we can add pseudo days if you have only a 6, 5, 4 ... days week.
but how to export if you enter more then 7 days. that is critical in the export.
also a list of exceptions is usefull (for example moveable feast, holiday, ...)
so i guess coding only export to weeks with max 7 days will take around one week. don't forget coder must also check interface/export on windows, linux. check memory corruption with valgrind. check import with outlook, kalender, ...
as i learnd while coding the last years, you can nearly always double the expected time, because of bugs that take sometimes a long time to solve.
i think there is enough time during my spring holiday to code it, but i know no teacher will use this feature at my school. i am sure max a few kids will use it. so this suggestion has no advantage to me or my school. there are more important (private) things to do.
Hi
I am interested by timetable import and export solutions from/to the ical format.
Corfiot have you worked on an export solution via xsl? Volker Dirr have you progressed in your project?
Up to my knowledge there is no timetable import solution, right ? In particular from ical. The idea is to work on pre-built calendar by locking then some activities with time and place constraints.
/Nicolas
i didn't start coding that yet. like i said: it has very low priority to me. i coded the printing directly stuff during spring holiday. i am still optimising that and i am still waiting for test results from others. but it look like only Boby Wise need and tested that feature.
importing data from ical is pretty useless. especialy because the students structure is not saved in the ical format. so you can't import an ical format (only if you know the students structure and enter that before you import the timetable.) also importing the periods (start and end time) is difficult, because periods are saved with a time stamp in the ical format.
also importing from this doesn't make much sence, because all constraints are not saved in that format. nobody will enter a timetable with a calender and use that as an import.
the only maybe idea is using this format to share datasets between different timetable software programms. but because of the above disadvantages it is stupid to do it that way, because the csv format is much better to do that.
exporting is much easier to code. maybe i code it someday. i think i need 2 weeks to code a good export. but i haven't holiday at the moment and i also want to code/optimise the import/export to our school administration software during next summer holiday.
so an export is still on my TODO, but at the end of the list.
the import is useless in my opinion.
Hi,
I am currently coding an ical export. So it should be possible to import timetable data into your calendar (outlook, google calendar, ...).
please check the attached file.
it contain a students and a teachers timetable. Please check BOTH, because i coded them different. One version might be false, the other vision should be right.
please check this at BOTH tables:
-The timetable should start 02.01.2012 and should end at 31.12.2013.
-The first lesson should start at 08:05. The last lesson should end at 13:20.
-If you have summer and winter time. Please check the time at a day with summer time and recheck at an other day with winter time.
Please let me know your results. Please also tell me your calender software. Report successful and failed tests.
Thank you.
The import worked fine for me, for both calendars.
-The timetable should start 02.01.2012 and should end at 31.12.2013. Yes, correct
-The first lesson should start at 08:05. The last lesson should end at 13:20. Yes, but only in the winter (see below)
-If you have summer and winter time. Please check the time at a day with summer time and recheck at an other day with winter time. Yes for the class timetable. No for the teacher timetable. The teacher timetable is 08:05-13:20 in winter but 09:05-14:20 in summer (UK daylight saving time, "British Summer Time" or BST).
See screenshot.
Thanks for working on this.
Thank you for that report.
It will take some more time until i will release this new feature. I am still optimising it and coding the interface.
Look like the ical stuff work fine now. If you are interested in a preview version, please read this message (even if it look like the topic doesn't fit) to get it:
http://lalescu.ro/liviu/fet/forum/index.php?topic=1317.msg7525#msg7525