Pages:
Author

Topic: [DIY] auto-hard-reset mining rigs with Raspberry Pi - page 2. (Read 8521 times)

sr. member
Activity: 700
Merit: 294
I am planning to use energy monitoring capabilities of smartplug to auto-reboot rigs based. 
Have observed typically on miner/OS crashes the power consumption would drop.  Thankfully haven't faced a hard hang with GPUs running at max clocks/volts.

I have figured out how to do this remotely on tp-link HS110.  (Doesn't even have to be in same network)

I have built something like this... It works very well:

https://bitcointalksearch.org/topic/how-to-puwahas-poor-mans-networked-pdu-using-smart-plugs-and-awesome-miner-2866608
newbie
Activity: 44
Merit: 0
is there any way to add a telegram bot?
newbie
Activity: 36
Merit: 0
Update on Windows IoT version.

2 day in and I have it all plugged in and working with a basic UI.

Windows IoT is surprisingly easy to work with.

I had problems with my 8 channel “5v” board.

Turns out it only ran with 12v! So that is powered off a PSU now.

I ping claymore port, then turn relay on if no response.

I had to check firewall settings for claymore too, that gave me some silly problems.
full member
Activity: 729
Merit: 114
I am planning to use energy monitoring capabilities of smartplug to auto-reboot rigs based. 
Have observed typically on miner/OS crashes the power consumption would drop.  Thankfully haven't faced a hard hang with GPUs running at max clocks/volts.

I have figured out how to do this remotely on tp-link HS110.  (Doesn't even have to be in same network)
jr. member
Activity: 50
Merit: 3
Searchin` perfection!
Looks like most of the problems are with the initial setup and all connections between RPI and the relay.
This week I will move some machines to the farm and I will take pictures of the whole setup to be easier for new people.
member
Activity: 357
Merit: 26
I set it up, the pi and relay worked fine i think, I saw lights blink in accordance on relay with it had to reset, but it didnt.
I think because I had to put few of those jumper cables together the current didnt make it to the motherboard.
What cables are recommended ?

Just buy a pack or two of these project cables like these:

https://www.amazon.com/gp/product/B01EV70C78/ref=oh_aui_detailpage_o05_s01?ie=UTF8&psc=1



Cheers.
Turns out the relay is dead, it does not 'click' , so I'm getting a new board. Also grabbed some wire and going to solder together the wires with jumper cables instead of daisy-chaining.

I used the project cables into the MB, then soldered on some of this: http://amzn.to/2Ht70zr Cheap as chips, ideal for longer runs.
newbie
Activity: 4
Merit: 0
I set it up, the pi and relay worked fine i think, I saw lights blink in accordance on relay with it had to reset, but it didnt.
I think because I had to put few of those jumper cables together the current didnt make it to the motherboard.
What cables are recommended ?

Just buy a pack or two of these project cables like these:

https://www.amazon.com/gp/product/B01EV70C78/ref=oh_aui_detailpage_o05_s01?ie=UTF8&psc=1



Cheers.
Turns out the relay is dead, it does not 'click' , so I'm getting a new board. Also grabbed some wire and going to solder together the wires with jumper cables instead of daisy-chaining.
sr. member
Activity: 700
Merit: 294
I set it up, the pi and relay worked fine i think, I saw lights blink in accordance on relay with it had to reset, but it didnt.
I think because I had to put few of those jumper cables together the current didnt make it to the motherboard.
What cables are recommended ?

Just buy a pack or two of these project cables like these:

https://www.amazon.com/gp/product/B01EV70C78/ref=oh_aui_detailpage_o05_s01?ie=UTF8&psc=1

newbie
Activity: 66
Merit: 0
i know this is not he correct place to ask this but.. is there any chance of a non so much tech savy people to join mining? I undestand the value that i can generate from it, but sadly im not geek out to the max in this matter.
newbie
Activity: 4
Merit: 0
I set it up, the pi and relay worked fine i think, I saw lights blink in accordance on relay with it had to reset, but it didnt.
I think because I had to put few of those jumper cables together the current didnt make it to the motherboard.
What cables are recommended ?
member
Activity: 357
Merit: 26
Has anyone got Telegram commands working for multiple rigs, and if so what exact commands work? My setup appears to not recognise "Name": "machine 0"...

Everything else works, so must be some kind of code/punctuation cockup I'm making...
sr. member
Activity: 700
Merit: 294
I was thinking about doing a Windows 10 IoT version in c#.

Do you need to externally power the relay?

The PI supplies the power for the relay.  The 5V from pin 2 or 4 on the GPIO pins power the VCC input on the relay.
newbie
Activity: 36
Merit: 0
I was thinking about doing a Windows 10 IoT version in c#.

Do you need to externally power the relay?
member
Activity: 357
Merit: 26
Slightly weird one. Have had this up and running with just one rig for ages. Just trying to add a second, and telegram doesn't seem to recognise commands for different rigs. So /restart m1 restarts m0... (I've named machines m0, m1, etc in the config)...

Any thoughts anybody?

Edit: I assume in telegram "/restart m1" is being received as just "/restart"... so far tried /restartm1 /restart,m1... machine 0 is getting a bashing...
sr. member
Activity: 700
Merit: 294
What kind of help are you looking for?  You’ve setup the JSON file, I’m assuming you’ve connected the relays to the matching GPIO pins in the JSON file.  From there you just follow the install instructions from the Github page and run it.  I would suggest you not connect the relays to your rigs until you know that it’s working.

Thanks, have switching working now, can you please advise which if i have the outputs connected correctly (going to power on/off)

https://imgur.com/a/NFC49

It's pretty easy to test.  Just unplug your ethernet cable on your rig.  When the time is up, this program should initiate the hard-reboot sequence.
newbie
Activity: 8
Merit: 0
What kind of help are you looking for?  You’ve setup the JSON file, I’m assuming you’ve connected the relays to the matching GPIO pins in the JSON file.  From there you just follow the install instructions from the Github page and run it.  I would suggest you not connect the relays to your rigs until you know that it’s working.

Thanks, have switching working now, can you please advise which if i have the outputs connected correctly (going to power on/off)

https://imgur.com/a/NFC49
newbie
Activity: 19
Merit: 0
At first: Thanks for the nice work!
I got it running now, just need to figure out how to easily remote control the pi desktop itself. Since i'm a few thousand kilometers away the next weeks i would feel better having the possibility to restart/stop the reset tool manually. I don't like the theoretical possibility of getting my rigs rebooted continuously for weeks Wink

Concerning the telegram bot: You have to set your telegram username (i had to choose one at first) as admin name in the json file. Not the Bots admin name! Got the "not my master" message, too. After that you are able to ask the bot via /status, /ping Rig, /help, ... (see commands in telegram.go switch)

For my opinion a notification each time a rig reboots would be great, too. But anyways - great work so far!

I just messed with this for probably five hours (learning curve). I got it up and going now though, at least half, really awesome idea and it may or may not be "that difficult" for someone already experienced. It's a massive help here. So, thanks! I have been meaning to dive into a micro controller for a while, figured now is a good spot to start.

Now I just keep getting an error "Problem with the API key. Fix the problem or disable the TelegramBot from the config file" seems like the api key (around 32 letters/numbers) is correct to me..... I'll mess with it later

Ok, made it past that, now when I send a message from my phone to the bot it just says you're not my master. Skimming through the code it seems it checks something and says this before it can go further. So that's what I'm working on now, step by step pretty good learning experience.

Journey continues, bot now accepts commands, bot name, vs username changes, and everything else lol.

So, a question: Is telegram suppose to send me a message when a rig goes down? I looked through the code some more and I don't think it does currently, but I can't be sure lol

OK, Pushover notifications worked lol
newbie
Activity: 182
Merit: 0
Nice share about this, I think cheaper if we buy usb watchdog. It’s also can reset our computer if they have a problem maybe GPU hang, our operating system especially windows that compatible with usb watchdog software. But I’m appreciate you guys who want to learn for your knowledge.
sr. member
Activity: 700
Merit: 294
What kind of help are you looking for?  You’ve setup the JSON file, I’m assuming you’ve connected the relays to the matching GPIO pins in the JSON file.  From there you just follow the install instructions from the Github page and run it.  I would suggest you not connect the relays to your rigs until you know that it’s working.
Pages:
Jump to: