1.0.0 • Published 6 years ago

psnotify v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Paperspace SMS Notification

A small library that uses Twilio to send an SMS when a job finishes running in Paperspace.

Usage

1) Install the package. You should also have the Paperpsace API installed.

npm install -g psnotify

2) Sign up for Twilio. You will need to get a number(cost = $1) and Token and Auth Keys for your account.

3) Config psnotify, run:

psnotify config

4) Run a Paperspace Job and enable psnotify

paperspace jobs create --container Test-Container --machineType C2 --command 'ls' --project 'Traininig takes time'

Once your job is running you will get a jobId, use that as the argument to enable the notification.

psnotify YOUR_JOB_ID

5) Get an SMS when your job is ready!

If you have not set up your Paperspace account, psnotify will prompt you to do so. You can also set up Twilio credentials like this:

psnotify twilio --accountSid XXX --authToken YYY --toNumber +123456789 --fromNumber +123456789

License

MIT