Again: create logs with pastekodi for the working and not working case.
Youtube live stream as alarm clock
-
OnkelHo27 -
July 6, 2021 at 7:53 PM -
Thread is Resolved
-
-
-
Sooo short delay due to holidays....
It answers
import xbmcaddon
ImportError: No module named xbmcaddon
Again: create logs with pastekodi for the working and not working case.
Here is my pastekodi: http://ix.io/3u9n
At the moment nothing works
-
Sooo short delay due to holidays....
It answers
import xbmcaddon
ImportError: No module named xbmcaddon
Try This as before.. rename .txt to .zip and install as addon
-
That works by execuing via the command you posted as well as direcly after reboot.
-
Another note: Some of the problems might be caused by a stange thing. If I your txt-file to a zip and upload, it works. If I make the txt file to a zip file, unpack, edit and pack again it doesn't work any more. So I just changed the video ID and get a an error on installation that the structure is not corect and the instalation didn't work.
-
Another note: Some of the problems might be caused by a stange thing. If I your txt-file to a zip and upload, it works. If I make the txt file to a zip file, unpack, edit and pack again it doesn't work any more. So I just changed the video ID and get a an error on installation that the structure is not corect and the instalation didn't work.
Not sure what's going on..
Can't you just connect to your box from a PC and edit from there?
post the video id here I ll try it for you
-
Code
Display More2021-07-26 20:22:08.619 T:1800377216 ERROR: Traceback (most recent call last): 2021-07-26 20:22:08.620 T:1800377216 ERROR: File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/yt_play.py", line 50, in play_video 2021-07-26 20:22:08.627 T:1800377216 ERROR: video_streams = client.get_video_streams(context, video_id) 2021-07-26 20:22:08.628 T:1800377216 ERROR: File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/client/youtube.py", line 104, in get_video_streams 2021-07-26 20:22:08.637 T:1800377216 ERROR: video_streams = video_info.load_stream_infos(video_id) 2021-07-26 20:22:08.638 T:1800377216 ERROR: File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 515, in load_stream_infos 2021-07-26 20:22:08.652 T:1800377216 ERROR: return self._method_get_video_info(video_id) 2021-07-26 20:22:08.652 T:1800377216 ERROR: File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 860, in _method_get_video_info 2021-07-26 20:22:08.653 T:1800377216 ERROR: raise YouTubeException(reason) 2021-07-26 20:22:08.654 T:1800377216 ERROR: YouTubeException: This live stream recording is not available. 2021-07-26 20:22:08.655 T:1800377216 ERROR: [plugin.video.youtube] None
autoexec.py is working but youtube refuse to play.
-
Code
Display More2021-07-26 20:22:08.619 T:1800377216 ERROR: Traceback (most recent call last): 2021-07-26 20:22:08.620 T:1800377216 ERROR: File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/yt_play.py", line 50, in play_video 2021-07-26 20:22:08.627 T:1800377216 ERROR: video_streams = client.get_video_streams(context, video_id) 2021-07-26 20:22:08.628 T:1800377216 ERROR: File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/client/youtube.py", line 104, in get_video_streams 2021-07-26 20:22:08.637 T:1800377216 ERROR: video_streams = video_info.load_stream_infos(video_id) 2021-07-26 20:22:08.638 T:1800377216 ERROR: File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 515, in load_stream_infos 2021-07-26 20:22:08.652 T:1800377216 ERROR: return self._method_get_video_info(video_id) 2021-07-26 20:22:08.652 T:1800377216 ERROR: File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/video_info.py", line 860, in _method_get_video_info 2021-07-26 20:22:08.653 T:1800377216 ERROR: raise YouTubeException(reason) 2021-07-26 20:22:08.654 T:1800377216 ERROR: YouTubeException: This live stream recording is not available. 2021-07-26 20:22:08.655 T:1800377216 ERROR: [plugin.video.youtube] None
autoexec.py is working but youtube refuse to play.
During holidays the link of the livestream changed... I changed it and it works sometimes (with autoexec.py). However, there is still the issue that the internet connection doesn't establish at the begnning even if I let wait Kodi two minutes fot network connection. Do you have an idea how to restart kodi if it cannot establish internet connection. Here is the pastekodi for the not working case: http://ix.io/3uh6.
Not sure what's going on..
Can't you just connect to your box from a PC and edit from there?
post the video id here I ll try it for you
Editing directly on Kodi works. At least it can install the addon. However, it didn't play the stream?! Really strange everything... I think it might be the easiest way to just use the autoexec.py... The video ID is: BW6yxWvqEd0.
-
There is a strange REGDOM-CHANGE message and the network is connected 6 min later:
CodeApr 11 18:29:09 FSMediaStation wpa_supplicant[426]: wlan0: Trying to associate with 40:2b:50:e9:c9:8d (SSID='FS-WLan' freq=2437 MHz) Apr 11 18:29:10 FSMediaStation wpa_supplicant[426]: wlan0: CTRL-EVENT-DISCONNECTED bssid=40:2b:50:e9:c9:8d reason=0 Apr 11 18:29:10 FSMediaStation wpa_supplicant[426]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD [...] Apr 11 18:35:16 FSMediaStation wpa_supplicant[426]: wlan0: Trying to associate with 40:2b:50:e9:c9:8d (SSID='FS-WLan' freq=2437 MHz)
You can try to set the correct regulatory domain via LibreELEC-Settings addon but I don't know if this help.
Do you have an idea how to restart kodi if it cannot establish internet connection.
Not OOTB. Mario77 's service can be modified to check the online status via connmanctl state and reboot after an interactive timeout.
-
6 min is a bit too much for your wifi to connect after startup..not sure if you can delay startup that long from settings but you can always delay the startup of your service but I would avoid these workarounds and start by trying to fix your network issues..or just go wired if possible.
If you want to try service delay change the addon.py content to something like this:
-