Bitcoin Forum
March 28, 2024, 06:29:07 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Miner's Widget (Android Status Widget)  (Read 8229 times)
srcHG (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
June 06, 2011, 08:04:16 AM
Last edit: June 06, 2011, 01:27:20 PM by srcHG
 #1

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


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
1711650547
Hero Member
*
Offline Offline

Posts: 1711650547

View Profile Personal Message (Offline)

Ignore
1711650547
Reply with quote  #2

1711650547
Report to moderator
1711650547
Hero Member
*
Offline Offline

Posts: 1711650547

View Profile Personal Message (Offline)

Ignore
1711650547
Reply with quote  #2

1711650547
Report to moderator
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
bleedkira
Member
**
Offline Offline

Activity: 83
Merit: 10



View Profile
June 06, 2011, 08:09:29 AM
 #2

Great idea, I'll test it out tomorrow Smiley
kirby9058
Newbie
*
Offline Offline

Activity: 50
Merit: 0


View Profile
June 06, 2011, 08:11:29 AM
 #3

Works great on my Samsung Moment. Simple, but all I needed. Thanks for this!
srcHG (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
June 06, 2011, 01:28:18 PM
 #4

New version:
- USD/Bitcoin exchange rate
- Manual refresh button
- New design
BitMinerN8
Hero Member
*****
Offline Offline

Activity: 626
Merit: 500


Mining since May 2011.


View Profile
June 06, 2011, 01:51:38 PM
 #5

It would be great if you could add other pools as well. (BTC Guild, Slush's Pool, etc...)

I would donate for that.  Cheesy
CydeWeys
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
June 06, 2011, 01:58:21 PM
 #6

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.
wbros11
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
June 06, 2011, 09:17:35 PM
 #7

It would be great if you could add other pools as well. (BTC Guild, Slush's Pool, etc...)

I would donate for that.  Cheesy

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.
bleedkira
Member
**
Offline Offline

Activity: 83
Merit: 10



View Profile
June 07, 2011, 10:18:42 AM
 #8

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.
doomy
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile
June 07, 2011, 10:29:39 AM
 #9

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.
srcHG (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
June 07, 2011, 04:05:52 PM
 #10

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.
doomy
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile
June 07, 2011, 04:23:45 PM
 #11

Is your app using JSON?
srcHG (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
June 07, 2011, 04:28:22 PM
 #12

Yes, I am using the JSON APIs of the pools.
fasti
Member
**
Offline Offline

Activity: 92
Merit: 10


View Profile
June 07, 2011, 10:24:38 PM
 #13

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.

1QCcAR3e3wdxr7CcJ8ND1NmWuvLttCJScH
srcHG (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
June 07, 2011, 10:48:11 PM
 #14

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 Smiley
bleedkira
Member
**
Offline Offline

Activity: 83
Merit: 10



View Profile
June 07, 2011, 11:03:34 PM
 #15

Lovin it Smiley Thanks
srcHG (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
June 08, 2011, 11:22:19 AM
 #16

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

Resulting Widget:
http://img534.imageshack.us/img534/2986/devicey.th.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.
Sykotic
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
June 08, 2011, 11:41:26 AM
 #17

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.
gogusrl
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
June 08, 2011, 11:42:13 AM
 #18

slush's pool ( mining.bitcoin.cz/ ) support would be great.
srcHG (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
June 08, 2011, 12:11:01 PM
 #19

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.
Reckman
Hero Member
*****
Offline Offline

Activity: 711
Merit: 500


View Profile
June 08, 2011, 02:01:10 PM
 #20

Hey awesome work man, works great on druid 2 global, would love a 2x2 setting, doesn't display well on landscape homepage
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!