diff --git a/webapp/src/locales/de.json b/webapp/src/locales/de.json index b23e874e..5a761ed4 100644 --- a/webapp/src/locales/de.json +++ b/webapp/src/locales/de.json @@ -329,6 +329,7 @@ "CmtPaLevelHint": "Verwendet für HMS/HMT-Wechselrichter. Stellen Sie sicher, dass Ihre Stromversorgung stabil genug ist, bevor Sie die Sendeleistung erhöhen.", "CmtFrequency": "CMT2300A Frequenz:", "CmtFrequencyHint": "Stelle sicher, dass du nur Frequenzen verwendet werden welche im entsprechenden Land erlaubt sind!", + "CmtFrequencyWarning": "Die ausgewählte Frequenz befindet außerhalb des in der EU zugelassenen Bereiches. Vergewissere dich, dass mit dieser Auswahl keine lokalen Regularien verletzt werden.", "khz": "kHz", "Save": "Speichern", "Min": "Minimum ({db} dBm)", diff --git a/webapp/src/locales/en.json b/webapp/src/locales/en.json index 08212696..c4f927ba 100644 --- a/webapp/src/locales/en.json +++ b/webapp/src/locales/en.json @@ -329,6 +329,7 @@ "CmtPaLevelHint": "Used for HMS/HMT-Inverters. Make sure your power supply is stable enough before increasing the transmit power.", "CmtFrequency": "CMT2300A Frequency:", "CmtFrequencyHint": "Make sure to only use frequencies that are allowed in the respective country!", + "CmtFrequencyWarning": "The selected frequency is outside the range allowed in the EU. Make sure that this selection does not violate any local regulations.", "khz": "kHz", "Save": "Save", "Min": "Minimum ({db} dBm)", diff --git a/webapp/src/locales/fr.json b/webapp/src/locales/fr.json index c03fbd2e..ca6b56a1 100644 --- a/webapp/src/locales/fr.json +++ b/webapp/src/locales/fr.json @@ -329,6 +329,7 @@ "CmtPaLevelHint": "Used for HMS/HMT-Inverters. Assurez-vous que votre alimentation est suffisamment stable avant d'augmenter la puissance d'émission.", "CmtFrequency": "CMT2300A Frequency:", "CmtFrequencyHint": "Stelle sicher, dass du nur Frequenzen verwendet werden welche im entsprechenden Land erlaubt sind!", + "CmtFrequencyWarning": "The selected frequency is outside the range allowed in the EU. Make sure that this selection does not violate any local regulations.", "khz": "kHz", "Save": "Sauvegarder", "Min": "Minimum ({db} dBm)", diff --git a/webapp/src/views/DtuAdminView.vue b/webapp/src/views/DtuAdminView.vue index 0e098d54..9d4c3c51 100644 --- a/webapp/src/views/DtuAdminView.vue +++ b/webapp/src/views/DtuAdminView.vue @@ -44,12 +44,24 @@ - + +
+
+ + min="860250" max="923500" step="250" + id="cmtFrequency" aria-describedby="basic-addon2" + style="height: unset;" /> + {{ cmtFrequencyText }} +
+ +
+ + @@ -98,6 +110,14 @@ export default defineComponent({ created() { this.getDtuConfig(); }, + computed: { + cmtFrequencyText() { + return this.$n(this.dtuConfigList.cmt_frequency / 1000, "decimalTwoDigits") + " MHz"; + }, + cmtIsOutOfEu() { + return this.dtuConfigList.cmt_frequency < 863000 || this.dtuConfigList.cmt_frequency > 870000; + } + }, methods: { getDtuConfig() { this.dataLoading = true;