Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 19
[RELEASE] Advanced Wake On Lan (WOL) Addon - Wake up a remote computer/server
#16
Hi mandark,

I just downloaded and installed your addon. I get a script error in script.advanced.wol when trying to run it manually and I get a script error in autostart.py when I have the addon configured to wake up my server on startup.

I'm running XBMC Eden 3 beta on a AT2 (4.4.4) - Not 100% sure of the versions, to put it right: Newest ATV2 Firmware, Seas0npass, latest XBMC-Build.

Here's the xbmc.log

Code:
18:38:05 T:87490560  NOTICE: -----------------------------------------------------------------------
18:38:05 T:87490560  NOTICE: Starting XBMC (11.0-BETA3 Git:20120207-1fef727), Platform: Darwin iOS (11.0.0 AppleTV2,1, Version 5.0.1 (Build 9A406a)). Built on Feb  8 2012
18:38:05 T:87490560  NOTICE: special://xbmc/ is mapped to: /private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome
18:38:05 T:87490560  NOTICE: special://xbmcbin/ is mapped to: /private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome
18:38:05 T:87490560  NOTICE: special://masterprofile/ is mapped to: /var/mobile/Library/Preferences/XBMC/userdata
18:38:05 T:87490560  NOTICE: special://home/ is mapped to: /var/mobile/Library/Preferences/XBMC
18:38:05 T:87490560  NOTICE: special://temp/ is mapped to: /var/mobile/Library/Preferences/XBMC/temp
18:38:05 T:87490560  NOTICE: special://frameworks/ is mapped to: /var/stash/Applications/XBMC.frappliance/Frameworks
18:38:05 T:87490560  NOTICE: The executable running is: /var/stash/Applications/XBMC.frappliance/XBMC
18:38:05 T:87490560  NOTICE: Local hostname: AppleTV
18:38:05 T:87490560  NOTICE: Log File is located: /var/mobile/Library/Preferences/xbmc.log
18:38:05 T:87490560  NOTICE: -----------------------------------------------------------------------
18:38:05 T:87490560  NOTICE: load settings...
18:38:05 T:87490560  NOTICE: special://profile/ is mapped to: special://masterprofile/
18:38:05 T:87490560  NOTICE: loading special://masterprofile/guisettings.xml
18:38:05 T:87490560  NOTICE: Getting hardware information now...
18:38:05 T:87490560    INFO: Using digital output
18:38:05 T:87490560    INFO: AC3 pass through is enabled
18:38:05 T:87490560    INFO: DTS pass through is enabled
18:38:05 T:87490560    INFO: AAC pass through is disabled
18:38:05 T:87490560    INFO: MP1 pass through is disabled
18:38:05 T:87490560    INFO: MP2 pass through is disabled
18:38:05 T:87490560    INFO: MP3 pass through is disabled
18:38:05 T:87490560   DEBUG: Error: Requested setting (videoscreen.screenmode) was not found.  It must be case-sensitive
18:38:05 T:87490560  NOTICE: Checking resolution 12
18:38:05 T:87490560  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
18:38:05 T:87490560   DEBUG: CPlayerCoreConfig::<ctor>: created player DVDPlayer for core 1
18:38:05 T:87490560   DEBUG: CPlayerCoreConfig::<ctor>: created player oldmplayercore for core 1
18:38:05 T:87490560   DEBUG: CPlayerCoreConfig::<ctor>: created player PAPlayer for core 3
18:38:05 T:87490560   DEBUG: CPlayerSelectionRule::Initialize: creating rule: system rules
18:38:05 T:87490560   DEBUG: CPlayerSelectionRule::Initialize: creating rule: rtv
18:38:05 T:87490560   DEBUG: CPlayerSelectionRule::Initialize: creating rule: hdhomerun/myth/rtmp/mms/udp
18:38:05 T:87490560   DEBUG: CPlayerSelectionRule::Initialize: creating rule: lastfm/shout
18:38:05 T:87490560   DEBUG: CPlayerSelectionRule::Initialize: creating rule: rtsp
18:38:05 T:87490560   DEBUG: CPlayerSelectionRule::Initialize: creating rule: streams
18:38:05 T:87490560   DEBUG: CPlayerSelectionRule::Initialize: creating rule: flv/aacp/sdp
18:38:05 T:87490560   DEBUG: CPlayerSelectionRule::Initialize: creating rule: mp2
18:38:05 T:87490560   DEBUG: CPlayerSelectionRule::Initialize: creating rule: dvd
18:38:05 T:87490560   DEBUG: CPlayerSelectionRule::Initialize: creating rule: dvdfile
18:38:05 T:87490560   DEBUG: CPlayerSelectionRule::Initialize: creating rule: dvdimage
18:38:05 T:87490560   DEBUG: CPlayerSelectionRule::Initialize: creating rule: sdp/asf
18:38:05 T:87490560   DEBUG: CPlayerSelectionRule::Initialize: creating rule: nsv
18:38:05 T:87490560  NOTICE: Loaded playercorefactory configuration
18:38:05 T:87490560  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
18:38:05 T:87490560  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
18:38:05 T:87490560  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
18:38:05 T:87490560  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
18:38:05 T:87490560  NOTICE: Default DVD Player: dvdplayer
18:38:05 T:87490560  NOTICE: Default Video Player: dvdplayer
18:38:05 T:87490560  NOTICE: Default Audio Player: paplayer
18:38:05 T:87490560  NOTICE: Disabled debug logging due to GUI setting. Level 0.
18:38:05 T:87490560  NOTICE: Log level changed to 0
18:38:05 T:87490560  NOTICE: Loading media sources from special://masterprofile/sources.xml
18:38:06 T:87490560  NOTICE: GL_VENDOR = Imagination Technologies
18:38:06 T:87490560  NOTICE: GL_RENDERER = PowerVR SGX 535
18:38:06 T:87490560  NOTICE: GL_VERSION = OpenGL ES 2.0 IMGSGX535-63.14.2
18:38:06 T:87490560  NOTICE: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 1.0
18:38:06 T:87490560  NOTICE: GL_EXTENSIONS = GL_OES_depth_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_separate_shader_objects GL_EXT_shader_texture_lod GL_EXT_texture_filter_anisotropic GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_IMG_read_format GL_IMG_texture_compression_pvrtc
18:38:06 T:87490560  NOTICE: initializing playlistplayer
18:38:06 T:87490560  NOTICE: DONE initializing playlistplayer
18:38:08 T:87490560   ERROR: ADDON: extension 'downloader/' is not currently supported for service addon
18:38:08 T:87490560   ERROR: Previous line repeats 1 times.
18:38:08 T:87490560  NOTICE: initialize done
18:38:08 T:87490560  NOTICE: Running the application...
18:38:09 T:101175296  NOTICE: -->Python Interpreter Initialized<--
18:38:09 T:100212736  NOTICE: -->Python Interpreter Initialized<--
18:38:09 T:87490560  NOTICE: ES: Starting event server
18:38:09 T:101175296  NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
18:38:09 T:101175296  NOTICE: UDP: Listening on port 9777
18:38:09 T:100212736   ERROR: Error Type: <type 'exceptions.ValueError'>
18:38:09 T:100212736   ERROR: Error Contents: need more than 1 value to unpack
18:38:09 T:106942464  NOTICE: -->Python Interpreter Initialized<--
18:38:09 T:100212736   ERROR: Traceback (most recent call last):
                                              File "/var/mobile/Library/Preferences/XBMC/addons/script.advanced.wol/autostart.py", line 14, in <module>
                                                import default
                                              File "/var/mobile/Library/Preferences/XBMC/addons/script.advanced.wol/default.py", line 79, in <module>
                                                except socket.error, (errno, msg):
                                            ValueError: need more than 1 value to unpack
