Anyone have any ideas for a short python program they would like to have made for them?
𝚝𝚛𝚔 @ trk @aussie.zone Posts 64Comments 521Joined 2 yr. ago

𝚝𝚛𝚔 @ trk @aussie.zone
Posts
64
Comments
521
Joined
2 yr. ago
Optus reveals 10 times more people affected by triple-0 failures than previously known
Cane toads are slowly marching across Australia. What's the most humane way to kill them?
Isn't it meant to be El Niño? Here's why it hasn't been the hot, dry summer we expected
12 Australians among 379 safe in 'miracle' escape from burning aircraft at Tokyo airport, five die in small aircraft
Home ownership 'even more out of reach' for many with home prices surging in 2023
Queensland woman uses electric car to run her son’s dialysis machine during power cut
Seven dead, including 9yo girl as Christmas and Boxing Day storms lash Australia's east coast
Millions of dollars lost in ATO myGov scams that 'rattle confidence' in the tax system
Heres an idea... I made it in PHP and bash, cause I'm terrible at programming. But it works well and would be a neat school project I reckon.
Our VOIP provider provides webhooks. I have one setup so when someone rings, the webhook calls a script on my web server that looks up a phone book and then uses a Discord webhook to push what is essentially a more advanced caller ID to a private discord channel - their number, their name, company they represent, and some notes like "has a son Chris who plays football, married to Jill" or whatever.
The "phonebook" lookup first tries a remote shared phonebook (which is given in a Yealink format), and after parsing that data it saves a copy of that remote phonebook before moving on to the rest of the script. If it cant call the remote phonebook for whatever reason, it falls back on using the last saved copy locally.
The benefit of all this is that on my desktop I always know who's calling and a bit of a blurb about them before I pick up the phone, and if I'm out of the office I know who's trying to ring. Since I have VOIP on my phone as an extension I can technically have someone transfer the office to my mobile too so having the discord notification is handy when a transfer appears.
The members of the private discord channel determines who sees the notifications, and having a single phonebook to update for everyone in the office means it's always (... usually) kept up to date.