An open API service indexing awesome lists of open source software.

https://github.com/subashz/nepal-loadshedding-schedule

Dirty scripts for displaying Loadshedding Schedule
https://github.com/subashz/nepal-loadshedding-schedule

Last synced: 2 months ago
JSON representation

Dirty scripts for displaying Loadshedding Schedule

Awesome Lists containing this project

README

        

# Nepal LoadShedding Schedule[WIP]

This is a dirty script written in free time. This script just extract the schedule from the sites and prints the result in a desirable format. You can pipe the info to conky, dzen2, yabar or dunst.
Choose your own color for any table elements.

Fully tested on Arch Linux

[Note]There's a lot of cleanup needed in this script.

![loadshedding](https://cloud.githubusercontent.com/assets/12681896/16272923/474a1ab0-38bf-11e6-9729-c8f46f0d194d.png)

When used with the lemonbar and as conky:

![imgur-2016_06_23-16 02 09](https://cloud.githubusercontent.com/assets/12681896/16300200/65d81cee-395e-11e6-90cf-5e24d2ec7270.png)

Weekly view with current status indicated by color

![weekly view](https://cloud.githubusercontent.com/assets/12681896/16328929/7ca43dea-39fe-11e6-98d7-c34d01d53bec.png)

## How to install:

1. Clone the repo or download the zip

`git clone https://github.com/blacpythoz/Nepal-Loadshedding-Schedule.git`

OR

`wget https://codeload.github.com/blacpythoz/Nepal-Loadshedding-Schedule/zip/master`

2. Change the directory

`cd Nepal-Loadshedding-Schedule/`

3. Make the script executable

`chmod +x load`

4. Run the program first by update

`./load -u`

## Manual

usage: load [OPTIONS] [GROUP_NO]

Info:
-a [default] Show all schedule
-g [group [1-7]] Select the groups
-t [group no] Show the today schedule
-w [group no] Show the weekly schedule
-C [true/false] Toogle the color options
-G [Color codes] Sets the color of the side bar text
-d [Color codes] Sets the foreground color of day text
-D [Color codes] Sets the background color of days
-B [Color codes] Sets the background color of tables
-F [Color codes] Sets the foreground color of tables
-S [Color codes] Sets the Selected foreground color of tables
-U [true/false] Sets the underline in the tables data
-h [topics] Print this text and exit

[COLOR CODES]
natural = natural
black = 0 red = 1
green = 2 yellow = 3
blue = 4 magenta= 5
cyan = 6 white = 7

Examples:

`./load -t 4 `

![Daily views](https://cloud.githubusercontent.com/assets/12681896/16361115/a6053526-3ba3-11e6-8404-64b7ebb2a7e3.png)