18:38:14 T:108007424   ERROR: ADDON: extension 'downloader/' is not currently supported for service addon
18:39:31 T:103784448   ERROR: Previous line repeats 16 times.
18:39:31 T:103784448 WARNING: CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
18:39:33 T:106942464  NOTICE: -->Python Interpreter Initialized<--
18:39:33 T:106942464   ERROR: Error Type: <type 'exceptions.ValueError'>
18:39:33 T:106942464   ERROR: Error Contents: need more than 1 value to unpack
18:39:33 T:106942464   ERROR: Traceback (most recent call last):
                                              File "/var/mobile/Library/Preferences/XBMC/addons/script.advanced.wol/default.py", line 79, in <module>
                                                except socket.error, (errno, msg):
                                            ValueError: need more than 1 value to unpack

Hope you can use this for something. Thanks for your work and time!

Cheers
fastjack
Reply
#17
@fastjackTFG:

many thanks for posting your log! apart from the error - does the actual waking up of the server work?

i think you and "UDM1" are having similar problems and i've now been able to reproduce it with a XBMClive-eden-beta-installation. the problem with these systems is, that XBMC is not run as root. this is needed for the hostup-check-feature of the addon to work. of course this should not result in a script error, but a meaningful error message directly in XBMC. i've now fixed this.

