Add automatic hotspot if a known SSID is not available
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
network-manager \
|
||||
python3 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
COPY wifi_manager.py .
|
||||
|
||||
ENV WIFI_SSID=""
|
||||
ENV HOTSPOT_SSID="raspbot-hotspot"
|
||||
ENV HOTSPOT_PASSWORD="raspbot1234"
|
||||
ENV HOTSPOT_BAND="bg"
|
||||
ENV WIFI_IFACE=""
|
||||
ENV WIFI_TIMEOUT="30"
|
||||
ENV POLL_INTERVAL="15"
|
||||
|
||||
CMD ["python3", "wifi_manager.py"]
|
||||
Reference in New Issue
Block a user