Thank you, that's what I wanted. I'm going to make some tweaking.
I apologize for the late reply. I travel a lot these days so I don't have much time left.
no problem
It's a really basic framework... There are many things you could do... Like for example, import "net/smtp", add the following function and invoke it after line "if responseObject.Fastfee < triggerfee {"
from := "--your mail--"
password := "--your password--"
to := []string{
"--your mail--",
}
smtpHost := "--an smpt server--"
smtpPort := "--an smpt port--"
message := []byte("Fee currently low")
auth := smtp.PlainAuth("", from, password, smtpHost)
err := smtp.SendMail(smtpHost+":"+smtpPort, auth, from, to, message)
if err != nil {
fmt.Println(err)
return
}
}
or, you could download irfanview portable and make an image with a big red text "fee currently low" and just replace L41-42 with
arg := "c:\\alertimage.jpg"
or, you can have a look at https://github.com/faiface/beep
I picked go because it's so easy to create binaries and crosscompile... But a python, perl or php version should also only take 10 minutes to create in case you want a different language