HorariGlobal

Description

Degut a incoherències amb el DOM de les pàgines dels horaris l'script no funcionarà aquesta setmana.

Horari Global is a tool for students of the Universitat Pompeu Fabra that makes day to day life a bit easier.

The timetable is inserted on the right hand side of the CampusGlobal page, it's a single unobtrusive column.

CampusGlobal with the timetable on the right hand sideDetail view of the CampusGlobal with Horari Global on the right hand side

CampusGlobal with the timetable on the right hand side

Horari Global is a Greasemonkey script that inserts the current day's timetable into the CampusGlobal page. If the classes for the day have finished it shows the next day's classes.

Detail view of the CampusGlobal with Horari Global on the right hand side

Detail view of the CampusGlobal with Horari Global on the right hand side

Installation

The requirements for using Horari Global are FireFox 3.5 with the Greasemonkey Add-on. To continue, make sure you have them both installed.

To install Horari Global click on the link below. When the Greasemonkey alert window pops up accept the installation of the script.

Configuration

To receive the daily timetable, Horari Global needs the URL of the full timetable. To get the URL go to the full timetable and simply copy the address from the address bar. For the first term of 2nd year Computer Science students the URL is the following:

http://upf.edu/esup/docencia/horaris/graus10_11/grau-eng_informatica/primer_trimestre/segon/primer_trimestre_g2.html

Once you have copied it, sign on to CampusGlobal. A box will pop up asking for the URL: paste it here and accept the dialog box.

Introduïu aquí l'adreça de l'horari complet

Paste the full-timetable URL here

Another dialog box will pop up, asking whether your classes are in the morning or in the evening.

Type 0 (zero) if its mornings, and 1 if its evening.

After accepting this dialog box the CampusGlobal should load, with the Horari Global on the right hand side.

Change timetable URL

If you need to change the URL for the timetable you can delete the saved preferences, forcing Horari Global to ask for the URL again.

To delete the saved preferences, open a new tab and type "about:config" in the address bar. Accept the warning and in the search box type "HG_preferencies" (without the quotes). Right click on the result and select "Reset".

Resetejeu aquesta preferència i HorariGlobal us demanarà la URL per a l'horari el proper cop que entreu al CampusGlobal

Resetejeu aquesta preferència i HorariGlobal us demanarà la URL per a l'horari el proper cop que entreu al CampusGlobal

Next time you log in to CampusGlobal you will be asked for the timetable URL and whether you have morning or evening classes.

Acknowledgements

To Xavier Roselló for a good solution to calculating the current week number relative to the timetable week numbers.

To the Enginyeria d'Interacció (Interaction Engineering) subject for giving me the idea to make this script.

Changelog

Revision: 748

  • L'script ara demana quina franja d'horari té l'usuari.
  • A partir de la franja d'horari s'ensenya l'horari del dia actual si encara no han acabat les classes, i l'horari del dia següent si ja han acabat les classes.

Revision: 747

  • S'han creat preferències locals per guardar informació, com la URL de l'horari.

Revision: 746

  • La setmana actual es calcula automàticament a partir de la data del primer dia del curs.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>