Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: srcHG on June 06, 2011, 08:04:16 AM



Title: Miner's Widget (Android Status Widget)
Post by: srcHG on June 06, 2011, 08:04:16 AM
Hi guys,

I just started mining and I thought that it would be nice to have the mining status available on-the-go. I wrote an Android widget to display the status. For now it's really simple:
It displays the reward, the current hashrate and how many workers are alive. Status is updated once an hour. Currently only deepbit is supported but if there is interest, I'll add support for other pools.

Screenshot:
http://img263.imageshack.us/img263/8112/deviceaa.th.png (http://imageshack.us/photo/my-images/263/deviceaa.png/)


At the moment the widget is not on the market yet but you can download the .apk here: http://dl.dropbox.com/u/2312179/MinersWidget.apk (install, chose "Miner's Widget" from the widget list)
The only permission it uses is internet for downloading the status.

Feedback is greatly appreciated.

Donations: 1PmEDafrYtnTDEGL8NXYrq4gR7f2u1gvw1


Title: Re: Miner's Widget (Android Status Widget)
Post by: bleedkira on June 06, 2011, 08:09:29 AM
Great idea, I'll test it out tomorrow :)


Title: Re: Miner's Widget (Android Status Widget)
Post by: kirby9058 on June 06, 2011, 08:11:29 AM
Works great on my Samsung Moment. Simple, but all I needed. Thanks for this!


Title: Re: Miner's Widget (Android Status Widget)
Post by: srcHG on June 06, 2011, 01:28:18 PM
New version:
- USD/Bitcoin exchange rate
- Manual refresh button
- New design


Title: Re: Miner's Widget (Android Status Widget)
Post by: BitMinerN8 on June 06, 2011, 01:51:38 PM
It would be great if you could add other pools as well. (BTC Guild, Slush's Pool, etc...)

I would donate for that.  :D


Title: Re: Miner's Widget (Android Status Widget)
Post by: CydeWeys on June 06, 2011, 01:58:21 PM
BTC Guild support would be neat.  Good job so far.

Oh, and would you mind releasing the source so I can get a glimpse of what a basic widget looks like?  I just got an Android phone recently and I'm thinking of starting development soon.


Title: Re: Miner's Widget (Android Status Widget)
Post by: wbros11 on June 06, 2011, 09:17:35 PM
It would be great if you could add other pools as well. (BTC Guild, Slush's Pool, etc...)

I would donate for that.  :D

I second this...support for BTC Guild would get my donation.

Also, another cool addition would be a notification (vibrate, android bar notification) if it appears something isn't working (miner down, pool down, etc).  I would assume you could just take share data at one state and then some time later (Per hour) take share data again and compare.  Just a thought that may be nice.


Title: Re: Miner's Widget (Android Status Widget)
Post by: bleedkira on June 07, 2011, 10:18:42 AM
I can't test it until you add BTCGuild ): I still love the idea, and once you get BTCGuild on there I'll have a small donation your way.


Title: Re: Miner's Widget (Android Status Widget)
Post by: doomy on June 07, 2011, 10:29:39 AM
For iOS, I found this JSON app called JSON explorer that works pretty well with pools (tested with slush amd Deepbit.net) -- this was not free.
https://i.imgur.com/rBQaU.png

Also saw a new Bitcoin app (of same name) with market data and future wallet support.


Title: Re: Miner's Widget (Android Status Widget)
Post by: srcHG on June 07, 2011, 04:05:52 PM
I added support for BTC Guild. The information displayed for BTC Guild right now is:
- confirmed reward
- total hashrate of all workers
- total shares of all workers

I'm already thinking about how I could make the information displayed customizable. What I thought about doing was to add an option for an API Key for each pool and then the user could chose an information to display in each one of the four spots. For example:
Spot 1: [BTC Guild] confirmed reward
Spot 2: [deepbit] - confirmed reward
Spot 3: Exchange rate
Spot 4: Difficulty
What do you think about that?

I would be very happy about feedback for the BTC Guild support since personally I'm using deepbit at the moment. I will publish the source code as soon as I cleaned it up.


Title: Re: Miner's Widget (Android Status Widget)
Post by: doomy on June 07, 2011, 04:23:45 PM
Is your app using JSON?


Title: Re: Miner's Widget (Android Status Widget)
Post by: srcHG on June 07, 2011, 04:28:22 PM
Yes, I am using the JSON APIs of the pools.


Title: Re: Miner's Widget (Android Status Widget)
Post by: fasti on June 07, 2011, 10:24:38 PM
Eligius personal info support would be great too.

http://eligius.st/~luke-jr/

Personal infos found mainly in "balances.json", which is further in. EU and US are seperate.

Eligius uses the bitcoin address as username, so can use that to pull data.


Title: Re: Miner's Widget (Android Status Widget)
Post by: srcHG on June 07, 2011, 10:48:11 PM
Eligius personal info support would be great too.

http://eligius.st/~luke-jr/

Personal infos found mainly in "balances.json", which is further in. EU and US are seperate.

Eligius uses the bitcoin address as username, so can use that to pull data.


Thank you for your suggestion. Right now I'm working on the slot system. I will look into it afterwards :)


Title: Re: Miner's Widget (Android Status Widget)
Post by: bleedkira on June 07, 2011, 11:03:34 PM
Lovin it :) Thanks


Title: Re: Miner's Widget (Android Status Widget)
Post by: srcHG on June 08, 2011, 11:22:19 AM
New version:
- slots titles and slot data can be freely chosen
- exchange rate in EUR

Settings:
http://img703.imageshack.us/img703/615/settingsd.th.png (http://imageshack.us/photo/my-images/703/settingsd.png/)

Resulting Widget:
http://img534.imageshack.us/img534/2986/devicey.th.png (http://imageshack.us/photo/my-images/534/devicey.png/)

With the current program design it will be pretty easy to add new data. So tell me which data you want to be able to display.


Title: Re: Miner's Widget (Android Status Widget)
Post by: Sykotic on June 08, 2011, 11:41:26 AM
Crashes for me.


Andriod 2.2.


Installs and loads fine, but the moment I select [db]hash rate as a data slot it crashes with "process org.bitcoin.minerswidget has stopped."

Won't load again until I clear all data from the widget and reboot.


Title: Re: Miner's Widget (Android Status Widget)
Post by: gogusrl on June 08, 2011, 11:42:13 AM
slush's pool ( mining.bitcoin.cz/ ) support would be great.


Title: Re: Miner's Widget (Android Status Widget)
Post by: srcHG on June 08, 2011, 12:11:01 PM
Crashes for me.


Andriod 2.2.


Installs and loads fine, but the moment I select [db]hash rate as a data slot it crashes with "process org.bitcoin.minerswidget has stopped."

Won't load again until I clear all data from the widget and reboot.

Have you entered your deepbit API token? It only crashed for me when the API token was not entered. Anyway, there is a new version online which should not crash anymore.


Title: Re: Miner's Widget (Android Status Widget)
Post by: Reckman on June 08, 2011, 02:01:10 PM
Hey awesome work man, works great on druid 2 global, would love a 2x2 setting, doesn't display well on landscape homepage


Title: Re: Miner's Widget (Android Status Widget)
Post by: srcHG on June 08, 2011, 06:28:39 PM
No new features but the widget is now available on the market: https://market.android.com/details?id=org.bitcoin.minerswidget&feature=search_result
This should make updating/installing the widget easier.


Title: Re: Miner's Widget (Android Status Widget)
Post by: vx609e on June 09, 2011, 02:05:05 AM
I love it! Where does the USD rate come from? It does not seem to match mt. gox...

Thanks!


Title: Re: Miner's Widget (Android Status Widget)
Post by: Sykotic on June 09, 2011, 02:10:00 AM
Crashes for me.


Andriod 2.2.


Installs and loads fine, but the moment I select [db]hash rate as a data slot it crashes with "process org.bitcoin.minerswidget has stopped."

Won't load again until I clear all data from the widget and reboot.

Have you entered your deepbit API token? It only crashed for me when the API token was not entered. Anyway, there is a new version online which should not crash anymore.

Yeah i was, but ill try the new verison :)

