2017 © Pedro Peláez
 

library stundenplan

ZHAW course schedule for the command line

image

aebersold/stundenplan

ZHAW course schedule for the command line

  • Monday, December 8, 2014
  • by aebersold
  • Repository
  • 1 Watchers
  • 1 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

stundenplan

stundenplan is a command line client for the ZHAW course schedule. It makes use of the ZHAW CampusInfo API (v. 1.5) by Andreas Ahlenstorf. You need a valid ZHAW-username., (*1)

$ stundenplan aebersim

Today's timetable for aebersim
+-------+-------+-----------+--------+
| Start | End   | Course    | Room   |
+-------+-------+-----------+--------+
| 08:00 | 09:35 | t.PHIT-V  | TP 408 |
| 10:00 | 11:35 | t.PHIT-P  | TP 212 |
| 10:00 | 11:35 | t.CTIT1-P | TE 507 |
| 12:50 | 14:45 | t.PHIT-P  | TP 212 |
| 12:50 | 14:45 | t.SWEN1-P | TH 553 |
+-------+-------+-----------+--------+

Installation

You can install stundenplan with the composer dependency manager. This is very straightforward, if you have composer installed it's enough to type composer global require 'aebersold/stundenplan:1.*'. Here ist the step-for-step guide:, (*2)

  • Install Composer globally., (*3)

  • Make sure Composer's global executable directory is in your system's PATH:, (*4)

    for FILE in $HOME/.bashrc $HOME/.bash_profile $HOME/.bash_login $HOME/.profile; \
    do if [ -f $FILE ]; then \
    printf '\nexport PATH="$HOME/.composer/vendor/bin:$PATH"' >> $FILE && . $FILE; \
    break; fi; done
  • Install the latest stable version of the CLI:, (*5)

    composer global require 'aebersold/stundenplan:1.*'

Usage

You can run the stundenplan in your shell by typing stundenplan., (*6)

    stundenplan username

Optionally, you can specify a date., (*7)

    stundenplan username 2014-11-11

PROTIP: alias stundenplan to something like alias today='stundenplan username'., (*8)

Commands

stundenplan: ZHAW course schedule for the command line.

Useage:
  stundenplan username [date]

  username:  zhaw username
  date:      date in format YYYY-MM-DD | tomorrow

Requirements

  • PHP >= 5.3.0 with curl enabled

License

Copyright (C) 2014 Simon Aebersold @saebersold, (*9)

stundenplan is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version., (*10)

stundenplan is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details., (*11)

The Versions

08/12 2014

dev-master

9999999-dev http://github.com/aebersold/stundenplan

ZHAW course schedule for the command line

  Sources   Download

GPLv3

by Simon Aebersold

zhaw

08/11 2014

1.0.1

1.0.1.0 http://github.com/aebersold/stundenplan

ZHAW course schedule for the command line

  Sources   Download

GPLv3

by Simon Aebersold

zhaw

08/11 2014

1.0

1.0.0.0 http://github.com/aebersold/stundenplan

ZHAW course schedule for the command line

  Sources   Download

GPLv3

by Simon Aebersold

zhaw