Skip to content

Sending various information to your ntfy.sh topic by time

License

Notifications You must be signed in to change notification settings

KikyTokamuro/ntfyer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ntfyer

Sending various information to your ntfy.sh topic by time

Dependencies that are used

Build binary

deno compile --allow-net main.ts

Run compiled binary

./ntfyer --topic test-topic-AAAAAAA

Run without compile

deno run --allow-net main.ts --topic test-topic-AAAAAAA

Help

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

Setting modules

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

Default modules

About

Sending various information to your ntfy.sh topic by time

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published