Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
dniakamal authored Sep 24, 2024
2 parents 0acbbb6 + f78c406 commit fe401f1
Show file tree
Hide file tree
Showing 17 changed files with 138 additions and 55 deletions.
3 changes: 3 additions & 0 deletions api/globalconfig/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ type Influx struct {
Org string `json:"org"`
User string `json:"user"`
Password string `json:"password"`
Insecure bool `json:"insecure"`
}

// Redacted implements the redactor interface used by the tee publisher
Expand All @@ -98,11 +99,13 @@ func (c Influx) Redacted() any {
Database string `json:"database"`
Org string `json:"org"`
User string `json:"user"`
Insecure bool `json:"insecure"`
}{
URL: c.URL,
Database: c.Database,
Org: c.Org,
User: c.User,
Insecure: c.Insecure,
}
}

Expand Down
13 changes: 13 additions & 0 deletions assets/js/components/Config/InfluxModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@
autocomplete="off"
/>
</FormRow>
<FormRow id="influxInsecure" :label="$t('config.influx.labelInsecure')">
<div class="d-flex">
<input
class="form-check-input"
id="influxInsecure"
type="checkbox"
v-model="values.insecure"
/>
<label class="form-check-label ms-2" for="influxInsecure">
{{ $t("config.influx.labelCheckInsecure") }}
</label>
</div>
</FormRow>
<p>
<button
v-if="showV1(values)"
Expand Down
2 changes: 1 addition & 1 deletion charger/ocpp/cp_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var (
func (cp *CP) OnBootNotification(request *core.BootNotificationRequest) (*core.BootNotificationConfirmation, error) {
res := &core.BootNotificationConfirmation{
CurrentTime: types.Now(),
Interval: int(Timeout.Seconds()),
Interval: 60,
Status: core.RegistrationStatusAccepted,
}

Expand Down
1 change: 1 addition & 0 deletions cmd/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ func configureInflux(conf *globalconfig.Influx) (*server.Influx, error) {
conf.User,
conf.Password,
conf.Database,
conf.Insecure,
)

return influx, nil
Expand Down
4 changes: 4 additions & 0 deletions i18n/da.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ experimental = "Eksperimentel"
off = "slukket"
on = "tændt"
password = "Adgangskode"
readFromFile = "Læs fra fil"
remove = "Fjern"
save = "Gem"
telemetry = "Telemetri"
Expand Down Expand Up @@ -157,8 +158,11 @@ description = "Opret forbindelse til en MQTT-broker for at udveksle data med and
descriptionClientId = "Afsender af meddelelserne. Hvis tom bruges `evcc-[rand]`."
descriptionTopic = "Efterlades tom for at deaktivere udgivelse."
labelBroker = "Broker"
labelCaCert = "Server certifikat (CA)"
labelCheckInsecure = "Tillad selvsignerede certifikater"
labelClientCert = "Klient certifikat"
labelClientId = "Klient ID"
labelClientKey = "Klientnøgle"
labelInsecure = "Certifikatvalidering"
labelPassword = "Adgangskode"
labelTopic = "Emne"
Expand Down
2 changes: 2 additions & 0 deletions i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ title = "HEMS"
description = "Schreibt Ladedaten und andere Metriken in InfluxDB. Verwende Grafana oder andere Tools, um die Daten zu visualisieren."
descriptionToken = "Siehe die InfluxDB-Dokumentation, um zu erfahren, wie du einen erstellst. https://docs.influxdata.com/influxdb/v2/admin/"
labelBucket = "Bucket"
labelCheckInsecure = "Erlaube unsichere Verbindungen"
labelDatabase = "Datenbank"
labelInsecure = "Zertifikatüberprüfung"
labelOrg = "Organisation"
labelPassword = "Passwort"
labelToken = "API-Token"
Expand Down
2 changes: 2 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ title = "HEMS"
description = "Writes charging data and other metrics to InfluxDB. Use Grafana or other tools to visualize the data."
descriptionToken = "Check the InfluxDB documentation to learn how to create one. https://docs.influxdata.com/influxdb/v2/admin/"
labelBucket = "Bucket"
labelCheckInsecure = "Allow self-signed certificates"
labelDatabase = "Database"
labelInsecure = "Certificate validation"
labelOrg = "Organization"
labelPassword = "Password"
labelToken = "API Token"
Expand Down
4 changes: 4 additions & 0 deletions i18n/es.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ experimental = "Experimental"
off = "apagar"
on = "encender"
password = "Contraseña"
readFromFile = "Leer del archivo"
remove = "Quitar"
save = "Guardar"
telemetry = "Telemetría"
Expand Down Expand Up @@ -157,8 +158,11 @@ description = "Conéctate a un agente MQTT para intercambiar datos con otros sis
descriptionClientId = "Autor del mensaje. Si se deja en blanco, se utiliza `evcc-[rand]`"
descriptionTopic = "Déjelo en blanco para desactivar la publicación"
labelBroker = "Broker"
labelCaCert = "Certificado de servidor (CA)"
labelCheckInsecure = "Permitir certificados autofirmados"
labelClientCert = "Certificado de cliente"
labelClientId = "ID del cliente"
labelClientKey = "Clave del cliente"
labelInsecure = "Verificación de certificado"
labelPassword = "Contraseña"
labelTopic = "Tema"
Expand Down
4 changes: 4 additions & 0 deletions i18n/fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ experimental = "Expérimental"
off = "désactivé"
on = "activé"
password = "Mot de passe"
readFromFile = "Lu depuis le fichier"
remove = "Supprimer"
save = "Enregistrer"
telemetry = "Télémétrie"
Expand Down Expand Up @@ -157,8 +158,11 @@ description = "Connectez-vous à un courtier MQTT pour échanger des données av
descriptionClientId = "Auteur des messages. `evcc-XXXX` sera utilisé si laissé vide."
descriptionTopic = "Laisser vide pour désactiver la publication."
labelBroker = "Courtier"
labelCaCert = "Certificat serveur (CA)"
labelCheckInsecure = "Autoriser les certificats auto-signés"
labelClientCert = "Certificat client"
labelClientId = "Identifiant client"
labelClientKey = "Clé client"
labelInsecure = "Validation du certificat"
labelPassword = "Mot de passe"
labelTopic = "Sujet"
Expand Down
4 changes: 4 additions & 0 deletions i18n/lt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ experimental = "Eksperimentinis"
off = "išjungta"
on = "Įjungta"
password = "Slaptažodis"
readFromFile = "Skaityti iš failo"
remove = "Pašalinti"
save = "Išsaugoti"
telemetry = "Telemetrija"
Expand Down Expand Up @@ -157,8 +158,11 @@ description = "Prisijunkite prie MQTT brokerio, kad keistumėtės duomenimis su
descriptionClientId = "Pranešimų autorius. Jei naudojamas tuščias `evcc-[rand]` ."
descriptionTopic = "Palikite tuščią, kad išjungtumėte publikavimą."
labelBroker = "Broker"
labelCaCert = "Serverio sertifikatas (CA)"
labelCheckInsecure = "Leisti savarankiškai pasirašytus sertifikatus"
labelClientCert = "Kliento sertifikatas"
labelClientId = "Kliento ID"
labelClientKey = "Kliento raktas"
labelInsecure = "Sertifikato patvirtinimas"
labelPassword = "Slaptažodis"
labelTopic = "Tema"
Expand Down
21 changes: 11 additions & 10 deletions i18n/pl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,24 @@ control = "Kontrola baterii"
discharge = "Zapobiegaj rozładowaniu w trybie szybkim i planowemu ładowaniu."
disclaimerHint = "Uwaga:"
disclaimerText = "te ustawienia mają wpływ tylko na tryb solarny. Sposób ładowania jest odpowiednio dostosowywany."
legendBottomName = "priorytet domu"
legendBottomSubline = "nie używany do ładowania"
legendMiddleName = "pojazd najpierw"
legendMiddleSubline = "priorytet nie domu"
legendBottomName = "Daj priorytet ładowaniu akumulatora domowego"
legendBottomSubline = "aż osiągnie {soc}."
legendMiddleName = "Ustaw priorytet ładowaniu pojazdów"
legendMiddleSubline = "gdy poziom naładowania akumulatora domowego jest wyższy niż {soc}."
legendTitle = "Jak należy wykorzystać energię słoneczną?"
legendTopAutostart = "uruchamia się automatycznie"
legendTopName = "ładowanie wspomagane bateryjnie"
legendTopSubline = "bez przerw"
legendTopAutostart = "Rozpocznij automatycznie"
legendTopName = "Ładowanie pojazdu z wykorzystaniem akumulatora"
legendTopSubline = "gdy poziom naładowania akumulatora domowego jest wyższy niż {soc}."
modalTitle = "Bateria domowa"
notControllable = "Sterowanie baterią nie jest dostępne dla tej baterii."
usageTab = "Użycie baterii"

[batterySettings.bufferStart]
above = "kiedy powyżej {soc}"
full = "kiedy na {soc}"
above = "kiedy powyżej {soc}."
full = "kiedy na {soc}."
low = "kiedy nieco pełny"
medium = "kiedy w połowie pełny"
never = "tylko z wystarczającą nadwyżką"
never = "tylko z wystarczającą nadwyżką."

[config]

Expand Down
36 changes: 24 additions & 12 deletions i18n/sl.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,30 @@ control = "Nadzor baterije"
discharge = "Preprečite praznjenje v hitrem načinu in načrtovano polnjenje."
disclaimerHint = "Opomba:"
disclaimerText = "Te nastavitve vplivajo samo na solarni način. Obnašanje pri polnjenju je ustrezno prilagojeno."
legendBottomName = "domača prednost"
legendBottomSubline = "se ne uporablja za polnjenje"
legendMiddleName = "najprej vozilo"
legendMiddleSubline = "Dom je drugi"
gridChargeTab = "Polnjenje iz omrežja"
legendBottomName = "Prednostno polnjenje domače baterije"
legendBottomSubline = "dokler ne doseže {soc}."
legendMiddleName = "Prioritetno polnjenje vozil"
legendMiddleSubline = "ko je domača baterija nad {soc}."
legendTitle = "Kako naj se uporablja sončna energija?"
legendTopAutostart = "samodejno se zažene"
legendTopName = "polnjenje, ki ga podpira baterija"
legendTopSubline = "brez prekinitev"
legendTopAutostart = "Samodejni zagon"
legendTopName = "Polnjenje vozila, ki ga podpira baterija"
legendTopSubline = "ko je domača baterija nad {soc}."
modalTitle = "Domača baterija"
usageTab = "Poraba baterije"

[batterySettings.bufferStart]
above = "ko je nad {soc}"
full = "ko je na {soc}"
above = "ko je nad {soc}."
full = "ko je na {soc}."
low = "ko je nekoliko poln"
medium = "ko je napol poln"
never = "le z dovolj presežka"
never = "samo z dovolj presežka."

[config]

[config.battery]
titleAdd = "Dodaj merilnik baterije"
titleEdit = "Uredi merilnik baterije"
titleAdd = "Dodaj baterijo"
titleEdit = "Uredi baterijo"

[config.circuits]
description = "Zagotavlja, da vsota vseh obremenitvenih točk, povezanih z vezjem, ne preseže konfiguriranih omejitev moči in toka. Vezja je mogoče ugnezditi za izgradnjo hierarhije."
Expand Down Expand Up @@ -55,8 +57,10 @@ chargeStatusF = "napaka"
chargedEnergy = "Napolnjeno"
co2 = "CO₂ iz omrežja"
configured = "Konfigurirano"
controllable = "Nadzorljiv"
currency = "Valuta"
current = "Tok"
currentRange = "Tok"
enabled = "Omogočeno"
energy = "Energija"
feedinPrice = "Cena prejete energije iz omrežja"
Expand All @@ -68,6 +72,7 @@ phaseCurrents = "Tok L1..L3"
phasePowers = "Moč L1..L3"
phaseVoltages = "Napetost L1..L3"
power = "Moč"
powerRange = "Moč"
range = "Doseg"
soc = "SoC"
socLimit = "Omejitev"
Expand Down Expand Up @@ -288,6 +293,7 @@ tabTitle = "Moji podatki"
[footer.savings.period]
30d = "zadnjih 30 dni"
365d = "zadnjih 365 dni"
thisYear = "letos"
total = "ves čas"

[footer.sponsor]
Expand Down Expand Up @@ -360,8 +366,10 @@ areaLabel = "Filtriraj glede na območje"
areas = "Vsa območja"
download = "Prenesi vse loge"
levelLabel = "Filtriraj po ravni logov"
nAreas = "{count} območij"
noResults = "Ni ujemajočih vnosov v logih."
search = "Iskanje"
selectAll = "izberi vse"
showAll = "Pokaži vse vnose"
title = "Logi"
update = "Samodejno posodabljanje"
Expand Down Expand Up @@ -402,6 +410,8 @@ batteryCharge = "Polnjenje baterije"
batteryDischarge = "Praznjenje baterije"
batteryHold = "Baterija (zaklenjena)"
batteryTooltip = "{energy} od {total} ({soc})"
cheapBatteryGridCharge = "poceni omrežna energija"
cleanBatteryGridCharge = "energija iz čistega omrežja"
gridImport = "Uvoz iz omrežja"
homePower = "Poraba objekta"
loadpoints = "Polnilnica | Polnilnici | {count} polnilnih mest"
Expand Down Expand Up @@ -536,6 +546,7 @@ ready = "pripravljen"
vehicleLimit = "Omejitev vozila: {soc}"

[main.vehicleStatus]
awaitingAuthorization = "Čakanje na avtorizacijo."
charging = "Polnjenje…"
cheapEnergyCharging = "Poceni energija je na voljo."
cheapEnergyNextStart = "Poceni energija čez {duration}."
Expand All @@ -545,6 +556,7 @@ cleanEnergyNextStart = "Čista energija na voljo čez {duration}."
cleanEnergySet = "Omejitev CO₂ je nastavljena."
climating = "Zaznano predkondicioniranje."
connected = "Povezan."
disconnectRequired = "Seja prekinjena. Ponovno se povežite."
disconnected = "Odklopljen."
finished = "Končano."
guard = "Zaščita preklopa je aktivna za {remaining}."
Expand Down
4 changes: 4 additions & 0 deletions i18n/sv.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ experimental = "Experimentell"
off = "av"
on = ""
password = "Lösenord"
readFromFile = "Läs från fil"
remove = "Ta bort"
save = "Spara"
telemetry = "Telemetri"
Expand Down Expand Up @@ -157,8 +158,11 @@ description = "Anslut till en MQTT-broker för att utbyta data med andra system
descriptionClientId = "Avsändare av notis. Om tomt används `evcc-[rand]` ."
descriptionTopic = "Lämna tomt för att deaktivera publicering."
labelBroker = "Broker"
labelCaCert = "Server certifikat (CA)"
labelCheckInsecure = "Tillåt egensignerade certifikat"
labelClientCert = "Klient certifikat"
labelClientId = "Klient ID"
labelClientKey = "Klientnyckel"
labelInsecure = "Certifikatkontroll"
labelPassword = "Lösenord"
labelTopic = "Ämne"
Expand Down
42 changes: 31 additions & 11 deletions i18n/uk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,59 @@ control = "Контроль батареї"
discharge = "Запобігти розрядці в швидкому режимі та плановій зарядці"
disclaimerHint = "Примітка:"
disclaimerText = "Ці налаштування впливають лише на сонячний режим. Поведінка зарядки регулюється відповідно."
legendBottomName = "домашній пріоритет"
legendBottomSubline = "не використовується для зарядки"
legendMiddleName = "спочатку транспортний засіб"
legendMiddleSubline = "другий дім"
gridChargeTab = "Зарядка від електромережі"
legendBottomName = "Надайте пріоритет зарядці батареї домашнього накопичувача"
legendBottomSubline = "поки не досягне {soc}."
legendMiddleName = "Пріоритет заряджання автомобіля"
legendMiddleSubline = "коли домашня батарея вище {soc}."
legendTitle = "Як використовувати сонячну енергію?"
legendTopAutostart = "запускається автоматично"
legendTopName = "заряджання з підтримкою батареї"
legendTopSubline = "без перебоїв"
legendTopAutostart = "Запустити автоматично"
legendTopName = "Заряджання автомобіля за допомогою акумулятора"
legendTopSubline = "коли домашня батарея вище {soc}."
modalTitle = "Домашня батарея"
usageTab = "Використання батареї"

[batterySettings.bufferStart]
above = "коли вище {soc}"
full = "коли при {soc}"
above = "коли вище {soc}."
full = "коли при {soc}."
low = "коли трохи повний"
medium = "коли наполовину повна"
never = "тільки з достатнім надлишком"

[config]

[config.battery]
titleAdd = "Додати лічильник батареї"
titleEdit = "Редагувати лічильник батареї"
titleAdd = "Додати батарею"
titleEdit = "Редагувати батарею"

[config.circuits]
title = "Керування навантаженням"

[config.control]
description = "Зазвичай стандартні значення підходять. Змінюйте їх, лише якщо знаєте, що робите."
descriptionInterval = "Цикл оновлення контуру керування в секундах. Визначає, як часто evcc зчитує дані лічильника, регулює потужність заряджання та оновлює інтерфейс користувача. Короткі інтервали (< 30 с) можуть спричинити коливання та небажану поведінку."
labelInterval = "Інтервал оновлення"
labelResidualPower = "Залишкова потужність"
title = "Контрольна поведінка"

[config.deviceValue]
broker = "Брокер"
bucket = "Bucket"
capacity = "Ємність"
chargeStatus = "Статус"
chargeStatusA = "не підключено"
chargeStatusB = "підключений"
chargeStatusC = "зарядка"
chargeStatusF = "помилка"
chargedEnergy = "Заряджений"
configured = "Налаштовано"
controllable = "Контрольована"
currency = "Валюта"
current = "Cтрум"
currentRange = "Струм"
enabled = "Ввімкнено"
energy = "Енергія"
no = "ні"
odometer = "Одометр"
phaseCurrents = "Cтрум L1..L3"
phasePowers = "Потужність L1..L3"
Expand All @@ -59,6 +78,7 @@ optional = "необов'язково"

[config.general]
cancel = "Скасувати"
docsLink = "Переглянути документацію."
experimental = "Експериментальний"
off = "вимкнено"
save = "зберегти"
Expand Down
Loading

0 comments on commit fe401f1

Please sign in to comment.