Compare commits

..

8 Commits

Author SHA1 Message Date
shamoon
767fc1ec39 Better handle homebridge errors 2023-02-20 17:39:16 -08:00
Tomáš Plášek
09fa08b037 Translated using Weblate (Czech)
Currently translated at 69.6% (250 of 359 strings)

Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/cs/
2023-02-21 02:07:54 +01:00
Nonoss117
fe204dd0c3 Translated using Weblate (French)
Currently translated at 100.0% (359 of 359 strings)

Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/fr/
2023-02-21 02:07:53 +01:00
Antonio Sanchez Castellón
93fe847667 Translated using Weblate (Spanish)
Currently translated at 100.0% (359 of 359 strings)

Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/es/
2023-02-21 02:07:53 +01:00
gallegonovato
f474b746d3 Translated using Weblate (Spanish)
Currently translated at 100.0% (359 of 359 strings)

Translation: Homepage/Homepage
Translate-URL: https://hosted.weblate.org/projects/homepage/homepage/es/
2023-02-21 02:07:52 +01:00
shamoon
b69bb94253 Merge pull request #1031 from benphelps/fix-1025
Fix homebridge config UI-X API expires login with 403
2023-02-20 14:59:46 -08:00
shamoon
9df4ba0881 Fix homebridge config UI-X API expires login with 403 2023-02-20 14:58:19 -08:00
shamoon
b2f26e1a43 Update status.jsx 2023-02-20 14:55:01 -08:00
5 changed files with 48 additions and 47 deletions

View File

@@ -15,10 +15,10 @@
"missing_type": "Chybí typ widgetu: {{type}}",
"api_error": "Chyba API",
"status": "Status",
"information": "Information",
"information": "Informace",
"url": "URL",
"raw_error": "Raw Error",
"response_data": "Response Data"
"raw_error": "",
"response_data": "Data odpovědi"
},
"weather": {
"current": "Aktuální poloha",
@@ -52,7 +52,7 @@
"up": "BĚŽÍ",
"down": "NEBĚŽÍ",
"wait": "Počkejte prosím",
"empty_data": "Subsystem status unknown"
"empty_data": "Status podsystému neznámý"
},
"docker": {
"rx": "RX",
@@ -60,8 +60,8 @@
"mem": "RAM",
"cpu": "CPU",
"offline": "Offline",
"error": "Error",
"unknown": "Unknown"
"error": "Chyba",
"unknown": "Neznámý"
},
"emby": {
"playing": "Přehrává",
@@ -150,7 +150,7 @@
"pending": "Čeká",
"approved": "Schváleno",
"available": "Dostupný",
"processing": "Processing"
"processing": "Zpracováváno"
},
"pihole": {
"queries": "Dotazy",
@@ -317,8 +317,8 @@
"indexers": "Indexery"
},
"navidrome": {
"nothing_streaming": "No Active Streams",
"please_wait": "Please Wait"
"nothing_streaming": "Žádné aktivní streams",
"please_wait": "Prosím vyčkejte"
},
"pyload": {
"speed": "Speed",
@@ -336,8 +336,8 @@
"hd": "HD"
},
"ping": {
"error": "Error",
"ping": "Ping"
"error": "Chyba",
"ping": "Odezva"
},
"scrutiny": {
"passed": "Passed",
@@ -349,22 +349,22 @@
"total": "Total"
},
"deluge": {
"upload": "Upload",
"upload": "Nahrávání",
"leech": "Leech",
"seed": "Seed",
"download": "Download"
"download": "Stahování"
},
"flood": {
"download": "Download",
"upload": "Upload",
"download": "Stahování",
"upload": "Nahrávání",
"leech": "Leech",
"seed": "Seed"
},
"tdarr": {
"queue": "Queue",
"processed": "Processed",
"errored": "Errored",
"saved": "Saved"
"queue": "Fronta",
"processed": "Zpracováno",
"errored": "Chybné",
"saved": "Uložené"
},
"miniflux": {
"read": "Read",
@@ -375,19 +375,19 @@
"no_devices": "No Device Data Received"
},
"common": {
"bibyterate": "{{value, rate(bits: false; binary: true)}}",
"bibitrate": "{{value, rate(bits: true; binary: true)}}"
"bibyterate": "",
"bibitrate": ""
},
"omada": {
"connectedAp": "Connected APs",
"activeUser": "Active devices",
"alerts": "Alerts",
"connectedGateway": "Connected gateways",
"connectedSwitches": "Connected switches"
"connectedAp": "Připojené APs",
"activeUser": "Aktivní zařízení",
"alerts": "Upozornění",
"connectedGateway": "Připojené brány",
"connectedSwitches": "Připojené přepínače"
},
"downloadstation": {
"download": "Download",
"upload": "Upload",
"download": "Stahování",
"upload": "Nahrávání",
"leech": "Leech",
"seed": "Seed"
},

View File

@@ -500,13 +500,13 @@
"records_total": "Duración de la cola"
},
"healthchecks": {
"new": "New",
"up": "Online",
"down": "Offline",
"grace": "In Grace Period",
"paused": "Paused",
"status": "Status",
"last_ping": "Last Ping",
"never": "No pings yet"
"new": "Nuevo",
"up": "Conectado",
"down": "Desconectado",
"grace": "En Periodo de Gracia",
"paused": "Pausado",
"status": "Estado",
"last_ping": "Último Ping",
"never": "Aún no hay pings"
}
}

View File

@@ -500,13 +500,13 @@
"records_total": "En attente"
},
"healthchecks": {
"new": "New",
"up": "Online",
"grace": "In Grace Period",
"down": "Offline",
"paused": "Paused",
"status": "Status",
"last_ping": "Last Ping",
"never": "No pings yet"
"new": "Nouveau",
"up": "En ligne",
"grace": "En Période de Grâce",
"down": "Hors ligne",
"paused": "En Pause",
"status": "Statut",
"last_ping": "Dernier Ping",
"never": "Pas de Ping"
}
}

View File

@@ -12,7 +12,7 @@ export default function Status({ service }) {
</div>
}
if (data && data.status.includes("running")) {
if (data && data.status?.includes("running")) {
if (data.health === "starting") {
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}>

View File

@@ -50,7 +50,7 @@ async function apiCall(widget, endpoint, service) {
headers,
});
if (status === 401) {
if (status === 401 || status === 403) {
logger.debug("Homebridge API rejected the request, attempting to obtain new session token");
const { accessToken } = login(widget, service);
headers.Authorization = `Bearer ${accessToken}`;
@@ -63,7 +63,8 @@ async function apiCall(widget, endpoint, service) {
}
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 };