|
|
@@ -4,6 +4,11 @@
|
|
|
'''
|
|
|
import os
|
|
|
import sys
|
|
|
+
|
|
|
+sys.path.append(os.path.join(os.path.abspath(__file__).split('AutoInfo')[0] + 'AutoInfo'))
|
|
|
+SUB_PROJECT_NAME = "获取天气预报"
|
|
|
+PROJECT_PATH = os.path.join(os.path.abspath(__file__).split('AutoInfo')[0] + 'AutoInfo')
|
|
|
+
|
|
|
import time
|
|
|
import json
|
|
|
from bs4 import BeautifulSoup
|
|
|
@@ -11,9 +16,7 @@ import httpx
|
|
|
|
|
|
from utils.gotify import GotifyNotifier
|
|
|
|
|
|
-sys.path.append(os.path.join(os.path.abspath(__file__).split('AutoInfo')[0] + 'AutoInfo'))
|
|
|
-SUB_PROJECT_NAME = "获取天气预报"
|
|
|
-PROJECT_PATH = os.path.join(os.path.abspath(__file__).split('AutoInfo')[0] + 'AutoInfo')
|
|
|
+
|
|
|
|
|
|
class Weather():
|
|
|
def main(self):
|