Trying to find example Code to use 54 icon weather icons for current conditions

Hello, I am super new to coding, as of last week I had no clue about visual studio code at all, but so far I have figured out how to do a simple face with heart rate and steps (update every 30 seconds or min not real time) and how to get date and backgrounds in. I really want to figure out how to do current weather conditions with using my own custom 54 icons I have downloaded and made. I have got 1 weather source view.mc code to work I found in this group, which i didnt get to show in the sim but worked in the source file, but I am having troubles finding examples of current conditions that allow me to use my icons. I have seen lots of examples on here of weather, and using API to get weather from sites, but being so new not really sure what to do, so if someone is willing to help, or share example of the 54 icon code I would need to use would be much appreciated, thanks

  • The first thing to learn when you code is how to ask questions in forums... Since we (ok, at least I) don't read minds, it's hard if not impossible to help you. If you want any help it's always good to post the code you tried. Also I have no idea what this 54 is. Is it a website? Why 54? There can be 54 different weather conditions?

  • There are 54 different weather conditions in Garmin Weather (so up to 54 icons)

    The way I'd do it is a custom font with the 54 images instead of having 54 bitmaps.  For one thing you can easily use a different color for the icon based on things like the background

  • Thanks for the fast reply, I understand I'll have to have each icon in my resource drawables for the 54 available weather conditions and use a bitmap for each one, I'm just trying to find a code example which allows me to use the icons so I can visually see how it's all done and learn from there since I have noticed its best to work off a working example as I'm not very well versed in the coding world yet. As mentioned above I did manage to get the one weather example in here to work (I'll post the code after this message) but can't figure out how to get it to display on my screen in the simulator. Also this one won't allow for the custom icons I don't think? It might I dunno, to new to this.

    1. if (Toybox has :Weather) {
      // we have weather support
    2. var currentConditions = Weather.getCurrentConditions();
      if (currentConditions != null) {
      // we have current conditions
    3. if (currentConditions.temperature != null) {
      // we have current temperature
      } else {
      // temperature is not known
      }
      } else {
      // haven't fetched current conditions yet
      }
      } else {
      // no weather support
      }

    I'm not sure how to do the code blocks in a comment yet sorry, I know it's the preferred method on here.