Bitcoin Forum
May 24, 2024, 03:53:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: WeMo Switch, Remotely booting, Wake-On-LAN etc.  (Read 628 times)
siforek (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile
September 14, 2017, 12:11:29 AM
 #1

I've got a WeMo Insight: http://www.belkin.com/us/p/P-F7C029/ which is cool cause it's got an app that shows wattage & even has an API I can use in conjunction with others to calculate all kinds of ratios/stats. Only problem is it only shows wattage over local wifi, but that's another problem all together.

What I'm really looking to do is, say that my rig locks up for whatever reason, maybe I have a slightly unstable OC etc. I get a notification that the worker is down & then I simply turn off the WeMo switch, turn it back on & then use WOL(ethtools) to tell it to boot back up. Seems simple enough.. Actually it would be even simpler if my motherboard(ASRock H110 Pro BTC+) supported Power Recovery where it'd just power back up after turning the switch back on but I don't think it does(please correct me if possible) :/

Anyway. I'd really like to get your thoughts/ideas on this. What do you do & how would you suggest setting this up where I could reboot my rigs from 3 states away in the event that SSH is unresponsive? I could figure something out but I'm assuming those with more experience than I may have a even better solution.

Thanks!
Metroid
Sr. Member
****
Offline Offline

Activity: 2142
Merit: 353


Xtreme Monster


View Profile
September 14, 2017, 12:21:26 AM
 #2

This is like the tp link version, you can control your pc remotely. There is even a way to auto restart your pc if hangs out however that will make you to do some research, the first step I gave you with the info that is possible now is your time to go and search a way to, go tiger, you can do it hehe

BTC Address: 1DH4ok85VdFAe47fSVXNVctxkFhUv4ujbR
siforek (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile
September 14, 2017, 12:25:17 AM
 #3

Looks like the power recovery option was in my bios, just under chipset settings Smiley That saves me hella hassle with avoiding the whole WOL BS Smiley
Metroid
Sr. Member
****
Offline Offline

Activity: 2142
Merit: 353


Xtreme Monster


View Profile
September 14, 2017, 12:33:18 AM
 #4

You dont need wol, every motherboard as far as i know has the auto turn on option.

BTC Address: 1DH4ok85VdFAe47fSVXNVctxkFhUv4ujbR
siforek (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile
September 14, 2017, 12:36:19 AM
 #5

You dont need wol, every motherboard as far as i know has the auto turn on option.

Yeah I just had to dig for that setting & it works great! Now if I could just access the WeMo remotely(might need to open a port or something idk). I do need 2 more of these switches though. Any suggestions on better ones? I thought the WeMo Insight was the only one that showed wattage as well?
jimmykl
Full Member
***
Offline Offline

Activity: 349
Merit: 102


View Profile
September 14, 2017, 12:38:24 AM
 #6

I've got a WeMo Insight: http://www.belkin.com/us/p/P-F7C029/ which is cool cause it's got an app that shows wattage & even has an API I can use in conjunction with others to calculate all kinds of ratios/stats. Only problem is it only shows wattage over local wifi, but that's another problem all together.

What I'm really looking to do is, say that my rig locks up for whatever reason, maybe I have a slightly unstable OC etc. I get a notification that the worker is down & then I simply turn off the WeMo switch, turn it back on & then use WOL(ethtools) to tell it to boot back up. Seems simple enough.. Actually it would be even simpler if my motherboard(ASRock H110 Pro BTC+) supported Power Recovery where it'd just power back up after turning the switch back on but I don't think it does(please correct me if possible) :/

Anyway. I'd really like to get your thoughts/ideas on this. What do you do & how would you suggest setting this up where I could reboot my rigs from 3 states away in the event that SSH is unresponsive? I could figure something out but I'm assuming those with more experience than I may have a even better solution.

Thanks!

I use my insights as you propose.

My method is:
ethmonitoring.com sends alerts to rigs misbehaving (but you could use another app or pool alerts)
try to access via vnc (because i'm using windows, ssh/teamviewer are alternatives)
if it's not responding cycle power with the wemo app
bios is set to always power on
miner app runs on startup

Re: BIOS power up state:
It's for a different model Asrock but I'd be surprised if they removed it from a mining mobo?!:
Quote
in your asrock bios menu, go to Advanced => Chipset configuration. there you find it. "Restore on AC/Power Loss" change that to "power on" or
whatever it says regarding turning back on or booting etc. this reboots automatically on powerfailure.
https://www.reddit.com/r/dogemining/comments/209gnd/asrock_h81_pro_btchow_do_i_configure_it_to_start/

Re: only able to view energy use locally:
Not sure what's up with your setup? I can view energy use from anywhere with the wemo app. If you setup a VPN server (some routers can run one or you could use a raspberry pi / an always on machine which isn't mining) then you can connect to that and the wemo app will think it's local.

Also if you're into scripting and get VPN setup then you might find this interesting, you could remove the need for the belkin app entirely https://ouimeaux.readthedocs.io/en/latest/installation.html





jimmykl
Full Member
***
Offline Offline

Activity: 349
Merit: 102


View Profile
September 14, 2017, 12:50:45 AM
 #7

You dont need wol, every motherboard as far as i know has the auto turn on option.

Yeah I just had to dig for that setting & it works great! Now if I could just access the WeMo remotely(might need to open a port or something idk). I do need 2 more of these switches though. Any suggestions on better ones? I thought the WeMo Insight was the only one that showed wattage as well?

I have a friend who uses http://www.tp-link.com.au/products/details/cat-5516_HS110.html with no problems.

I didn't have to open any ports for wemo remote access to work but that obviously depends on your network setup. You could try forwarding TCP/UDP 3478, TCP 3475, TCP 5228, TCP 8443 and TCP 8080 http://community.wemo.com/t5/WEMO-Application/Wemo-Switch-cannot-enable-remote-access/td-p/5436
Metroid
Sr. Member
****
Offline Offline

Activity: 2142
Merit: 353


Xtreme Monster


View Profile
September 14, 2017, 01:28:02 AM
 #8

Any suggestions on better ones? I thought the WeMo Insight was the only one that showed wattage as well?

They are all copy cat of other products, you just need wifi 2.4 for them to work remotely.

BTC Address: 1DH4ok85VdFAe47fSVXNVctxkFhUv4ujbR
bucketofsocks
Member
**
Offline Offline

Activity: 83
Merit: 11


View Profile
September 14, 2017, 01:36:45 AM
 #9

I use tp-link hs110 with that board and all works great
siforek (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile
September 14, 2017, 10:49:05 PM
 #10

I got a few more smart monitoring plugs (tplink) but just realized Ill be running 2x PSUs for each rig on 240v :/ Idk how to switch 2x 240v plugs off.. Anyone else?
joaocha
Full Member
***
Offline Offline

Activity: 254
Merit: 100


View Profile
September 15, 2017, 12:40:07 AM
 #11

Search for SONOFF 16 A version, thank me latter
siforek (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile
September 15, 2017, 05:46:36 PM
 #12

This looks like exactly what I need: https://www.itead.cc/sonoff-dual.html & it's super cheap. It looks like I could just wire it into the outlets themselves & turn off both PSUs at the same time Smiley There's no power monitoring but honestly that's the least of my worries since I now know exactly how much power I'm using & that won't change.

Thanks for the Sonoff suggestion! I'm going to keep looking at them to make sure this is in fact what I need & then order a bunch of them Smiley

siforek (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile
September 15, 2017, 10:49:30 PM
 #13

Really liking these Sonoff devices. Ultimately I need a way to turn off 2x 240v outlets at the same time. Oh & I have 6 240v outlets(3 rigs for now). So 3 of these: https://www.itead.cc/sonoff-dual.html might work as they say you can turn off/on multiple "gangs" as they call them at the same time or individually. I could also do 8 240v outlets with 2 of these: https://www.itead.cc/sonoff-4ch-pro.html OR I could get 6 of these: https://www.itead.cc/sonoff-pow.html to also get power usage(nice to have but not really critical at this point) the power bill would suffice.

What do you guys think?
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!