This file contains hidden or 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
| const lat = 45.7; | |
| const lng = -6.0; | |
| const params = [ | |
| 'airTemperature', 'cloudCover', | |
| 'gust', 'humidity', 'precipitation', | |
| 'snowDepth', 'visiblity', 'windDirection', | |
| 'windSpeed' | |
| ].join(','); | |
| fetch(`https://api.stormglass.io/v2/weather/point?lat=${lat}&lng=${lng}¶ms=${params}`, { |
This file contains hidden or 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
| const lat = 45.7; | |
| const lng = -6.0; | |
| fetch(`https://api.stormglass.io/v2/astronomy/point?lat=${lat}&lng=${lng}`, { | |
| headers: { | |
| // Get your key by signing up. | |
| 'Authorization': '2c16411d-8f11-4565-98a8-321c4e3eef9c' | |
| } | |
| }).then((response) => response.json()).then((jsonData) => { | |
| // Do something with tide data. |
This file contains hidden or 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
| const lat = 45.7; | |
| const lng = -6.0; | |
| const params = [ | |
| 'secondarySwellDirection', 'secondarySwellHeight', 'secondarySwellPeriod', | |
| 'windWaveDirection', 'windWaveHeight', 'windWavePeriod', | |
| 'swellDirection', 'swellHeight', 'swellPeriod', | |
| 'waveDirection', 'waveHeight', 'wavePeriod', | |
| 'windDirection', 'windSpeed', 'gust', | |
| 'waterTemperature', | |
| ].join(','); |
This file contains hidden or 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
| const lat = 45.7; | |
| const lng = -6.0; | |
| const params = [ | |
| 'currentDirection', 'currentSpeed', | |
| 'iceCover', 'seaLevel', | |
| 'visiblity', 'waterTemperature', | |
| 'windDirection', 'windSpeed' 'gust', | |
| 'swellDirection', 'swellHeight', 'swellPeriod', | |
| 'waveDirection','waveHeight', 'wavePeriod', | |
| 'windWaveDirection', 'windWaveHeight', 'windWavePeriod' |
This file contains hidden or 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
| const lat = 45.7; | |
| const lng = -6.0; | |
| fetch(`https://api.stormglass.io/v2/tide/extremes/point?lat=${lat}&lng=${lng}`, { | |
| headers: { | |
| // Get your key by signing up. | |
| 'Authorization': '2c16411d-8f11-4565-98a8-321c4e3eef9c' | |
| } | |
| }).then((response) => response.json()).then((jsonData) => { | |
| // Do something with tide data. |
This file contains hidden or 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
| const lat = 45.7; | |
| const lng = -6.0; | |
| const params = [ | |
| 'airTemperature', | |
| 'pressure', | |
| 'cloudCover', | |
| 'humidity', | |
| 'precipitation', | |
| 'visiblity', | |
| 'windDirection', |
This file contains hidden or 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
| const lat = 45.7; | |
| const lng = -6.0; | |
| const params = 'windSpeed,windDirection,airTemperature'; | |
| fetch(`https://api.stormglass.io/v2/weather/point?lat=${lat}&lng=${lng}¶ms=${params}`, { | |
| headers: { | |
| // Get your key by signing up. | |
| 'Authorization': '2c16411d-8f11-4565-98a8-321c4e3eef9c' | |
| } | |
| }).then((response) => response.json()).then((jsonData) => { |
This file contains hidden or 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
| import requests | |
| response = requests.get( | |
| 'https://api.stormglass.io/v2/weather/point', | |
| params={ | |
| 'lat': 58.5, | |
| 'lng': 17.8, | |
| 'params': 'waveHeight,wavePeriod,swellHeight,swellDirection,windSpeed' | |
| }, | |
| headers={ |
This file contains hidden or 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
Show hidden characters
| { | |
| "scope": "source.js -string -comment -constant", | |
| "completions": [ | |
| { "trigger": "customtrigger.allowBlank\tBoolean", "contents": "allowBlank: $1${2:,}" }, | |
| { "trigger": "customtrigger.allowOnlyWhitespace\tBoolean", "contents": "allowOnlyWhitespace: $1${2:,}" }, | |
| { "trigger": "customtrigger.blankText\tString", "contents": "blankText: '$1'${2:,}" }, | |
| { "trigger": "customtrigger.checkChangeBuffer\tNumber", "contents": "checkChangeBuffer: $1${2:,}" }, | |
| { "trigger": "customtrigger.checkChangeEvents\tString[]", "contents": "checkChangeEvents: ['$1']${2:,}" }, | |
| { "trigger": "customtrigger.dirtyCls\tString", "contents": "dirtyCls: '$1'${2:,}" }, |