Skip to content

Commit

Permalink
Match meteoalarm naming scheme (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek authored Feb 11, 2022
1 parent 6557c35 commit 4b6f3bd
Show file tree
Hide file tree
Showing 17 changed files with 43 additions and 43 deletions.
8 changes: 4 additions & 4 deletions src/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ export default class Data
// If for example there is warning for wind AND rain
// Rain has higher priority (you can expect wind while raining)
return [
new Event('Forestfire', 'pine-tree-fire', 'events.forest_fire'),
new Event('Forest fire', 'pine-tree-fire', 'events.forest_fire'),
new Event('Avalanches', 'image-filter-hdr', 'events.avalanches'),
new Event('Flood', 'home-flood', 'events.flood'),
new Event('Flooding', 'home-flood', 'events.flooding'),
new Event('Rain-Flood', 'home-flood', 'events.rain_flood'),
new Event('Coastal Event', 'waves', 'events.coastal_event'),
new Event('Thunderstorms', 'weather-lightning', 'events.thunderstorms'),
new Event('Rain', 'weather-pouring', 'events.rain'),
new Event('Snow/Ice', 'weather-snowy-heavy', 'events.snow_ice'),
new Event('Extreme high temperature', 'thermometer', 'events.hight_temperature'),
new Event('Extreme low temperature', 'snowflake', 'events.low_temperature'),
new Event('High temperature', 'thermometer', 'events.hight_temperature'),
new Event('Low temperature', 'snowflake', 'events.low_temperature'),
new Event('Wind', 'windsock', 'events.wind'),
new Event('Fog', 'weather-fog', 'events.fog'),

Expand Down
4 changes: 2 additions & 2 deletions src/integrations/dwd.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export class DWDIntegration
93: Data.getEventByName('Thunderstorms'),
95: Data.getEventByName('Thunderstorms'),
96: Data.getEventByName('Thunderstorms'),
246: Data.getEventByName('Extreme high temperature'),
247: Data.getEventByName('Extreme high temperature'),
246: Data.getEventByName('High temperature'),
247: Data.getEventByName('High temperature'),
11: Data.getEventByName('Coastal Event'),
12: Data.getEventByName('Coastal Event'),
13: Data.getEventByName('Coastal Event'),
Expand Down
8 changes: 4 additions & 4 deletions src/integrations/meteoalarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ export class MeteoAlarmIntegration
Data.getEventByName('Snow/Ice'),
Data.getEventByName('Thunderstorms'),
Data.getEventByName('Fog'),
Data.getEventByName('Extreme high temperature'),
Data.getEventByName('Extreme low temperature'),
Data.getEventByName('High temperature'),
Data.getEventByName('Low temperature'),
Data.getEventByName('Coastal Event'),
Data.getEventByName('Forestfire'),
Data.getEventByName('Forest fire'),
Data.getEventByName('Avalanches'),
Data.getEventByName('Rain'),
Data.getEventByName('Flood'),
Data.getEventByName('Flooding'),
Data.getEventByName('Rain-Flood')
];
}
Expand Down
10 changes: 5 additions & 5 deletions src/integrations/meteofrance.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const EVENT_SNOW_ICE = 'Neige-verglas';
const EVENT_THUNDERSTORMS = 'Orages';
const EVENT_FLOOD = 'Inondation';
const EVENT_RAIN_FLOOD = 'Pluie-inondation';
const EVENT_EXTREME_HIGH_TEMPERATURE = 'Canicule';
const EVENT_EXTREME_LOW_TEMPERATURE = 'Grand-froid';
const EVENT_HIGH_TEMPERATURE = 'Canicule';
const EVENT_LOW_TEMPERATURE = 'Grand-froid';

export class MeteoFranceIntegration
{
Expand All @@ -35,10 +35,10 @@ export class MeteoFranceIntegration
[EVENT_WIND]: Data.getEventByName('Wind'),
[EVENT_SNOW_ICE]: Data.getEventByName('Snow/Ice'),
[EVENT_THUNDERSTORMS]: Data.getEventByName('Thunderstorms'),
[EVENT_FLOOD]: Data.getEventByName('Flood'),
[EVENT_FLOOD]: Data.getEventByName('Flooding'),
[EVENT_RAIN_FLOOD]: Data.getEventByName('Rain-Flood'),
[EVENT_EXTREME_HIGH_TEMPERATURE]: Data.getEventByName('Extreme high temperature'),
[EVENT_EXTREME_LOW_TEMPERATURE]: Data.getEventByName('Extreme low temperature'),
[EVENT_HIGH_TEMPERATURE]: Data.getEventByName('High temperature'),
[EVENT_LOW_TEMPERATURE]: Data.getEventByName('Low temperature'),
};
}

