This repository has been archived by the owner on Apr 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Update timestamp encoding #23
Open
AnnaGolonka
wants to merge
3
commits into
master
Choose a base branch
from
update-timestamp-encoding
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please change endpoint form /search to /forecast/hourly |
||
|
||
URL after encoding (working): | ||
https://point-forecast.weather.mg/search?locatedAt=-2.44198,50.54282&validUntil=2019-05-26T00%3A00%3A00%2B02%3A00&timeZone=Europe/London&fields=maxAirTemperatureInFahrenheit,airTemperatureNearGroundInCelsius,relativeGlobalRadiationInPercent,airTemperatureInCelsius,windSpeedInKnots,windSpeedInKilometerPerHour,weatherSymbolCode,airTemperatureInKelvin,sunshineDurationInMinutes,stationLocation&validPeriod=PT1H,PT6H,PT24H | ||
|
||
*Fields mapping* | ||
|
||
Common names of filed which can be included in all periods: locatedAt,meteoGroupStationId,meteoGroupStationName,stationLocation,stationTimeZoneName,validFrom,validUntil,validPeriod,issuedAt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,20 @@ code description comment | |
The 'shipCourseText' returns one of the following values: "not moving", "NE", "E", "SE", "S", "SW", "W", "NW", "N", "unknown". | ||
The 'shipSpeedRangeInKnots' returns one of the following values: "0", "1-5", "6-10", "11-15", "16-20", "21-25", "26-30", "31-35", "36-40", ">40", "unknown". | ||
|
||
It is important to use encoded timestamps when doing the requests to Point Observation Service by for example POSTMAN or browser. | ||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To encode properly the timestamp:
|
||
|
||
Example: | ||
URL before encoding (not working): | ||
https://point-observation.weather.mg/observation/hourly?meteoGroupStationIds=10385&observedPeriod=PT0S&fields=meteoGroupStationId,meteoGroupStationName,airTemperatureInCelsius&observedFrom=2019-05-20T09:00:00+02:00&observedUntil=2019-05-21T09:00:00+02:00 | ||
|
||
URL after encoding (working): | ||
https://point-observation.weather.mg/observation/hourly?meteoGroupStationIds=10385&observedPeriod=PT0S&fields=meteoGroupStationId,meteoGroupStationName,airTemperatureInCelsius&observedFrom=2019-05-20T09%3A00%3A00%2B02%3A00&observedUntil=2019-05-21T09%3A00%3A00%2B02%3A00 | ||
|
||
*Gap filling* | ||
|
||
GapFilling allows to gap fill missing observations with forecast data from Point Forecast service for following parameters: | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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: