*ORIGINAL THREAD* InfoService v1.6 - Feed reader/Twitter reader and weather (4 Viewers)

edsche

Community Plugin Dev
January 7, 2007
606
360
38
Ulm
Home Country
Germany Germany
Re: InfoService v1.32 - 5 day weather/Feeds/Twitter on basic home [04-01-2010] *PLANN

Mh, there is only one update process for arhus in the log

Code:
03-02-2010 14:22:21 | Weather | Debug | Downloaded weather xml successful. Now checking whether the file has errors...
03-02-2010 14:22:21 | Weather | Info | Downloaded/Checked successful the weather data for location id DAXX0003
03-02-2010 14:22:21 | Weather | Debug | Parsing weather data for location id DAXX0003
03-02-2010 14:22:21 | Weather | Debug | Location id DAXX0003 seems to be Arhus, Denmark
03-02-2010 14:22:21 | Weather | Debug | Parsing the weather forecast data
03-02-2010 14:22:21 | Weather | Debug | Parsing of weather data done. See above for possibly errors or warnings
03-02-2010 14:22:21 | Weather | Info | Update of weather successful. Now setting up properties...
03-02-2010 14:22:21 | InfoService | Debug | Set property "#infoservice.weather.location" to "Arhus, Denmark" successful
03-02-2010 14:22:21 | InfoService | Debug | Set property "#infoservice.weather.today.temp" to "-1°C" successful

Did you wait some time? If you change the weather in the weather gui of mediaportal, then infoservice gets the new location when the weather refresh interval occurs. That means: If you set your weather refresh interval to 1 minute in the infoservice config, then you'll have to wait 1-2 minutes after weather change in mp, till infoservice gets the new location.

I've tried various things to get the information about weather location change immediately, but without success :/
 

