mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-05-12 01:10:24 -05:00
Fix import in main.py
This commit is contained in:
parent
5320d22fae
commit
a8e58857cb
20
main.py
20
main.py
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user