Post
Topic
Board Announcements (Altcoins)
Re: [ANN][HZ] Horizon Long + Fair Distribution|Decentralized Asset Exchange
by
altsheets
on 05/05/2015, 00:26:21 UTC
I did it - again!
I identified a problem - and solved it. And now I am coming back to you, to ask for a (crowdfunded) reward  Wink

I have done this for you, hallmarked node owners.
And for us all, a technical solution for an often recurring communication.

... what about programming a little script that emails ... when the bounty address is empty again?
... anyone who wants to pledge some HZ for this cause? ... Then I'll program that for you, and the nodebountygiveraddress will never be empty again.
*lol*

Done:

programm output ("BAMM" = BalanceAlarmMailMailer.py  Grin ):

Code:
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 43.0071 HZ = is NOT enough. Alarming the guy ... successfully sent email. Time now: 2015-05-01 02:31:49 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 43.0071 HZ = is NOT enough. Alarming the guy ... successfully sent email. Time now: 2015-05-01 02:32:22 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 43.0071 HZ = is NOT enough. Alarming the guy ... successfully sent email. Time now: 2015-05-01 02:32:54 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 43.0071 HZ = is NOT enough. Alarming the guy ... successfully sent email. Time now: 2015-05-01 02:33:26 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 43.0071 HZ = is NOT enough. Alarming the guy ... successfully sent email. Time now: 2015-05-01 02:33:58 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 43.0071 HZ = is NOT enough. Alarming the guy ... successfully sent email. Time now: 2015-05-01 02:34:30 ... checking again in 0.01 hours.
Something failed, sorry. Ignoring it ... Time now: 2015-05-01 02:35:00 ... checking again in 0.01 hours.
Something failed, sorry. Ignoring it ... Time now: 2015-05-01 02:35:30 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 43.0071 HZ = is NOT enough. Alarming the guy ... successfully sent email. Time now: 2015-05-01 02:36:02 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 43.0071 HZ = is NOT enough. Alarming the guy ... successfully sent email. Time now: 2015-05-01 02:36:34 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 43.0071 HZ = is NOT enough. Alarming the guy ... successfully sent email. Time now: 2015-05-01 02:37:06 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 43.0071 HZ = is NOT enough. Alarming the guy ... successfully sent email. Time now: 2015-05-01 02:37:39 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 43.0071 HZ = is NOT enough. Alarming the guy ... successfully sent email. Time now: 2015-05-01 02:38:11 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 51.0071 HZ = GOOD. Balance is high enough at the moment. Time now: 2015-05-01 02:38:41 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 51.0071 HZ = GOOD. Balance is high enough at the moment. Time now: 2015-05-01 02:39:11 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 51.0071 HZ = GOOD. Balance is high enough at the moment. Time now: 2015-05-01 02:39:41 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 51.0071 HZ = GOOD. Balance is high enough at the moment. Time now: 2015-05-01 02:40:11 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 51.0071 HZ = GOOD. Balance is high enough at the moment. Time now: 2015-05-01 02:40:41 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 51.0071 HZ = GOOD. Balance is high enough at the moment. Time now: 2015-05-01 02:41:11 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 51.0071 HZ = GOOD. Balance is high enough at the moment. Time now: 2015-05-01 02:41:41 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 51.0071 HZ = GOOD. Balance is high enough at the moment. Time now: 2015-05-01 02:42:11 ... checking again in 0.01 hours.
Something failed, sorry. Ignoring it ... Time now: 2015-05-01 02:42:41 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 51.0071 HZ = GOOD. Balance is high enough at the moment. Time now: 2015-05-01 02:43:11 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 51.0071 HZ = GOOD. Balance is high enough at the moment. Time now: 2015-05-01 02:43:41 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 51.0071 HZ = GOOD. Balance is high enough at the moment. Time now: 2015-05-01 02:44:12 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 51.0071 HZ = GOOD. Balance is high enough at the moment. Time now: 2015-05-01 02:44:42 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 51.0071 HZ = GOOD. Balance is high enough at the moment. Time now: 2015-05-01 02:45:12 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 51.0071 HZ = GOOD. Balance is high enough at the moment. Time now: 2015-05-01 02:45:42 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 51.0071 HZ = GOOD. Balance is high enough at the moment. Time now: 2015-05-01 02:46:12 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 45.0071 HZ = is NOT enough. Alarming the guy ... successfully sent email. Time now: 2015-05-01 02:46:44 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 45.0071 HZ = is NOT enough. Alarming the guy ... successfully sent email. Time now: 2015-05-01 02:47:16 ... checking again in 0.01 hours.
BAMM: balance(NHZ-VJ23-6K9N-33Z2-4DHQV) = 45.0071 HZ = is NOT enough. Alarming the guy ... successfully sent email. Time now: 2015-05-01 02:47:48 ... checking again in 0.01 hours.