Just to confirm, on the btcguild support. Are you using www.btcguild.com for the api calls? The operator changed the system to round robin DNS so if it's using btcguild.com (without the www host) it will fail alot of the time.


Title: Re: Miner's Widget (Android Status Widget)
Post by: srcHG on June 09, 2011, 07:32:10 AM
I love it! Where does the USD rate come from? It does not seem to match mt. gox...

Thanks!

It comes from bitcoincharts.com, but I can add support for the Mt. Gox exchange rate, that's no problem.

Crashes for me.


Andriod 2.2.


Installs and loads fine, but the moment I select [db]hash rate as a data slot it crashes with "process org.bitcoin.minerswidget has stopped."

Won't load again until I clear all data from the widget and reboot.

Have you entered your deepbit API token? It only crashed for me when the API token was not entered. Anyway, there is a new version online which should not crash anymore.

Yeah i was, but ill try the new verison :)

Just to confirm, on the btcguild support. Are you using www.btcguild.com for the api calls? The operator changed the system to round robin DNS so if it's using btcguild.com (without the www host) it will fail alot of the time.
I just confirmed that the code actually uses www.btcguild.com and I'm using it without problems but thanks for the hint :)

Just pushed a small update to the market because the refresh button did not work properly in the version before. I will be at a festival until Sunday, so I won't be able to add all the additional data sources right now but I'll do it as soon as possible,


Title: Re: Miner's Widget (Android Status Widget)
Post by: trumpetx on June 09, 2011, 12:54:05 PM
Cool widget.  I was going to make something similar for my android app, but I got caught up in adding other stuff first.


Title: Re: Miner's Widget (Android Status Widget)
Post by: datguywhowanders on June 09, 2011, 03:38:09 PM
Nice work! Can we please get support for Slush's pool?

Works on Motorola Xoom with 3.1
Would be nice to have the resizing enabled for Honeycomb users.


Title: Re: Miner's Widget (Android Status Widget)
Post by: vx609e on June 09, 2011, 06:44:37 PM
Quote
It comes from bitcoincharts.com, but I can add support for the Mt. Gox exchange rate, that's no problem

I see...it's the 24h average, nice. Support for real time price + historical graph would make this an even more killer app.

Where's your bitcoin address for donations? Just re-read your initial post...may I suggest you put it in your signature.


Title: Re: Miner's Widget (Android Status Widget)
Post by: abinning on June 13, 2011, 05:01:36 AM
Please add an option for a two cell widget. You can lower the precision down to make it fit.


Title: Re: Miner's Widget (Android Status Widget)
Post by: Graet on June 25, 2011, 02:16:19 PM
very nice srcHG
been trying to find an email adress for you to ask if https://www.ozco.in could be added :)
email graet(at)ozco.in :)


Title: Re: Miner's Widget (Android Status Widget)
Post by: kripz on June 26, 2011, 10:57:48 AM
Can you just integrate it for this site? http://www.btc-poolwatch.com/