Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

copied files from Development branch into this one

  • Loading branch information...
=
= committed Feb 9, 2014
1 parent 7ef0185 commit 3c8114008391283a7fc3c453b7a08bf545b4e15e
Showing with 52,826 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +339 −0 LICENSE
  3. +75 −0 README.md
  4. +17 −0 ajax.php
  5. +1 −0 css/animate.min.css
  6. +35 −0 css/bootstrap-modal-bs3patch.css
  7. +214 −0 css/bootstrap-modal.css
  8. +7,956 −0 css/bootstrap.css
  9. +1 −0 css/bootstrap.min.css
  10. +235 −0 css/messenger-spinner.css
  11. +439 −0 css/messenger-theme-air.css
  12. +476 −0 css/messenger-theme-flat.css
  13. +496 −0 css/messenger-theme-future.css
  14. +114 −0 css/messenger-theme-ice.css
  15. +101 −0 css/messenger.css
  16. +1 −0 css/prettyCheckable.css
  17. +1,427 −0 css/rigwatch-base.css
  18. +68 −0 css/slider.css
  19. +2,085 −0 css/whhg.css
  20. BIN fonts/BebasNeue-webfont.eot
  21. +1,991 −0 fonts/BebasNeue-webfont.svg
  22. BIN fonts/BebasNeue-webfont.ttf
  23. BIN fonts/BebasNeue-webfont.woff
  24. BIN fonts/Capture_it-webfont.eot
  25. +197 −0 fonts/Capture_it-webfont.svg
  26. BIN fonts/Capture_it-webfont.ttf
  27. BIN fonts/Capture_it-webfont.woff
  28. BIN fonts/Capture_it_2-webfont.eot
  29. +140 −0 fonts/Capture_it_2-webfont.svg
  30. BIN fonts/Capture_it_2-webfont.ttf
  31. BIN fonts/Capture_it_2-webfont.woff
  32. BIN fonts/Roboto-Black-webfont.eot
  33. +642 −0 fonts/Roboto-Black-webfont.svg
  34. BIN fonts/Roboto-Black-webfont.ttf
  35. BIN fonts/Roboto-Black-webfont.woff
  36. BIN fonts/Roboto-BlackItalic-webfont.eot
  37. +642 −0 fonts/Roboto-BlackItalic-webfont.svg
  38. BIN fonts/Roboto-BlackItalic-webfont.ttf
  39. BIN fonts/Roboto-BlackItalic-webfont.woff
  40. BIN fonts/Roboto-Bold-webfont.eot
  41. +593 −0 fonts/Roboto-Bold-webfont.svg
  42. BIN fonts/Roboto-Bold-webfont.ttf
  43. BIN fonts/Roboto-Bold-webfont.woff
  44. BIN fonts/Roboto-BoldItalic-webfont.eot
  45. +642 −0 fonts/Roboto-BoldItalic-webfont.svg
  46. BIN fonts/Roboto-BoldItalic-webfont.ttf
  47. BIN fonts/Roboto-BoldItalic-webfont.woff
  48. BIN fonts/Roboto-Italic-webfont.eot
  49. +642 −0 fonts/Roboto-Italic-webfont.svg
  50. BIN fonts/Roboto-Italic-webfont.ttf
  51. BIN fonts/Roboto-Italic-webfont.woff
  52. BIN fonts/Roboto-Light-webfont.eot
  53. +641 −0 fonts/Roboto-Light-webfont.svg
  54. BIN fonts/Roboto-Light-webfont.ttf
  55. BIN fonts/Roboto-Light-webfont.woff
  56. BIN fonts/Roboto-LightItalic-webfont.eot
  57. +641 −0 fonts/Roboto-LightItalic-webfont.svg
  58. BIN fonts/Roboto-LightItalic-webfont.ttf
  59. BIN fonts/Roboto-LightItalic-webfont.woff
  60. BIN fonts/Roboto-Medium-webfont.eot
  61. +593 −0 fonts/Roboto-Medium-webfont.svg
  62. BIN fonts/Roboto-Medium-webfont.ttf
  63. BIN fonts/Roboto-Medium-webfont.woff
  64. BIN fonts/Roboto-MediumItalic-webfont.eot
  65. +642 −0 fonts/Roboto-MediumItalic-webfont.svg
  66. BIN fonts/Roboto-MediumItalic-webfont.ttf
  67. BIN fonts/Roboto-MediumItalic-webfont.woff
  68. BIN fonts/Roboto-Regular-webfont.eot
  69. +621 −0 fonts/Roboto-Regular-webfont.svg
  70. BIN fonts/Roboto-Regular-webfont.ttf
  71. BIN fonts/Roboto-Regular-webfont.woff
  72. BIN fonts/Roboto-Thin-webfont.eot
  73. +631 −0 fonts/Roboto-Thin-webfont.svg
  74. BIN fonts/Roboto-Thin-webfont.ttf
  75. BIN fonts/Roboto-Thin-webfont.woff
  76. BIN fonts/Roboto-ThinItalic-webfont.eot
  77. +631 −0 fonts/Roboto-ThinItalic-webfont.svg
  78. BIN fonts/Roboto-ThinItalic-webfont.ttf
  79. BIN fonts/Roboto-ThinItalic-webfont.woff
  80. BIN fonts/RobotoCondensed-Bold-webfont.eot
  81. +643 −0 fonts/RobotoCondensed-Bold-webfont.svg
  82. BIN fonts/RobotoCondensed-Bold-webfont.ttf
  83. BIN fonts/RobotoCondensed-Bold-webfont.woff
  84. BIN fonts/RobotoCondensed-BoldItalic-webfont.eot
  85. +643 −0 fonts/RobotoCondensed-BoldItalic-webfont.svg
  86. BIN fonts/RobotoCondensed-BoldItalic-webfont.ttf
  87. BIN fonts/RobotoCondensed-BoldItalic-webfont.woff
  88. BIN fonts/RobotoCondensed-Italic-webfont.eot
  89. +644 −0 fonts/RobotoCondensed-Italic-webfont.svg
  90. BIN fonts/RobotoCondensed-Italic-webfont.ttf
  91. BIN fonts/RobotoCondensed-Italic-webfont.woff
  92. BIN fonts/RobotoCondensed-Light-webfont.eot
  93. +643 −0 fonts/RobotoCondensed-Light-webfont.svg
  94. BIN fonts/RobotoCondensed-Light-webfont.ttf
  95. BIN fonts/RobotoCondensed-Light-webfont.woff
  96. BIN fonts/RobotoCondensed-LightItalic-webfont.eot
  97. +643 −0 fonts/RobotoCondensed-LightItalic-webfont.svg
  98. BIN fonts/RobotoCondensed-LightItalic-webfont.ttf
  99. BIN fonts/RobotoCondensed-LightItalic-webfont.woff
  100. BIN fonts/RobotoCondensed-Regular-webfont.eot
  101. +644 −0 fonts/RobotoCondensed-Regular-webfont.svg
  102. BIN fonts/RobotoCondensed-Regular-webfont.ttf
  103. BIN fonts/RobotoCondensed-Regular-webfont.woff
  104. BIN fonts/webhostinghub-glyphs.eot
  105. +7,835 −0 fonts/webhostinghub-glyphs.svg
  106. BIN fonts/webhostinghub-glyphs.ttf
  107. +48 −0 help.php
  108. BIN images/1HBY1cskYysa2in8zNVfLgPLpEYAoTsGyS.png
  109. BIN images/LUQ4GyjjDtopdGj3h8CvDEP4QCLd3FEhDT.png
  110. BIN images/bg-track.png
  111. BIN images/black_denim.png
  112. BIN images/black_denim_@2X.png
  113. BIN images/dark_mosaic.png
  114. BIN images/dark_mosaic_@2X.png
  115. BIN images/darkdenim3.png
  116. BIN images/darkdenim3_@2X.png
  117. BIN images/denim.png
  118. BIN images/denim_@2X.png
  119. BIN images/handle.png
  120. BIN images/icon-bitcoin.png
  121. BIN images/icon-litecoin.png
  122. BIN images/inflicted.png
  123. BIN images/inflicted_@2X.png
  124. BIN images/office.png
  125. BIN images/office_@2X.png
  126. BIN images/rigwatch-logo-landscape.png
  127. BIN images/rigwatch-watermark.png
  128. BIN images/sprites-sfa68604977.png
  129. BIN images/sprites/A-checkbox.png
  130. BIN images/sprites/B-checkbox-focus.png
  131. BIN images/sprites/C-checkbox-checked.png
  132. BIN images/sprites/D-checkbox-checked-focus.png
  133. BIN images/sprites/E-checkbox-disabled.png
  134. BIN images/sprites/F-checkbox-checked-disabled.png
  135. BIN images/sprites/G-radio.png
  136. BIN images/sprites/H-radio-focus.png
  137. BIN images/sprites/I-radio-checked.png
  138. BIN images/sprites/J-radio-checked-focus.png
  139. BIN images/sprites/K-radio-disabled.png
  140. BIN images/sprites/L-radio-checked-disabled.png
  141. BIN images/volume.png
  142. +13 −0 includes/autoloader.inc.php
  143. +70 −0 includes/classes/currencies/mtgox.php
  144. +43 −0 includes/classes/currency.php
  145. +50 −0 includes/classes/filehandler.php
  146. +63 −0 includes/classes/miners.php
  147. +167 −0 includes/classes/miners/cgminer.php
  148. +53 −0 includes/classes/pools.php
  149. +70 −0 includes/classes/pools/mpos.php
  150. +69 −0 includes/classes/update.php
  151. +50 −0 includes/classes/wallets.php
  152. +16 −0 includes/classes/wallets/abstract.php
  153. +44 −0 includes/classes/wallets/bitcoin.php
  154. +44 −0 includes/classes/wallets/dogecoin.php
  155. +44 −0 includes/classes/wallets/litecoin.php
  156. +6 −0 includes/config.php
  157. +51 −0 includes/footer.php
  158. +29 −0 includes/head.php
  159. +53 −0 includes/header.php
  160. +26 −0 includes/inc.php
  161. +8 −0 includes/menu-active_panels.php
  162. +13,380 −0 includes/simplepie-1.3.1-min.php
  163. +40 −0 index.php
  164. +194 −0 js/ajax.js
  165. +379 −0 js/bootstrap-modal.js
  166. +422 −0 js/bootstrap-modalmanager.js
  167. +7 −0 js/bootstrap.min.js
  168. +6 −0 js/jquery-1.10.2.min.js
  169. +7 −0 js/jquery-ui-1.10.3.custom.min.js
  170. +114 −0 js/jquery.cookie.js
  171. +7 −0 js/jquery.scrollTo.min.js
  172. +11 −0 js/jquery.ui.touch-punch.min.js
  173. +33 −0 js/messenger-theme-flat.js
  174. +33 −0 js/messenger-theme-future.js
  175. +2 −0 js/messenger.min.js
  176. +1 −0 js/prettyCheckable.min.js
  177. +449 −0 js/rigwatch-ui.js
  178. +14 −0 js/version.js
  179. +1 −0 json/configs/currency.json
  180. +1 −0 json/configs/miners.json
  181. +1 −0 json/configs/pools.json
  182. +1 −0 json/configs/wallets.json
  183. +1 −0 json/dev/CURRENT_VERSION
  184. +31 −0 settings.php
  185. +47 −0 templates/modals/add_host.php
  186. +45 −0 templates/modals/add_pool.php
  187. +19 −0 templates/modals/delete_prompt.php
  188. +41 −0 templates/modals/edit_addresses.php
  189. +48 −0 templates/modals/edit_host.php
  190. +42 −0 templates/modals/edit_pool.php
  191. +29 −0 templates/modals/switch_pool.php
  192. +184 −0 templates/panel-coinwatcher.php
  193. +63 −0 templates/panel-news_feed.php
  194. +35 −0 templates/panel-overview.php
  195. +170 −0 templates/panel-pool.php
  196. +203 −0 templates/panel-rig.php
  197. +63 −0 templates/panel-subreddit_feed.php
  198. +16 −0 templates/panel-wallet.php
