MCPcopy Create free account
hub / github.com/Tong89/smartNode / get_system_info

Function get_system_info

backend/api.py:282–299  ·  view source on GitHub ↗

获取系统信息

()

Source from the content-addressed store, hash-verified

280
281@app.route('/api/system_info')
282def get_system_info():
283 """获取系统信息"""
284 return ok({
285 "time_scale": TIME_SCALE,
286 "ground_station_count": len(simulation_engine.ground_stations),
287 "total_ground_stations": len(simulation_engine.all_ground_stations),
288 "min_ground_stations": MIN_GROUND_STATION_COUNT,
289 "max_ground_stations": MAX_GROUND_STATION_COUNT,
290 # ⭐ LEO卫星配置信息
291 "leo_satellite_count": len(simulation_engine.leo_satellites),
292 "total_leo_satellites": len(simulation_engine.all_leo_satellites),
293 "min_leo_satellites": MIN_LEO_SATELLITE_COUNT,
294 "max_leo_satellites": 99999, # ⭐ 设置一个极大的数或前端处理为无限制
295 "leo_count": len(simulation_engine.leo_satellites),
296 "meo_count": len(simulation_engine.meo_satellites),
297 "geo_count": len(simulation_engine.geo_relays),
298 "data_types": DATA_TYPES
299 })
300
301
302@app.route('/api/resource_utilization')

Callers

nothing calls this directly

Calls 1

okFunction · 0.90

Tested by

no test coverage detected