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}}", "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"
}, },

View File

@@ -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"
} }
} }

View File

@@ -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"
} }
} }

View File

@@ -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}>

View File

@@ -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 };