I switched out of Slush's pool for a number of reasons. The API wasn't at a level I wanted it to be, I don't like the forced fee, etc etc...
So I made a Rainmeter addon for monitoring my mining.
Here's a picture.
https://i.imgur.com/xD93o.jpgThe bar meters are my current Hash Rates as reported by BTCGuild so I can see if there is a problem with 1 of my cards at a glance.
There's only one problem. I have it hard coded for 3 workers, as that is what I have at this exact moment. If I want to add more, I need to physically add them. If I take one away, the regexp just craps itself and returns invalid results.
Any rainmeter/regexp experts out there want to help?
Here's the source
http://pastebin.com/ZtbXWvd6Here's the regular expression:
RegExp="(?siU)confirmed_rewards":(.*),".*unconfirmed_rewards":(.*),".*estimated_rewards":(.*),".*payouts":(.*)},".*tito13kfm_(.*)",".*hash_rate":(.*),".*round_stales":(.*),".*"total_stales":(.*),".*tito13kfm_(.*)",".*hash_rate":(.*),".*round_stales":(.*),".*"total_stales":(.*),".*tito13kfm_(.*)",".*hash_rate":(.*),".*round_stales":(.*),".*"total_stales":(.*),"
I just found the closest text surrounding the data I wanted and used
to store what is between them. My problem comes with if I add another worker, then I need to add on to it, and then it changes the stringindex locations. My calculations are missing a worker. I need to set up a new graph, etc, etc etc.
As you can tell by my beautiful code, I am an extremely talented coder (LOL)... Anybody have any advice, or inspiration in how I could get this to work with scalability?
Or if anybody wants to take this admittedly horrible code, clean it up, then ask for donations from people, be my guest. Just let me be the first to buy