From 3cf84b42b7e1042940baf0b35c7a7968dbd2b5c0 Mon Sep 17 00:00:00 2001 From: April Date: Fri, 4 Nov 2022 20:47:09 -0700 Subject: [PATCH] Obtain forecast information for metro map cities --- recordGenerators/CurrentObservations.py | 5 +++++ recordGenerators/DailyForecast.py | 5 +++++ recordGenerators/HourlyForecast.py | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/recordGenerators/CurrentObservations.py b/recordGenerators/CurrentObservations.py index b589f45..d33c012 100644 --- a/recordGenerators/CurrentObservations.py +++ b/recordGenerators/CurrentObservations.py @@ -26,6 +26,11 @@ for i in MPC.getPrimaryLocations(): tecciId.append("T" + LFR.getCoopId(i)) zipCodes.append(LFR.getZip(i)) +# Obtain metro map city TECCI and zips: +for i in MPC.getMetroCities(): + tecciId.append("T" + LFR.getCoopId(i)) + zipCodes.append(LFR.getZip(i)) + apiKey = '21d8a80b3d6b444998a80b3d6b1449d3' diff --git a/recordGenerators/DailyForecast.py b/recordGenerators/DailyForecast.py index a13899d..acd7133 100644 --- a/recordGenerators/DailyForecast.py +++ b/recordGenerators/DailyForecast.py @@ -25,6 +25,11 @@ for i in MPC.getPrimaryLocations(): tecciId.append(LFR.getCoopId(i)) zipCodes.append(LFR.getZip(i)) +# Grab metro map city tecci and zip codes +for i in MPC.getMetroCities(): + tecciId.append(LFR.getCoopId(i)) + zipCodes.append(LFR.getZip(i)) + apiKey = '21d8a80b3d6b444998a80b3d6b1449d3' def getData(tecci, zipCode): diff --git a/recordGenerators/HourlyForecast.py b/recordGenerators/HourlyForecast.py index 8ffc802..1e6b097 100644 --- a/recordGenerators/HourlyForecast.py +++ b/recordGenerators/HourlyForecast.py @@ -25,6 +25,11 @@ for i in MPC.getPrimaryLocations(): tecciId.append(LFR.getCoopId(i)) zipCodes.append(LFR.getZip(i)) +for i in MPC.getMetroCities(): + tecciId.append(LFR.getCoopId(i)) + zipCodes.append(LFR.getZip(i)) + + apiKey = '21d8a80b3d6b444998a80b3d6b1449d3' def getData(tecci, zipCode):