Bitcoin Forum
May 08, 2024, 07:51:49 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Tool] [Win10] Script Mining Monitor by Seashell.io  (Read 227 times)
sangvh (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
December 03, 2017, 03:23:38 PM
 #1

Hey Guy, i wrote a script to monitor my mining rig by netcat latest log to Seashell because i am too tired to watch every via Teamviewer.

This is also script for auto relaunch Mining ClayMore. It may work with other Miner like ccminer, but i havent tested yet, so feel free to try. All script i wrote is batch, powershell and bash. Everything is clear code. You can check on your own.

Requirement:
- Powershell
- Windows 10 with SubSystem Linux included. ( You can try cygwin)

Why:
- Batch is good, but it is limited. Powershell can reach System Process Level Monitor.
- Windows Pipe is stupid. Command must finish before pipe to other. Linux is line by line pipe.

Step by Step Guide:
1. Install SubSystem Linux by following online guide:
https://msdn.microsoft.com/en-us/commandline/wsl/install-win10

TLD'R:
- Run in Powershell:
   Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Enable Developer Mode:
   https://www.ghacks.net/2015/06/13/how-to-enable-developer-mode-in-windows-10-to-sideload-apps/
- Run cmd and type "bash" (without quotes)

2. Copy all to your claymore directory. Make sure start-eth-edited.bat is same directory with file *Miner.exe

3. Edit file auto.txt. Change your email, Bot_email ,your *Miner.exe and Worker value. ( I use Gmail so if you use anything else, please edit mail config yourself)

4. Create shortcut start-eth-edited.bat to Startup Directory to run with Windows startup.

!!!! Windows file like .txt and .bat is free to edit. but .BASH (or any thing run inside BASH) must be edited by vim inside bash. If you edit .bash file inside windows, please contact me to fix. Linux file cant contain /r charater.

After success, you will receive mail like this. It contains link of seashells.io link.
http://prntscr.com/hii7re

Seashells.io will monitor your rig like this.
http://prntscr.com/hii8ay

Flow:
Start-eth-edited ---Loop---> auto.bat

auto.txt --variable--> auto.bat

auto.bat --call--> script/FindProcessMining.ps1  ; find top 15 process with Highest CPU

auto.bat --excute--> MiningProcess ; excute Mining Process if top process doesnt have Mining Process

auto.bat --call --> script/seashell-mail.bash ; Setup seashell and send to your email. After that, script seashell sleep forever to prevent bash close.


If you need any support or have any feed back, comment or email me: sangvohoang@vnoss.org

TODO Next:
- Fix all remain bug.
- Move from Mail to Messenger Facebook Bot. I am writing a Bot on Facebook Messenger but I dont have enough money to buy a vps contain data.
- Messenger Bot will have lot lot more feature than this. Include manage your own rigs on Messenger.

!!! Script is Free to use. But i need your help to improve the script. Please donate me at ETH Address: 0x0A7721Bef04B491F07cCd02102622E1CdcD84a76

Link: https://drive.google.com/file/d/14pGlf_1Cy-Ilhy4zLrH5Gk0IdICIMtGK/view?usp=sharing
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
milobo198
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 22, 2018, 02:49:57 AM
 #2

Thank for share, i run step to step with error: windows subsystem for linux has no installed distributions
sangvh (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 22, 2018, 06:10:07 AM
 #3

Thank for share, i run step to step with error: windows subsystem for linux has no installed distributions

I am going to fix this soon. I will send you the updated version later soon.

milobo198
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 22, 2018, 01:01:56 PM
 #4

Thank for share, i run step to step with error: windows subsystem for linux has no installed distributions

I am going to fix this soon. I will send you the updated version later soon.



thank you,  I'm too tired with teamview. Hope version next for me
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!