Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Mezzmo Kodi Add-on Automation

  1. #1
    Join Date
    Feb 2014
    Posts
    83

    Default Mezzmo Kodi Add-on Automation

    http://www.mezzmo.com/wiki/doku.php?...odi_user_guide

    In this article the solution to use the autoexec.py works 100%

    But, as you can see on this screenshot: http://www.mezzmo.com/wiki/lib/exe/f...on-servers.png

    it brings you to the default plugin view. In the case of the example you see the server named "Mezzmo" next to the refresh button.

    QUESTION 1: How do I modify the py to automatically go into the server "Mezzmo"

    QUESTION 2: And to go even further. How can I set it that it automatically goes into: "Mezzmo / Videos" ?

    Also about adding a button to kodi to launch mezzmo.

    QUESTION 3: How would I configure such a button? this would be a kodi question but maybe someone here knows how.

    In Kodi I add a button for starting Mezzmo:
    <item id="81">
    <label>Mezzmo Video</label>
    <onclick>ActivateWindow(10025,&quot;plugin://plugin.video.mezzmo/?content_type=video&quot;,return)</onclick>
    <icon>-</icon>
    <thumb>-</thumb>
    </item>

    But if I could tell it somehow to automatically login to a specific folder in mezzmo I could do this
    <item id="81">
    <label>Mezzmo Video</label>
    <onclick>ActivateWindow(10025,&quot;plugin://plugin.video.mezzmo/?content_type=video&quot;,return)</onclick>
    <icon>-</icon>
    <thumb>-</thumb>
    </item>
    <item id="82">
    <label>Mezzmo Music</label>
    <onclick>ActivateWindow(10025,&quot;plugin://plugin.video.mezzmo/?content_type=video&quot;,return)</onclick>
    <icon>-</icon>
    <thumb>-</thumb>
    </item>
    <item id="83">
    <label>Mezzmo Pictures</label>
    <onclick>ActivateWindow(10025,&quot;plugin://plugin.video.mezzmo/?content_type=video&quot;,return)</onclick>
    <icon>-</icon>
    <thumb>-</thumb>
    </item>

    But then Video/Music/Pictures would have to point at that specific server and folder of course.

  2. #2
    Join Date
    Feb 2014
    Posts
    83

    Default

    Asked this and found the solution myself already almost instantly:

    ActivateWindow(10025,&quot;plugin://plugin.video.mezzmo/?contentdirectory=http%3a%2f%2f172.22.56.2%3a53168 %2fContentDirectory%2fcontrol&amp;mode=server&quot ;,return) is the solution..

    silly me

  3. #3
    Join Date
    Mar 2012
    Posts
    126

    Default

    I’d love to see a complete solution for this that adds direct links to the content folders for each media type (i.e. Movies, Music, Photos).

    If you have links to knowledge...

  4. #4
    Join Date
    Jun 2012
    Posts
    987

    Default

    I started looking at this awhile back and am willing to take another run at it. If we can pass an argument to the Mezzmo Addon for Video, Music, Photos etc. then maybe the RunScript vs. RunAddon option documented on the Kodi wiki could work. Peter can probably shed some light on the Mezzmo AddOn's ability to receive any arguments.

  5. #5
    Join Date
    Sep 2009
    Posts
    2,677

    Default

    The Addon lists the content as it appears in the Mezzmo library so if you want to customize how it is displayed you should do this in the Mezzmo library and not in the Addon, by default the Mezzmo library has the Video, Music and Photos items under the root of the library so you can try doing this if you do not have your library setup this way.

    Mezzmo Android: Install it on your tablet, smartphone, Android TV or Amazon Fire to browse and stream files from your Mezzmo library to all your devices. Full details at http://www.conceiva.com/products/mez...mo_android.asp
    Mezzmo for Kodi Add-on: Install it into Kodi to stream files from your Mezzmo library directly in Kodi. Full details at http://www.mezzmo.com/wiki/doku.php?...odi_user_guide
    Mezzmo for Roku App: Install it onto your Roku to stream files from your Mezzmo library. Full details at http://www.mezzmo.com/wiki/doku.php?...oku_user_guide
    Wiki: User Guides & Reference Manual at http://www.mezzmo.com/wiki
    Facebook: http://www.facebook.com/Mezzmo.DLNA.Server
    Twitter: https://twitter.com/conceiva_mezzmo
    Web: http://www.mezzmo.com

  6. #6
    Join Date
    Jun 2012
    Posts
    987

    Default

    Peter I was talking about trying to have the Addon start and go right to the video folder for instance. The Autoexec.py line I worked on last year autostarts the Addon but I'd like to go further and say calll the Mezzmo server and go to the Video folder. Outside the Addon this can be done either by a script or via the Kodi favorites option. I was thinking possibly the RunScript option in Kodi and then pass the Addon a pointer or variables on the server and folder / playlist to position on.

  7. #7
    Join Date
    Sep 2009
    Posts
    2,677

    Default

    The addon uses arguments to determine the folder/playlist to browse so if you could pass objectID as 3 then this would browse the video folder. Line 953 in mezzmo.py in the addon shows how this is used.

    Mezzmo Android: Install it on your tablet, smartphone, Android TV or Amazon Fire to browse and stream files from your Mezzmo library to all your devices. Full details at http://www.conceiva.com/products/mez...mo_android.asp
    Mezzmo for Kodi Add-on: Install it into Kodi to stream files from your Mezzmo library directly in Kodi. Full details at http://www.mezzmo.com/wiki/doku.php?...odi_user_guide
    Mezzmo for Roku App: Install it onto your Roku to stream files from your Mezzmo library. Full details at http://www.mezzmo.com/wiki/doku.php?...oku_user_guide
    Wiki: User Guides & Reference Manual at http://www.mezzmo.com/wiki
    Facebook: http://www.facebook.com/Mezzmo.DLNA.Server
    Twitter: https://twitter.com/conceiva_mezzmo
    Web: http://www.mezzmo.com

  8. #8
    Join Date
    Jun 2012
    Posts
    987

    Default

    Quote Originally Posted by Peter View Post
    The addon uses arguments to determine the folder/playlist to browse so if you could pass objectID as 3 then this would browse the video folder. Line 953 in mezzmo.py in the addon shows how this is used.
    Peter. Thanks. I'll look into this but how would I tell the Addon to use the Mezzmo server then pass the video folder argument ? When the Addon starts it is on the server screen not at the playlist / folder level.
    Last edited by jbinkley60; 11-10-2017 at 06:27 AM.

  9. #9
    Join Date
    Sep 2009
    Posts
    2,677

    Default

    You would need to pass the argument of 'mode' as 'server' and 'contentdirectory' as the URL to the content directory api in the server. Have a look at line 951 in mezzmo.py. You could use addon.getSetting and addon.setSetting to retrieve and store the URL of the previously used server so that you can just pass mode=server and if contentdirectory is null or empty you can load the last server.

    Mezzmo Android: Install it on your tablet, smartphone, Android TV or Amazon Fire to browse and stream files from your Mezzmo library to all your devices. Full details at http://www.conceiva.com/products/mez...mo_android.asp
    Mezzmo for Kodi Add-on: Install it into Kodi to stream files from your Mezzmo library directly in Kodi. Full details at http://www.mezzmo.com/wiki/doku.php?...odi_user_guide
    Mezzmo for Roku App: Install it onto your Roku to stream files from your Mezzmo library. Full details at http://www.mezzmo.com/wiki/doku.php?...oku_user_guide
    Wiki: User Guides & Reference Manual at http://www.mezzmo.com/wiki
    Facebook: http://www.facebook.com/Mezzmo.DLNA.Server
    Twitter: https://twitter.com/conceiva_mezzmo
    Web: http://www.mezzmo.com

  10. #10
    Join Date
    Jun 2012
    Posts
    987

    Default

    Ok, it took a bit of work but I've come up with a solution for launching directly into the video content directory via Autoexec.py. Here's an example:


    import xbmc
    xbmc.executebuiltin("ActivateWindow(10025,plugin://plugin.video.mezzmo/?contentdirectory=http://serverIP:53168/ContentDirectory/control;mode=server;objectID=taz1l0z1l13)")


    ServerIP is your Mezzmo server IP address or DNS name (i.e. The 192.168.0.10 or mezzmo.mydomain.com)
    The taz1l0z1l13 is the ID of your main video folder. Peter can better explain this.

    How I found the video folder ID was by going into the Kodi Mezzmo AddOn, creating a favorite for the video folder in Kodi. Then drop out to the Kodi userdata folder, find the favourites XML file and open with Wordpad or similar. Inside the XML file you will find the ObjectID in XML format similar to what was posted at the top of this thread.

    If you want to go to the main server folder and select video, music or pictures then leave the objectID section out:


    import xbmc
    xbmc.executebuiltin("ActivateWindow(10025,plugin://plugin.video.mezzmo/?contentdirectory=http://serverIP:53168/ContentDirectory/control;mode=server)")


    I hope this helps.
    Last edited by jbinkley60; 11-18-2017 at 04:21 AM.

Similar Threads

  1. MiBox+Kodi+Mezzmo
    By devildog in forum Mezzmo Questions and Support
    Replies: 2
    Last Post: 07-10-2017, 11:26 AM
  2. Mezzmo addon for Kodi
    By twochannel in forum Mezzmo Wish List and Feedback
    Replies: 7
    Last Post: 12-13-2016, 01:26 PM
  3. Mezzmo for KODI
    By AWSHO in forum Mezzmo Wish List and Feedback
    Replies: 1
    Last Post: 09-22-2016, 08:26 AM
  4. Mezzmo & Kodi - Plugin not seeing server but Kodi does
    By Roofus in forum Mezzmo Questions and Support
    Replies: 6
    Last Post: 08-05-2016, 07:43 AM
  5. Mezzmo for Kodi Add-on released
    By Paul in forum Mezzmo News & Announcements
    Replies: 0
    Last Post: 06-24-2016, 05:32 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •