|
| 1 | +# batti [:link:][web] |
| 2 | + |
| 3 | +load-shedding information. |
| 4 | + |
| 5 | +![screenshot][screenshot] |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | +batti Copyright © 2013 to the batti Authors. |
| 10 | + |
| 11 | +___ |
| 12 | + |
| 13 | + |
| 14 | +#### Setting up |
| 15 | + |
| 16 | +##### Dependencies |
| 17 | + |
| 18 | +- `poppler-utils` for pdftotext |
| 19 | +- [2utf8][2utf8] included in git [sub-module][submodule]. |
| 20 | +- `sed`, don't the BSD-sed (OS X install GNU sed) |
| 21 | +- `wget` |
| 22 | + |
| 23 | +`configure` will check the dependencies |
| 24 | + |
| 25 | +##### Install |
| 26 | + |
| 27 | +```bash |
| 28 | + $ git clone --recursive https://github.com/fosspulchowk/batti |
| 29 | + $ cd batti |
| 30 | + $ ./configure |
| 31 | + $ sudo make install |
| 32 | +``` |
| 33 | + |
| 34 | +**Tip**: see make recipies |
| 35 | + |
| 36 | + |
| 37 | +#### HOW-TO USE |
| 38 | + |
| 39 | +```bash |
| 40 | +$ batti -h |
| 41 | +Usage: batti [OPTIONS] [GROUP_NO] |
| 42 | + -a | --all Show All [force] |
| 43 | + -g | --group Group number 1-7 |
| 44 | + -t | --today Show today's schedule [uses with group no] |
| 45 | + -w | --week Show week's schedule |
| 46 | + -u | --update Check for update [ignores extra options] |
| 47 | + -x | --xml Dump to xml |
| 48 | + -c | --credits Display the Credits |
| 49 | + -h | --help Display this message |
| 50 | +``` |
| 51 | +___ |
| 52 | + |
| 53 | +#### Plugin & Extension |
| 54 | + |
| 55 | +##### **[charge-khattam][khattam]**: |
| 56 | + |
| 57 | +Python tkinter GUI wrapper. |
| 58 | + |
| 59 | +##### **[Unity Indicator][unity]** |
| 60 | + |
| 61 | +The applet for unity is made by the [samundra][samundra] as |
| 62 | +[Nepal-Loadshedding-Indicator][unity] |
| 63 | + |
| 64 | +##### **[conky-forever][conky-forever]**: |
| 65 | + |
| 66 | +To add plugin to [conky-forever][conky-forever] after installation run |
| 67 | +do the following. |
| 68 | + |
| 69 | +```bash |
| 70 | + $ echo "_conky_forever=/path/to/conky-forever" >> path.config |
| 71 | + $ ./conky_plugin.sh [GROUP_NO] |
| 72 | +``` |
| 73 | + |
| 74 | +##### [conky][conky] |
| 75 | + |
| 76 | +This plugin makes use of [conky][conky] only. You can enable this |
| 77 | +plugin via |
| 78 | + |
| 79 | +```bash |
| 80 | + $./conky_independent.sh -g 7 -m 1 |
| 81 | +``` |
| 82 | + |
| 83 | +___ |
| 84 | + |
| 85 | +#### HOW-IT Works |
| 86 | + |
| 87 | +* Downloads schedule form [nea][nea] |
| 88 | +* Extract schedule and put into `~/.cache/batti.sch` |
| 89 | +* Processes your query |
| 90 | + |
| 91 | +#### Similar works on github we found! |
| 92 | + |
| 93 | +* [nls](https://github.com/xtranophilist/nls) |
| 94 | +* [losh](https://github.com/hardfire/losh) |
| 95 | +* [nepalloadshedding](https://github.com/leosabbir/nepalloadshedding) |
| 96 | + |
| 97 | +[nea]: http://www.nea.org.np/loadshedding.html |
| 98 | +[2utf8]: https://github.com/foss-np/2utf8 |
| 99 | +[conky-forever]: https://github.com/rhoit/conky-forever |
| 100 | +[submodule]: http://git-scm.com/book/en/Git-Tools-Submodules |
| 101 | +[web]: http://foss-np.github.io/batti/ |
| 102 | +[screenshot]: https://raw.github.com/foss-np/batti/gh-pages/images/screenshot.png |
| 103 | +[unity]: https://github.com/samundra/Nepal-Loadshedding-Indicater |
| 104 | +[samundra]: https://github.com/samundra/ |
| 105 | +[conky]: http://conky.sourceforge.net/ |
| 106 | +[khattam]: https://github.com/haude/charge-khattam |
0 commit comments