Title: Sound alarm script to monitor internet and BAMT miner connectivity status Post by: 01BTC10 on April 21, 2012, 04:25:04 PM EDIT: Windows section added.
This is a script that will show/sound an alert if internet access or BAMT miner are unreachable. Linux: alarm.sh Code: #! /bin/bash You need curl and mpg321: Code: sudo apt-get install curl mpg321 Optional: Put a sound file renamed to alarm.mp3 in the same folder to activate the audible alarm. Windows: alarm.bat Code: @echo off Optional: You need mpg123 if you want audible alarm. Win32: http://www.mpg123.de/download/win32/ Win64: http://www.mpg123.de/download/win64/ I tested version 1.13.4-x86 on XP X86. Extract mpg123 then add alarm.bat in the same folder as mpg123.exe. Rename a .mp3 sound file to alarm.mp3 and put it in the same folder. Title: Re: Sound alarm script to monitor internet and BAMT miner connectivity status(Linux) Post by: Cablez on April 22, 2012, 03:25:59 PM That looks really neat, too bad it's not on windoze. I know I know, mitigating circumstances though. :D
Title: Re: Sound alarm script to monitor internet and BAMT miner connectivity status(Linux) Post by: 01BTC10 on April 22, 2012, 03:58:29 PM I may do one for Windows someday. It's very easy to write.
Title: Re: Sound alarm script to monitor internet and BAMT miner connectivity status(Linux) Post by: 01BTC10 on April 22, 2012, 04:31:44 PM Ok it will be done today :D
Title: Re: Sound alarm script to monitor internet and BAMT miner connectivity status(Linux) Post by: 01BTC10 on April 22, 2012, 07:43:07 PM Subscribed then. ;) Added Windows script to first post. It could be more pretty but it should work like that.Title: Re: Sound alarm script to monitor internet and BAMT miner connectivity status Post by: Cablez on April 22, 2012, 10:21:19 PM Cool, I will give this a go and let you know how I get on. :)
Title: Re: Sound alarm script to monitor internet and BAMT miner connectivity status Post by: Bitcoiner_cph on February 11, 2014, 08:41:54 AM How to make the alarm work, with normal CGminer installation on xubuntu?? SSH???
Title: Re: Sound alarm script to monitor internet and BAMT miner connectivity status Post by: 01BTC10 on February 12, 2014, 12:08:52 AM How to make the alarm work, with normal CGminer installation on xubuntu?? SSH??? This topic is very old and I'm almost ashamed by my bash skills back then. Anyway to make the alarm work you need mpg321 on the computer running the script and a sound file named alarm.mp3 in the same folder. Code: sudo apt-get install mpg321 |