Skip to content

Commit

Permalink
feat: Monte Amiata
Browse files Browse the repository at this point in the history
  • Loading branch information
FezVrasta committed Dec 18, 2023
1 parent 3a5bf82 commit 62ef553
Show file tree
Hide file tree
Showing 4 changed files with 2,108 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/resorts/monte-amiata/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
selector: '.wpb_wrapper:contains("Stato apertura impianti") tr',
parse: {
name: '0',
status: {
child: '1/0',
attribute: 'src',
regex: /(rosso|verde)\.png$/,
fn: (s) => {
switch (s) {
case 'verde':
return 'open';
case 'rosso':
return 'closed';
}
},
},
},
};
16 changes: 16 additions & 0 deletions lib/resorts/monte-amiata/resort.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "Monte Amiata",
"url": {
"host": "https://amiataneve.it",
"pathname": "/"
},
"tags": [
"Italy",
"Appennines",
"Tuscany"
],
"ll": [
11.62626,
42.89159
]
}
Loading

0 comments on commit 62ef553

Please sign in to comment.