forked from freifunk-franken/firmware
Christian Dresel
a2400a6e67
With this package the mqtt settings can be configured over the webui. Each user can use its own mqtt broker or a broker from another user. This means that the user has a free choice of where to send or get data. Signed-off-by: Christian Dresel <freifunk@dresel.systems> Acked-by: Fabian Bläse <fabian@blaese.de>
27 lines
571 B
HTML
Executable File
27 lines
571 B
HTML
Executable File
#!/usr/bin/haserl
|
|
|
|
<%in /www/include/header %>
|
|
<%in /www/include/helpers %>
|
|
<% show_msg %>
|
|
|
|
<%
|
|
# write
|
|
if [ "$REQUEST_METHOD" = "POST" ] ; then
|
|
uci -q set "fff.mqtt.server=${POST_server}"
|
|
uci commit fff
|
|
fi
|
|
%>
|
|
|
|
<form method="post">
|
|
|
|
<fieldset style="min-height: 7em;" class="smallinput">
|
|
<legend>MQTT</legend>
|
|
<table>
|
|
<tr><th>Server:</th><td><input type="text" name="server" value="<%= $(uci -q get fff.mqtt.server) %>" /></td></tr>
|
|
</table>
|
|
</fieldset>
|
|
<input type="submit" style="margin-top: 5px; margin-left: 3px;" />
|
|
</form>
|
|
|
|
<%in /www/include/footer %>
|