could you please download and try this new version 1.1.1 here?

with this ersion you should get a meaningful error message instead of a script-error. you can disable this error-message completely by disabling the host-up-check-notification in the addon-settings. the waking up should still work then, only the verification of success or failure of the wake-up-process is turned of then.
Reply
#18
Thumbs Up 
Morning,

Turning off the Host-up-check got me rid off both errors. Your addon works like a charm! Waking up my WHS and keeping it alive with wol-packets.

I'll try the version 1.1.1 when I have time to. Today's schedule is pretty packed, so could take me a while.

Keep up your good work - this is exactly what I was looking for.
Thank you very much!
Reply
#19
Sorry,

Had no time to try the new addon. But I experienced problems with version 1.1.0.
If I turn on the "keep server alive with wol-packets" option on, I can no longer access internet streams and xbmc crashes on exit.

Could you have a look into this?

Fastjack
Reply
#20
fastjackTFG Wrote:Sorry,

Had no time to try the new addon. But I experienced problems with version 1.1.0.
If I turn on the "keep server alive with wol-packets" option on, I can no longer access internet streams and xbmc crashes on exit.

Could you have a look into this?

Fastjack
hi Fastjack!

thanks again for your feedback

i was able to reproduce the problem. it only occured when using both the continuous WOL-packets- and autostart-features together.
i think i was able to fix it. a new version (v.1.1.2) is available here.

could you please test, if this new version solves the problem for you too?

-mandark
Reply
#21
Hello,
I also use your Addon and have a error in autostart.py. I use a ATV2 and plugin version 1.1.2


here is my logfile:

http://pastebin.com/mhYzyAhg
Reply
#22
persching Wrote:Hello,
I also use your Addon and have a error in autostart.py. I use a ATV2 and plugin version 1.1.2

here is my logfile:

http://pastebin.com/mhYzyAhg

hi persching!

thanks for reporting!

unfortunately i don't have an ATV2 to reproduce the problem, but i've made some modifications, that will hopefully get rid of that error.

could you please download and try this new version (v.1.1.3)?

-mandark
Reply
#23
Hi mandark,

I've tried your version 1.1.3, the xbmc-crash-on-exit error seems to be gone (using autostart and StayingAliveBig Grin). Anyhow, xStream bitches a lot (Having various script errors), but it seems more like a xStream bug.

I'll keep watching.

Greetings and a nice weekend
fastjack
Reply
#24
I tried version 1.1.3 too, and it works fine. Smile
Reply
#25
@fastjack and persching:
many thanks for your feedback!

