Fix import in main.py

This commit is contained in:
April 2022-10-21 19:00:56 -07:00
parent 5320d22fae
commit a8e58857cb
No known key found for this signature in database
GPG Key ID: 17A9A017FAA4DE5E

20
main.py
View File

@ -2,7 +2,7 @@ import asyncio
from asyncio.log import logger from asyncio.log import logger
from asyncore import loop from asyncore import loop
import logging,coloredlogs import logging,coloredlogs
import recordGenerators as RG from recordGenerators import Alerts,CurrentObservations,DailyForecast,HourlyForecast,AirportDelays,AirQuality,HeatingAndCooling,PollenForecast,Breathing
from radar import TWCRadarProcessor, RadarProcessor from radar import TWCRadarProcessor, RadarProcessor
import os import os
@ -35,7 +35,7 @@ l.info("Developed by mewtek32, Floppaa, Goldblaze, and needlenose")
async def grabAlertsLoop(): async def grabAlertsLoop():
while True: while True:
RG.Alerts.makeRecord() Alerts.makeRecord()
await asyncio.sleep(60) await asyncio.sleep(60)
@ -47,19 +47,19 @@ async def grabAlertsLoop():
async def FiveMinUpdaters(): async def FiveMinUpdaters():
while True: while True:
RG.CurrentObservations.makeDataFile() CurrentObservations.makeDataFile()
l.debug("Sleeping for 5 minutes...") l.debug("Sleeping for 5 minutes...")
await asyncio.sleep(5 * 60) await asyncio.sleep(5 * 60)
async def HourUpdaters(): async def HourUpdaters():
while True: while True:
RG.DailyForecast.makeDataFile() DailyForecast.makeDataFile()
RG.HourlyForecast.makeDataFile() HourlyForecast.makeDataFile()
RG.AirQuality.writeData() AirQuality.writeData()
RG.PollenForecast.makeDataFile() PollenForecast.makeDataFile()
RG.AirportDelays.writeData() AirportDelays.writeData()
RG.Breathing.makeDataFile() Breathing.makeDataFile()
RG.HeatingAndCooling.makeRecord() HeatingAndCooling.makeRecord()
l.debug("Sleeping for an hour...") l.debug("Sleeping for an hour...")
await asyncio.sleep(60 * 60) await asyncio.sleep(60 * 60)