AtmoLight 2.1.0.0 for MediaPortal2 [2015-01-21] (1 Viewer)

morpheus_xx

Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,752
    7,115
    Home Country
    Germany Germany
    Country flag
    After starting this version the first time with mediaportal 2, it will create a new settings file. You can find it under C:\ProgramData\Team MediaPortal\MP2-Client\Config\{USER_NAME}\. At the moment you have to change the config manually
    If you need support with developing the configuration for the settings, let me know. MP2 provide already nearly everything that is required for this task.
     

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Home Country
    Germany Germany
    Country flag
    After starting this version the first time with mediaportal 2, it will create a new settings file. You can find it under C:\ProgramData\Team MediaPortal\MP2-Client\Config\{USER_NAME}\. At the moment you have to change the config manually
    If you need support with developing the configuration for the settings, let me know. MP2 provide already nearly everything that is required for this task.

    Yeah, config was one of the things i wanted to tackle next. I will look through some code of other plugins, maybe i can figure it out. Otherwise i will let you know. Thanks. :)
     

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Home Country
    Germany Germany
    Country flag
    I think you already are at the beta stage of this plugin.
    Well, its called Alpha because with Alpha 5 i ask you all to delete the current settings file, as i did some changes there ;).

    Code:
    Version 2.0.0.0 Alpha 5
    - Fixed bug where AtmoWin would not be stopped on MP2 exit
    - Added color button support
        * Default: Red=ContextMenu (not implemented yet), Green=Toggle LEDs, Yellow=Change AtmoWin Profile
    - Changed some types in the settings. Please delete current settings file before using this version!

    https://ambilight-4-mediaportal.goo...ease/AtmoLight 2/AtmoLight_2.0.0.0_Alpha5.rar


    @morpheus_xx i had a look at ov and weather plugin for the config stuff, but couldnt figure it out. So some help is highly apreciated! Maybe you can explain the idea on how to add plugin configs? Thanks!
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,752
    7,115
    Home Country
    Germany Germany
    Country flag
    Maybe take a look at the VideoPlayer plugin for easier examples. In principle you can either:
    1. Use inbuilt base classes for simple selection (yes/no, text, number, list selection, ...)
    2. Provide an own model+screen to create more complex configuration screens
    You define configuration sections using the plugin.xml file: https://github.com/MediaPortal/Medi...rce/UI/Players/VideoPlayer/plugin.xml#L37-L43. There are sections (ConfigSection) and settings (ConfigSetting).

    1) A simple "yes / no" selection you can find here:
    https://github.com/MediaPortal/Medi...e/UI/Players/VideoPlayer/plugin.xml#L141-L147. It refers to the classname
    MediaPortal.UI.Players.Video.Settings.Configuration.AudioPreferMultiChannel, which is defined here: https://github.com/MediaPortal/Medi...figuration/AudioPreferMultiChannel.cs#L29-L43.

    2) A more detailed configuration is used in other plugins like Trakt.tv:
    We need to put the descriptions more detailed into wiki... Does anyone of our @DocumentationGroup would like to help with this part?
     

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Home Country
    Germany Germany
    Country flag
    Maybe take a look at the VideoPlayer plugin for easier examples. In principle you can either:
    1. Use inbuilt base classes for simple selection (yes/no, text, number, list selection, ...)
    2. Provide an own model+screen to create more complex configuration screens
    You define configuration sections using the plugin.xml file: https://github.com/MediaPortal/Medi...rce/UI/Players/VideoPlayer/plugin.xml#L37-L43. There are sections (ConfigSection) and settings (ConfigSetting).

    1) A simple "yes / no" selection you can find here:
    https://github.com/MediaPortal/Medi...e/UI/Players/VideoPlayer/plugin.xml#L141-L147. It refers to the classname
    MediaPortal.UI.Players.Video.Settings.Configuration.AudioPreferMultiChannel, which is defined here: https://github.com/MediaPortal/Medi...figuration/AudioPreferMultiChannel.cs#L29-L43.

    2) A more detailed configuration is used in other plugins like Trakt.tv:
    We need to put the descriptions more detailed into wiki... Does anyone of our @DocumentationGroup would like to help with this part?

    Thank you!
    I think i got it. The first option should be more than enough. :)
    I will try my best later and let you know.
     

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Home Country
    Germany Germany
    Country flag

    Attachments

    • al0.png
      al0.png
      603.9 KB · Views: 159
    • al1.png
      al1.png
      557 KB · Views: 155
    • al2.png
      al2.png
      532.6 KB · Views: 163
    • al3.png
      al3.png
      529.8 KB · Views: 161
    • al4.png
      al4.png
      454.4 KB · Views: 161
    • al5.png
      al5.png
      546.7 KB · Views: 158
    • al6.png
      al6.png
      536.9 KB · Views: 150

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,752
    7,115
    Home Country
    Germany Germany
    Country flag
    Cool, this was quick :)
    Is there any way to force the order of the items? Now they are ordered ascading, but i would like to give it my own order.
    To be honest, I don't know. I would have to check code. Does the order of registration matter?
     

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Home Country
    Germany Germany
    Country flag
    Cool, this was quick :)
    Is there any way to force the order of the items? Now they are ordered ascading, but i would like to give it my own order.
    To be honest, I don't know. I would have to check code. Does the order of registration matter?

    No, i thought it would, so i added the registration like i wanted the items to show up, but it ended up being ordered ascading.

    Edit:
    well dumb me, so it looks like the config entries do get sorted like i want, but the config "folders" dont... So "general settings", "remote buttons", "advanced settings" and "Content effects" are the only ones not getting sorted like i want them to.
     
    Last edited:

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Home Country
    Germany Germany
    Country flag
    Ok,
    so to get this plugin to the same status quo as the MP1 plugin, one thing is still missing. In MP1 i have a context menu that i can open by pressing a color button. Its purpose is to quickly change settings, or enable/disable the leds during playback or just in menu. So for example change the current effect, without having to navigate to the configuration and so on.

    Here is a screenshot of the MP1 one.
    191597_Screenshot_-_15.03.2014__17_00_25.png


    I have looked through some source code of mp2 and other plugins but didnt find anything like that. Also i have a slight feeling that this would only be possible with skin files?! And thats something i really have no clue what so ever.

    So, is something like this possible in MP2 atm? And if yes, could someone point me in the right direction? :)

    Thanks!
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,752
    7,115
    Home Country
    Germany Germany
    Country flag
    It's possible, ofc. As example take a look at SystemStateMenu plugin: https://github.com/MediaPortal/Medi.../Incubator/SystemStateMenu/plugin.xml#L30-L51

    You need to:
    I think it's nearly the same as you need.
     

    Users who are viewing this thread

    Similar threads

    Ok, just done some more mucking around. turns out my logitech mouse seems to be extremely unresponsive in media portal. Can use my keyboard just fine (also lightspeed wireless). Suggestions?
    Ok, just done some more mucking around. turns out my logitech mouse seems to be extremely unresponsive in media portal. Can use my...
    Good evening, having just fresh installed media portal 2.3.2. Looking at trialing again as it now seems to support what I am...
    Replies
    1
    Views
    84
    • Sticky
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: [MP1-5081] - WatchDog...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    0
    Views
    232
    • Sticky
    It's very strange, but you can see that it happens. The logic of NSIS is a complete mystery. :)
    It's very strange, but you can see that it happens. The logic of NSIS is a complete mystery. :)
    We have just released MediaPortal 1.28 Summer Breeze Highlights of this release Bugfixes: [MP1-5053] - TV framerate is not...
    Replies
    12
    Views
    855
    Just for your information: couldn't find the ns*.tmp file...
    Just for your information: couldn't find the ns*.tmp file...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    39
    Views
    2K
    It is looking and working very well now and I am almost at the point of switching my HTPC to MP2, madvr would definitely push me over the edge for sure.;)
    It is looking and working very well now and I am almost at the point of switching my HTPC to MP2, madvr would definitely push me...
    We are proud to present MediaPortal 2.3 MediaPortal 2.3 is a full-blown media center software that addresses the most common user...
    Replies
    4
    Views
    2K
    Top Bottom