It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
# git diff -p index.php
diff --git a/index.php b/index.php
index 2935bc7..4890627 100644
--- a/index.php
+++ b/index.php
@@ -217,7 +217,7 @@ for ($i=0; $i<$nr_rigs; $i++)
echo $dev['Fan Percent']?>%
- $stats_second = isset ($dev['MHS 5s']) ? $dev['MHS 5s'] : (isset ($dev['MHS 2s']) ? $dev['MHS 2s'] : 0);
+ $stats_second = isset ($dev['MHS 20s']) ? $dev['MHS 20s'] : (isset ($dev['MHS 5s']) ? $dev['MHS 5s'] : (isset ($dev['MHS 2s']) ? $dev['MHS 2s'] : 0));
$stats_second_string = $r[$i]['coin']['COIN']['Hash Method'] == 'scrypt' ? $stats_second * 1000 . ' | ' . $dev['MHS av'] * 1000 : $stats_second . ' | ' . $dev['MHS av'];
$stats_ratio = 0;
if ($dev['MHS av'] > 0)
A patch to address that several small USB devices don't have FAN and temperature sensor.Code:# git diff -p index.php
diff --git a/index.php b/index.php
index 2935bc7..5ca0d67 100644
--- a/index.php
+++ b/index.php
@@ -213,11 +213,11 @@ for ($i=0; $i<$nr_rigs; $i++)
?>
echo $dev['Status'] == 'Alive' ? '' . $dev['Status'] . '' : '' . $dev['Status'] . '' ?>
-echo $dev['Temperature'] > ALERT_TEMP ? '' . round($dev['Temperature']) . '°C' : round($dev['Temperature']) . '°C' ?>
-echo $dev['Fan Percent']?>%
+echo isset ($dev['Temperature']) ? ($dev['Temperature'] > ALERT_TEMP ? '' . round($dev['Temperature']) . '°C' : round($dev['Temperature']) . '°C') : '-' ?>
+echo isset ($dev['Fan Percent']) ? $dev['Fan Percent'] . '%' : '-' ?>
February 08, 2014, 06:09:11 AMSorry, i don't know how to use java API with cgminer. I am noobCode:[/code]cgminer$ ls -l API.class; java API coin localhost 4028
-rw-r--r-- 1 peon peon 3431 2013-05-27 16:56 API.class
Attempting to send 'coin' to 127.0.0.1:4028
Answer='STATUS=S,When=1391857634,Code=78,Msg=BFGMiner coin,Description=bfgminer 3.10.0|COIN,Hash Method=scrypt,Current Block Time=1391857600,Current Block Hash=fb246a37af09cb9c2cac0593375fd94752b81e72c591274b39870b1dc049b16d,LP=true,Network Difficulty=158.43854530|'
[STATUS] =>
(
[STATUS] => S
[When] => 1391857634
[Code] => 78
[Msg] => BFGMiner coin
[Description] => bfgminer 3.10.0
)
[COIN] =>
(
[0] => COIN
[Hash Method] => scrypt
[Current Block Time] => 1391857600
[Current Block Hash] => fb246a37af09cb9c2cac0593375fd94752b81e72c591274b39870b1dc049b16d
[LP] => true
[Network Difficulty] => 158.43854530
)February 07, 2014, 05:19:17 PMSorry, i don't know how to use java API with cgminer. I am noob
btw.: as i said port is forwared, so firewall is not blocking traffic, but where is problem?
//looks, my web hosting have denied UDP ports. Maybe, that's problem?February 07, 2014, 04:57:53 PMi already read it, cgminer configured fine, but it doesn't work
use the java API app that comes with cgminer to determine if cgminer is not setup correctly or if your port is not forwarded properly.February 07, 2014, 04:06:40 PMi already read it, cgminer configured fine, but it doesn't workFebruary 07, 2014, 03:58:51 PMHello,
i have cgminer 3.7.0 and this doesn't work for me. I have port open (i checked it via http://www.yougetsignal.com/tools/open-ports/)
and its open (4028). It says miner is offline Any suggestions?
See "1. CONFIGURING CGMINER" in first post by OPFebruary 07, 2014, 03:53:02 PMHello,
i have cgminer 3.7.0 and this doesn't work for me. I have port open (i checked it via http://www.yougetsignal.com/tools/open-ports/)
and its open (4028). It says miner is offline Any suggestions?January 20, 2014, 04:11:35 AMI think you are on the wrong forum topic. This topic is about Simple Cgminer Script and not Anubis.
Anubis topic is here: https://bitcointalksearch.org/topic/anubis-a-cgminer-web-frontend-57342January 20, 2014, 03:38:30 AMthis is not the script problem but problem with your setup (cPanel or any other module) not able to connect to SQL database.January 20, 2014, 03:02:42 AMany help to setup this at my domain through cPanel?
getting this error
FATAL: Cannot use Anubis_db ! SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)January 07, 2014, 05:44:51 AMHi!
I set Email alert on my GPUfarm, but on every farm i have AMD APU, integrater chip userd for control/work, and i not mine on it, so i get error in email:
PROBLEM: Farm1 - G1 (0.00 MH/s) Home - G1 (0.00 MH/s) Office - G1 (0.00 MH/s) Work - G1 (0.00 MH/s) Farm2 - G1 (0.00 MH/s)
How i can fix it?January 03, 2014, 02:58:18 PMLove this monitor. Thanks for making it!January 02, 2014, 10:00:48 AMThanksJanuary 02, 2014, 08:53:40 AMv2.1.1 Fixed some bugsDecember 29, 2013, 04:48:19 AMv2.1 Added ASC and PGA supportSeptember 17, 2013, 09:49:15 PMI am getting this Error
under the USB section
Warning: Division by zero in /home/a1628273/public_html/index.php on line 181
0 Alive 54°C 100% 0.00 | 0.00 0 0 0 0% 2013-09-17 22:36:28 Alive 0°C % 335.61 | 335.03 1 1 2 100% 2013-09-17 22:46:11August 13, 2013, 12:10:13 PMonly GPU support ? and Icarus boards ?I post a patch, that address an issue that wrong pool and user is displayed for miner that is offline:Code:$ git diff -p
diff --git a/index.php b/index.php
index 4ca2063..b4a031f 100644
--- a/index.php
+++ b/index.php
@@ -149,6 +149,7 @@ for ($i=0; $i<$nr_rigs; $i++)
for ($i=0; $i<$nr_rigs; $i++)
{
$pool_priority = 999;
+ $pool_active = '';
foreach ($r[$i]['pools'] as $pool)
{
if (($pool['Status'] == 'Alive') && ($pool['Priority'] < $pool_priority))Yes probably.
You should save the files using UTF8 without BOM encoding.For some reason the degrees symbol wasn't registering right for me so I swapped it out with ° but was most likely due to my editorThanks!
I've commited the changes.This patch adds these features to monitoring script 2.0:
- fix temperature when card is hot (cosmetic).
- display correct active pool (bug)
- display user (new)Code:$ git diff -p
diff --git a/index.php b/index.php
index 7587ad7..b5c8145 100644
--- a/index.php
+++ b/index.php
@@ -148,12 +148,13 @@ for ($i=0; $i<$nr_rigs; $i++)
for ($i=0; $i<$nr_rigs; $i++)
{
+ $pool_priority = 999;
foreach ($r[$i]['pools'] as $pool)
{
- if ($pool['Stratum Active'] == 'true')
+ if (($pool['Status'] == 'Alive') and ($pool['Priority'] < $pool_priority))
{
- $pool_active = 'Pool ' . $pool['POOL'] . ' - ' . $pool['URL'] . '';
- break;
+ $pool_priority = $pool['Priority'];
+ $pool_active = 'Pool ' . $pool['POOL'] . ' - ' . $pool['URL'] . ', user - ' . $pool['User'] . '';
}
}
?>
@@ -187,7 +188,7 @@ for ($i=0; $i<$nr_rigs; $i++)
echo $gpu['GPU'] ?>
echo $gpu['Status'] == 'Alive' ? '' . $gpu['Status'] . '' : '' . $gpu['Status'] . '' ?>
-echo $gpu['Temperature'] > ALERT_TEMP ? '' . round($gpu['Temperature']) . '°C' : round($gpu['Temperature']) ?>°C
+echo $gpu['Temperature'] > ALERT_TEMP ? '' . round($gpu['Temperature']) . '°C' : round($gpu['Temperature']) . '°C' ?>
echo $gpu['Fan Percent']?>%
I have done according to your guide, Thanks!
http://www.service-labs.com/miner_monitoring/monitoring_cron.php on line 48
postdrop: warning: unable to look up public/pickup: No such file or directoryNice workI have added EMAIL ALERTS support.
The emails will be sent out by whatever mail server you configure in php.ini, right?
Have you tried this on Windows under IIS?
yes... you need postfix or sendmail installed on the server where webserver is.
I haven't tried with IIS.... but I am sure it can be done.I have added EMAIL ALERTS support.
The emails will be sent out by whatever mail server you configure in php.ini, right?
Have you tried this on Windows under IIS?I have added EMAIL ALERTS support.you can change port to default in port section, but it won't work if you set same port for all miners.Any chance this can be modified to use the default port of 4028 for all miners?Getting an error from the index file, fails to operate at all. You Sir, are you trying to steal my coins?
Follow the tutorial and you should get it working.
I posted project to github now so you can check the files.post it on github. Your link is asking me to download exe which I'd never do without seeing the source code.
Looks nice.
I'd like to try it. Post your script on github.
I posted project to github now.File is suspicious.QuoteSHA256: 33bfc4e9478de38255b307ae725dd5a7a940d3a2bb47bf9028f57a5493e55598https://www.virustotal.com/cs/file/33bfc4e9478de38255b307ae725dd5a7a940d3a2bb47bf9028f57a5493e55598/analysis/1370151504/
File name: monitoring.rar.exe
Detection ratio: 4 / 47
Analysis date: 2013-06-02 05:38:24 UTC ( 0 minut ago )
I don't know where did you find EXE, but well it is on github now so do not worry about it anymore.File is suspicious.QuoteSHA256: 33bfc4e9478de38255b307ae725dd5a7a940d3a2bb47bf9028f57a5493e55598https://www.virustotal.com/cs/file/33bfc4e9478de38255b307ae725dd5a7a940d3a2bb47bf9028f57a5493e55598/analysis/1370151504/
File name: monitoring.rar.exe
Detection ratio: 4 / 47
Analysis date: 2013-06-02 05:38:24 UTC ( 0 minut ago )post it on github. Your link is asking me to download exe which I'd never do without seeing the source code.
Looks nice.
I'd like to try it. Post your script on github.Getting an error from the index file, fails to operate at all.SIMPLE CGMINER REMOTE MONITORING SCRIPT NOW WITH ALERTS
I made this script so I can check status for my rigs from anywhere not just my local computer.
I know there is ANUBIS but it is too heavy for me. I just needed a simple status script.
You will need:
- Webserver / webhosting with PHP (with socket support enabled)
- Crontab access for Alerts
- Postfix or Sendmail for sending Email Alerts
- Miners using Cgminer
1. CONFIGURING CGMINER
Enable API support with adding this to the cgminer.conf:Code:"api-port" : "4001",
"api-listen" : true,
"api-allow" : "YOUR_WEBSERVER_IP",
or cgminer command line:Code:--api-port 4001 --api-listen --api-allow "YOUR_WEBSERVER_IP"
Change YOUR_WEBSERVER_IP to your webserver REMOTE IP.
With --api-allow only webserver remote IP has the read only access to the cgminer API. This has to be set for security reasons.
Each rig needs its own api-port! Ports numbers can be ANYTHING you want as long the are not already taken. For example you can set port 4001 for Rig #1, 4002 for Rig #2, 4003 for Rig #3, etc.
2. OPEN PORTS ON ROUTER / FIREWALL
If you have a router or a firewall you will need to open ports you have chosen for your rigs. In my example you will need to open ports 4001, 4002, 4003.
To do this you will have to know your rigs local IPs and set the port forwarding on router to these IPs.
You get the rig's local IP number with:
on windows open command prompt and run:Code:ipconfig
Look at "IPv4 Address" of your network adapter.
on linux run command:Code:ifconfig
Look at "inet addr:" of your network adapter.
3. SETUP MONITORING PHP SCRIPTS
Download files from here:
https://github.com/Paxxil/cgminer_remote_monitoring
Open functions.inc.php in your text editor.
Follow the instructions inside and add your miner rigs settings there.
After you made the changes, FTP to your webserver, navigate to your public www directory, create subdirectory "monitoring" and upload the files to it.
If you set everything right you should get the monitoring stats when you navigate to http://your_webserver_ip/monitoring/ (or if you have a domain http://wwww.your_domain.com/monitoring/)
4. CONFIGURING ALERTS
Open functions.php.inc in your text editor.
Edit the settings (email, alert configs) in the # SETUP ALERTS # Section.
Next you will have to make the file email.lock writable by the script.
In linux you do it with command:Code:chmod 666 email.lock
Now open crontab editor:Code:crontab -e
And put ABSULUTE path to the monitoring_cron.php scriptCode:*/2 * * * * php /path/to/your/monitoring_cron.php >/dev/null 2>&1This will execute monitoring_cron.php every 2 minutes.
If you want to check the server less frequently change */2 * * * * part.
Some examples:Code:* * * * * => every minute
*/5 * * * * => every 5 minutes
0 * * * * => every hour
0 0 * * * => once a day at midnight server time
Save the file and shut down one cgminer to test the script. If you receive the email then everything works.
If you can not get it to work just PM me and I will help you.
If you like it please support it with donating:
LTC : LdQ1UHiRy24Tvmm8NHbhAdHL3Qf3JqrUbG
BTC : 1EA8UrpifP9hi7LZHjJphCJQ6Hh45mb5pP
Good Luck!
--p4xil
EDIT
2014-01-02 : v2.1.1 Fixed some bugs
2013-12-29 : v2.1 Added ASC and PGA support
2013-06-13 : Fixed some bugs
2013-06-04 : v2.0 Added Email Alerts
Pages:Jump to: