Hotspot Customize the hotspot login page
Digi TransPort WR Routers User Guide
137
Edit sample hotspot html pages
To edit the sample HTML pages, download the files and edit the files on your local machine. After they
have been edited, upload the edited files to the TransPort device.
The edited HTML page should call the same JavaScript functions that the sample HTML pages do.
Additional pages and assets can be uploaded to the hotspot folder, and additional subfolders can be
created as needed. Supported file extensions include: .html, .gif, .js, .jpg, .mp4, .ogv, .png, .swf, .json,
and .dat.
Web
1. Download the sample HTML file:
a. On the menu, click System > Administration > File System. The File System page
appears.
b. Expand the /hotspot directory.
Note The /hotspot directory is only available after hotspot has been enabled for
the first time.
c. Select the HTML file you want to edit and click (download).
2. On your local machine, edit the file as needed.
3. Upload the edited file:
a. On the menu, click System > Administration > File System. The File System page
appears.
b. Expand the /hotspot directory.
c. Click (upload).
d. Use the local file system to browse to the location of the edited HTMLfile. Select
the file and click Open to upload the file.
Command line
You can download and upload the sample HTML files using utilities such as Secure Copy (SCP), SSH File
Transfer Protocol (SFTP), or an SFTP application, such as FileZilla.
For example, to edit the sample files by using SCP:
1. Download the file to your local machine. For example:
scp username@device_ip_address:\hotspot\login.html login.html
2. On your local machine, edit the file as needed.
3. Upload the edited file from your local machine the the TransPort device. For example:
scp login.html username@device_ip_address:\hotspot\login.html
Upload custom hotspot HTML pages
Rather than editing the sample HTML pages, you can upload a custom login page with a different
filename.
The new page should include ChilliLibrary.js and call the same JavaScript functions that the sample
HTML pages do. Additional pages and assets can be uploaded to the hotspot folder, and additional