Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
Add support for Arome (Reunion & Antilles)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed May 1, 2024
1 parent f8db0e8 commit 12eb22f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.6 - May 1, 2024

- Added support for aromeReunion and aromeAntilles

## 3.0.0 - Apr 11, 2024

- Update for windy v42
Expand Down
4 changes: 2 additions & 2 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "windy-plugin-sounding",
"version": "3.0.5",
"version": "3.0.6",
"description": "Better Soundings for paraglider pilots",
"main": "dist/plugin.js",
"files": [
Expand Down
3 changes: 2 additions & 1 deletion src/actions/sounding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const FETCH_PARAMS = "SDG.FETCH_PARAMS";
export const RECEIVE_PARAMS = "SDG.RECEIVE_PARAMS";
export const TOGGLE_ZOOM = "SDG.TOGGLE_ZOOM";

export const SUPPORTED_MODEL_PREFIXES = ["ecmwf", "gfs", "nam", "icon", "hrrr", "ukv"];
export const SUPPORTED_MODEL_PREFIXES = ["ecmwf", "gfs", "nam", "icon", "hrrr", "ukv", "aromeReunion", "aromeAntilles"];
const DEFAULT_MODEL = "ecmwf";

export const toggleZoom = ( ) => (
Expand Down Expand Up @@ -68,6 +68,7 @@ export const setLocation = (lat: number, lon: number) => (dispatch: Dispatch) =>
};

export const setModelName = (modelName: string) => (dispatch) => {
console.log(modelName);
const model = SUPPORTED_MODEL_PREFIXES.some((prefix) => modelName.startsWith(prefix))
? modelName
: DEFAULT_MODEL;
Expand Down
2 changes: 1 addition & 1 deletion src/pluginConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { ExternalPluginConfig } from '@windy/interfaces';
const config: ExternalPluginConfig = {
author: "Victor Berchet",
name: "windy-plugin-sounding",
version: "3.0.5",
version: "3.0.6",
description: "Soundings for paraglider pilots",
repository: "git+https://github.com/vicb/windy-plugin-sounding",
title: 'Better Soundings',
Expand Down

0 comments on commit 12eb22f

Please sign in to comment.