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

Thread: Displaying only one set of details 1st day of Weather (5day)

  1. #1
    Variable Bitrate Deric's Avatar
    Join Date
    Sep 2006
    Posts
    276

    Displaying only one set of details 1st day of Weather (5day)

    Edit: I was unable to get this to work but Blue figured it out. See post 14 for details.




    ======ORIGINAL POST=========
    I've been looking through variables and for some reason I can't figure out how to do this. I want to only display one set of images in my weather (5 day) skin. This works fine for days 1-4 but for todays weather I need to have it check first if data is available and if not display the night image. I thought I could do this by reading w_0day_hi and if it's value is "N/A" then display w0nighticon. Any help?

  2. #2
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,170
    Blog Entries
    52
    i always thought this should be something added into RR. There's no reason to display 2 sets of labels/icons after 4pm. It would actually be simple to add via plugin but who knows maybe one of the RR skin wizards can whip something up with stock RR commands. I cant wait to see how that skin turns out for you
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  3. #3
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    You can try something like this:

    Indicator code:
    "$DISPICON$"

    On the weather button (that loads the screen) add this:

    Code:
    "<originalcommand>||SETVARBYCODE;DAYHI;w_0day_hi||EVAL;ISNA;strcomp("N/A";"$DAYHI$")||BYVAR;ISNA;SETVAR;DISPICON;WICON<<SETVAR;DISPICON;w0nighticon"
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  4. #4
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    At some point, some on the basic builtin functions will be removed from the source and made into plugins. Making the RR exe the skinning engine only as Guino has wished he'd started with this line of thinking...
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  5. #5
    Raw Wave treetop777's Avatar
    Join Date
    Sep 2006
    Location
    War-Town, GA.
    Posts
    2,233
    Nice thread tittle.

  6. #6
    Variable Bitrate Deric's Avatar
    Join Date
    Sep 2006
    Posts
    276
    Quote Originally Posted by guino View Post
    You can try something like this:

    Indicator code:
    "$DISPICON$"

    On the weather button (that loads the screen) add this:


    "<originalcommand>||SETVARBYCODE;DAYHI;w_0day_hi|| EVAL;ISNA;strcomp("N/A";"$DAYHI$")||BYVAR;ISNA;SETVAR;DISPICON;WICON<<S ETVAR;DISPICON;w0nighticon"
    That worked great Guino. Thanks a lot.

  7. #7
    Variable Bitrate Deric's Avatar
    Join Date
    Sep 2006
    Posts
    276
    Note: I updated the title and added final code to post 1. I'm unsure if this will be needed once weather is taken out of the core code and used in a plug-in.

    -Deric

  8. #8
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    To slightly simplify your ind part of the code, just set the "Today" ind to "wicon", that shows the corresponding day/night icon depending on what time it is..
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  9. #9
    Variable Bitrate Deric's Avatar
    Join Date
    Sep 2006
    Posts
    276
    Quote Originally Posted by Blue ZX3 View Post
    To slightly simplify your ind part of the code, just set the "Today" ind to "wicon", that shows the corresponding day/night icon depending on what time it is..
    I originally had that in but if the current status was different than the day or night status (say it's currently cloudy but tonights forecast says t-storms) it wouldn't give the correct details.

  10. #10
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    So what you wanted was only the day OR night icon not the current. What your looking for would be like a "wdaynighticon" that would act like the posted ind code.

    [ Edit ]

    Like this right?

    "wdaynighticon" - Shows either the day or night weather icon, if day info not availible (>~4PM) then shows the night icon
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

Page 1 of 2 12 LastLast

Similar Threads

  1. Easy to skin?
    By Pewter Phoenix in forum Software & Software Development
    Replies: 4
    Last Post: 11-07-2005, 05:13 PM
  2. Easy way to view and play DVD images?
    By parvo99 in forum FrodoPlayer
    Replies: 0
    Last Post: 10-12-2005, 06:13 PM
  3. Easy and Cheap 12v-12v supply?
    By KyleYankan in forum Power Supplies
    Replies: 9
    Last Post: 06-29-2005, 06:55 AM
  4. Noob easy question!
    By MrLister in forum Newbie
    Replies: 6
    Last Post: 04-23-2005, 01:05 PM
  5. Easy question for most of you..
    By Tirade in forum Power Supplies
    Replies: 1
    Last Post: 03-27-2005, 08:57 AM

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
  •