PictureOfTheDay MP2 Plugin (1 Viewer)

BigGranu

Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    53
    Home Country
    Germany Germany

    http://wiki.team-mediaportal.com/2_...bute/z_MissingFeatures/PictureOfTheDay_plugin
    http://wiki.team-mediaportal.com/2_...bute/z_MissingFeatures/PictureOfTheDay_plugin
    Is anyone work on it?
    If not, I would start it. ;)

    I can create a Template(and a Example (or any more ;) )) for the .dll's.
    Each page is a .dll
    I can create a Inteface for the .dll's and i can create a smal Plugin,
    which can read data from the .dll's and import new .dll's from a Server.

    But, I can not create a screensaver from this Pictures or a BackgroundImage.
    For this, I needed help. :rolleyes:
     
    Last edited by a moderator:

    chefkoch

    Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,634
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    Bada Bing !!!

    Damn awesome, that you are interested in it :)
    So writing down even the "simplest" ideas down in wiki and extending it from time to time when you get new ideas, seems to be worth it :) nice

    I also added some links / resources to the wiki page. A few weeks ago I noticed a MP1 plugin "astronomy picture of the day"
    Regarding the providers and scrapers and or server/gallery, maybe @offbyone can give some details whether party of onlinevideos can be reused somehow?
     
    Last edited:

    BigGranu

    Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    53
    Home Country
    Germany Germany
    I hate the idea, because my own scrapper (streams for webradio) uses the same Structure. :D
     

    BigGranu

    Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    53
    Home Country
    Germany Germany
    Ok. I make a first Test and it works. (y)

    Screenshot (33).png

    Screenshot (34).png
     

    BigGranu

    Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    53
    Home Country
    Germany Germany
    Befor i realy start, any Problems must be cleared.

    1. The Place of the Site.dll's.
    My Idea : A FTP where the plugin Can read and Download. But only Members can Upload.
    Must I create it on My Space or we have it?
    I will that the Plugin on each Start, is looking for new .ddl's.
    I want to create a Template, so that everyone can create simply a new Site.dll.

    2. The last Day Images
    My Idea : The Plugin can Save for a Userdefined Count of Days a Pictures.
    So, every Day a Picture.
    For this, the Plugin must each Day triggered in Background.
    MP2 has a trigger for every Day?

    3. What information should be collected?
    In the Moment : Imagetitel, Photographer, Category, Description and the Image.

     
    Last edited:

    chefkoch

    Retired Team Member
  • Premium Supporter
  • October 5, 2004
    3,129
    1,634
    Dresden / Munich / Maastricht
    Home Country
    Germany Germany
    My Idea : A FTP where the plugin Can read and Download. But only Members can Upload.
    Must I create it on My Space or we have it?
    The place I offered you already via pm is available for that, feel free to use it. I gues a static xml url which contains the references to the other DLLs would be enough for that. However something more dynamic would also be good, but can be done later, maybe.

    About the usability:
    opening the plugin, maybe having a vertical list (scroll up / down) with the available providers and on the right (almost full screen) a horizontal list with the current pic and last days, might be cool.

    Even better would be if the current or a few of the current (or last days) pictures could be used as fanart in menu when being idle. Not sure if we might need a new "interface / api" here which is available for skins, but configurable by the user so he can define which plugins are able to set those fanarts for menu.

    An other integration point might be the screensaver, this way the plugin is also being used if it is not being used :D ;)
    But expect that's not possible currently. Not sure how much work it would require to make it configurable.
    Does anyone know the screensaver part?

    Nevertheless, thanks for being interested and giving it a try (y)
     

    BigGranu

    Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    53
    Home Country
    Germany Germany
    Thanks for the Informations.
    Now, I want to create the Update as a last Part.
    For Test's, we can manually copy the dll's to the Pluginfolder. ;)

    First, a have create a smal Projekt with a GUI to test and create Site.dll's.
    https://github.com/BigGranu/PictureOfTheDay_GUI.git
    It comes with a working dll for "National Geographic" and a Template. Mediaportal is not needed.

    Alternatively, I need more Links to Sites with a Daily Picture.

    Now, I will start with the Plugin.
    My Idea:
    The Plugin starts automatically with MP2 and load all in Background.
    It create a Folder in <Data> "PictureOfTheDay" with a Subfolder for each Site.
    In this all Pictures e.g. "01.10.2013.jpg" saved.
    Also it create in Settings one Settingsfile for all Sites with the Informations of a Pic and the Path into the <Data> folder.
    Then, each other Plugin (Fanart, Sreensaver, ..) can read the Settings and can use any available Image.

    Is it OK? Any other Ideas?
     

    BigGranu

    Retired Team Member
  • Premium Supporter
  • February 7, 2013
    240
    202
    53
    Home Country
    Germany Germany
    I have just begun.
    Copy this into the PluginFolder of MP2.
    The Update of the Picture, are only on startup MP2 or the Plugin.
    In the moment we have 3 Sites(Pictures each Day).
    You can select a Site and You can Delete a Piccture. No more. (Ok, and show the Picture)

    And Now? For the next steps I need help. :rolleyes:
    A UI Contributor is a nice Idea,but I cant create it. :(

    Here ist the Code.
     

    Attachments

    • Screenshot (36).png
      Screenshot (36).png
      1.4 MB
    • Screenshot (39).png
      Screenshot (39).png
      1.9 MB
    • PictureOfTheDay.rar
      2.9 MB

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    I think you won't need an UIContributor, as it is only needed if you use a custom player. What we need here is:
    • We already have a Video-source property in BackgroundManagerModel which can be used as video background. If it is enabled, the background screen prefers video over the regular BackgroundBrush. So we would need to change skin's default-background.xaml to know your new model. Or we rework the BackgroundManagerModel to get a BackgroundImage property which can be set from other models (this way we would not introduce new dependencies to other plugins)
    • ScreenSaver: in principle the screensave is now a simple super layer which is shown on idle. But I also have seen some code from Albert in PartyMusicPlayer which does modify the way the screensaver is handled.
    We need to think a bit more about it.
     

    Users who are viewing this thread

    Top Bottom