mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-05-14 10:11:06 -05:00
Add new data collectors to main.py
This commit is contained in:
parent
ad2418ad55
commit
fd3218eb7a
8
main.py
8
main.py
@ -2,8 +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
|
||||||
from recordGenerators import Alerts,CurrentObservations,DailyForecast,HourlyForecast,AirportDelays,AirQuality,HeatingAndCooling,PollenForecast,Breathing
|
from recordGenerators import Alerts,CurrentObservations,DailyForecast,HourlyForecast,AirportDelays,AirQuality,HeatingAndCooling,PollenForecast,Breathing, AchesAndPains, MosquitoActivity, WateringNeeds, TideForecast
|
||||||
from radar import TWCRadarProcessor, RadarProcessor
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
l = logging.getLogger(__name__)
|
l = logging.getLogger(__name__)
|
||||||
@ -60,6 +59,11 @@ async def HourUpdaters():
|
|||||||
AirportDelays.writeData()
|
AirportDelays.writeData()
|
||||||
Breathing.makeDataFile()
|
Breathing.makeDataFile()
|
||||||
HeatingAndCooling.makeRecord()
|
HeatingAndCooling.makeRecord()
|
||||||
|
WateringNeeds.makeRecord()
|
||||||
|
# This returns a 401 at the moment and im not sure why.
|
||||||
|
# MosquitoActivity.makeRecord()
|
||||||
|
AchesAndPains.makeRecord()
|
||||||
|
TideForecast.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