Customizing Grandline

Tutorial: Getting Started

Your Row on the Homepage

You can customize how your row appears on the Homepage. All you have to do is edit your ~/index.conf. Each of the options are explained in detail below, as well as in the file itself. Lines in the file beginning with the # character are ignored (i.e. they are "commented out"). Note that the Homepage is updated every minute at :00 seconds, so your changes may not be visible immediately. You do have to click the refresh button for your changes to show.

bgcolor

The background color of your row, accepts X11 Color Names or Hex values.

fontcolor

The font color of your row, accepts X11 Color Names or Hex values.

nickname

The name displayed in the second column.

lasteditfile

If you are using your website as a redirect to another site, or if you simply would like to choose what link appears in the "Last Edit" column, you can use this option to specify the path to a file containing this information. Example contents of a "lasteditfile" are shown below. Most users should leave this option commented out. Note that the date and time must be in exactly that format, which is used by my "prettytime.py" module.

2014/10/20 - 00:00:00
google.com

schedpage

The url of your schedule. The default is ~/public_html/sched.html. Most users should probably leave this commented out, unless you want to insert it somewhere using jQuery or similar application.

Example index.conf

This is taken straight from my own configuration file at /home/laptopdude/index.conf. You can view the results on the ~grandline homepage.

bgcolor deeppink
fontcolor white
nickname Josh Haas
#lasteditfile /home/laptopdude/lastedit.txt
schedpage /home/laptopdude/pgs/sched.html

Creating and Viewing Schedules

I've implemented a bunch of Python scripts to read schedules from files in your home directory and create ASCII and HTML versions. Rowan students can save their "Concise Student Schedule" page as rowan.html and transfer it to ~grandline as ~/rowan.html. You can add your own events by editing your ~/sched.conf file. For details visit the Schedule Help page.

  1. If you're a Rowan student, save your "Concise Student Schedule" as ~/rowan.html
  2. Add custom events to your ~/sched.conf
  3. Edit the options at the bottom of your ~/sched.conf
  4. Enter the command sched and press enter
  5. Your schedule is now viewable in ~/sched-ascii.txt or with sched username
  6. It is also present as ~/public_html/sched.html
  7. You can view it online at grandline.jahschwa.com/~username/sched.html

Conclusion

With a spiffy new row on the Homepage, I think it's time to make your very first webpage. Head over to My First Webpage to get started.