Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9273

Enhance camel-weather component to support all the options of Api 2.5

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.18.0
    • camel-weather
    • None
    • Unknown

    Description

      Many others queries are supported by the weather Api - http://openweathermap.org/api.
      We should update the component to support more options

      WEATHER
      
      Access current weather data for any location on Earth including over 200,000 cities! Current weather is frequently updated based on global models and data from more than 40,000 weather stations. Data is available in JSON, XML, or HTML format.
      
      api.openweathermap.org/data/2.5/weather?q={city name}
      api.openweathermap.org/data/2.5/weather?q={city name},{country code}
      
      api.openweathermap.org/data/2.5/weather?id=2172797
      
      api.openweathermap.org/data/2.5/weather?lat={lat}&lon={lon}
      
      api.openweathermap.org/data/2.5/weather?zip={zip code},{country code}
      
      api.openweathermap.org/data/2.5/box/city?bbox=12,32,15,37,10&cluster=yes
      
      api.openweathermap.org/data/2.5/find?lat=55.5&lon=37.5&cnt=10
      
      api.openweathermap.org/data/2.5/group?id=524901,703448,2643743&units=metric
      
      FORECAST - 5d
      
      5 day forecast is available at any location or city. It includes weather data every 3 hours. Forecast is available in JSON, XML, or HTML format.
      
      api.openweathermap.org/data/2.5/forecast?q={city name},{country code}
      api.openweathermap.org/data/2.5/forecast?id={city ID}
      api.openweathermap.org/data/2.5/forecast?lat={lat}&lon={lon}
      
      FORECAST - 16d
      
      16 day forecasts is available at any location or city. Forecasts include daily weather and available in JSON, XML, or HTML format.
      
      api.openweathermap.org/data/2.5/forecast/daily?q={city name},{country code}&cnt={cnt}
      api.openweathermap.org/data/2.5/forecast/daily?id={city ID}&cnt={cnt}
      api.openweathermap.org/data/2.5/forecast/daily?lat={lat}&lon={lon}&cnt={cnt}
      
      HISTORY
      
      http://api.openweathermap.org/data/2.5/history/city?id={id}&type=hour&start={start}&end={end}
      http://api.openweathermap.org/data/2.5/history/city?id={id}&type=hour&start={start}&cnt={cnt}
      
      start start date (unix time, UTC time zone), e.g. start=1369728000
      end end date (unix time, UTC time zone), e.g. end=1369789200
      cnt amount of returned data (one per hour, can be used instead of 'end')
      
      http://api.openweathermap.org/data/2.5/history/city?q={city ID},{country code}&type=hour&start={start}&end={end}
      
      http://api.openweathermap.org/data/2.5/history/city?q={city ID},{country code}&type=hour&start={start}&cnt={cnt}
      
      http://api.openweathermap.org/data/2.5/history/city?lat={lat}&lon={lon}&type=hour&start={start}&end={end}
      http://api.openweathermap.org/data/2.5/history/city?lat={lat}&lon={lon}&type=hour&start={start}&cnt={cnt}
      
      http://api.openweathermap.org/data/2.5/history/station?id={id}&type=tick
      http://api.openweathermap.org/data/2.5/history/station?id={id}&type=hour
      http://api.openweathermap.org/data/2.5/history/station?id={id}&type=day
      
      STATION
      
      http://api.openweathermap.org/data/2.5/station?id={id}
      http://api.openweathermap.org/data/2.5/box/station?cluster={yes/no}&cnt={cnt}&bbox={bbox}
      http://api.openweathermap.org/data/2.5/station/find?lat=55&lon=37&cnt=30
      
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            anoordover Arno Noordover
            cmoulliard Moulliard Charles
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment