Git Product home page Git Product logo

give-me-coinsmonitoringapp's People

Contributors

justinmuller avatar letme avatar mrpet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

give-me-coinsmonitoringapp's Issues

QR Code scanning

Hi

After installing give-me-coins i have also install Google authenticator. When trying to use QR scan feature in Google authenticator it crashed, calling give-me-coins activity. Is it possible to have different activity name for QR scanning in g-m-c, so it doesn't interfere with other applications that need QR code scanning?

Tomaz

negative "Pool shares this round" value for VTC

When selecting VTC, the "Pool shares this round" value comes out negative (and non-sensical). This is not the app's fault per se, because it faithfully reports what the website provides:

{"pool_name":"give-me-coins.com","hashrate":422214.80619,"netGhps":"5.34","workers":"842","shares_this_round":-43028285,"last_block":"72841","last_block_shares":"23869","last_block_finder":"aozdemir","last_block_reward":"50.001","difficulty":"172.54566398"}

You see the negative value for "shares_this_round" from the json report, which is then reported as "Pool shares this round" in the pool tab.

While this is really for the website to fix (on the actual website the value is eternally reported as "Updating..."), I was wondering if the app could do some kind of sanity check and report "not available" or so if the value is negative (or maybe non-sensical in some other way).
Below is a quick patch which does the trick. It's wonderful that the source code is available. Thanks for all the effort.

  • Martin

----snip----
diff --git a/src/give_me_coins/dashboard/GMCPoolService.java b/src/give_me_coins/dashboard/GMCPoolService.java
index 0ecba8f..e3b7c24 100644
--- a/src/give_me_coins/dashboard/GMCPoolService.java
+++ b/src/give_me_coins/dashboard/GMCPoolService.java
@@ -202,7 +202,15 @@ public class GMCPoolService extends Service{
} else if("workers".equals(name)) {
MainScreen.pool_workers=jsonAll.nextString();
} else if("shares_this_round".equals(name)) {

  •                                   MainScreen.pool_round_shares=jsonAll.nextString();
    
  •                                       Long str = jsonAll.nextLong();
    
  •                                       if ( str < 0)
    
  •                                       {
    
  •                                           MainScreen.pool_round_shares="Not Available";
    
  •                                       }
    
  •                                       else
    
  •                                       {
    
  •                                           MainScreen.pool_round_shares=Long.toString(str);
    
  •                                       }
                                } else if ("last_block".equals(name)) {
                                    MainScreen.pool_last_block=jsonAll.nextString();
                                } else if (name.equals("last_block_shares")) {
    

No alert when you are not connected to internet

App gives no notification if it is unable to connect to websites. Because all is done in background you dont even get notification something is wrong, but you only get Getting data... and stuff.

Bad layout in landscape mode

Running on a Galaxy S3 4.1.2 stock.

When the app is shown on landscape mode, some of the text in all three tabs becomes unreachable because of no scrolling available

BTC Hash Rate

Summary data for BTC workers is not reporting accurately.

Crash: IndexOutOfBoundsException after QR code scanned

java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:251)
at java.util.ArrayList.get(ArrayList.java:304)
at com.android.internal.app.ActionBarImpl.setSelectedNavigationItem(ActionBarImpl.java:368)
at give_me_coins.dashboard.MainScreen$7.onPageSelected(MainScreen.java:248)
at android.support.v4.view.ViewPager.scrollToItem(ViewPager.java:567)
at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:551)
at android.support.v4.view.ViewPager.onTouchEvent(ViewPager.java:2008)
...

Pool tab not working

The pool status tab doesn't work. No values are displayed.

Remove unnecessary exclamation mark from title.

Network hashrate

Is it possible, to display also network hashrate, on POOL tab?

Tomaz

Worker idle notification in notification bar

Robert Quirk request: One small request would be to be able to get notifications if a worker goes idle, like on the website with email alerts, but directly in my notification bar! If this was implemented it would be amazing!

Implementation suggestion: It would be nice if we could put a check into the running service that would trigger notification (as service already has notification's inside). Also we should have enable tick (toggle button) in settings for this from start.

Storing SharedPreferences keys in strings.xml can lead to problems

Defining the keys of SharedPreferences in string resource files, such as this is problematic for a couple of reasons:

  1. A string value may be updated in strings.xml to change the text on the UI, inadvertently breaking the retrieval of previously specified preferences. For example, if the text "Show LTC" were changed to "Update LTC" then the previously specified preference would not be loaded because the call here would resolve to sharedPref.getBoolean("Update LTC") instead of sharedPref.getBoolean("Show LTC")

  2. This pattern does not aid multi-language support. For example, if a French user (with their device locale set to fr) begins using the app today, their LTC preference is set via editor.putBoolean("Show LTC", boolean). If we later include French translations (someone contributes res/values-fr/strings.xml) and push out an update, the updated code will attempt to retrieve that preference via sharedPref.getBoolean("Afficher LTC"). Thus, after an update it might looks like the preferences where lost to a user with a non-English locale.

One possible solutions is to hardcode the keys in the code (or introduce constants)

feature requests...

  1. be able to change the notification name to something other than the URL.
  2. show me my balance and the USD conversion in the app and the notification

UI cropping issue

On a Galaxy S3 the "Show FTC" checkbox on the Settings screen is being cropped.

ui-cropped

Swiping from pool to settings

Hi

You are on POOL tab and you can see all the data for hashrate, active workers etc.
If you swipe to SETTINGS and back to POOL all data disapears, and refresh after 1-2 secons. I don't know if this is bug, but it looks unusal:)

br,
Tomaz

"Delete Settings" button does not clear the UI

I was confused when I clicked the "Delete Settings" button and my API key and currency selections were not cleared. I think clearing the API key TextView would give users reassurance that their API key has been deleted.

exchange rate

It would be nice to see the actual exchange rate and have ability to automatically calculate the earned coins in other currencies.

GMCPoolService does not respect update interval preference

GMCPoolService does not respect the user-specified update interval. Instead, it does a GET https://give-me-coins.com/pool/api-ltc every 10 seconds which might be excessive.

Should GET https://give-me-coins.com/pool/api-ltc only be done as often as the user has specified via the Spinner on the BarCodeReaderFragment fragment (30 seconds, 1 minute, ...., 1 hour)?

Or is the current behaviour (update every 10 seconds) correct? Perhaps a longer hardcoded update interval could be discussed, something like 1 minute or 5 minutes?

Multiple accounts

Would be great to monitor more than one account and see both summary and accounts alone.

Notification

Hi

It would be great if notification could be switched on/off.

Tomaz

Worker hashrate

After loading develop branch into emulator I noticed that workers all have same hashrate as is you overall hashrate. Something is broken, so please pay attention to fix it .

Request

I will be more happy if the app shows when was the last block found in the pool
Please!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.