Announcement

Collapse
No announcement yet.

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

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?
    Click for my projects
    2006 F150 with removable Nexus 7

    2006 Mustang with indash CarPC (Retired)

  • #2
    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.)
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

    Comment


    • #3
      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."

      Comment


      • #4
        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."

        Comment


        • #5
          Nice thread tittle.
          ****************************************
          OLD SYSTEM (DEAD)
          Intel D945GCLF2 Dual Core ATOM
          Lilliput 7" 629GL 2008 LED Backlight
          BU-353 USB GPS Receiver / iGuidance / IGO8
          M2-ATX Power Supply
          RideRunner Front End / Various Skins
          Windows XP SP3

          Comment


          • #6
            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.
            Click for my projects
            2006 F150 with removable Nexus 7

            2006 Mustang with indash CarPC (Retired)

            Comment


            • #7
              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
              Click for my projects
              2006 F150 with removable Nexus 7

              2006 Mustang with indash CarPC (Retired)

              Comment


              • #8
                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."

                Comment


                • #9
                  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.
                  Click for my projects
                  2006 F150 with removable Nexus 7

                  2006 Mustang with indash CarPC (Retired)

                  Comment


                  • #10
                    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."

                    Comment


                    • #11
                      Correct - I just noticed my byvar code is backwards plus I'm not getting a true result back from strcomp

                      Originally posted by Blue ZX3 View Post
                      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
                      Click for my projects
                      2006 F150 with removable Nexus 7

                      2006 Mustang with indash CarPC (Retired)

                      Comment


                      • #12
                        That has been added, but don't know if it'll make this release whenever it does get released..
                        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."

                        Comment


                        • #13
                          I'll wait for the update since I can't get it to work and I was hoping to use something similar for setting images elsewhere in the skin. It looks like I'm not getting the variable ISNA set to something. If I set a label to "$ISNA$" I get no status and it seems the ByVar command defaults to TRUE. This was the code I was using

                          LOAD;WEATHER_DETAIL.SKIN||SETVAR;DAYHI;w_0day_hi|| EVAL;ISNA;strcomp("N/A";"$DAYHI$")||BYVAR;ISNA;SETVAR;W0ICON;w0nightico n<<SETVAR;W0ICON;w0dayicon",

                          I put label commands for $DAYHI$ amd $ISNA$ and only DAYHI is showing with a temp value (75) on my weather_detail.skin. ISNA shows nothing.
                          Click for my projects
                          2006 F150 with removable Nexus 7

                          2006 Mustang with indash CarPC (Retired)

                          Comment


                          • #14
                            Here is not only a working code, but also takes into account F & C temp labels Part of the problem was that the "w_0day_hi" label also appends the correct temp format to the "N/A" and causing all the codes above to not work correctly, to which I have to adj the PI's code as i too just noticed this...

                            I moved the load the end of the cmd so that when the screen is loaded the weather icon's var is already set to use the correct image. This is of course assuming that your coming from the weather screen or issued a "relaodweather" cmd before hand to populate the "w_0day_hi" label..


                            Code:
                            "Weather_5Day","EVAL;ISINTL;strcomp("USA";"$weatherunits$")||BYVAR;ISINTL;SETVAR;N/AFC;N/A C<<SETVAR;N/AFC;N/A F||SETVARBYCODE;DAYHI;w_0day_hi||EVAL;ISNA;strcomp("$N/AFC$";"$DAYHI$")||BYVAR;ISNA;SETVAR;W0ICON;w0dayicon<<SETVAR;W0ICON;w0nighticon||LOAD;WEATHER_DETAIL.SKIN"
                            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."

                            Comment


                            • #15
                              Thanks Blue! . I figured it might be something with the value and even tried a couple other weather items but gave up. I was actually about to go through the old source code to see if I could find the issue.
                              Click for my projects
                              2006 F150 with removable Nexus 7

                              2006 Mustang with indash CarPC (Retired)

                              Comment

                              Working...
                              X