RigMaster
Newbie
Offline
Activity: 28
Merit: 0
|
|
June 16, 2018, 01:31:30 PM |
|
Hi Guys Firstly, @Kasmetski for the amazing work on this rig resetter. It's exactly what I was looking for after weeks of headache with my rig hanging and I must drive 40 miles to reboot!. I have purchased a Raspberry Pi 3 Model B and installed Raspbian just now. I have also enabled SSH and changed the password for user Pi for security. Now, I am on Github but I'm not sure what to do from here... Should I run: sudo curl -O https://github.com/Kasmetski/auto-hard-reset/archive/master.zip to download the file to the default directory? After this, github mention to run: tar -xvzf auto-hard-reset-arm7.tar.gz chmod +x auto-hard-reset-arm7 But I checked in Github file list I don't see any auto-hard-reset-arm7.tar.gz filename. Please help, sorry for the noob question... I'm sure I am overlooking something. It's ok I've now got it working and Telegram working also.
|
|
|
|
|
|
|
|
The block chain is the main innovation of Bitcoin. It is the
first distributed timestamping system.
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
|
RigMaster
Newbie
Offline
Activity: 28
Merit: 0
|
|
June 16, 2018, 04:57:12 PM |
|
I've got a strange issue...
I ssh into my raspberry pi and i run the script using:
cd Downloads ./auto-hard-reset-arm7
Then it starts... it pings the rig then it goes to timer "300s" because I made the timer for 5min rather than 30min. It works perfectly while my ssh connection is live and the telegram bot responds fine if I check /status
Soon as I kill ssh connection to the raspberry pi, the script stops working and even the bot is not responding in telegram... it's as if, when i kill the ssh connection it stops the script.
Can anyone help with this issue?
|
|
|
|
puwaha
|
|
June 16, 2018, 06:34:43 PM |
|
I've got a strange issue...
I ssh into my raspberry pi and i run the script using:
cd Downloads ./auto-hard-reset-arm7
Then it starts... it pings the rig then it goes to timer "300s" because I made the timer for 5min rather than 30min. It works perfectly while my ssh connection is live and the telegram bot responds fine if I check /status
Soon as I kill ssh connection to the raspberry pi, the script stops working and even the bot is not responding in telegram... it's as if, when i kill the ssh connection it stops the script.
Can anyone help with this issue?
Use the screen utility in linux to keep the script running even if you close your ssh session.
|
|
|
|
sockpuppet1911
|
|
June 16, 2018, 07:28:47 PM |
|
Was wondering if someone had come up with something like this the other day. When my script restarts cast-xmr after a drop in hashrate it sometimes jams the whole system. Thank you
|
|
|
|
RigMaster
Newbie
Offline
Activity: 28
Merit: 0
|
|
June 16, 2018, 10:21:12 PM |
|
I've got a strange issue...
I ssh into my raspberry pi and i run the script using:
cd Downloads ./auto-hard-reset-arm7
Then it starts... it pings the rig then it goes to timer "300s" because I made the timer for 5min rather than 30min. It works perfectly while my ssh connection is live and the telegram bot responds fine if I check /status
Soon as I kill ssh connection to the raspberry pi, the script stops working and even the bot is not responding in telegram... it's as if, when i kill the ssh connection it stops the script.
Can anyone help with this issue?
Use the screen utility in linux to keep the script running even if you close your ssh session. Thank you! That worked perfectly. The script is now running like a dream and Telegram bot is functional Tomorrow I will replace my faulty risers and then hopefully this rig is finished and i can move to the next.
|
|
|
|
urnzwy
Newbie
Offline
Activity: 44
Merit: 0
|
|
June 30, 2018, 10:26:52 PM |
|
You connect your relay in NO & COM to the PWR pins or the Reset pins?
|
|
|
|
buddyleex
Newbie
Offline
Activity: 19
Merit: 0
|
|
July 22, 2018, 08:10:31 PM |
|
Does anyone know the max cable lengths for the 5v run from the pi to the relay, the gpio runs from the pi to the relay, and from the relay to the motherboard reset pins?
I have my rigs in 3 separate racks and would like to utilize 1 pi in total and 1 relay per rack (3 relays total). The cable lengths from the pi to the racks would be 18 ft, 14 ft, & 16 ft respectively and the cable lengths from the 5v relays to the motherboards would be 3 ft, 4 ft, 5 ft, 6 ft & 7 ft respectively. I'm not too concerned about the runs from the relays to the boards but I'm worried that 14-18 runs from the pi to the relay are too long. Can anyone weigh in?
|
|
|
|
puwaha
|
|
July 23, 2018, 08:43:13 AM |
|
Does anyone know the max cable lengths for the 5v run from the pi to the relay, the gpio runs from the pi to the relay, and from the relay to the motherboard reset pins?
I have my rigs in 3 separate racks and would like to utilize 1 pi in total and 1 relay per rack (3 relays total). The cable lengths from the pi to the racks would be 18 ft, 14 ft, & 16 ft respectively and the cable lengths from the 5v relays to the motherboards would be 3 ft, 4 ft, 5 ft, 6 ft & 7 ft respectively. I'm not too concerned about the runs from the relays to the boards but I'm worried that 14-18 runs from the pi to the relay are too long. Can anyone weigh in?
Those lengths shouldn't be a problem. If you were talking about hundreds of feet, then maybe. The relay boards can also be powered separately.
|
|
|
|
buddyleex
Newbie
Offline
Activity: 19
Merit: 0
|
|
August 01, 2018, 11:02:57 PM Last edit: August 02, 2018, 02:15:47 AM by buddyleex |
|
Ok I figured out the wiring, I'm guessing LOW(relay light on) = not triggering reset and HIGH= (light off) = triggers reset button. Is there anyway to reverse this?
|
|
|
|
RigMaster
Newbie
Offline
Activity: 28
Merit: 0
|
|
October 06, 2019, 01:06:49 AM |
|
is there any way to add a telegram bot?
Can anybody share the telegram commands they use for multiple rigs? Sorry to drag up an old topic but it's relevant for whoever else may be having this same issue... Today I've setup a second Raspberry Pi using this script - absolutely love this script!! I've got 6 rigs connected to it on an 8CH 5V Relay Board and noticed the same... no matter the command, the Telegram Bot would only trigger Rig 0: /ping m0, m1, m2 etc /restart m0, m1, m2 etc /turnon m0, m1, m2 etc After some digging... I found the cause... remove the 'm' /restart 0 /restart 1 /restart 2 Without the 'm' it works perfectly... because in the code it looks for machine NUMBER not anything else. I hope this helps.
|
|
|
|
|