https://dashtalk.org/threads/december-2015-budget-proposal.7210/page-3
Moocowmoo and dashwhale are welcome to use my code for their products!
You need to filter out the a few of the fields or you're going to get spammed to death.
Quick and dirty, change your mnbudget show to something like:
to only extract the unique names for comparison.
It only sends an email when the mnbudget show output is different than it was 1 hour before. So this would only happen if a proposal was added, removed, or changed. And then only the change is emailed - not the entire proposal list.
I suppose the formatting could be cleaned up a bit, but the data that gets emailed is mostly relevant. Looks like this.
< {
< "electrum-pt-2" : {
< "Name" : "electrum-pt-2",
< "URL" : "https://dashtalk.org/threads/october-2015-budget-proposal.6234/",
< "Hash" : "244bd3d4a71fa44d76d1299d6d9c45512cd9807f5a1387ca77f13025bf2a8dd6",
< "FeeHash" : "1c249a6c3b19f86b6b5f2b389da2f00b715e626c63bb3e200026683167cc187e",
< "BlockStart" : 348936,
< "BlockEnd" : 373860,
< "TotalPaymentCount" : 1,
< "RemainingPaymentCount" : 1,
< "PaymentAddress" : "XmxCEosWmtgDLS4BpAS8MnwYSEnsyMLbRF",
< "Ratio" : 0.99832776,
< "Yeas" : 1132,
< "Nays" : 2,
< "Abstains" : 0,
< "TotalPayment" : 308.65000000,
< "MonthlyPayment" : 308.65000000,
< "IsEstablished" : true,
< "IsValid" : true,
< "IsValidReason" : "",
< "fValid" : true
< },