since no more problems have been reported at the moment, i've just submitted version 1.1.3 to the official XBMC-addon-repository. it should be added in the next days. i'll post here, when that has happened.
Reply
#26
v.1.1.3 is now available via the official XBMC-addon-repository.
Reply
#27
Hi Mandark, thanks for your wor k at this plugin. It works great on a xbmc Linux setup. Now I just need to work out how to have the plugin launched when I click on anything in the videos home screen (recently added, sub menus etc...)

Thanks again!
Reply
#28
teeedubb Wrote:Now I just need to work out how to have the plugin launched when I click on anything in the videos home screen (recently added, sub menus etc...)

i have implemented this using the following solution:

the skin "Aeon Nox" allows the creation of home-menu-items and -sub-items based on entries in the Favourites. using this, i have created new "Movies" and "TV Show" menu- and submenu-items and disabled the pre-configured ones.

these new items are then linked to favourites, which launches the AWOL-addon in addition to the actual menu-command.

here is an excerpt from my favourites.xml for this:

Code:
<favourite name="Movies+WOL">RunScript(&quot;script.advanced.wol&quot;,ActivateWindow(10025,&quot;videodb://1/&quot;,return),False)</favourite>
    <favourite name="Movies - Title+WOL">RunScript(&quot;script.advanced.wol&quot;,ActivateWindow(Videos,MovieTitles,return),False)</favourite>
    <favourite name="Video Files+WOL">RunScript(&quot;script.advanced.wol&quot;,ActivateWindow(Videos,Files,return),False)</favourite>
    <favourite name="Recently added movies+WOL">RunScript(&quot;script.advanced.wol&quot;,ActivateWindow(Videos,RecentlyAddedMovies,return),False)</favourite>
    <favourite name="Video Playlists+WOL">RunScript(&quot;script.advanced.wol&quot;,ActivateWindow(10025,&quot;special://videoplaylists/&quot;,return),False)</favourite>
    <favourite name="Update Video Library+WOL">RunScript(&quot;script.advanced.wol&quot;,UpdateLibrary(video),True)</favourite>
    <favourite name="TV shows+WOL">RunScript(&quot;script.advanced.wol&quot;,ActivateWindow(10025,&quot;videodb://2/&quot;,return),False)</favourite>
    <favourite name="Recently added episodes+WOL">RunScript(&quot;script.advanced.wol&quot;,ActivateWindow(Videos,RecentlyAddedEpisodes,return),False)</favourite>

the downside of this is, that the home-screen-widgets of e.g. the "Movies"-Menuitems (e.g. featured movies, etc.) are not displayed in the custom-made variant of that menu-item.

the only other option i can think of is editing the XML-files of the skin you are using directly, so that the AWOL+command is carried out, when the menu-items are pressed.

with this latter solution of course, these changes have to be redone after the skin is updated.

the most beautiful solution would of course be, if the skinners would implement the option to configure AWOL-support directly via the settings for each menuitem and submenuitem. Wink
Reply
#29
Hmmm... I might try out Aeon Nox... I had edited the confluence home.xml and had the AWOL launched when I pressed the videos item, but as you pointed out, after updating to eden rc2 my changes were erased. I know its possible to copy confulence to the userdata dir and have it as another skin with some minor edits. It would be nice if AWOL could be configured directly from the skin itself.

Im a bit time poor at the moment so Im not going to be able to try anything for a week or so, but Ill post about my progress in this thread. Thanks again!
Reply
#30
Thanks for creating this plugin.

I can't get autostart to work, i get this error: WakeOnLan - Unable to send magic packet (Network is unreachable). If i manually go and activate the plugin, there is no problem. Maybe there should be an option to delay, so the network is ready, i'm no expert. I'm using openelec pvr if it makes an difference.

Thank you in advvance

Reply
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 19

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Advanced Wake On Lan (WOL) Addon - Wake up a remote computer/server1
This forum uses Lukasz Tkacz MyBB addons.