[19. April 2013] A-400 Advanced Network Setup now available | [11 Jan. 2013] Customize your A-400 Home Screen

Firmware: A-400 [13 May 2013] | C-300 [30 Nov. 2012] | A-300 [30 Nov. 2012] | C-200 [21 Jan. 2013] | A-200/A-210 [10 Aug. 2012]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Thread Closed 
Wake up NAS from Popcorn
07-27-2010, 10:21 PM
Post: #31
RE: Wake up NAS from Popcorn
Keep in mind for the method linked to work the nic in your nas also needs to support wake on ARP. Does it?

So you need a switch that supports IGMP snooping and a nic in the device you want to wake up that supports wake on ARP
Find all posts by this user
07-27-2010, 10:25 PM (This post was last modified: 07-31-2010 10:52 AM by hispanico.)
Post: #32
RE: Wake up NAS from Popcorn
(07-27-2010 10:21 PM)johnpoz Wrote:  Keep in mind for the method linked to work the nic in your nas also needs to support wake on ARP. Does it?

So you need a switch that supports IGMP snooping and a nic in the device you want to wake up that supports wake on ARP
I have QNap 439 II Pro... i see if it has this option, but meanwhile i prefer verify because the script of mrfac in first post not work.... Dodgy

Thank

P.S
I speak with technical of QNap and wake on ARP is not supported...

Popcorn A-200 (110308) [Image: mymod.jpg] Windows Seven Ultimate 32bit
Asus P8P67 deluxe - Intel i7-2600k - DDR3 4GB
Ati HD 7970 & Nvidia 9800gt - HAF 932
PopCorn A-200 - QNap 439 II Pro 8TB
Find all posts by this user
08-30-2010, 11:00 PM
Post: #33
RE: Wake up NAS from Popcorn
hi everyone

did someone mange to run this script on c-200 ?

I have put mine script on usb drive - what is a correct path ih http://localhost.drives/ ...

thanks in advance
Find all posts by this user
09-19-2010, 09:20 PM
Post: #34
RE: Wake up NAS from Popcorn
Hey,

Just want to let you know what things I had to do to get the WOL working for my A-200.

First of all, dont forget to give execution permission to NAS-start.cgi

The webservice url Im using is:
http://localhost.drives:8883/HARD_DISK/NAS-start.cgi
(please note the / instead of the \)

Here is my NAS-start.cgi:
Code:
#!/bin/sh

MARKER="#M_A_R_K_E_R_do_not_remove_me"


start()
{
    echo -n "Sending MP to NAS<br>"
    /opt/sybhttpd/localhost.drives/SATA_DISK/Apps/Busybox/bin/busybox ether-wake -b -i wlan0 xx:xx:xx:xx:xx:xx
    echo "Magic Packet Sent..."
}


start_html()
{
    echo "Content-Type: text/html"
    echo ""
    cat <<EOF
<html>
<head>
<title>
NAS WOL started
</title>
</head>
<body>
            
EOF
}
            
end_html()
{
    cat <<EOF
</body>
</html>
EOF
}
start_html
start
end_html

exit 0

Please note that I changed the busybox path from:
.bin/busybox
to:
Apps/Busybox/bin/busybox

I also changed HARD_DISK to SATA_DISK

And last but not least, I added -i wlan0 to the ether-wake command because Im using the wireless adapter and I was getting "network not found" (or something like that) since it seems ether-wake tries to use eth0 by default.

What is still not working are the start_html() and end_html() functions. Anyway, I think I can live without them Smile
Find all posts by this user
02-15-2011, 08:45 PM (This post was last modified: 02-15-2011 08:47 PM by johnk.)
Post: #35
RE: Wake up NAS from Popcorn
In case it helps anyone, I just got the script in the first post to work on my A-100 (latest firmware), but I did have to tweak the script slightly. I changed this line:

/opt/sybhttpd/localhost.drives/HARD_DISK/.bin/busybox ether-wake -b put_mac_addres_here

to:

/bin/busybox ether-wake -b put_mac_addres_here

This was using the Busybox installed along with Telnetd using the CSI tool. Thanks to the OP.
Find all posts by this user
03-06-2011, 11:39 AM
Post: #36
RE: Wake up NAS from Popcorn
Thanks to this thread I got Wake on LAN working from a HTML file on my Popcorn B-110. Smile

But it's still a bit clumsy to navigate to the HTML and back so I'd like to remap the Eject button (which I have no use for) on the Remote to the Wake on LAN HTML page. Or even better, make the remote button just execute the WOL command to my Mediaserver.

Is there any way to achieve this? I read about "TVID" in custom HTML files, but I don't really need a custom page, just a function to remap the WOL command to the Eject button on the remote.

Would appreciate any suggestions.
Find all posts by this user
03-10-2011, 02:56 PM
Post: #37
RE: Wake up NAS from Popcorn
This thing works really fine on my C-200, but can anybody help with a script that will shutdown a remote-PC (FreeNAS)?

I know i asked this question in another thread, but maybe someone can help.
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  PopCorn MKV AudioConverter HeartWare 1,759 1,487,553 Today 07:10 AM
Last Post: HeartWare
  SqueezeSlave available for Popcorn Hour duanep 13 7,284 03-16-2013 08:36 AM
Last Post: Wim57
  Shairport (emulator airport express) on popcorn lololo 8 5,049 09-17-2012 09:34 PM
Last Post: LordHelmchen
  Support thread for HeartWare's PopCorn MKV Chapter Maker HeartWare 72 44,799 01-01-2012 10:10 AM
Last Post: halfelite
Rainbow Litepodder v1.0.0 for Popcorn Hour A-100/A-110/B-110 (podcast downloader) philofred 117 38,760 04-05-2011 03:17 AM
Last Post: jasch
  Setting up Popcorn Hour to Logitec Harmony Remote collingwood 5 9,431 12-30-2010 08:54 AM
Last Post: halfelite
  NAS Mount problem sampras 0 1,166 11-04-2010 04:05 PM
Last Post: sampras
  Popcorn does not see Twonky or PS3 Media Server rgn2000 0 3,215 09-02-2010 09:14 PM
Last Post: rgn2000
  SqueezeSlave for PopCorn (??) jjnh 0 2,420 08-20-2010 06:57 PM
Last Post: jjnh
  ISO and DVD from NFS on NAS not working DikkieDick 5 2,716 07-29-2010 09:40 AM
Last Post: DikkieDick

Forum Jump: