Small application to send reminders to a Signal group chat using the Signal CLI
Yes this is going to be a terrible how to run
because I'm lazy rn.
- Push the Signal API docker image to ECR
- Create a PEM KeyPair in the EC2 console
- Either manually pull the image on your EC2 instance or uncomment and edit the 2 lines in the startup script under UserData in the CloudFormation template
- Go through the Getting Started section OR...
- ...start the Signal API
$ sudo docker run -d --name signal-api --restart=always -p 8080:8080 \ -v $HOME/.local/share/signal-cli:/home/.local/share/signal-cli \ -e 'MODE=native' bbernhard/signal-cli-rest-api
and register your phone number - Deploy the CloudFormation template in the CloudFormation console. This will provision an EC2 instance with the minimum set of required IAM permissions,
- SSH into your EC2 instance, e.g.
ssh -i "myPrivateKey.pem" [email protected]
- Run
crontab -e
and edit with0 1 * * * /home/ec2-user/reminder.sh 0 0 * * Fri [ $(expr $(date +%W) % 2) -eq 1 ] && /home/ec2-user/reminder.sh
- NOTE: default crontab behavior is Vim. If you don't like Vim you can also nano into it by setting
nano ~/.bash_profile
export VISUAL="nano"
source ~/.bash_profile
- .. and then running
crontab -e
should open it with nano
- NOTE: default crontab behavior is Vim. If you don't like Vim you can also nano into it by setting