Explanations:

In the beginning, the balance was 43 HZ which was decided to be too low, because I set the BAMM threshold to 50 HZ.
Whenever that was detected, an email was sent (*).
Then suddenly, the internet connection went bad - which did not kill my script, because I caught the exception.
Then I have up'ped the balance to above 50 HZ with this transaction.
So now, at balance 51 HZ, there was no problem anymore - no email was sent. All cool ... For a while, until:
Eventually, I withdrew some 5 HZ in this transaction to fall below the threshold again.
At the end, that is why it keeps on sending emails. Three. Until I stopped it, manually  Wink.


(*) This is the email that was automatically sent 14 times in the above case, whenever the balance was too low:

Code:
Date: Thu, 30 Apr 2015 17:31:47 -0700 (PDT)
From: BAMM automailer <##hidden##@gmail.com>
To: ##NodeRewardGiverEmail##@gmail.com
Subject: The balance 43.0 HZ < 50.0 HZ threshold on address NHZ-VJ23-6K9N-33Z2-4DHQV
Code:

Attention, NodeRewardGiver:

The balance 43.0 HZ < 50.0 HZ threshold on address NHZ-VJ23-6K9N-33Z2-4DHQV

If you want me to change the threshold or frequency of this checking routine, answer to this email.


The script is running already, on my server:

I have configured the threshold to be 1,000,001 HZ.
Any balance below that will trigger an email every 8 hours.
The receiving email address is my own at the moment ...


... but I want to set it to a HZ team member address. PM me.

The output right now is:
Code:

BAMM: balance(NHZ-A9WQ-PC3J-B3SN-DHQSM) = 280620.11695920 HZ = is NOT enough. Alarming the guy ...successfully sent email. Time now: 2015-05-05 00:06:19 ... checking again later ...
BAMM: balance(NHZ-A9WQ-PC3J-B3SN-DHQSM) = 120920.36487088 HZ = is NOT enough. Alarming the guy ...successfully sent email. Time now: 2015-05-05 01:09:24 ... checking again later ...

BAMM: balance(NHZ-A9WQ-PC3J-B3SN-DHQSM) = 273.82726704 HZ = is NOT enough. Alarming the guy ...successfully sent email.Time now: 2015-05-05 03:32:23 ... checking again in 8.00 hours.
BAMM: balance(NHZ-A9WQ-PC3J-B3SN-DHQSM) = 273.82726704 HZ = is NOT enough. Alarming the guy ...successfully sent email.Time now: 2015-05-05 11:32:26 ... checking again in 8.00 hours.
BAMM: balance(NHZ-A9WQ-PC3J-B3SN-DHQSM) = 273.82726704 HZ = is NOT enough. Alarming the guy ...successfully sent email.Time now: 2015-05-05 19:32:28 ... checking again in 8.00 hours.
BAMM: balance(NHZ-A9WQ-PC3J-B3SN-DHQSM) = 14191380.31418673 HZ = GOOD. Balance is high enough at the moment.Time now: 2015-05-06 03:32:29 ... checking again in 8.00 hours.
BAMM: balance(NHZ-A9WQ-PC3J-B3SN-DHQSM) = 13356916.53585099 HZ = GOOD. Balance is high enough at the moment.Time now: 2015-05-06 11:32:29 ... checking again in 8.00 hours.

(which caused me to post this now, even though I had not perfected my script yet, but because --- it is almost empty! EDIT: Now it is empty... EDIT2: Now it is refilled.)


Good?

How many times did the bounty address run dry in the past?
How much communication, sadness, tragedy and despair was caused by that? ;-)
I have solved that, in the interest of everyone.

Please now everyone who is reading this (yes, you *lol*), please consider to send a small/large/mediocre amount of coins to my address
--> NHZ-Q675-SGBG-LQ43-D38L6 or BTC 1Ek9McNmXwQgDnkzE9J6pjCPWEiihhL83n (or buy my asset 8101260088962758269 AAssetHZ, or try my AltFolio software)

to say

Thx!

 Wink