Expand Down
6 changes: 3 additions & 3 deletions src/integrations/weatheralerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ export class WeatherAlertsIntegration
'Severe Thunderstorm Warning': Data.getEventByName('Thunderstorms'),
'Severe Weather Statement': Data.getEventByName('Thunderstorms'),
'High Wind Warning': Data.getEventByName('Wind'),
'Flood Warning': Data.getEventByName('Flood'),
'Flood Warning': Data.getEventByName('Flooding'),
'Severe Thunderstorm Watch': Data.getEventByName('Thunderstorms'),
'Gale Warning': Data.getEventByName('Wind'),
'Freeze Warning': Data.getEventByName('Snow/Ice'),
'Red Flag Warning': Data.getEventByName('Forestfire'),
'Flood Advisory': Data.getEventByName('Flood'),
'Red Flag Warning': Data.getEventByName('Forest fire'),
'Flood Advisory': Data.getEventByName('Flooding'),
'Heavy Freezing Spray Warning': Data.getEventByName('Snow/Ice'),
'Small Craft Advisory': Data.getEventByName('Wind'),
'Lake Wind Advisory': Data.getEventByName('Wind'),
Expand Down
6 changes: 3 additions & 3 deletions src/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"snow_ice": "Schnee/Eis",
"thunderstorms": "Gewitter",
"fog": "Nebel",
"hight_temperature": "Extrem hohe Temperatur",
"low_temperature": "Extrem niedrige Temperatur",
"hight_temperature": "hohe Temperatur",
"low_temperature": "niedrige Temperatur",
"coastal_event": "Küstenereignis",
"forest_fire": "Waldbrand",
"avalanches": "Lawinen",
"rain": "Regen",
"flood": "Hochwasser",
"flooding": null,
"rain_flood": "Starkregenhochwasser"
},
"messages": {
Expand Down
6 changes: 3 additions & 3 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"snow_ice": "snow/ice",
"thunderstorms": "thunderstorms",
"fog": "fog",
"hight_temperature": "extreme high temperature",
"low_temperature": "extreme low temperature",
"hight_temperature": "high temperature",
"low_temperature": "low temperature",
"coastal_event": "coastal event",
"forest_fire": "forest fire",
"avalanches": "avalanches",
"rain": "rain",
"flood": "flood",
"flooding": null,
"rain_flood": "rain flood"
},
"messages": {
Expand Down
6 changes: 3 additions & 3 deletions src/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"snow_ice": "nieve/hielo",
"thunderstorms": "tormentas",
"fog": "niebla",
"hight_temperature": "temperatura máxima extrema",
"low_temperature": "temperatura mínima extrema",
"hight_temperature": null,
"low_temperature": null,
"coastal_event": "fenómeno costero",
"forest_fire": "incendios",
"avalanches": "aludes",
"rain": "lluvia",
"flood": "inundación",
"flooding": null,
"rain_flood": "inundación de lluvia"
},
"messages": {
Expand Down
2 changes: 1 addition & 1 deletion src/translations/et.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"forest_fire": "metsapõleng",
"avalanches": "laviin",
"rain": "sademed",
"flood": "üleujutus",
"flooding": null,
"rain_flood": "paduvihm"
},
"messages": {
Expand Down
2 changes: 1 addition & 1 deletion src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"forest_fire": "feu de forêt",
"avalanches": "avalanches",
"rain": "pluie",
"flood": "inondation",
"flooding": null,
"rain_flood": "pluie-inondation"
},
"messages": {
Expand Down
2 changes: 1 addition & 1 deletion src/translations/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"forest_fire": "šumski požar",
"avalanches": "lavinu",
"rain": "kišu",
"flood": "poplavu",
"flooding": null,
"rain_flood": "bujičnu poplavu"
},
"messages": {
Expand Down
2 changes: 1 addition & 1 deletion src/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"forest_fire": "incendi boschivi",
"avalanches": "valanghe",
"rain": "pioggia",
"flood": "inondazioni",
"flooding": null,
"rain_flood": "acquazzoni"
},
"messages": {
Expand Down
2 changes: 1 addition & 1 deletion src/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"forest_fire": "bos- en heidebranden",
"avalanches": "lawines",
"rain": "regen",
"flood": "hoogwater",
"flooding": null,
"rain_flood": "wateroverlast"
},
"messages": {
Expand Down
4 changes: 2 additions & 2 deletions src/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
"thunderstorms": "burze",
"fog": "mgły",
"hight_temperature": "upały",
"low_temperature": "silne Mrozy",
"low_temperature": "silne mrozy",
"coastal_event": "zjawiska strefy brzegowej",
"forest_fire": "pożary lasu",
"avalanches": "lawiny",
"rain": "deszcz",
"flood": "powodzie",
"flooding": "powodzie",
"rain_flood": "ulewy"
},
"messages": {
Expand Down
6 changes: 3 additions & 3 deletions src/translations/schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"forest_fire",
"avalanches",
"rain",
"flood",
"flooding",
"rain_flood"
],
"properties": {
Expand Down Expand Up @@ -189,8 +189,8 @@
"$id": "#/properties/events/properties/rain",
"type": ["string", "null"]
},
"flood": {
"$id": "#/properties/events/properties/flood",
"flooding": {
"$id": "#/properties/events/properties/flooding",
"type": ["string", "null"]
},
"rain_flood": {
Expand Down
6 changes: 3 additions & 3 deletions src/translations/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"snow_ice": "sneh/ľad",
"thunderstorms": "búrky",
"fog": "hmla",
"hight_temperature": "extrémne vysoká teplota",
"low_temperature": "extrémne nízka teplota",
"hight_temperature": "vysoká teplota",
"low_temperature": "nízka teplota",
"coastal_event": "pobrežná udalosť",
"forest_fire": "lesný požiar",
"avalanches": "lavíny",
"rain": "dážď",
"flood": "povodeň",
"flooding": null,
"rain_flood": "dažďová povodeň"
},
"messages": {
Expand Down
6 changes: 3 additions & 3 deletions src/translations/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"snow_ice": "snö/is",
"thunderstorms": "åska",
"fog": "dimma",
"hight_temperature": "extremt hög temperatur",
"low_temperature": "extremt låg temperatur",
"hight_temperature": "hög temperatur",
"low_temperature": "låg temperatur",
"coastal_event": "kusthändelse",
"forest_fire": "skogsbrand",
"avalanches": "laviner",
"rain": "regn",
"flood": "höga flöden",
"flooding": null,
"rain_flood": "störtfloder"
},
"messages": {
Expand Down

0 comments on commit 4b6f3bd

Please sign in to comment.