xboxscene.org forums

Author Topic: Wake On Lan Script Problem  (Read 168 times)

ventline

  • Archived User
  • Jr. Member
  • *
  • Posts: 76
Wake On Lan Script Problem
« on: January 26, 2006, 09:27:00 PM »

Ok I have the wake on lan(wol) script installed and set up to my pc's mac address. When I run the wol script I first get an error saying "Master server connection problem Please try again later" well i hit ok. I then try and wake my pc with no luck. I do have the script setup to send the wol packet to my pc's mac address, I have foward port 9 UDP in my router, and yes my nic card has the wol support. I've checked the lights on the nic card and oh yes there on. Can anyone please help me. Thanks

P.S. I have XBMC-CVS_2006-01-24-T3CH

This post has been edited by ventline: Jan 27 2006, 05:31 AM
Logged

drzoo2

  • Archived User
  • Newbie
  • *
  • Posts: 14
Wake On Lan Script Problem
« Reply #1 on: January 27, 2006, 06:23:00 PM »

The authors email address is in the script. He was very good at getting back to me. Where did you get it?

Zoo
Logged

ventline

  • Archived User
  • Jr. Member
  • *
  • Posts: 76
Wake On Lan Script Problem
« Reply #2 on: January 27, 2006, 08:12:00 PM »

I got it from his web site. and im going to email him now. thanks
Logged

bigcletus

  • Archived User
  • Newbie
  • *
  • Posts: 12
Wake On Lan Script Problem
« Reply #3 on: February 09, 2006, 11:40:00 PM »

I get the same error "Master server connection problem Please try again later".  But it is still powering on my pc so I guess it is working....
Logged

jeffrae

  • Archived User
  • Newbie
  • *
  • Posts: 2
Wake On Lan Script Problem
« Reply #4 on: October 25, 2006, 04:18:00 AM »

I had the same problem and it turns out that the author has left out a couple of lines of code in wol.py

Change from this to
CODE
#Imports
import os.path
import re
import urllib
import xbmc
import xbmcgui
import time
import settingsmgr
import socket
import struct

ScriptPath = re.sub('^(.*?)[\\\\;]*$','\\1\\\\',os.getcwd()) #works in both emu and xbox
settingsfile=ScriptPath+'settings.xml'
settings=settingsmgr.ReadSettings(settingsfile)

ACTION_MOVE_LEFT        =  1    
ACTION_MOVE_RIGHT       =  2


This is new code

CODE
#Imports
import os.path
import re
import urllib
import xbmc
import xbmcgui
import time
import settingsmgr
import socket
import struct

ScriptPath = re.sub('^(.*?)[\\\\;]*$','\\1\\\\',os.getcwd()) #works in both emu and xbox
settingsfile=ScriptPath+'settings.xml'
settings=settingsmgr.ReadSettings(settingsfile)

#Auto Update Location Information
URLsite = 'http://titancore.net/'
URLhome = URLsite + 'wakeonlan'+'/'

ACTION_MOVE_LEFT        =  1    
ACTION_MOVE_RIGHT       =  2


There was no reference to the actual URL

Another point is that if you run the autoupdate.py script it will over write you exiting settings and wol.py files
so check files after running autoupdate,py

to stop overwriting your setting.xml look for the following line in autoupdate.py

CODE
                urllib.urlretrieve(URLhome+'settings.xml',ScriptPath+'settings.xml')


and change it to ( note the hash at the start of the line)

CODE
#            urllib.urlretrieve(URLhome+'settings.xml',ScriptPath+'settings.xml')


Great utilities

First time poster
I hope this helps

Regards JeffRae

This post has been edited by jeffrae: Oct 25 2006, 11:28 AM
Logged