../cicada
Simple alert web service, including optionally doing text to voice
Clone with
git clone git://git.awl.red/neallred/cicada

Cicada📎

Simple service for storing, responding to, and voicing alerts

Run locally📎

CICADA_CONN="$HOME/cicada.db?_pragma=busy_timeout(5000)&_pragma=foreign_keys(1)&_pragma=journal_mode(WAL)" CICADA_KEYS="admin_devasdf" CICADA_ADDRPORT='0.0.0.0:8080' CICADA_SPEAKER='espeak -g 15 -p 30' go run main.go

Config📎

Examples📎

CICADA_SPEAKER_TIMEZONE='America/Chicago' # spoken alerts will use a shorter, more easily understood format with no timezone
CICADA_ADDRPORT="0.0.0.0:8080" # listen on this host, on port 8080
CICADA_SKIP_VOICING=true # do not do voicing (e.g. possibly for local dev, or if you are using this as a store of alerts but separate software will read and do the alert)

Finding audio devices📎

if default espeak can not find the sound card but have alsa installed, you can try aplay -L to find them, and then pass config of

CICADA_SPEAKER='espeak -g 15 -p 30 --stdout'
CICADA_SPEAKER_PIPE='aplay -D <name of device>'
# e.g. CICADA_SPEAKER_PIPE=aplay -D sysdefault:CARD=Device'
LICENSE 21 weeks ago
README.md 19 weeks ago
config
config.go 5 days ago
db
db.go 19 weeks ago
favicon.ico 21 weeks ago
go.mod 5 days ago
go.sum 5 days ago
h
h.go 19 weeks ago
style.go 21 weeks ago
main.go 5 days ago
speak
speak.go 19 weeks ago