A tool for checking which businesses are now open.
Go to file
2019-01-05 15:34:14 -08:00
example_businesshours Added readme/license and better -p flag 2019-01-05 15:34:14 -08:00
LICENSE Added readme/license and better -p flag 2019-01-05 15:34:14 -08:00
nowopen Added readme/license and better -p flag 2019-01-05 15:34:14 -08:00
places.peg Added support for noon/midnight, fixed bug in 12:XX calculations. 2019-01-05 14:55:25 -08:00
README.md Added readme/license and better -p flag 2019-01-05 15:34:14 -08:00

nowopen

nowopen is a simple program to display which places are currently open.

Usage

First, create a file with business hours in it at either ~/.local/share/nowopen/businesshours (recommended) or ~/.businesshours. An example businesshours file is provided. The format looks like:

Mario Bros Plumbing (plumbers):
    7am-6:30pm
    sun: closed

Once you have a businesshours file, run nowopen [-p] [tag1 tag2...]. Establishments matching any of the specified tags (prefix matching is used) and the amount of time till they close will be displayed. E.g. nowopen plumber will show how long "Mario Bros Plumbing" is open. The "-p" flag can be used to print plain text to stdout instead of displaying in a temporary display with colors.