Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.9 KB

README.md

File metadata and controls

59 lines (42 loc) · 1.9 KB

Patro

HamroPatro has too much ads. We scrape their website, save data (date and tihis) in JSON and build alternative simpler ad-free mobile app, website and CLI out of it.

API

Meta at: https://sumanchapai.github.io/patro/meta.json
Year data available by replacing the word meta in the meta api with the year. For example: https://sumanchapai.github.io/patro/2080.json

Chrome-extension

You can get the Patro chrome extension at the chrome web store here. The extension also supports various keyboard shortcuts for easier navigation which can be manually set/changed at chrome://extensions/shortcuts.

Patro Chrome-extension image

CLI

Install the CLI by running (with go >= 1.21 installed)

go install github.com/sumanchapai/patro/cli/patro@latest

Use the CLI as follows

# Display the current month calendar
patro

# Display the calendar for the previous, current, and next month
patro -3

# Display the calendar for a given year, example patro 2080
patro <year>

# Display the calendar of a specific month of a specific year, example patro 7 2080
# Note that it's not patro <year> <month> to follow the convention of the cal command
patro <month> <year>

If you also want the tithis displayed on the calendar, pass the "--tithi" flag or "-t" as shortcut. For example,

patro -t

displays the patro with tithis alongside date. Note that because an API request has to be made to get the tithi, the response is a bit slower when using the tithi flag.