Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

Update timestamp encoding #23

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

AnnaGolonka
Copy link
Contributor

No description provided.

@AnnaGolonka AnnaGolonka requested review from adfer and slabajdas May 24, 2019 09:39
@@ -75,6 +75,20 @@ For multiple locations, its recommended to just use the point compression.
The forecasts in the response collection are "flat" to allow easy streaming and filtering on client side.
The forecasts in the response are ordered ascending by field 'validFrom'.

It is important to use encoded timestamps when doing the requests to Point Forecast Service by for example POSTMAN or browser.
To encode properly the timestamp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To encode properly the timestamp:

  1. Go to https://www.urlencoder.org/ site.
  2. Paste desired timestamp.
  3. Without changing any parameters click "> ENCODE <" button.
  4. Use generated encoded timestamp in the url.

1. go to https://www.urlencoder.org/ site
2. paste desired timestamp
3. without changing any parameters click "> ENCODE <" button
4. use generated encoded timestamp in the url
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To encode properly the timestamp:

  1. Go to https://www.urlencoder.org/ site.
  2. Paste desired timestamp.
  3. Without changing any parameters click "> ENCODE <" button.
  4. Use generated encoded timestamp in the url.


Example:
URL before encoding (not working):
https://point-forecast.weather.mg/search?locatedAt=-2.44198,50.54282&validUntil=2019-05-26T00:00:00+02:00&timeZone=Europe/London&fields=maxAirTemperatureInFahrenheit,airTemperatureNearGroundInCelsius,relativeGlobalRadiationInPercent,airTemperatureInCelsius,windSpeedInKnots,windSpeedInKilometerPerHour,weatherSymbolCode,airTemperatureInKelvin,sunshineDurationInMinutes,stationLocation&validPeriod=PT1H,PT6H,PT24H
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change endpoint form /search to /forecast/hourly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants