mirror of
https://github.com/mewtek/i2ME-Legacy.git
synced 2025-05-12 01:10:24 -05:00
Fix the tasks in main.py not looping properly
This commit is contained in:
parent
63fe0a42e2
commit
0285fd3679
4
main.py
4
main.py
@ -11,17 +11,21 @@ Alerts: 5 minutes
|
|||||||
print("i2MessageEncoder-Python\nDeveloped by mewtek\nData record generators by Floppaa & Goldblaze")
|
print("i2MessageEncoder-Python\nDeveloped by mewtek\nData record generators by Floppaa & Goldblaze")
|
||||||
|
|
||||||
async def FiveMinUpdaters():
|
async def FiveMinUpdaters():
|
||||||
|
while True:
|
||||||
CurrentObservations.makeDataFile()
|
CurrentObservations.makeDataFile()
|
||||||
|
print("Sleeping for 5 minutes...")
|
||||||
await asyncio.sleep(300)
|
await asyncio.sleep(300)
|
||||||
|
|
||||||
|
|
||||||
async def HourUpdaters():
|
async def HourUpdaters():
|
||||||
|
while True:
|
||||||
DailyForecast.makeDataFile()
|
DailyForecast.makeDataFile()
|
||||||
HourlyForecast.makeDataFile()
|
HourlyForecast.makeDataFile()
|
||||||
AirQuality.writeData()
|
AirQuality.writeData()
|
||||||
PollenForecast.makeDataFile()
|
PollenForecast.makeDataFile()
|
||||||
AirportDelays.writeData()
|
AirportDelays.writeData()
|
||||||
Breathing.makeDataFile()
|
Breathing.makeDataFile()
|
||||||
|
print("Sleeping for an hour...")
|
||||||
await asyncio.sleep(3600)
|
await asyncio.sleep(3600)
|
||||||
|
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user