34 lines
548 B
Python
34 lines
548 B
Python
import os, logging
|
|
DEBUG = os.environ.get('DEBUG')
|
|
logging.basicConfig(
|
|
format='[%(asctime)s] %(levelname)s %(module)s/%(funcName)s - %(message)s',
|
|
level=logging.DEBUG if DEBUG else logging.INFO)
|
|
|
|
import asyncio
|
|
import aiohttp
|
|
import aiomqtt
|
|
|
|
|
|
HOSTS = {
|
|
'http': [
|
|
'tanner.vc',
|
|
'forum.protospace.ca',
|
|
'protospace.ca',
|
|
'my.protospace.ca',
|
|
],
|
|
'mqtt': [
|
|
'webhost.protospace.ca',
|
|
],
|
|
}
|
|
|
|
|
|
def alert_tanner(msg):
|
|
pass
|
|
|
|
def main():
|
|
pass
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|