The goal of this project is to connect a rpi with many led matrices and diplay animations. It is controllable via wifi connection using a phone or computer. The project has a hotspot feature, if the device is out of range of known networks, it will automaticly create a hotspot. The wifi and hotspot settings can be configured via the api. Enjoy :)
The controller offers only one endpoint to make different actions. Simply send json with the command and parameters.
- Display known networks
{
"command": "display_networks"
}
- Add or update networks
{
"command": "add_wifi",
"ssid": "<name>",
"psk": "<password>"
}
- Display hotspot configuration
{
"command": "display_hotspot_ssid"
}
- Update hotspot configuration
{
"command": "hotspot_ssid",
"ssid": "<name>",
"psk": "<password>"
}
- Force device to switch to hotspot or wifi
{
"command": "force_hs_wifi"
}
- Display the connected network
{
"command": "display_current_network"
}
- Display the hostname
{
"command": "display_hostname"
}
- Update the hostname
{
"command": "update_hostname",
"hostname": "<hostname>"
}
Refer to their website for full documentation and installation.
This option create a hotspot where connected devices have no internet connection even if an ethernet cable is connected. This has been designed so you can access only the Pi from a Laptop, tablet or phone. The default hotspot SSID will be RPiHotspot with a password of 1234567890 Once a connection to the hotspot has been made you can access the Raspberry Pi via ssh & VNC with
- ssh pi@10.0.0.5
- vnc: 10.0.0.5::5900
- for webservers use http://10.0.0.5/
If you are using either of the autohotspot setups in hotspot modes and wish to connect to a local WiFi network. You will be unable to scan for any networks as the desktop wifi option will be disabled, shown as red crosses. You can manually add the details to /etc/wpa_supplicant/wpa_supplicant.conf if you know them. This option will allow you to scan for local WiFi networks and update the Pi. If you then reboot or use the Force... option ,see below, then it will connect to the new WiFi network. This option only works for WiFi networks where only a password is required.
This option is only for the Autohotspot setups. If you are at home and connected to your home network but would like to use the hotspot. This option will force the pi to hotspot mode and will ignore your home network until the next reboot. If you use this option again while in hotspot mode it will attempt to connect to a known network. This will go back to the hotspot if no valid WiFi network is found or there is a connection issue.
By default the hotspot ssid is RPiHotSpot with a password of 1234567890. Use this option to change either or both SSID and Password. You will be prompted to change both but if you make no entry and press enter the existing setting will be kept. The password must be at least 8 characters.