@@ -0,0 +1,5 @@
web.config
/vectorstock
miner.php
_template-bootstrap.php
_template-index.php
339 LICENSE

Large diffs are not rendered by default.

@@ -0,0 +1,75 @@
<br>

_[Skip to FAQ](#faq)_ &bull; <a href="http://rigwat.ch" rel="external">http://rigwat.ch</a>

----

What is RigWatch?
--

Self-hosted, PHP-based frontend interface for cgminer, MPOS pools, and other APIs, all in one responsive UI. Protected with a login, but also offers a read-only/public view (if desired).

Features:
--
- Add multiple rigs which display data from cgminer
- Add multiple pools to watch that support MPOS frontends (ask your pool op if you're unsure, or look in their site's footer)
- Mobile optimized design
- Customizable via:
- Add/Remove/Edit Panels and move them around
- Collapse or Expand panels
- Drag n' drop certain stat-pairs to the position you prefer
- These preferences are saved to a local browser cookie (for now)
- Monitor RSS feeds and Subreddits
- Create exchange/conversion rate pairs that display fresh data
- Add your addresses to keep on top of their current balance (determined from the public blockchain)

Requirements:
--
- PHP v5.2+
- Apache or IIS
- cgminer (for monitoring rigs)
- MPOS Mining Pool account (many pools support this)
- BTC-e account (for obtaining currency rates)

Planned:
--
- cgminer remote control (write access)
- Read-only version
- Toggle panels with 'allow on read-only view'
- Streaming feed of Subreddits
- Links to CryptoCurrency resources/news/tuts/etc.

Installation:
--

1. Install (if required) a web server such as Apache or Microsoft IIS.
1. If you're running Windows, and have neither IIS nor PHP installed, there is a simple tool from Microsoft called [Web Platform Installer](http://www.microsoft.com/web/downloads/platform.aspx) that can do this painlessly.
1. Windows/IIS users may also need to add the '.woff' MIME type, which has a value of 'application/font-woff'

2. Setup a new site and point the home/root directory to this project.

You'll want to ensure you're running cgminer with API-Access enabled, here's an example excerpt from the .conf:

...
"api-allow" : "127.0.0.1,192.168.1.0/24",
"api-listen" : true,
"api-mcast-port" : "4028",
"api-port" : "4028",
...

...and you should be good to go.

<a name="faq"></a>FAQ:
--
Q. I am careful with my crypto-currency. Can I trust RigWatch?

A. Most definitely! The code is completely open source, and you run RigWatch on your own web server.

We owe thanks to the following projects:
--
- [Messenger jQuery plugin](http://github.hubspot.com/messenger/docs/welcome/)

Hope you enjoy what we're trying to do here, and thanks to all of the other similar OSS projects like this for help and inspiration.

Our own measly rigs would appreciate any catalyst donations to **[TODO] WALLET ADDRESS [/TODO] - Thanks in advance!**

@@ -0,0 +1,17 @@
<?php
require_once('includes/inc.php');
$type = ucwords(strtolower($_GET['type']));
$action = ucwords(strtolower($_GET['action']));
if (empty($type) || empty($action)) {
exit();
}
require_once('includes/autoloader.inc.php');
$className = 'Class_' . $type;
$obj = new $className();
$obj->$action();
?>

Large diffs are not rendered by default.

@@ -0,0 +1,35 @@
/*!
* Bootstrap Modal
*
* Copyright Jordan Schroter
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Boostrap 3 patch for for bootstrap-modal. Include BEFORE bootstrap-modal.css!
*/

body.modal-open,
.modal-open .navbar-fixed-top,
.modal-open .navbar-fixed-bottom {
margin-right: 0;
}

.modal {
left: 50%;
bottom: auto;
right: auto;
padding: 0;
width: 500px;
margin-left: -250px;
background-color: #ffffff;
border: 1px solid #999999;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 6px;
-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
background-clip: padding-box;
}

.modal.container {
max-width: none;
}
@@ -0,0 +1,214 @@
/*!
* Bootstrap Modal
*
* Copyright Jordan Schroter
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*/

.modal-open {
overflow: hidden;
}


/* add a scroll bar to stop page from jerking around */
.modal-open.page-overflow .page-container,
.modal-open.page-overflow .page-container .navbar-fixed-top,
.modal-open.page-overflow .page-container .navbar-fixed-bottom,
.modal-open.page-overflow .modal-scrollable {
overflow-y: scroll;
}

@media (max-width: 979px) {
.modal-open.page-overflow .page-container .navbar-fixed-top,
.modal-open.page-overflow .page-container .navbar-fixed-bottom {
overflow-y: visible;
}
}


.modal-scrollable {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
overflow: auto;
}

.modal {
outline: none;
position: absolute;
margin-top: 0;
top: 50%;
overflow: visible; /* allow content to popup out (i.e tooltips) */
}

.modal.fade {
top: -100%;
-webkit-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
-moz-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
-o-transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
transition: opacity 0.3s linear, top 0.3s ease-out, bottom 0.3s ease-out, margin-top 0.3s ease-out;
}

.modal.fade.in {
top: 50%;
}

.modal-body {
max-height: none;
overflow: visible;
}

.modal.modal-absolute {
position: absolute;
z-index: 950;
}

.modal .loading-mask {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: #fff;
border-radius: 6px;
}

.modal-backdrop.modal-absolute{
position: absolute;
z-index: 940;
}

.modal-backdrop,
.modal-backdrop.fade.in{
opacity: 0.7;
filter: alpha(opacity=70);
background: #fff;
}

.modal.container {
width: 940px;
margin-left: -470px;
}

/* Modal Overflow */

.modal-overflow.modal {
top: 1%;
}

.modal-overflow.modal.fade {
top: -100%;
}

.modal-overflow.modal.fade.in {
top: 1%;
}

.modal-overflow .modal-body {
overflow: auto;
-webkit-overflow-scrolling: touch;
}

/* Responsive */

@media (min-width: 1200px) {
.modal.container {
width: 1170px;
margin-left: -585px;
}
}

@media (max-width: 979px) {
.modal,
.modal.container,
.modal.modal-overflow {
top: 1%;
right: 1%;
left: 1%;
bottom: auto;
width: auto !important;
height: auto !important;
margin: 0 !important;
padding: 0 !important;
}

.modal.fade.in,
.modal.container.fade.in,
.modal.modal-overflow.fade.in {
top: 1%;
bottom: auto;
}

.modal-body,
.modal-overflow .modal-body {
position: static;
margin: 0;
height: auto !important;
max-height: none !important;
overflow: visible !important;
}

.modal-footer,
.modal-overflow .modal-footer {
position: static;
}
}

.loading-spinner {
position: absolute;
top: 50%;
left: 50%;
margin: -12px 0 0 -12px;
}

/*
Animate.css - http://daneden.me/animate
Licensed under the ☺ license (http://licence.visualidiot.com/)
Copyright (c) 2012 Dan Eden*/

.animated {
-webkit-animation-duration: 1s;
-moz-animation-duration: 1s;
-o-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: both;
-moz-animation-fill-mode: both;
-o-animation-fill-mode: both;
animation-fill-mode: both;
}

@-webkit-keyframes shake {
0%, 100% {-webkit-transform: translateX(0);}
10%, 30%, 50%, 70%, 90% {-webkit-transform: translateX(-10px);}
20%, 40%, 60%, 80% {-webkit-transform: translateX(10px);}
}

@-moz-keyframes shake {
0%, 100% {-moz-transform: translateX(0);}
10%, 30%, 50%, 70%, 90% {-moz-transform: translateX(-10px);}
20%, 40%, 60%, 80% {-moz-transform: translateX(10px);}
}

@-o-keyframes shake {
0%, 100% {-o-transform: translateX(0);}
10%, 30%, 50%, 70%, 90% {-o-transform: translateX(-10px);}
20%, 40%, 60%, 80% {-o-transform: translateX(10px);}
}

@keyframes shake {
0%, 100% {transform: translateX(0);}
10%, 30%, 50%, 70%, 90% {transform: translateX(-10px);}
20%, 40%, 60%, 80% {transform: translateX(10px);}
}

.shake {
-webkit-animation-name: shake;
-moz-animation-name: shake;
-o-animation-name: shake;
animation-name: shake;
}

0 comments on commit 3c81140

Please sign in to comment.
You can’t perform that action at this time.