final
This commit is contained in:
@@ -4,11 +4,21 @@
|
||||
- node.lua (main script)
|
||||
- config.json (configured for your player)
|
||||
- roboto.ttf (font file)
|
||||
- wpa_supplicant.conf (WiFi configuration template)
|
||||
- configure-wifi.sh (WiFi setup script)
|
||||
- network-config.txt (network configuration guide)
|
||||
|
||||
## WiFi Setup:
|
||||
1. Run: ./configure-wifi.sh
|
||||
2. Enter your WiFi network name and password
|
||||
3. Copy generated wpa_supplicant.conf to SD card /boot/ folder
|
||||
|
||||
## Deployment:
|
||||
1. Upload all 3 files to Info-Beamer
|
||||
2. Assign package to device ID: 12131415
|
||||
3. Device will auto-connect to server at 192.168.1.22
|
||||
1. Configure WiFi (see above)
|
||||
2. Copy package files to SD card root: node.lua, config.json, roboto.ttf
|
||||
3. Copy wpa_supplicant.conf to SD card /boot/ folder
|
||||
4. Insert SD card and power on device
|
||||
5. Device will connect to WiFi and server at 192.168.1.22
|
||||
|
||||
## Features:
|
||||
- Touch screen swipe navigation (left/right)
|
||||
|
||||
44
deployment-package/configure-wifi.sh
Executable file
44
deployment-package/configure-wifi.sh
Executable file
@@ -0,0 +1,44 @@
|
||||
#!/bin/bash
|
||||
# WiFi Configuration Script for Info-Beamer Package
|
||||
|
||||
echo "=== Info-Beamer WiFi Configuration ==="
|
||||
echo ""
|
||||
|
||||
# Get WiFi network name
|
||||
read -p "Enter WiFi Network Name (SSID): " WIFI_SSID
|
||||
|
||||
# Get WiFi password
|
||||
read -s -p "Enter WiFi Password: " WIFI_PASSWORD
|
||||
echo ""
|
||||
|
||||
# Get country code
|
||||
echo ""
|
||||
echo "Common country codes: US, GB, DE, FR, CA, AU, JP"
|
||||
read -p "Enter country code [US]: " COUNTRY_CODE
|
||||
COUNTRY_CODE=${COUNTRY_CODE:-US}
|
||||
|
||||
# Generate wpa_supplicant.conf
|
||||
cat > wpa_supplicant.conf << WIFIEOF
|
||||
# WiFi Configuration for Info-Beamer Device
|
||||
country=${COUNTRY_CODE}
|
||||
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
|
||||
update_config=1
|
||||
|
||||
# Primary WiFi Network
|
||||
network={
|
||||
ssid="${WIFI_SSID}"
|
||||
psk="${WIFI_PASSWORD}"
|
||||
priority=1
|
||||
scan_ssid=1
|
||||
}
|
||||
WIFIEOF
|
||||
|
||||
echo ""
|
||||
echo "✅ WiFi configuration saved to wpa_supplicant.conf"
|
||||
echo ""
|
||||
echo "📋 Deployment Instructions:"
|
||||
echo "1. Copy wpa_supplicant.conf to SD card at: /boot/wpa_supplicant.conf"
|
||||
echo "2. Copy other package files (node.lua, config.json, roboto.ttf) to SD card root"
|
||||
echo "3. Insert SD card and power on device"
|
||||
echo "4. Device will connect to WiFi: ${WIFI_SSID}"
|
||||
echo ""
|
||||
29
deployment-package/network-config.txt
Normal file
29
deployment-package/network-config.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
# Network Configuration Guide for Info-Beamer Device
|
||||
|
||||
## WiFi Configuration
|
||||
1. Edit wpa_supplicant.conf with your WiFi credentials
|
||||
2. Copy to SD card at: /boot/wpa_supplicant.conf
|
||||
3. Device will auto-connect on boot
|
||||
|
||||
## Static IP Configuration (Optional)
|
||||
If you want a fixed IP instead of DHCP, create this file on SD card:
|
||||
|
||||
File: /boot/dhcpcd.conf
|
||||
Content:
|
||||
interface wlan0
|
||||
static ip_address=192.168.1.100/24
|
||||
static routers=192.168.1.1
|
||||
static domain_name_servers=192.168.1.1 8.8.8.8
|
||||
|
||||
## Ethernet Configuration
|
||||
For wired connection, device will use DHCP by default.
|
||||
No configuration needed if using ethernet cable.
|
||||
|
||||
## WiFi Country Codes
|
||||
US - United States
|
||||
GB - United Kingdom
|
||||
DE - Germany
|
||||
FR - France
|
||||
CA - Canada
|
||||
AU - Australia
|
||||
JP - Japan
|
||||
12
deployment-package/wpa_supplicant.conf
Normal file
12
deployment-package/wpa_supplicant.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
# WiFi Configuration for Info-Beamer Device
|
||||
country=US
|
||||
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
|
||||
update_config=1
|
||||
|
||||
# Primary WiFi Network
|
||||
network={
|
||||
ssid="HarBAck2.4"
|
||||
psk="EuropaUnita2020"
|
||||
priority=1
|
||||
scan_ssid=1
|
||||
}
|
||||
Reference in New Issue
Block a user