Compare commits
8 Commits
s-allius/i
...
s-allius/i
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a8c120325 | ||
|
|
a8a73af7a4 | ||
|
|
6fab284506 | ||
|
|
276bf483d6 | ||
|
|
ad78d97f8f | ||
|
|
20b6beba49 | ||
|
|
af1340af03 | ||
|
|
f6d08d38e1 |
@@ -30,9 +30,3 @@ async def logging():
|
|||||||
return await render_template(
|
return await render_template(
|
||||||
'page_logging.html.j2',
|
'page_logging.html.j2',
|
||||||
fetch_url=url_for('.file_fetch'))
|
fetch_url=url_for('.file_fetch'))
|
||||||
|
|
||||||
|
|
||||||
@web.route('/network_tests')
|
|
||||||
async def network_tests():
|
|
||||||
return await render_template(
|
|
||||||
'page_network_tests.html.j2')
|
|
||||||
|
|||||||
@@ -59,7 +59,6 @@
|
|||||||
<a href="{{ url_for('.mqtt')}}" class="w3-bar-item w3-button w3-padding {% block menu2_class %}{% endblock %}"><i class="fa fa-database fa-fw"></i> MQTT</a>
|
<a href="{{ url_for('.mqtt')}}" class="w3-bar-item w3-button w3-padding {% block menu2_class %}{% endblock %}"><i class="fa fa-database fa-fw"></i> MQTT</a>
|
||||||
<a href="{{ url_for('.notes')}}" class="w3-bar-item w3-button w3-padding {% block menu3_class %}{% endblock %}"><i class="fa fa-info fa-fw"></i> {{_('Important Messages')}}</a>
|
<a href="{{ url_for('.notes')}}" class="w3-bar-item w3-button w3-padding {% block menu3_class %}{% endblock %}"><i class="fa fa-info fa-fw"></i> {{_('Important Messages')}}</a>
|
||||||
<a href="{{ url_for('.logging')}}" class="w3-bar-item w3-button w3-padding {% block menu4_class %}{% endblock %}"><i class="fa fa-file-export fa-fw"></i> {{_('Log Files')}}</a>
|
<a href="{{ url_for('.logging')}}" class="w3-bar-item w3-button w3-padding {% block menu4_class %}{% endblock %}"><i class="fa fa-file-export fa-fw"></i> {{_('Log Files')}}</a>
|
||||||
<a href="{{ url_for('.network_tests')}}" class="w3-bar-item w3-button w3-padding {% block menu5_class %}{% endblock %}"><i class="fa fa-file-export fa-fw"></i> {{_('Network Tests')}}</a>
|
|
||||||
{% if hassio is defined %}
|
{% if hassio is defined %}
|
||||||
<br>
|
<br>
|
||||||
<a href="/hassio/addon/{{addonname}}/config" target="_top" class="w3-bar-item w3-button w3-padding"><i class="fa fa-gear fa-fw"></i> {{_('Add-on Config')}}</a>
|
<a href="/hassio/addon/{{addonname}}/config" target="_top" class="w3-bar-item w3-button w3-padding"><i class="fa fa-gear fa-fw"></i> {{_('Add-on Config')}}</a>
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
{% extends 'base.html.j2' %}
|
|
||||||
|
|
||||||
{% block title %}{{_("TSUN Proxy - Network Tests")}}{% endblock title %}
|
|
||||||
{% block menu5_class %}w3-blue{% endblock %}
|
|
||||||
{% block headline %}<i class="fa fa-file-export fa-fw"></i> {{_('Network Tests')}}{% endblock headline %}
|
|
||||||
{% block content %}
|
|
||||||
|
|
||||||
<script>
|
|
||||||
url = "http://127.0.0.1:10000"
|
|
||||||
const req = new XMLHttpRequest();
|
|
||||||
req.open("POST", url, true);
|
|
||||||
//req.setRequestHeader("RESOLVE", "bla.com")
|
|
||||||
req.onload = (event) => {
|
|
||||||
// Uploaded
|
|
||||||
};
|
|
||||||
|
|
||||||
const blob = new Blob(["abc123"], { type: "text/plain" });
|
|
||||||
|
|
||||||
req.send(blob);
|
|
||||||
|
|
||||||
ws = new WebSocket("ws://127.0.0.1:10000");
|
|
||||||
// ws.open()
|
|
||||||
ws.onopen = () => {
|
|
||||||
console.log("Connection opened")
|
|
||||||
ws.send("Hi server, please send me the score of yesterday's game")
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
{% endblock content%}
|
|
||||||
|
|
||||||
{% block footer %}{% endblock footer %}
|
|
||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: tsun-gen3-proxy 0.14.0\n"
|
"Project-Id-Version: tsun-gen3-proxy 0.14.0\n"
|
||||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||||
"POT-Creation-Date: 2025-06-21 10:54+0200\n"
|
"POT-Creation-Date: 2025-05-13 22:34+0200\n"
|
||||||
"PO-Revision-Date: 2025-04-18 16:24+0200\n"
|
"PO-Revision-Date: 2025-04-18 16:24+0200\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language: de\n"
|
"Language: de\n"
|
||||||
@@ -75,16 +75,11 @@ msgstr "Wichtige Hinweise"
|
|||||||
msgid "Log Files"
|
msgid "Log Files"
|
||||||
msgstr "Log Dateien"
|
msgstr "Log Dateien"
|
||||||
|
|
||||||
#: src/web/templates/base.html.j2:62
|
#: src/web/templates/base.html.j2:64
|
||||||
#: src/web/templates/page_network_tests.html.j2:5
|
|
||||||
msgid "Network Tests"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/web/templates/base.html.j2:65
|
|
||||||
msgid "Add-on Config"
|
msgid "Add-on Config"
|
||||||
msgstr "Add-on Konfiguration"
|
msgstr "Add-on Konfiguration"
|
||||||
|
|
||||||
#: src/web/templates/base.html.j2:66
|
#: src/web/templates/base.html.j2:65
|
||||||
msgid "Add-on Log"
|
msgid "Add-on Log"
|
||||||
msgstr "Add-on Protokoll"
|
msgstr "Add-on Protokoll"
|
||||||
|
|
||||||
@@ -177,11 +172,6 @@ msgstr "Empfangene Topics"
|
|||||||
msgid "Number of topics received"
|
msgid "Number of topics received"
|
||||||
msgstr "Anzahl der empfangenen Topics"
|
msgstr "Anzahl der empfangenen Topics"
|
||||||
|
|
||||||
#: src/web/templates/page_network_tests.html.j2:3
|
|
||||||
#, fuzzy
|
|
||||||
msgid "TSUN Proxy - Network Tests"
|
|
||||||
msgstr "TSUN Proxy - Verbindungen"
|
|
||||||
|
|
||||||
#: src/web/templates/page_notes.html.j2:3
|
#: src/web/templates/page_notes.html.j2:3
|
||||||
msgid "TSUN Proxy - Important Messages"
|
msgid "TSUN Proxy - Important Messages"
|
||||||
msgstr "TSUN Proxy - Wichtige Hinweise"
|
msgstr "TSUN Proxy - Wichtige Hinweise"
|
||||||
|
|||||||
Reference in New Issue
Block a user