Giter Site home page Giter Site logo

check-cast_xmr's Introduction

Check-Cast_XMR

This utility will check the hash rate of Cast_XMR and kill/restart the miner if the hash rate is below a set threshold.

This script is meant to be ran as a windows service on the computer running Cast_XMR.

This script requires that you run Cast_XMR with the -R option to enable remote access.

Setup / How To Use

  1. Copy the code or download check-cast_xmr.vbs and place this script wherever you like.

  2. Edit the user variables in the script that are loacted between the comments EDIT BELOW/ABOVE HERE:
    a) strCastXMR_HTTP - this is the web site for Cast_XMR stats, you probably won't need to change this
    b) arrHash - Place the hash rate thresholds for each card inside the brackets, seperated by commas
    c) strCastXMR_EXE - this is the actual file name for the miner you are running and want to kill/restart
    d) strCastXMR_BAT - this is the batch file that will start Cast_XMR
    e) strDevCon_BAT - this is the batch file that will disable/enable your VEGA cards, this is optional

  3. Test the script by double-clicking. Make sure it's completing succesffully. A log file will be created in the same folder.

  4. Create the schedule in Windows Task Scheduler. Click "Create Task". Match the screenshots:

-Give it a name, important to run with highest privileges if you are calling DevCon.

-Click NEW to create a new trigger.

-Set the START anytime before current time. Change the repeat minutes to whatever you feel is best.

-Click NEW to create a new action.

-If script is in C:\Cast_XMR\check-cast_xmr.vbs, set the START IN to C:\Cast_XMR<br>

-Match these settings.

-Match these settings.

Notes

If the script creates a popup message, it will disappear in five seconds, you don't have to click it.

The script will loop through all cards running in Cast_XMR, or through every hash threshold listed in arrHash, whichver is smaller.

If your setup needs more time waiting between killing the miner, edit the line WScript.Sleep 5000, which is currently 5 seconds.

If your setup needs more time waiting after diable/enable the cards, edit the line WScript.Sleep 10000, which is currently 10 seconds.

END

check-cast_xmr's People

Contributors

tarvcode avatar

Stargazers

Majed Abualsaud avatar Geoff Williams avatar RivDesign avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

simudream rivman

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.