Skip to content

Commit

Permalink
Change way to fetch skiinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuSchl committed Feb 10, 2024
1 parent d63bf5a commit d129fd5
Show file tree
Hide file tree
Showing 6 changed files with 1,123 additions and 1,585 deletions.
12 changes: 1 addition & 11 deletions back_node/cron/weatherGathering.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
const cron = require("node-cron");
const puppeteer = require("puppeteer");
const gatherData = require("../utils/wheather/skiinfo").gatherData;

async function action() {
const browser = await puppeteer.launch({
pipe: true,
headless: true,
args: ["--no-sandbox", "--disable-setuid-sandbox", "--disable-dev-shm-usage", "--single-process"],
});

await gatherData({ browser });

console.log("Ski ready");
await browser.close();
await gatherData();
}

/* c8 ignore start */
Expand Down
Loading

0 comments on commit d129fd5

Please sign in to comment.