Bitcoin Forum
May 09, 2024, 01:20:17 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Hardware / Re: PiMiner - DIY mining controller/monitor with Raspberry Pi [v1.1] on: December 13, 2013, 08:52:37 AM
The tutorial now describes how to add auto-start and the scripts have been updated to support this functionality. This method starts cgminer up as well. Unfortunately, I haven't been able to run cgminer as a background job which can then be brought to the foreground. Whenever I tried, cgminer just stops while in background - this is why I ended up using nohup.  I'm open to better solutions, of course.

Have you considered using "screen" instead of nohup? This should allow you to watch the cgminer output when you log in via ssh, but I am not sure if/how you would make it start automatically at boot, nor have I actually tried it.
Here's an interesting link explaining the differences between nohup and screen:  http://www.52nlp.com/nohup-and-screen/

On a side note: I just switched over my BFL jalapeno from an old laptop to my RPi and following these instructions I was able to get things up and running just fine! Awesome tutorial! Smiley

A few comments that may help others:
  • The tutorial assumes that you are using the user 'pi' and that you have installed the Adafruit python code in /home/pi/Adafruit-Raspberry-Pi-Python-Code/Adafruit_CharLCDPlate/; if you installed the python files in a different directory or use a different user, you will have to edit the file /home/PiMiner/PiMiner.py: on line 4 change the location of the Adafruit library to wherever you installed it
  • If you're like me and don't have a soldering iron lying around (anymore) or don't feel comfortable using one, you can order assembled LCD monitors from here: http://raspberrypilcd.com/ . They also sell RPi cases for the RPi including the LCD monitor. I ordered mine there and it arrived perfectly assembled and in working order. Shipped on the same day I placed my order! Smiley

Keep up the good work! Smiley
2  Bitcoin / Pools / Re: [100 TH] Slush's Pool (mining.bitcoin.cz); TX FEES + UserDiff; ASIC tested on: December 06, 2013, 09:23:48 PM
Maybe slush has been busy with his trezor project and that's why he hasn't checked in lately? I understand that he can't respond to every question, especially questions that have been asked many times before, but checking in every now and then or having some other way for miners in this pool to contact him would be much appreciated. Anyone checked the IRC channel recently?

I personally haven't had any issues with payouts or calculations over the last few months, or maybe I simply didn't notice, but for those oddball cases a short explanation would come a long way. Just my 2 mBTC! Smiley
3  Bitcoin / Pools / Re: [100 TH] Slush's Pool (mining.bitcoin.cz); TX FEES + UserDiff; ASIC tested on: December 05, 2013, 08:18:37 AM
Well, if you don't mind writing ugly code <grin> then think this would be doable in a macro for calc [...] This approach would also be more or less OS independent.

LOL, I do intend to clean up the code once I start creating the stats; right now it is just pulling in the data every hour and storing it in a local DB so I can add the stats whenever I want; at least I will have access to my historical data. Smiley

Also, php/mysql should run on most (if not all) OS's, so I would argue that it's pretty OS independant; it just may take a little more time to set up. Another advantage for me by using web technology is that I can host my stats page somewhere and access it from anywhere. I could even add some fancy notifications (email, sms, whatever). I know many apps exist that do similar things (I'm currently using the Miner Status Android App), but I like to have 1 nicely integrated app! Smiley

ps. this is a loooong round... (11+ hours)
4  Bitcoin / Pools / Re: [100 TH] Slush's Pool (mining.bitcoin.cz); TX FEES + UserDiff; ASIC tested on: December 04, 2013, 04:11:45 PM
Another member - Sunriselad - beat you to it and created a utility to do most of this.  It's called Mine Minder, and includes the block values, pool hash rate, and current difficulty.  It also displays a current bitcoin value, but I do not

Thanks for the info Sir Alan, but the program you are referring to requires windows. Although I do work on a windows workstation daily, it's not on 24/7 but I do have several linux VPS's running 24/7, which is why I wanted to use php/mysql. Also, I'm not sure if the windows app just shows live info, or actually collects and stores the data for later use. My intention is to store the info in my own database so I can use it to do long term ROI calculations. Something that tells me over a longer period of time what my daily revenue is, minus hardware costs etc etc. Kinda like the online calculators you can find everywhere, but then specific to my hardware, slush's pool, and not as a a forecast, but looking back.

Maybe a forecast would be a nice to have so that I can predict how much longer my hardware remains in the money, but I'll have to see how much time I'm willing to spend on this! Smiley

5  Bitcoin / Pools / Re: [100 TH] Slush's Pool (mining.bitcoin.cz); TX FEES + UserDiff; ASIC tested on: December 04, 2013, 09:37:41 AM
Hi,

I just created a very simple script (php/mysql) to track my personal progress on the pool, fetching the data every 30 minutes. I want to use this for some detailed after the fact ROI analysis.
However, I noticed that not all fields that are visible on the stats page are provided in the JSON response from the API. Would it be possible to add these?

The fields I am interested in are the following (I am using the personalized API with an API token).

For blocks:
  • My Shares
  • Block value, including TX fees
  • The slush block number, although not really relevant I would like to add it just for reference purposes

For the pool itself:
  • The current difficulty

That would really help!

If anyone is interested in the script: currently it does absolutely nothing but fetch the data at a regular interval (cronjob), and it is by far the ugliest piece of code I have ever written (in 30 minutes) , but it does the job.
I'd be more than happy to share it with you if you want, but don't expect anything fancy just yet! Smiley
6  Other / Beginners & Help / Slush pool API - additional fields in JSON response on: December 03, 2013, 05:52:37 PM
Hi,

I've been mining for a while now and been tracking this forum too; up until today I've just been reading, but now I would like to ask slush a question. I know this is the newbie forum but that is the only place I can post (having just registered) and since the newbie FAQ recommends just asking the question you want answered, here goes! Smiley

I just created a very simple script (php/mysql) to track my personal progress on the pool, fetching the data every 30 minutes. I want to use this for some detailed after the fact ROI analysis.
However, I noticed that not all fields that are visible on the stats page are provided in the JSON response from the API. Would it be possible to add these?

The fields I am interested in are the following (I am using the personalized API with an API token).

For blocks:
  • My Shares
  • Block value, including TX fees
  • The slush block number, although not really relevant I would like to add it just for reference purposes

That would really help!

If anyone is interested in the script: currently it does absolutely nothing but fetch the data at a regular interval (cronjob), and it is by far the ugliest piece of code I have ever written (in 30 minutes) , but it does the job.
I'd be more than happy to share it with you if you want, but don't expect anything fancy just yet! Smiley
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!