pilehave

Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    Re: InfoService v1.32 - 5 day weather/Feeds/Twitter on basic home [04-01-2010] *PLANN

    Mh, there is only one update process for arhus in the log

    Code:
    03-02-2010 14:22:21 | Weather | Debug | Downloaded weather xml successful. Now checking whether the file has errors...
    03-02-2010 14:22:21 | Weather | Info | Downloaded/Checked successful the weather data for location id DAXX0003
    03-02-2010 14:22:21 | Weather | Debug | Parsing weather data for location id DAXX0003
    03-02-2010 14:22:21 | Weather | Debug | Location id DAXX0003 seems to be Arhus, Denmark
    03-02-2010 14:22:21 | Weather | Debug | Parsing the weather forecast data
    03-02-2010 14:22:21 | Weather | Debug | Parsing of weather data done. See above for possibly errors or warnings
    03-02-2010 14:22:21 | Weather | Info | Update of weather successful. Now setting up properties...
    03-02-2010 14:22:21 | InfoService | Debug | Set property "#infoservice.weather.location" to "Arhus, Denmark" successful
    03-02-2010 14:22:21 | InfoService | Debug | Set property "#infoservice.weather.today.temp" to "-1°C" successful

    Did you wait some time? If you change the weather in the weather gui of mediaportal, then infoservice gets the new location when the weather refresh interval occurs. That means: If you set your weather refresh interval to 1 minute in the infoservice config, then you'll have to wait 1-2 minutes after weather change in mp, till infoservice gets the new location.

    I've tried various things to get the information about weather location change immediately, but without success :/

    Oh, well that kinda makes sense though, as the updaterate is set to 60 minutes :D I just assumed that when you changed the city the rest of the info was updated.

    If may suggest a method of getting the updated info immediately, this could be done:

    Subscribe to the eventhandler in the Start() function (which is run when a plugin starts):

    Code:
    GUIGraphicsContext.OnNewAction += new OnActionHandler(OnAction);

    Then you can catch any user-actions with:

    Code:
    // Catch actions up, down, enter/play and home/back/etc.
    public void OnAction(Action action)
    {
    
    int actwin = GUIWindowManager.ActiveWindowEx;
    if (actwin == 2600) //Weather screen
    {
    //I believe these are the valid actions for Enter/Play/Mouse click.
    if(action.wID == Action.ActionType.ACTION_MUSIC_PLAY || action.wID == Action.ActionType.ACTION_MOUSE_CLICK || action.wID == Action.ActionType.ACTION_SELECT_ITEM)
    {
    //update from cached weather-file and set some kind of flag
    }
    }
    }

    Of course you need to create some kind of logic to avoid updating the weather every time the user clicks something. And you would probably need to wait for some seconds while the cached file is updated by MediaPortal...
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    Re: InfoService v1.32 - 5 day weather/Feeds/Twitter on basic home [04-01-2010] *PLANN

    edsche, thanks for the new version. i have a problem, i cannot save the new option to show all feeds on startup.. i check it, click save, exit configuration.. open configuration again, open configuration for infoservice and it is unchecked again.. also, nothing is changed on mp startup (still the first feed is displayed)..
     

    edsche

    Community Plugin Dev
    January 7, 2007
    606
    360
    38
    Ulm
    Home Country
    Germany Germany
    Re: InfoService v1.32 - 5 day weather/Feeds/Twitter on basic home [04-01-2010] *PLANN

    edsche, thanks for the new version. i have a problem, i cannot save the new option to show all feeds on startup.. i check it, click save, exit configuration.. open configuration again, open configuration for infoservice and it is unchecked again.. also, nothing is changed on mp startup (still the first feed is displayed)..

    Ah i'm a idiot :D I knew that, but totally forgot to fix it :p Will update the .rar soon.
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    Re: InfoService v1.32 - 5 day weather/Feeds/Twitter on basic home [04-01-2010] *PLANN

    here is a screenshot from my working skin file to show you why i needed those two properties :) the list is too narrow so the age text wouldn't fit at all.. now it's in the textbox control but not id 506 because that one gets filled automatically by the plugin, i had to create a new one and hide 506, but it's working nicely..
     

    Attachments

    • 15-46-23.jpg
      15-46-23.jpg
      238.3 KB

    edsche

    Community Plugin Dev
    January 7, 2007
    606
    360
    38
    Ulm
    Home Country
    Germany Germany
    Re: InfoService v1.32 - 5 day weather/Feeds/Twitter on basic home [04-01-2010] *PLANN

    Looking very good, SilentExcept. I hope you can do some screens of the recently added feature. My modding try with Monochrome skin is really ugly :>

    Here is the updated rar file. It has the same name, so don't worry, it's the new one :)
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    Re: InfoService v1.32 - 5 day weather/Feeds/Twitter on basic home [04-01-2010] *PLANN

    ok, now it starts fine.

    #infoservice.feed.titles is filled with news from all feeds,
    #infoservice.feed.img is filled with "defaultFeedRSS". that's the default image for all feeds, right?

    upon opening the feeds window,

    #infoservice.feed.img is filled with defaultFeedRDF (MediaPortal feed is RDF) but that doesn't show in the logs
    #infoservice.feed.titles is not changed
    and i get listbox facade empty (no items) and none of the properties for the textbox are filled either, i have to select the feed and then it's ok.

    that's the bug

    what i would also like to have is ShowAllFeedsTickerOnStartup exported as property #infoservice.feed.isalltitles ('yes','no' or similar)
    also, your internal property ShowAllFeedsTickerOnStartup should not be set to false if it was set to true until user manually selects the feed.

    this is the part from the log file:
    03.02.2010 16:12:08 | Feed | Info | Update of Feed successful. Now setting up properties...
    03.02.2010 16:12:08 | Feed | Debug | Make feed mix line
    03.02.2010 16:12:08 | InfoService | Debug | Set property "#infoservice.feed.titles" to "MPEI V2 - The Easy Way to Install Skins and Plugins (MediaPortal News) :: - (MediaPortal News) :: Rework of MPEI (MediaPortal News) :: Space Heaters That Get Toasty Fast and Look Good Doing It (Wired Top Stories) :: Feb. 3, 1468: Closing the Book on Gutenberg (Wired Top Stories) :: Photographer Loves Math, Graphs Her Images (Wired Top Stories) :: Motorola Devour officially coming to Verizon next month (Engadget) :: Sony working to wedge laser-based pico projectors into its compact cameras? (Engadget) :: Open-PC is the nettop for those who won't be constrained by you and your corporate ways (Engadget) :" successful
    03.02.2010 16:12:08 | Feed | Debug | Make feed mix line
    03.02.2010 16:12:08 | InfoService | Debug | Set property "#infoservice.feed.alltitles" to "MPEI V2 - The Easy Way to Install Skins and Plugins (MediaPortal News) :: - (MediaPortal News) :: Rework of MPEI (MediaPortal News) :: Space Heaters That Get Toasty Fast and Look Good Doing It (Wired Top Stories) :: Feb. 3, 1468: Closing the Book on Gutenberg (Wired Top Stories) :: Photographer Loves Math, Graphs Her Images (Wired Top Stories) :: Motorola Devour officially coming to Verizon next month (Engadget) :: Sony working to wedge laser-based pico projectors into its compact cameras? (Engadget) :: Open-PC is the nettop for those who won't be constrained by you and your corporate ways (Engadget) :" successful
    03.02.2010 16:12:08 | InfoService | Debug | Set property "#infoservice.feed.img" to "C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Skin\Black & White 1080\media\InfoService\defaultFeedRSS.png" successful
    03.02.2010 16:12:08 | Feed | Debug | Set all feeds on basichome
    03.02.2010 16:12:08 | InfoService | Debug | Set property "#infoservice.feed.selected.feed" to "MediaPortal News" successful
    03.02.2010 16:12:08 | InfoService | Debug | Set property "#infoservice.feed.selected.type" to "RDF" successful
    03.02.2010 16:12:08 | InfoService | Debug | Set property "#infoservice.feed.itemcount" to "50 Objects" successful
    03.02.2010 16:12:08 | InfoService | Debug | Set property "#infoservice.feed.selected.itemimg" to "C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\Skin\Black & White 1080\media\InfoService\defaultFeedItemRDF.png" successful
    03.02.2010 16:12:08 | InfoService | Debug | Set property "#infoservice.feed.selected.title" to "MPEI V2 - The Easy Way to Install Skins and Plugins" successful
    03.02.2010 16:12:08 | Feed | Debug | Set feed[MediaPortal News]/[0] on window
    03.02.2010 16:12:08 | InfoService | Debug | Set ShowAllFeedsTickerOnStartup to False
    03.02.2010 16:12:08 | InfoService | Debug | Set property "#infoservice.feed.lastupdated" to "03.02.2010 16:12:08" successful
    03.02.2010 16:12:20 | InfoService | Info | Opened InfoService from Home menu. Showing InfoService moduls...
    03.02.2010 16:12:21 | InfoService | Info | Selected to show the Feeds window
    03.02.2010 16:12:21 | Feed | Info | Load Feed GUI
    03.02.2010 16:12:21 | InfoService | Debug | Set property "#currentmodule" to "InfoService - Feeds" successful
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    50
    Milano, Italy
    Home Country
    Italy Italy
    Re: InfoService v1.32 - 5 day weather/Feeds/Twitter on basic home [04-01-2010] *PLANN

    with v1.32:

    Code:
    2010-02-04 19:09:31.146513 [ERROR][Infoservice updater(85)]: InfoService: Twitter is not enabled while updating Twitter status. This should be a bug. Please contact the plugin author!

    Simone
     

    edsche

    Community Plugin Dev
    January 7, 2007
    606
    360
    38
    Ulm
    Home Country
    Germany Germany
    Re: InfoService v1.32 - 5 day weather/Feeds/Twitter on basic home [04-01-2010] *PLANN

    Thanks SilentExcept, i'll fix this tomorow


    with v1.32:

    Code:
    2010-02-04 19:09:31.146513 [ERROR][Infoservice updater(85)]: InfoService: Twitter is not enabled while updating Twitter status. This should be a bug. Please contact the plugin author!

    Simone
    This indicates that the password or username is empty. Are you sure the twitter initialization is done correct? If not there should be something like this

    Code:
    "InfoService: Error setting up TwitterService. User or Password is not set. Please set a User/Password in the plugin options!"

    in the log. Please also check if the user and password in the mediaportal.xml is set correctly.
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    50
    Milano, Italy
    Home Country
    Italy Italy
    Re: InfoService v1.32 - 5 day weather/Feeds/Twitter on basic home [04-01-2010] *PLANN

    I don't have twitter enabled.

    Simone
     

    Users who are viewing this thread

    Similar threads

    Works also, removed the "section" entry from MediaPortal.xml ;) (y)
    Works also, removed the "section" entry from MediaPortal.xml ;) (y)
    This plugin is alternate version to the original World Weather plugin developed by @Micropolis. Is compatible with MediaPortal...
    Replies
    33
    Views
    6K
    That was the correction I made in BasicHome for the 1.35 Prerelease which you adddd to repo ;)
    That was the correction I made in BasicHome for the 1.35 Prerelease which you adddd to repo ;)
    I'm going bananas here!! Used MP1 since MP1.10 or so.....an haven't had problems for years! Am using latest Dune...
    Replies
    8
    Views
    592
    Well, currently the plugin shows the sun/moon times in user's local time. As you said, It would require to add time zone parameter to the profile. I'll try to add this option in the next version. PS: please use official thread
    Well, currently the plugin shows the sun/moon times in user's local time. As you said, It would require to add time zone parameter...
    I have the current (1.0.2.0 level) World Weather Lite plugins installed on x86 and x64 different MP1 copies. When Location is...
    Replies
    7
    Views
    1K
    thank you Sir, issue is definitely resolved now, i uninstalled the problematic MSE altogether, plus i also now have optimized EPG grabbing configuration, thanks again for all the assistance, wow so much faster on everything now that MSE is out of the picture...MP WAF is now restored and FetchTV STB sits in the corner collecting dust :)
    thank you Sir, issue is definitely resolved now, i uninstalled the problematic MSE altogether, plus i also now have optimized EPG...
    Long time MP user, and recently upgraded to MP1.34, prior to this upgrade, i have for many years successfully used MP with fast and...
    Replies
    20
    Views
    1K
    Hi, it looks like the Client's server connection settings got corrupted somehow and were reset, hopefully this is an easy fix. Open MP2-Client, navigate to Settings->General->Connectivity->Home server. In the menu on the left there may be an option Detach from home server, if there is click it and acknowledge the dialog that pops up...
    Hi, it looks like the Client's server connection settings got corrupted somehow and were reset, hopefully this is an easy fix...
    Help Please: MP doesnt display any of my previouse recordings or TV programs It seems like the Server isnt running? MP was working...
    Replies
    3
    Views
    550
    Top Bottom