final
This commit is contained in:
@@ -4,11 +4,21 @@
|
|||||||
- node.lua (main script)
|
- node.lua (main script)
|
||||||
- config.json (configured for your player)
|
- config.json (configured for your player)
|
||||||
- roboto.ttf (font file)
|
- 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:
|
## Deployment:
|
||||||
1. Upload all 3 files to Info-Beamer
|
1. Configure WiFi (see above)
|
||||||
2. Assign package to device ID: 12131415
|
2. Copy package files to SD card root: node.lua, config.json, roboto.ttf
|
||||||
3. Device will auto-connect to server at 192.168.1.22
|
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:
|
## Features:
|
||||||
- Touch screen swipe navigation (left/right)
|
- 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
|
||||||
|
}
|
||||||
16
device-info-template.txt
Normal file
16
device-info-template.txt
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
=== Info-Beamer Device Information Needed ===
|
||||||
|
|
||||||
|
1. Device ID: _________________ (from player screen)
|
||||||
|
2. Device Name: _______________ (what you named it)
|
||||||
|
3. Resolution: ________________ (from dashboard)
|
||||||
|
4. Status: ___________________ (should be 'online')
|
||||||
|
|
||||||
|
=== Next Steps ===
|
||||||
|
|
||||||
|
1. Record your actual Device ID above
|
||||||
|
2. Update our deployment package if different from '12131415'
|
||||||
|
3. Test our Flask server connection
|
||||||
|
4. Deploy our touch-enabled package
|
||||||
|
|
||||||
|
|
||||||
36
info-beamer-wifi-setup.txt
Normal file
36
info-beamer-wifi-setup.txt
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# Info-Beamer OS WiFi Configuration
|
||||||
|
|
||||||
|
## Quick Setup (Recommended):
|
||||||
|
|
||||||
|
1. After flashing SD card with Info-Beamer OS:
|
||||||
|
- Don't eject SD card yet
|
||||||
|
- Open the SD card in file explorer
|
||||||
|
- Create new file: wpa_supplicant.conf
|
||||||
|
- Add this content:
|
||||||
|
|
||||||
|
country=US
|
||||||
|
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
|
||||||
|
update_config=1
|
||||||
|
|
||||||
|
network={
|
||||||
|
ssid="YOUR_WIFI_NAME"
|
||||||
|
psk="YOUR_WIFI_PASSWORD"
|
||||||
|
key_mgmt=WPA-PSK
|
||||||
|
}
|
||||||
|
|
||||||
|
2. Replace YOUR_WIFI_NAME and YOUR_WIFI_PASSWORD
|
||||||
|
3. Save file and eject SD card
|
||||||
|
4. Insert in Pi and boot
|
||||||
|
|
||||||
|
## Alternative: Pi Imager Method
|
||||||
|
- Use gear icon in Pi Imager
|
||||||
|
- Enable "Configure wireless LAN"
|
||||||
|
- Enter WiFi credentials before flashing
|
||||||
|
|
||||||
|
## Country Codes:
|
||||||
|
US, GB, DE, FR, IT, ES, CA, AU, etc.
|
||||||
|
|
||||||
|
## Important:
|
||||||
|
- Country code is REQUIRED
|
||||||
|
- File goes in /boot partition
|
||||||
|
- Use quotes around SSID/password
|
||||||
33
infobeamer-setup-checklist.txt
Normal file
33
infobeamer-setup-checklist.txt
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Info-Beamer Player Setup Checklist
|
||||||
|
|
||||||
|
## 1. Connect Device to Account:
|
||||||
|
- Go to: https://info-beamer.com/
|
||||||
|
- Create account or login
|
||||||
|
- Click "Add Device"
|
||||||
|
- Enter the ID shown on your player screen
|
||||||
|
- Device should appear in your dashboard
|
||||||
|
|
||||||
|
## 2. Verify Device Status:
|
||||||
|
- Device shows "online" status in dashboard
|
||||||
|
- Last seen timestamp is recent
|
||||||
|
- Device info shows correct hardware details
|
||||||
|
|
||||||
|
## 3. Test Basic Functionality:
|
||||||
|
- Upload a simple image to test
|
||||||
|
- Assign to your device
|
||||||
|
- Image should display on screen within 30 seconds
|
||||||
|
|
||||||
|
## 4. Configure for Our Flask Server:
|
||||||
|
- Device ID needed: Record the ID from screen
|
||||||
|
- Update our server.py with correct device ID
|
||||||
|
- Test API endpoints work
|
||||||
|
|
||||||
|
## 5. Deploy Our Package:
|
||||||
|
- Upload our node.lua package to Info-Beamer
|
||||||
|
- Assign package to device
|
||||||
|
- Device should connect to Flask server at 192.168.1.22
|
||||||
|
|
||||||
|
## Troubleshooting:
|
||||||
|
- If device offline: Check WiFi, restart device
|
||||||
|
- If package not loading: Check node.lua syntax
|
||||||
|
- If server connection fails: Check Flask server running on port 80
|
||||||
BIN
tv-anunturi-deployment-complete.tar.gz
Normal file
BIN
tv-anunturi-deployment-complete.tar.gz
Normal file
Binary file not shown.
9
wpa_supplicant_template.conf
Normal file
9
wpa_supplicant_template.conf
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
country=US
|
||||||
|
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
|
||||||
|
update_config=1
|
||||||
|
|
||||||
|
network={
|
||||||
|
ssid="YOUR_WIFI_NETWORK_NAME"
|
||||||
|
psk="YOUR_WIFI_PASSWORD"
|
||||||
|
key_mgmt=WPA-PSK
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user