Hauptmenü öffnen
Start
Zufall
Anmelden
Einstellungen
Über Weimarnetz Wiki
Haftungsausschluss
Weimarnetz Wiki
Suchen
Änderungen
← Zum vorherigen Versionsunterschied
Webcam-Howto-2023
(Quelltext anzeigen)
Version vom 6. Februar 2024, 22:06 Uhr
78 Bytes hinzugefügt
,
6 Februar
K
→Script zur Installation
Zeile 76:
Zeile 76:
<blockquote><syntaxhighlight lang="shell">
<blockquote><syntaxhighlight lang="shell">
#!/bin/sh
#!/bin/sh
+
+
# rev 0.3 by R.Hoffmann @20240206
opkg update
opkg update
Zeile 83:
Zeile 85:
opkg install mjpg-streamer-output-http
opkg install mjpg-streamer-output-http
−
mkdir -p
/www/webcam/
+
mkdir -p /www/webcam/
IP=$(/sbin/uci get network.lan.ipaddr)
IP=$(/sbin/uci get network.lan.ipaddr)
+
HOSTNAME=$(/sbin/uci get ffwizard.settings.hostname)
cat <<EOF >/www/webcam/index.html
cat <<EOF >/www/webcam/index.html
<html>
<html>
<head>
<head>
−
<title>
MJPG-Streamer - Stream Example
</title>
+
<title>
Webcam auf ${HOSTNAME}
</title>
</head>
</head>
<body>
<body>
Zeile 120:
Zeile 123:
/etc/init.d/mjpg-streamer start
/etc/init.d/mjpg-streamer start
−
HOSTNAME=$(/sbin/uci get ffwizard.settings.hostname)
+
echo -e "\n\nto register your new service call:\n\t
/sbin/uci add_list ffwizard.olsr.service='http://${IP}:80/webcam/|tcp|Webcam auf ${HOSTNAME}'
"
−
−
/sbin/uci add_list ffwizard.olsr.service='http://${IP}:80/webcam/|tcp|Webcam auf ${HOSTNAME}'
</syntaxhighlight>
</syntaxhighlight>
</blockquote>
</blockquote>
[[Kategorie:Howto]]
[[Kategorie:Howto]]
Herklc01
98
Bearbeitungen