Sending various information to your ntfy.sh topic by time
deno compile --allow-net main.ts
./ntfyer --topic test-topic-AAAAAAA
deno run --allow-net main.ts --topic test-topic-AAAAAAA
USAGE:
deno run --allow-net main.ts --topic <text>
DESCRIPTION:
Sending various information to your ntfy.sh topic by time
OPTIONS:
--help, -?
Show help
--logging <text> [default: ]
Enable logging to directory
--topic <text> [default: ntfyer-default-topic]
ntfy.sh topic
Modules are configured in the ./src/config.ts
file.
In it, you can configure the default modules, as well as add new ones.
The cron format is used to set the time to be executed a module.
* * * * * *
| | | | | |
| | | | | +-- Year (range: 1900-3000)
| | | | +---- Day of the Week (range: 1-7, 1 standing for Monday)
| | | +------ Month of the Year (range: 1-12)
| | +-------- Day of the Month (range: 1-31)
| +---------- Hour (range: 0-23)
+------------ Minute (range: 0-59)
Examples:
45 17 7 6 * * -- Every year, on June 7th at 17:45
* * * 1,2,3 * * -- Each minute in January, February or March
* * * * * -- At every minute
0 8 * * * -- At 08:00
0 */3 * * * -- At minute 0 past every 3rd hour
- BashOrg - Getting quotes from the site bash.org
- IBashOrgRu - Getting quotes from the site ibash.org.ru
- HackerNews - Getting new posts from the site news.ycombinator.com
- Lobsters - Getting new posts from the site lobste.rs
- Reddit - Getting new posts by subreddit from the site reddit.com