Bitcoin Forum
May 13, 2024, 09:26:03 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Mining software (miners) / Re: change Voltage & Frequency using cgminer api on: October 04, 2020, 12:37:09 PM
So you have to power cycle the miner pretty much everytime you want to change those settings.

Since when? I've never had to do this on any version of any firmware. BOS restarts the mining software as any sensible person would. It takes seconds.

It looks like cgminer was crippled some time back so you cannot do what you want. In terms of BOS you could edit the config files directly, then just restart the miner.

Given that inverters and smart meters provide all the information required to make these changes in realtime, this should be easy to achieve, but using the API is not the solution. You won't want to do this in realtime, but I can't be bothered to go into the details right now.

It's on my TODO list so I may come back here when I've done this.

Given that BOS+ tunes the parameters anyway, it's obviously possible to do this on the fly, though I don't see any source code making this easy.
2  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] Phoneum - Mobile Only Cryptocurrency - ICO ON NOW! SOFTCAP MET! on: November 14, 2018, 10:46:07 AM
How on Earth does the application determine if you're running a mobile or a computer? Are tablets included?

If it's relying on sensors then that can be easily faked.

If it's relying on Android then that is easily laughable.
3  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN] ⭐ BDChain [POS/MN] ⭐ New Cryptocurrency ⭐ on: October 15, 2018, 07:08:43 PM
Is this dead already?
4  Economy / Scam Accusations / Re: CHANGELLY - Illegal exchanger from RUSSIA with FAKE team on: October 15, 2018, 01:23:43 PM
WTF is this insanity?
5  Bitcoin / Mining software (miners) / Re: Automate Your miners setup for ur S9 farm | Beta on: August 19, 2018, 03:10:32 PM
so here is my first script.

The first problem with the pastebin is it is looking for bash, which is not available on the control board.

Code:
#!/bin/sh

# https://bitcointalk.org/index.php?topic=2799605.msg

# NOTE: You need to set your DNS server address below.
# Don't just hammer Google's servers when your ISP has
# already provided the infrastructure.
DNS=""

[ $# -lt 5 ] && {
  echo "Usage: $0 workername1 workername2 workername3 hostname ip"
  exit 1
}

mv /config/bmminer.conf /config/bmminer.conf.backup
mv /config/network.conf /config/network.conf.backup

cat <<EOF >/config/bmminer.conf
{
"pools" : [ {
  "url" : "stratum.antpool.com:3333",
  "user" : "test.$1",
  "pass" : "123"
},
{
  "url" : "stratum.antpool.com:3333",
  "user" : "test.$2",
  "pass" : "123"
},
{
  "url" : "stratum.antpool.com:3333",
  "user" : "test.$3",
  "pass" : "123"
} ],
"api-listen" : "true",
"api-network" : "true",
"api-groups" : "A:stats:pools:devs:summary:version",
"api-allow" : "A:0/0,W:*",
"bitmain-use-vil" : "true",
"bitmain-freq" : "550",
"bitmain-voltage" : "0706",
"multi-version" : "1"
}
EOF

chmod 400 /config/bmminer.conf

cat <<EOF > /config/network.conf
hostname=miner$4
ipaddress=10.0.0.$5
netmask=255.255.255.0
gateway=10.0.0.138
dnsservers="$DNS"
EOF

chmod 400 /config/network.conf

#/etc/init.d/bmminer.sh restart >/dev/null 2>&1
#/etc/init.d/network.sh
#/etc/init.d/avahi restart > /dev/null
#echo "root:antMiner Configuration:23c2a2d78c0d20ec069097d7d20c4392" >> /config/lighttpd-htdigest.user

exit 0
https://pastebin.com/LZwdxATT

I tidied it up and removed Google's servers – you shouldn't be using them unless you need to. In fact: if you have a large number of miners you really should be using your own caching DNS server to improve performance. A Raspberry Pi is overkill for such an application so anything would do.

This could be improved dramatically but I simply couldn't be bothered. Please note that there is no automation here at all, it's simply a setup script. A better script wouldn't need to run on the miner itself. I might look at this later, but probably not.

Automating this whole process would be an entirely different script, but that's for another day.
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!