Remove mock fallback from utility scraper
This commit is contained in:
parent
858e3b4ffd
commit
8c9df40760
|
|
@ -40,7 +40,7 @@ async function runScrapers(credentials) {
|
||||||
report += `💡 *FirstEnergy*: ${usage.trim()} kWh used today (~${cost.trim()})\n`;
|
report += `💡 *FirstEnergy*: ${usage.trim()} kWh used today (~${cost.trim()})\n`;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn('[Scraper] FirstEnergy scraping failed:', err.message);
|
console.warn('[Scraper] FirstEnergy scraping failed:', err.message);
|
||||||
report += `💡 *FirstEnergy (Simulated Fallback)*: 24.5 kWh used today (~$3.15) [Actual scrape failed]\n`;
|
report += `💡 *FirstEnergy*: ❌ Error scraping data (${err.message})\n`;
|
||||||
} finally {
|
} finally {
|
||||||
await page.close().catch(()=>null);
|
await page.close().catch(()=>null);
|
||||||
}
|
}
|
||||||
|
|
@ -70,7 +70,7 @@ async function runScrapers(credentials) {
|
||||||
report += `🔥 *Peoples Gas*: ${usage.trim()} CCF used today (~${cost.trim()})\n`;
|
report += `🔥 *Peoples Gas*: ${usage.trim()} CCF used today (~${cost.trim()})\n`;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn('[Scraper] Peoples Gas scraping failed:', err.message);
|
console.warn('[Scraper] Peoples Gas scraping failed:', err.message);
|
||||||
report += `🔥 *Peoples Gas (Simulated Fallback)*: 3.2 CCF used today (~$2.40) [Actual scrape failed]\n`;
|
report += `🔥 *Peoples Gas*: ❌ Error scraping data (${err.message})\n`;
|
||||||
} finally {
|
} finally {
|
||||||
await page.close().catch(()=>null);
|
await page.close().catch(()=>null);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue