Skip to content
/ batti Public
forked from foss-np/batti

We suffer a lot from it, don't we? So lets just try to make for load-shedding information.

License

Notifications You must be signed in to change notification settings

ccir105/batti

 
 

Repository files navigation

batti 🔗

load-shedding information.

screenshot

Creative Commons Attribution 3.0 Unported License

batti Copyright © 2013 to the batti Authors.


Setting up

batti depends upon 2utf8 to process non-unicode data, which is now included in git sub-module.

    $ git clone https://github.com/foss-np/batti
    $ cd batti
    $ git submodule init
    $ git submodule update

Tip: Add alias batti="/path/to/batti/main.sh" to your .bashrc so you can run $ batti -g [GROUP_NO]

HOW-TO USE

Usage: 	batti -g [1-7] [OPTIONS]
	-a | --all	Show All [default]
	-g | --group	Group number 1-7
	-t | --today	Show today's schedule [uses with group no]
	-w | --week	Show week's schedule
	-u | --update	Check for update [ignores extra options]
	-s | --sparrow	Check for update from loadshedding.sparrowsms.com
	-x | --xml	Dump to xml
	-h | --help	Display this message

Tip: Put alias nea="batti -g YourGroupNumber -t" in your .bashrc so that you can simply get todays schedule for your group by typing nea.


Plugin & Extension

To add plugin to conky-forever after installation run do the following.

	$ echo "_conky_forever=/path/to/conky-forever" >> path.config
	$ ./conky_plugin.sh [GROUP_NO]

The applet for unity is made by the samundra as Nepal-Loadshedding-Indicator

Conky🔗

This plugin makes use of conky only. You can enable this plugin via

	$./conky_independent.sh -g 7 -m 1

HOW-IT Works

  • Downloads schedule form nea
  • Extract schedule and put into ~/.cache/batti.sch
  • Processes your query

Similar works on github we found!

About

We suffer a lot from it, don't we? So lets just try to make for load-shedding information.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 99.2%
  • Makefile 0.8%