mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
767fc1ec39 | ||
|
|
09fa08b037 | ||
|
|
fe204dd0c3 | ||
|
|
93fe847667 | ||
|
|
f474b746d3 | ||
|
|
b69bb94253 | ||
|
|
9df4ba0881 | ||
|
|
b2f26e1a43 |
@@ -15,10 +15,10 @@
|
|||||||
"missing_type": "Chybí typ widgetu: {{type}}",
|
"missing_type": "Chybí typ widgetu: {{type}}",
|
||||||
"api_error": "Chyba API",
|
"api_error": "Chyba API",
|
||||||
"status": "Status",
|
"status": "Status",
|
||||||
"information": "Information",
|
"information": "Informace",
|
||||||
"url": "URL",
|
"url": "URL",
|
||||||
"raw_error": "Raw Error",
|
"raw_error": "",
|
||||||
"response_data": "Response Data"
|
"response_data": "Data odpovědi"
|
||||||
},
|
},
|
||||||
"weather": {
|
"weather": {
|
||||||
"current": "Aktuální poloha",
|
"current": "Aktuální poloha",
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
"up": "BĚŽÍ",
|
"up": "BĚŽÍ",
|
||||||
"down": "NEBĚŽÍ",
|
"down": "NEBĚŽÍ",
|
||||||
"wait": "Počkejte prosím",
|
"wait": "Počkejte prosím",
|
||||||
"empty_data": "Subsystem status unknown"
|
"empty_data": "Status podsystému neznámý"
|
||||||
},
|
},
|
||||||
"docker": {
|
"docker": {
|
||||||
"rx": "RX",
|
"rx": "RX",
|
||||||
@@ -60,8 +60,8 @@
|
|||||||
"mem": "RAM",
|
"mem": "RAM",
|
||||||
"cpu": "CPU",
|
"cpu": "CPU",
|
||||||
"offline": "Offline",
|
"offline": "Offline",
|
||||||
"error": "Error",
|
"error": "Chyba",
|
||||||
"unknown": "Unknown"
|
"unknown": "Neznámý"
|
||||||
},
|
},
|
||||||
"emby": {
|
"emby": {
|
||||||
"playing": "Přehrává",
|
"playing": "Přehrává",
|
||||||
@@ -150,7 +150,7 @@
|
|||||||
"pending": "Čeká",
|
"pending": "Čeká",
|
||||||
"approved": "Schváleno",
|
"approved": "Schváleno",
|
||||||
"available": "Dostupný",
|
"available": "Dostupný",
|
||||||
"processing": "Processing"
|
"processing": "Zpracováváno"
|
||||||
},
|
},
|
||||||
"pihole": {
|
"pihole": {
|
||||||
"queries": "Dotazy",
|
"queries": "Dotazy",
|
||||||
@@ -317,8 +317,8 @@
|
|||||||
"indexers": "Indexery"
|
"indexers": "Indexery"
|
||||||
},
|
},
|
||||||
"navidrome": {
|
"navidrome": {
|
||||||
"nothing_streaming": "No Active Streams",
|
"nothing_streaming": "Žádné aktivní streams",
|
||||||
"please_wait": "Please Wait"
|
"please_wait": "Prosím vyčkejte"
|
||||||
},
|
},
|
||||||
"pyload": {
|
"pyload": {
|
||||||
"speed": "Speed",
|
"speed": "Speed",
|
||||||
@@ -336,8 +336,8 @@
|
|||||||
"hd": "HD"
|
"hd": "HD"
|
||||||
},
|
},
|
||||||
"ping": {
|
"ping": {
|
||||||
"error": "Error",
|
"error": "Chyba",
|
||||||
"ping": "Ping"
|
"ping": "Odezva"
|
||||||
},
|
},
|
||||||
"scrutiny": {
|
"scrutiny": {
|
||||||
"passed": "Passed",
|
"passed": "Passed",
|
||||||
@@ -349,22 +349,22 @@
|
|||||||
"total": "Total"
|
"total": "Total"
|
||||||
},
|
},
|
||||||
"deluge": {
|
"deluge": {
|
||||||
"upload": "Upload",
|
"upload": "Nahrávání",
|
||||||
"leech": "Leech",
|
"leech": "Leech",
|
||||||
"seed": "Seed",
|
"seed": "Seed",
|
||||||
"download": "Download"
|
"download": "Stahování"
|
||||||
},
|
},
|
||||||
"flood": {
|
"flood": {
|
||||||
"download": "Download",
|
"download": "Stahování",
|
||||||
"upload": "Upload",
|
"upload": "Nahrávání",
|
||||||
"leech": "Leech",
|
"leech": "Leech",
|
||||||
"seed": "Seed"
|
"seed": "Seed"
|
||||||
},
|
},
|
||||||
"tdarr": {
|
"tdarr": {
|
||||||
"queue": "Queue",
|
"queue": "Fronta",
|
||||||
"processed": "Processed",
|
"processed": "Zpracováno",
|
||||||
"errored": "Errored",
|
"errored": "Chybné",
|
||||||
"saved": "Saved"
|
"saved": "Uložené"
|
||||||
},
|
},
|
||||||
"miniflux": {
|
"miniflux": {
|
||||||
"read": "Read",
|
"read": "Read",
|
||||||
@@ -375,19 +375,19 @@
|
|||||||
"no_devices": "No Device Data Received"
|
"no_devices": "No Device Data Received"
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
"bibyterate": "{{value, rate(bits: false; binary: true)}}",
|
"bibyterate": "",
|
||||||
"bibitrate": "{{value, rate(bits: true; binary: true)}}"
|
"bibitrate": ""
|
||||||
},
|
},
|
||||||
"omada": {
|
"omada": {
|
||||||
"connectedAp": "Connected APs",
|
"connectedAp": "Připojené APs",
|
||||||
"activeUser": "Active devices",
|
"activeUser": "Aktivní zařízení",
|
||||||
"alerts": "Alerts",
|
"alerts": "Upozornění",
|
||||||
"connectedGateway": "Connected gateways",
|
"connectedGateway": "Připojené brány",
|
||||||
"connectedSwitches": "Connected switches"
|
"connectedSwitches": "Připojené přepínače"
|
||||||
},
|
},
|
||||||
"downloadstation": {
|
"downloadstation": {
|
||||||
"download": "Download",
|
"download": "Stahování",
|
||||||
"upload": "Upload",
|
"upload": "Nahrávání",
|
||||||
"leech": "Leech",
|
"leech": "Leech",
|
||||||
"seed": "Seed"
|
"seed": "Seed"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -500,13 +500,13 @@
|
|||||||
"records_total": "Duración de la cola"
|
"records_total": "Duración de la cola"
|
||||||
},
|
},
|
||||||
"healthchecks": {
|
"healthchecks": {
|
||||||
"new": "New",
|
"new": "Nuevo",
|
||||||
"up": "Online",
|
"up": "Conectado",
|
||||||
"down": "Offline",
|
"down": "Desconectado",
|
||||||
"grace": "In Grace Period",
|
"grace": "En Periodo de Gracia",
|
||||||
"paused": "Paused",
|
"paused": "Pausado",
|
||||||
"status": "Status",
|
"status": "Estado",
|
||||||
"last_ping": "Last Ping",
|
"last_ping": "Último Ping",
|
||||||
"never": "No pings yet"
|
"never": "Aún no hay pings"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -500,13 +500,13 @@
|
|||||||
"records_total": "En attente"
|
"records_total": "En attente"
|
||||||
},
|
},
|
||||||
"healthchecks": {
|
"healthchecks": {
|
||||||
"new": "New",
|
"new": "Nouveau",
|
||||||
"up": "Online",
|
"up": "En ligne",
|
||||||
"grace": "In Grace Period",
|
"grace": "En Période de Grâce",
|
||||||
"down": "Offline",
|
"down": "Hors ligne",
|
||||||
"paused": "Paused",
|
"paused": "En Pause",
|
||||||
"status": "Status",
|
"status": "Statut",
|
||||||
"last_ping": "Last Ping",
|
"last_ping": "Dernier Ping",
|
||||||
"never": "No pings yet"
|
"never": "Pas de Ping"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default function Status({ service }) {
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data && data.status.includes("running")) {
|
if (data && data.status?.includes("running")) {
|
||||||
if (data.health === "starting") {
|
if (data.health === "starting") {
|
||||||
return (
|
return (
|
||||||
<div className="w-auto px-1.5 py-0.5 text-center bg-theme-500/10 dark:bg-theme-900/50 rounded-b-[3px] overflow-hidden" title={data.health}>
|
<div className="w-auto px-1.5 py-0.5 text-center bg-theme-500/10 dark:bg-theme-900/50 rounded-b-[3px] overflow-hidden" title={data.health}>
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ async function apiCall(widget, endpoint, service) {
|
|||||||
headers,
|
headers,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (status === 401) {
|
if (status === 401 || status === 403) {
|
||||||
logger.debug("Homebridge API rejected the request, attempting to obtain new session token");
|
logger.debug("Homebridge API rejected the request, attempting to obtain new session token");
|
||||||
const { accessToken } = login(widget, service);
|
const { accessToken } = login(widget, service);
|
||||||
headers.Authorization = `Bearer ${accessToken}`;
|
headers.Authorization = `Bearer ${accessToken}`;
|
||||||
@@ -63,7 +63,8 @@ async function apiCall(widget, endpoint, service) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (status !== 200) {
|
if (status !== 200) {
|
||||||
logger.error("Error getting data from Homebridge: %d. Data: %s", status, data);
|
logger.error("Error getting data from Homebridge: %s status %d. Data: %s", url, status, data);
|
||||||
|
return { status, contentType, data: null, responseHeaders };
|
||||||
}
|
}
|
||||||
|
|
||||||
return { status, contentType, data: JSON.parse(data.toString()), responseHeaders };
|
return { status, contentType, data: JSON.parse(data.toString()), responseHeaders };
|
||||||
|
|||||||
Reference in New Issue
Block a user