Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
BoQsc committed Aug 6, 2024
1 parent 12519ab commit 44da67e
Show file tree
Hide file tree
Showing 5 changed files with 166 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"directory-based-import-updater": "directory-based-import-updater.py", "Project_resolvecasing": "Project_resolvecasing.py", "webserver": "webserver.py", "Webserver_background": "Webserver_background.py", "Webserver_background_terminate": "Webserver_background_terminate.py", "Webserver_exit_threads_signaling": "Webserver_exit_threads_signaling.py", "Webserver_findNextHordeNightTime_inside_logs_folder": "Webserver_findNextHordeNightTime_inside_logs_folder.py", "Webserver_findNextHordeNightTime_inside_logs_folder_test": "Webserver_findNextHordeNightTime_inside_logs_folder_test.py", "Webserver_fix_pythonw_stream_bug": "Webserver_fix_pythonw_stream_bug.py", "Webserver_main_thread_keep_alive": "Webserver_main_thread_keep_alive.py", "Webserver_player_status_monitor": "Webserver_player_status_monitor.py", "Webserver_template_engine": "Webserver_template_engine.py", "Webserver_upnp_portforwarding": "Webserver_upnp_portforwarding.py", "Webserver_zget_latest_game_server_log_file": "Webserver_zget_latest_game_server_log_file.py"}
{"directory-based-import-updater": "directory-based-import-updater.py", "Project_resolvecasing": "Project_resolvecasing.py", "webserver": "webserver.py", "Webserver_background": "Webserver_background.py", "Webserver_background_terminate": "Webserver_background_terminate.py", "Webserver_exit_threads_signaling": "Webserver_exit_threads_signaling.py", "Webserver_findNextHordeNightTime_inside_logs_folder": "Webserver_findNextHordeNightTime_inside_logs_folder.py", "Webserver_findNextHordeNightTime_inside_logs_folder_test": "Webserver_findNextHordeNightTime_inside_logs_folder_test.py", "Webserver_fix_pythonw_stream_bug": "Webserver_fix_pythonw_stream_bug.py", "Webserver_get_latest_game_server_log_file": "Webserver_get_latest_game_server_log_file.py", "Webserver_main_thread_keep_alive": "Webserver_main_thread_keep_alive.py", "Webserver_player_status_monitor": "Webserver_player_status_monitor.py", "Webserver_template_engine": "Webserver_template_engine.py", "Webserver_upnp_portforwarding": "Webserver_upnp_portforwarding.py"}
162 changes: 162 additions & 0 deletions webserver/Webserver-testing/Webserver/log_parser.log
Original file line number Diff line number Diff line change
Expand Up @@ -384,3 +384,165 @@ Full Player Status Report:
Full Player Status Report:
SERVER: Shutdown (PltfmId: None)
boqsc: Offline (PltfmId: Steam_76561198072601792)
2024-08-06 09:23:33,084 - INFO - Processed 3000 lines
2024-08-06 09:23:33,085 - INFO -
Full Player Status Report:
SERVER: Shutdown (PltfmId: None)
boqsc: Offline (PltfmId: Steam_76561198072601792)
2024-08-06 09:25:23,068 - INFO - Processed 4000 lines
2024-08-06 09:25:23,069 - INFO -
Full Player Status Report:
SERVER: Shutdown (PltfmId: None)
boqsc: Offline (PltfmId: Steam_76561198072601792)
2024-08-06 09:27:13,014 - INFO - Processed 5000 lines
2024-08-06 09:27:13,014 - INFO -
Full Player Status Report:
SERVER: Shutdown (PltfmId: None)
boqsc: Offline (PltfmId: Steam_76561198072601792)
2024-08-06 09:29:02,843 - INFO - Processed 6000 lines
2024-08-06 09:29:02,843 - INFO -
Full Player Status Report:
SERVER: Shutdown (PltfmId: None)
boqsc: Offline (PltfmId: Steam_76561198072601792)
2024-08-06 09:30:53,172 - INFO - Processed 7000 lines
2024-08-06 09:30:53,172 - INFO -
Full Player Status Report:
SERVER: Shutdown (PltfmId: None)
boqsc: Offline (PltfmId: Steam_76561198072601792)
2024-08-06 09:32:36,470 - INFO - Initializing player status from log file: C:\Users\Windows10\Documents\GitHub\7DTD-Public-Vanilla-Server\webserver\Webserver-testing\Webserver\../7DaysToDie_Data\output_log__2024-08-02__09-25-44.txt
2024-08-06 09:32:36,480 - DEBUG - Player '', ClientNumber=' detected with status: None
2024-08-06 09:32:36,480 - DEBUG - Player 'boqsc' detected with status: Online,Joining
2024-08-06 09:32:36,480 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,480 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,480 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,480 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,480 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,480 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,480 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,480 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,480 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,480 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,481 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,481 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,481 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,481 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,481 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,481 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,481 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,482 - DEBUG - Player 'boqsc' detected with status: Online,Playing
2024-08-06 09:32:36,482 - DEBUG - Player 'boqsc' detected with status: Online,Spawned
2024-08-06 09:32:36,483 - DEBUG - Player 'boqsc' detected with status: Offline
2024-08-06 09:32:36,483 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,483 - DEBUG - Player 'boqsc' detected with status: Offline
2024-08-06 09:32:36,483 - DEBUG - Player '', ClientNumber=' detected with status: None
2024-08-06 09:32:36,483 - DEBUG - Player 'boqsc' detected with status: Online,Joining
2024-08-06 09:32:36,483 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,483 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,484 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,484 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,484 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,484 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,484 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,484 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,484 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,484 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,484 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,484 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,484 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,484 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,484 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,484 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,484 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,485 - DEBUG - Player 'boqsc' detected with status: Online,Playing
2024-08-06 09:32:36,485 - DEBUG - Player 'boqsc' detected with status: Online,Spawned
2024-08-06 09:32:36,485 - DEBUG - Player 'boqsc' detected with status: Offline
2024-08-06 09:32:36,485 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:32:36,485 - DEBUG - Player 'boqsc' detected with status: Offline
2024-08-06 09:32:36,485 - INFO - Server is shutting down
2024-08-06 09:32:36,487 - DEBUG - Initial player status: {'SERVER': {'status': 'Shutdown', 'pltfm_id': None}, 'boqsc': {'status': 'Offline', 'pltfm_id': 'Steam_76561198072601792'}}
2024-08-06 09:32:36,487 - INFO - player_status.json found. Updating with current data.
2024-08-06 09:32:36,487 - INFO - Updating player_status.json file
2024-08-06 09:32:36,488 - DEBUG - Current player status: {'SERVER': {'status': 'Shutdown', 'pltfm_id': None}, 'boqsc': {'status': 'Offline', 'pltfm_id': 'Steam_76561198072601792'}}
2024-08-06 09:32:36,488 - DEBUG - Online count: 0
2024-08-06 09:32:36,488 - DEBUG - JSON data: {
"online_count": 0,
"players": {},
"server_status": "Offline"
}
2024-08-06 09:32:36,488 - INFO - Starting to monitor log file in real-time...
2024-08-06 09:32:42,751 - INFO - Processed 8000 lines
2024-08-06 09:32:42,751 - INFO -
Full Player Status Report:
SERVER: Shutdown (PltfmId: None)
boqsc: Offline (PltfmId: Steam_76561198072601792)
2024-08-06 09:34:25,245 - INFO - Processed 1000 lines
2024-08-06 09:34:25,245 - INFO -
Full Player Status Report:
SERVER: Shutdown (PltfmId: None)
boqsc: Offline (PltfmId: Steam_76561198072601792)
2024-08-06 09:34:31,418 - INFO - Processed 9000 lines
2024-08-06 09:34:31,418 - INFO -
Full Player Status Report:
SERVER: Shutdown (PltfmId: None)
boqsc: Offline (PltfmId: Steam_76561198072601792)
2024-08-06 09:54:01,038 - INFO - Initializing player status from log file: C:\Users\Windows10\Documents\GitHub\7DTD-Public-Vanilla-Server\webserver\Webserver-testing\Webserver\../7DaysToDie_Data\output_log__2024-08-02__09-25-44.txt
2024-08-06 09:54:01,046 - DEBUG - Player '', ClientNumber=' detected with status: None
2024-08-06 09:54:01,046 - DEBUG - Player 'boqsc' detected with status: Online,Joining
2024-08-06 09:54:01,047 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,047 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,047 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,047 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,047 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,047 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,047 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,047 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,047 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,047 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,047 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,048 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,048 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,048 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,048 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,048 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,048 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,048 - DEBUG - Player 'boqsc' detected with status: Online,Playing
2024-08-06 09:54:01,048 - DEBUG - Player 'boqsc' detected with status: Online,Spawned
2024-08-06 09:54:01,050 - DEBUG - Player 'boqsc' detected with status: Offline
2024-08-06 09:54:01,050 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,050 - DEBUG - Player 'boqsc' detected with status: Offline
2024-08-06 09:54:01,050 - DEBUG - Player '', ClientNumber=' detected with status: None
2024-08-06 09:54:01,050 - DEBUG - Player 'boqsc' detected with status: Online,Joining
2024-08-06 09:54:01,050 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,051 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,051 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,051 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,051 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,051 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,051 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,051 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,051 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,051 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,051 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,051 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,051 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,052 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,052 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,052 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,052 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,052 - DEBUG - Player 'boqsc' detected with status: Online,Playing
2024-08-06 09:54:01,052 - DEBUG - Player 'boqsc' detected with status: Online,Spawned
2024-08-06 09:54:01,052 - DEBUG - Player 'boqsc' detected with status: Offline
2024-08-06 09:54:01,052 - DEBUG - Player 'boqsc' detected with status: None
2024-08-06 09:54:01,052 - DEBUG - Player 'boqsc' detected with status: Offline
2024-08-06 09:54:01,053 - INFO - Server is shutting down
2024-08-06 09:54:01,055 - DEBUG - Initial player status: {'SERVER': {'status': 'Shutdown', 'pltfm_id': None}, 'boqsc': {'status': 'Offline', 'pltfm_id': 'Steam_76561198072601792'}}
2024-08-06 09:54:01,055 - INFO - player_status.json found. Updating with current data.
2024-08-06 09:54:01,055 - INFO - Updating player_status.json file
2024-08-06 09:54:01,056 - DEBUG - Current player status: {'SERVER': {'status': 'Shutdown', 'pltfm_id': None}, 'boqsc': {'status': 'Offline', 'pltfm_id': 'Steam_76561198072601792'}}
2024-08-06 09:54:01,056 - DEBUG - Online count: 0
2024-08-06 09:54:01,056 - DEBUG - JSON data: {
"online_count": 0,
"players": {},
"server_status": "Offline"
}
2024-08-06 09:54:01,056 - INFO - Starting to monitor log file in real-time...
6 changes: 3 additions & 3 deletions webserver/Webserver-testing/Webserver/webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def do_GET(self):
Webserver_IP_ADDRESS = Get_WebServer_Public_IP()

import os
file_path = os.path.join(os.path.dirname(__file__), 'simple-player-status-component.html')
file_path = os.path.join(os.path.dirname(__file__), 'Page_component_simple-player-status.html')
with open(file_path, 'r') as file:
simple_player_status_component_loaded = file.read()

Expand Down Expand Up @@ -109,10 +109,10 @@ def do_GET(self):
data = json.load(file)
self.wfile.write(json.dumps(data).encode('utf-8'))

if self.path == '/simple-player-status-component.html':
if self.path == '/Page_component_simple-player-status.html':
import os
self.send_response(200), self.send_header('Content-type', 'text/html'), self.end_headers()
file_path = os.path.join(os.path.dirname(__file__), 'simple-player-status-component.html')
file_path = os.path.join(os.path.dirname(__file__), 'Page_component_simple-player-status.html')
with open(file_path, 'r') as file:
data = file.read()
self.wfile.write(data.encode('utf-8'))
Expand Down

0 comments on commit 44da67e

Please sign in to comment.