cryptoGlance / cryptoGlance-web-app

Self-hosted, PHP-based frontend interface for cgminer, MPOS pools, and other APIs, all in one responsive UI.
http://cryptoglance.github.io/cryptoGlance-web-app/
Other
67 stars 53 forks source link

BTCGarden ASICS #31

Closed 9600- closed 10 years ago

9600- commented 10 years ago

I am unable to get any API data from BTCGarden ASICS. Using Paxxil's cgminer_remote_monitoring and Selaux's miner-dashboard I am able to at least pull summary CGminer data, although no specific device information is available. This makes me think that it's not all Garden Asic's build of cgminer.

Please let me know how I can help.

Thank you!

Stoyvo commented 10 years ago

@9600- are you using the windows build or running on your own web stack?

9600- commented 10 years ago

I was running the windows build just to test it out fastest. I can easily spin up an instance and get it deployed on my own LAMP stack if you think it will make a difference.

Thoughts?

Stoyvo commented 10 years ago

@9600- I want you to access debug.php which is in the application root. In the current windows app there is no way to access debug.php, we have just added it via development branch (CTRL+D).

First off, using the windows app, please try running as Administrator. Sometimes windows blocks socket connections for users without access. Also, please make sure the app isn't blocked by the firewall.

If the above doesn't work, please use the debug.php script. After entering your IP + Port into the form on debug.php, it should specify if it can access the rig or not. If the script specifies that it cannot connect to the rig, then the app is having problems accessing the cgminer API. This can be due to the cgminer config not allowing the machines IP thats running CryptoGlance...

If there is data available, please paste this data into pastebin.com and share the link.

9600- commented 10 years ago

There is actually quite a bit of data available, albeit much less than usual. http://pastebin.com/MfcFxvGV

What do you think?

Stoyvo commented 10 years ago

@9600- it looks like the build of cgminer that you're using is broken. The API is not returning any information about the devices. Compare your pastebin content to mine: http://pastebin.com/ZBdxZEqY

You can see that you're missing device information.(Line 74+).

Is there a link to this build of cgminer? I wouldn't mind reaching out to the developer and asking questions.

9600- commented 10 years ago

I am unable to locate the manufacturer source. Right now I'm attempting to compile this version, https://github.com/jameshilliard/cgminer-btcgarden

Is it possible to display just the hashrate and share data without device information? I would love to be able to use your dashboard software but have a size-able amount of hash coming from this manufacturer.

9600- commented 10 years ago

https://github.com/jameshilliard/cgminer-btcgarden seems to be aimed at original reference hardware or early ASICS from BTCgarden. It does not support the options required by the AMV2. Just a heads up.

Stoyvo commented 10 years ago

Thanks for the heads up! By chance does the original build of cgminer work? Maybe BFGminer will work as well, they seem to be on-top of their asic support.

9600- commented 10 years ago

I'm not so fortunate. Neither BFGminer or the newest build of cgminer has support for the Garden Asic miners. Is there any way to get the available stats to display without any device info? The pictures attached are from my existing dashboards.

http://i.imgur.com/BkueRUB.png - Paxil's Dash Output http://i.imgur.com/OJZVGlK.png - Selaux's Dash output.

Stoyvo commented 10 years ago

@9600- I will spoof your issue and come up with a solution, i'll try to get to it this week :)

Stoyvo commented 10 years ago

@9600- I have gone ahead and did the changes to support rigs with no devices, however this is only available in our unstable development branch. Expect lots of items to be broken, although you should be able to: Rigs:

Pools:

\ PLEASE NOTE ** Most settings do not save, such as thresholds. These are predefined to: Percent Mode (Warning: 5%, Danger: 10%)

\ HOW TO ** 1) Navigate to applications install dir and then /application, backup user_data folder to a safe location 2) Delete all contents of /application with the except of user_data 3) Download: https://github.com/cryptoGlance/cryptoGlance-web-app/archive/development.zip 4) Unzip download into /application folder.

You should not be running the latest development branch. Please do not click the Upgrade button until you see version 1.2.0 release. The update is expected to be released this month.

Please let me know if you have any questions, or drop by the IRC channel. Web Client is available on http://cryptoglance.info

9600- commented 10 years ago

Really looking forward to taking this for a spin tomorrow afternoon. Can you tell me how I can permanently disable HW error monitoring as the settings will not save in front-end?

Stoyvo commented 10 years ago

In the current stable release it is broken. In the development version I referenced above, its not functional yet. Hopefully tonight I can implement the thresholds

9600- commented 10 years ago

I had some time and was able to deploy the development version very quickly. I can now view the summary data for my BTCGarden ASICS. The only issue left being that miner is throwing an error status, I assume, because of its lack of share reporting.

Will this be fixed with the threshold settings?

Again, Thank you so much.

Stoyvo commented 10 years ago

This is something you will be able to turn off via threshold settings, however this isn't ready yet.

Can you enter the rig information into debug.php and pastebin the information when you see the rig marked as Red/Danger on cryptoGlance? I feel that the stats have changed since the last pastebin dump and that the app is behaving differently.

9600- commented 10 years ago

I have two rigs that are throwing alerts. Here's the output from both of them.

BTCGarden AMV2 - http://pastebin.com/7FcPBxhy Gridseed Coincraft A1 - http://pastebin.com/TqzrUaS2

Stoyvo commented 10 years ago

Are the panels/alerts Red or Orange?

9600- commented 10 years ago

Orange.

Also, just FYI, the aggregate/total hashrate in the mobile template appears to be non-functioning in this version. Would you like me to create another issue?

Stoyvo commented 10 years ago

Orange is expected. Until threshold settings are operational in the development build, please disregard. The reason why it appears is because: BTCGarden AMV2 - Summary Hardware Error % is greater than 5% (Value: 7.7696%) Gridseed Coincraft A1 - "BA1 3" Hardware Error % is greater than 5% (Value: 5.2073%)

As for the total hashrate on mobile, are you referring to the algorithm overall hashrate (floats at the top of the screen in green text)?

9600- commented 10 years ago

Yes indeed. It is reading 0MH at the moment.

Stoyvo commented 10 years ago

Gotcha. I will review this in the next few hours. Up to you if you want to report the issue or not :)

If we have the BTC Garden ASICS working, I would like to close this issue. With that said, is this now resolved?

9600- commented 10 years ago

This is resolved.

Stoyvo commented 10 years ago

Just an update: Development branch now has the functionality to modify the threshold and enable/disable Temperatures and Hardware Errors https://github.com/cryptoGlance/cryptoGlance-web-app/commit/6d0f0504a3b86a85c56289e6865cef8436e530a3

9600- commented 10 years ago

I have pulled and extracted the latest development branch, but am not seeing the option to edit HW and Temp errors under 'crypto-glance settings'. I followed the directions above to apply the latest development build.


Never mind, I found the settings, they are per device!

Stoyvo commented 10 years ago

We will have a mass-override feature in CryptoGlance settings, however for now you have to modify them per rig