Bitcoin Forum
November 06, 2024, 09:02:47 AM
Welcome,
Guest
. Please
login
or
register
.
News
: Latest Bitcoin Core release:
28.0
[
Torrent
]
Home
Help
Search
Login
Register
More
Bitcoin Forum
>
Bitcoin
>
Mining
>
Mining software (miners)
>
VB .Net pull hashrate from CGMiner
Pages: [
1
]
« previous topic
next topic »
Print
Author
Topic: VB .Net pull hashrate from CGMiner (Read 1745 times)
hey101
(OP)
Newbie
Offline
Activity: 6
Merit: 0
VB .Net pull hashrate from CGMiner
January 18, 2014, 07:17:23 PM
#1
I am trying to either use VB .Net to connect via a socket to CGMiner and pull just the hashrate in kh/s. I have only one GPU attached that I need it from. I would want to get it quite frequently if possible but I have no idea how to. The rest of my program is made (vb app to pull information about balances and such and sends it to arduino to be displayed on a 3.2in tft lcd). This is just the one part I am missing. The one thing I have noticed is that the hashrate displayed in CGminer is in kh and updated extremely often with good accuracy, but the api only shows in mh and practically never changes or atleast I never have seen it change.
Is there any info that you guys can give to have the api display in kh or somehow hook into cgminers window and retrieve the hashrate with good accuracy? I also have no idea how to parse the information retrieved from the summary command in vb .net, so any kind of information or help with that would be appreciated.
Thank you very much for your time
nwoolls
Hero Member
Offline
Activity: 840
Merit: 1002
Re: VB .Net pull hashrate from CGMiner
January 18, 2014, 07:21:31 PM
#2
You can use this .NET assembly to interact with the RPC API in both bfgminer and cgminer:
https://github.com/nwoolls/MultiMiner/tree/master/MultiMiner.Xgminer.Api
There's some example code here:
https://github.com/nwoolls/MultiMiner/blob/master/MultiMiner.Api.Example/Program.cs
It's Open Source, has a lot of use and testing, and pull requests are welcome.
MultiMiner
: Any Miner, Any Where, on Any Device |
Xgminer
: Mine with popular miners on Mac OS X
btc:
1BmXY4ZZQh1iHSVre658gM1gPAEtDnq8rv
| ltc:
LP1SsHZTDexndkvRKsqAkXNsienPHwaMb5
| hardware: nwoolls at gmail dot com
hey101
(OP)
Newbie
Offline
Activity: 6
Merit: 0
Re: VB .Net pull hashrate from CGMiner
January 18, 2014, 08:01:34 PM
#3
It looks like everything in it has to do with bfgminer. Do I just change anything that says bgminer to cgminer? Or is there something else that I need to change?
nwoolls
Hero Member
Offline
Activity: 840
Merit: 1002
Re: VB .Net pull hashrate from CGMiner
January 18, 2014, 08:34:51 PM
#4
Quote from: hey101 on January 18, 2014, 08:01:34 PM
It looks like everything in it has to do with bfgminer. Do I just change anything that says bgminer to cgminer? Or is there something else that I need to change?
The Xgminer API Assembly has nothing specific to bfgminer in it. The example code does use bfgminer though.
MultiMiner
: Any Miner, Any Where, on Any Device |
Xgminer
: Mine with popular miners on Mac OS X
btc:
1BmXY4ZZQh1iHSVre658gM1gPAEtDnq8rv
| ltc:
LP1SsHZTDexndkvRKsqAkXNsienPHwaMb5
| hardware: nwoolls at gmail dot com
Pages: [
1
]
Print
Bitcoin Forum
>
Bitcoin
>
Mining
>
Mining software (miners)
>
VB .Net pull hashrate from CGMiner
« previous topic
next topic »
Jump to:
Please select a destination:
-----------------------------
Bitcoin
-----------------------------
=> Bitcoin Discussion
===> Legal
===> Press
===> Meetups
===> Important Announcements
=> Development & Technical Discussion
===> Wallet software
=====> Electrum
=====> Bitcoin Wallet for Android
=====> BitcoinJ
=====> Armory
=====> Mycelium
=====> Hardware wallets
=> Mining
===> Mining support
===> Pools
===> Mining software (miners)
===> Hardware
=====> Group buys
===> Mining speculation
=> Bitcoin Technical Support
=> Project Development
-----------------------------
Economy
-----------------------------
=> Economics
===> Speculation
=> Marketplace
===> Goods
=====> Computer hardware
=====> Digital goods
=======> Invites & Accounts
=====> Collectibles
===> Services
===> Currency exchange
===> Gambling
=====> Games and rounds
=====> Investor-based games
=====> Gambling discussion
===> Lending
=====> Long-term offers
===> Securities
===> Auctions
===> Service Announcements
=====> Micro Earnings
===> Service Discussion
=====> Web Wallets
=====> Exchanges
=> Trading Discussion
===> Scam Accusations
===> Reputation
-----------------------------
Other
-----------------------------
=> Meta
===> New forum software
===> Bitcoin Wiki
=> Politics & Society
=> Beginners & Help
=> Off-topic
=> Serious discussion
===> Ivory Tower
=> Archival
===> Корзина
===> CPU/GPU Bitcoin mining hardware
===> Chinese students
===> Obsolete (buying)
===> Obsolete (selling)
===> MultiBit
-----------------------------
Alternate cryptocurrencies
-----------------------------
=> Altcoin Discussion
=> Announcements (Altcoins)
===> Tokens (Altcoins)
=> Mining (Altcoins)
===> Pools (Altcoins)
=> Marketplace (Altcoins)
===> Service Announcements (Altcoins)
===> Service Discussion (Altcoins)
===> Bounties (Altcoins)
=> Speculation (Altcoins)
-----------------------------
Local
-----------------------------
=> العربية (Arabic)
===> العملات البديلة (Altcoins)
=====> النقاشات
===> إستفسارات و أسئلة المبتدئين
===> التعدين
===> النقاشات الأخرى
===> منصات التبادل
=> Bahasa Indonesia (Indonesian)
===> Marketplace (Bahasa Indonesia)
===> Mining (Bahasa Indonesia)
===> Altcoins (Bahasa Indonesia)
===> Trading dan Spekulasi
===> Ekonomi, Politik, dan Budaya
===> Topik Lainnya
=> Español (Spanish)
===> Mercado y Economía
=====> Servicios
=====> Trading y especulación
===> Hardware y Minería
===> Esquina Libre
===> Mercadillo
=====> Mexico
=====> Argentina
=====> España
=====> Centroamerica y Caribe
===> Primeros pasos y ayuda
===> Altcoins (criptomonedas alternativas)
=====> Minería de altcoins
=====> Servicios
=====> Tokens (Español)
=> 中文 (Chinese)
===> 跳蚤市场
===> 山寨币
===> 媒体
===> 挖矿
===> 离题万里
=> Hrvatski (Croatian)
===> Trgovina
===> Altcoins (Hrvatski)
=====> Announcements (Hrvatski)
===> Off-topic (Hrvatski)
=> Deutsch (German)
===> Anfänger und Hilfe
===> Mining (Deutsch)
===> Trading und Spekulation
===> Projektentwicklung
===> Off-Topic (Deutsch)
===> Treffen
===> Presse
===> Altcoins (Deutsch)
=====> Announcements (Deutsch)
===> Marktplatz
=====> Auktionen
=====> Suche
=====> Biete
=> Ελληνικά (Greek)
===> Αγορά
===> Mining Discussion (Ελληνικά)
===> Altcoins (Ελληνικά)
=====> Altcoin Announcements (Ελληνικά)
=====> Altcoin Mining (Ελληνικά)
=> עברית (Hebrew)
=> Français
===> Actualité et News
===> Débutants
===> Discussions générales et utilisation du Bitcoin
===> Mining et Hardware
===> Économie et spéculation
===> Place de marché
=====> Échanges
=====> Produits et services
=====> Petites annonces
===> Le Bitcoin et la loi
===> Wiki, documentation et traduction
===> Développement et technique
===> Vos sites et projets
===> Hors-sujet
===> Altcoins (Français)
=====> Annonces
=> India
===> Mining (India)
===> Marketplace (India)
===> Regional Languages (India)
===> Press & News from India
===> Alt Coins (India)
===> Buyer/ Seller Reputations (India)
===> Off-Topic (India)
=> Italiano (Italian)
===> Guide (Italiano)
===> Progetti
===> Discussioni avanzate e sviluppo
===> Trading, analisi e speculazione
===> Mercato
=====> Mercato valute
=====> Beni
=====> Servizi
=====> Esercizi commerciali
=====> Hardware/Mining (Italiano)
=====> Gambling (Italiano)
===> Accuse scam/truffe
===> Mining (Italiano)
===> Alt-Currencies (Italiano)
=====> Annunci
===> Raduni/Meeting (Italiano)
===> Crittografia e decentralizzazione
===> Off-Topic (Italiano)
=> 日本語 (Japanese)
===> アルトコイン
=> Nederlands (Dutch)
===> Markt
===> Gokken/lotterijen
===> Mining (Nederlands)
===> Beurzen
===> Alt Coins (Nederlands)
===> Off-topic (Nederlands)
===> Meetings (Nederlands)
=> Nigeria (Naija)
===> Politics and society (Naija)
===> Off-topic (Naija)
=> 한국어 (Korean)
===> 대체코인 Alt Coins (한국어)
=> Pilipinas
===> Altcoins (Pilipinas)
=====> Altcoin Announcements (Pilipinas)
===> Pamilihan
===> Others (Pilipinas)
=> Polski
===> Tablica ogłoszeń
===> Alternatywne kryptowaluty
=====> Nowe kryptowaluty i tokeny
=====> Tablica ogłoszeń (altcoiny)
=> Português (Portuguese)
===> Primeiros Passos (Iniciantes)
===> Economia & Mercado
===> Mineração em Geral
===> Desenvolvimento & Discussões Técnicas
===> Criptomoedas Alternativas
===> Brasil
===> Portugal
=> Русский (Russian)
===> Новички
===> Бизнес
=====> Барахолка
=====> Обменники
===> Идеи
===> Кодеры
===> Майнеры
===> Политика
===> Трейдеры
===> Альтернативные криптовалюты
=====> Токены
=====> Бayнти и aиpдpoпы
===> Хайпы
===> Работа
===> Разное
===> Oбcyждeниe Bitcoin
=====> Новости
=====> Юристы
=> Română (Romanian)
===> Anunturi importante
===> Offtopic
===> Market
=====> Discutii Servicii
===> Minerit
===> Tutoriale
===> Bine ai venit!
===> Presa
===> Altcoins (Monede Alternative)
=====> Anunturi Monede Alternative
=> Skandinavisk
=> Türkçe (Turkish)
===> Bitcoin Haberleri
===> Pazar Alanı
===> Madencilik
===> Ekonomi
===> Servisler
=====> Fonlar
===> Proje Geliştirme
===> Alternatif Kripto-Paralar
=====> Madencilik (Alternatif Kripto-Paralar)
=====> Duyurular (Alternatif Kripto-Paralar)
===> Konu Dışı
===> Yeni Başlayanlar & Yardım
===> Buluşmalar
=> Other languages/locations
Loading...