psnotify
v1.0.0
Published
A utility package to send an SMS every time a Paperspace job finishes
Downloads
2
Readme
Paperspace SMS Notification
A small library that uses Twilio to send an SMS when a job finishes running in Paperspace.
Usage
- Install the package. You should also have the Paperpsace API installed.
npm install -g psnotify
Sign up for Twilio. You will need to get a number(cost = $1) and Token and Auth Keys for your account.
Config
psnotify
, run:
psnotify config
- 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
- 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