The-Three-Little-Pigs-Siri-Proxy icon indicating copy to clipboard operation
The-Three-Little-Pigs-Siri-Proxy copied to clipboard

Send number of keys available via email

Open hackersbox opened this issue 12 years ago • 7 comments

Can we add the number of keys available in the email sent whenever a key expires in the database?

hackersbox avatar Oct 02 '12 00:10 hackersbox

Nope, whats the point? The keys are going to expire every 24 hours anyway.

ic0nic avatar Oct 03 '12 18:10 ic0nic

the point is to let the administrator know instantly how many keys are left in the database instantly via email whenever one expires. makes monitoring easier.

hackersbox avatar Oct 03 '12 21:10 hackersbox

All I got is my iPad 3, and a friend with a 4S that uses siri like twice a week. I just have to remember to use siri on my iPad in the morning, and at night. Then any other times are a bonus. Of course my siri is only used by friends, or peoples phones I personally jailbroke, so the demand isn't that high. My Keys are set to regenerate every hour, so my iPad could make 24 keys in a day, if I use it every hour.

thpryrchn avatar Oct 09 '12 03:10 thpryrchn

I think you should run a script apart to do this because it is something that you are the only one to have ;) It will be very simple to make it in bash

am3yrus avatar Oct 11 '12 02:10 am3yrus

Thanks but I figured it out. No extra scripts required. I just modified sendemail() function within the functions.rb Now it sends an email with the available keys whenever one key expired. Made my life easier.

hackersbox avatar Oct 18 '12 23:10 hackersbox

What did you change in the sendmail() function?

l-j-silver avatar Oct 19 '12 05:10 l-j-silver

@hackersbox You should add a Pull request to that, and I will add it...

thpryrchn avatar Nov 21 '12 16:11 thpryrchn