OSU-Sustainability-Office / automated-jobs

This repository contains various batch-like containerized tasks for OSU SO's data collection operations.
1 stars 0 forks source link

Fix Monthly Timeframes #56

Closed solderq35 closed 3 months ago

solderq35 commented 3 months ago

Issue

Changes

TODOS

Testing

I included a log excerpt below since this error (top row of meter data aka monthly_top not detected) triggers somewhat randomly. For more robust testing, be sure to test this several times and various times of day.

Suggested: Use command node readPP.js --no-upload > logs/something.txt, check back later (Ctrl F Monthly Top not found, try again, Attempt in the text file specified)

Excerpt from my own logs below (May 21, 2024, ~6 pm).

39
Meter Menu Opened
New Meter Opened
Loading Screen Found
33986 HIGHWAY 34 BYPASS CORVALLIS            OR  (Item #241)  (Meter #78831398 )
PP Meter ID: 78831398
Monthly Top not found.
One Week Option Found
One Year Found
One Year Clicked
Monthly Top not found, try again
Attempt 1 of 8

39
Meter Menu Opened
New Meter Opened
Loading Screen not found.
Loading Screen not found, trying again

39
33986 HIGHWAY 34 BYPASS CORVALLIS            OR  (Item #241)  (Meter #78831398 )
PP Meter ID: 78831398
Monthly Top Found
throwing for odd timeframeiterator, not reading this value although valid
Monthly Top not found.
One Week Option Found
One Month Found
One Month Clicked
Monthly Top not found, try again
Attempt 2 of 8

39
33986 HIGHWAY 34 BYPASS CORVALLIS            OR  (Item #241)  (Meter #78831398 )
PP Meter ID: 78831398
Monthly Top Found
Monthly Data Top Row Found, getting table top row value
Data is not yearly. Data is probably monthly.
===
Period2024-05-20Average Temperature52.5Usage(kwh)51.74Est. Rounded Amount$8