Skip to content

helenplumlibrary/shoutbomb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helen Plum Library Shoutbomb Scripts

This bash script can be used to extract data from the Sierra ILS PostgreSQL database and transfer it to Shoutbomb for phone notifications.

The script handles holds, overdues, renewals, and patron notice preference (SMS text or voice call). The notice type is determined based on the value of the patron's PCODE1 field in Sierra, but text_patrons.sql and voice_patrons.sql could be modified to look at different fields.

Requirements

The script depends on psql to query PostgreSQL and lftp for FTPS transfers.

You will also need a Sierra account with SQL privileges.

Setup

  1. Create a .pgpass password file containing your Sierra database server information and credentials. Example: sierra-db.helenplum.org:1032:iii:shoutbomb:PASSWORD

  2. Create an lftp bookmark names ShoutbombFTP containing your FPT credentials ftp.shoutbomb.com: lftp -c "bookmark add ShoutbombFTP ftps://USERNAME:[email protected]"

  3. Schedule a cron job to run shoutbomb.sh at least once per day.

Releases

No releases published

Packages

No packages published

Languages