Code Monkey home page Code Monkey logo

patro's Introduction

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.

patro's People

Contributors

sumanchapai avatar paudsu01 avatar

Stargazers

Nischal Bhandari avatar  avatar  avatar

Watchers

 avatar

patro's Issues

UI update requests to Patro extension

image

It would be great if we had the "TODAY" button (or something of the sort) so that people that people could click on to get to today... and also making today's color to be something different would be nice… just copy ideas from hamropatro app...

it would be nice if the tihis were displayed with the numbers like in hamropatro

cli

Perhaps the interface of this CLI will be like fcal command available from
pip install fcal of course the difference being that this CLI will display
date along with with events and other information.

Discussion: JSON data

It would be nice if the JSON includes nepali date(BS), english date (AD), tithi, etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.