MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / fetchSystemStatus

Function fetchSystemStatus

web/scripts/ragnar_modern.js:13707–13724  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13705 params.set('cursor', pwnLogCursor.toString());
13706 } else {
13707 params.set('tail', '8192');
13708 }
13709
13710 const result = await fetchAPI(`/api/pwnagotchi/logs?${params.toString()}`);
13711
13712 if (!result || result.success === false) {
13713 if (!options.silent) {
13714 setPwnLogEmptyMessage((result && result.error) ? result.error : 'Installer log not available yet');
13715 }
13716 if (!result || !result.installing) {
13717 schedulePwnLogStop();
13718 }
13719 return;
13720 }
13721
13722 if (typeof result.cursor === 'number') {
13723 pwnLogCursor = result.cursor;
13724 }
13725
13726 if (result.file && result.file !== pwnLogActiveFile) {
13727 pwnLogActiveFile = result.file;

Callers 2

loadSystemDataFunction · 0.70
refreshSystemStatusFunction · 0.70

Calls 7

errorMethod · 0.80
networkAwareFetchFunction · 0.70
showSystemErrorFunction · 0.70
updateSystemOverviewFunction · 0.70
updateProcessListFunction · 0.70
updateNetworkInterfacesFunction · 0.70
updateTemperatureDisplayFunction · 0.70

Tested by

no test coverage detected