PedalPi / WebService

WebService (REST and WebSocket) to access and controller your pedals set configurations
http://pedalpi.github.io/WebService/
Apache License 2.0
0 stars 0 forks source link

Configure device as Hotspot (client + wireless AP) #7

Open SrMouraSilva opened 7 years ago

SrMouraSilva commented 7 years ago

Strategy: Wait ZynthianOS See https://github.com/PedalPi/Application/issues/61#issuecomment-366434277

User cards

WiFi

Ethernet

Change password connections

Material

Pi 3 as wiireless client and wireless AP?: https://www.raspberrypi.org/forums/viewtopic.php?p=938306&sid=b950f5108774f76e0f3876c87c195961#p938306



[CREATE ISSUE] Custom localhost name: https://www.howtogeek.com/167195/how-to-change-your-raspberry-pi-or-other-linux-devices-hostname/

1. edit local host via sudo nano /etc/hosts
2. edit hostname via sudo nano /etc/hostname
3. update the hostname initialization via sudo /etc/init.d/hostname.sh
4. sudo /etc/init.d/hostname.sh start
SrMouraSilva commented 7 years ago

Increase entropy

sudo apt-get install rng-tools

Configure network

/usr/local/lib/python2.7/dist-packages/hotspotd/run.conf
interface=wlan0
#driver=rtl871xdrv
ssid=Pedal Pi
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=pedal-pi
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

ieee80211n=1              # 802.11n support
wmm_enabled=1         # QoS support
ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40]

Start

sudo ifdown wlan0
sudo hotspotd stop
sudo hotspotd start
#sudo ifup wlan0
SrMouraSilva commented 7 years ago

Script that peoples working:

rpi-roam-webapp

This package wirelessly connects a Raspberry Pi to available WiFi networks and bridges the connection to an access point.

rpi-roam-webapp

You will need a Raspberry Pi 3 and an extra WiFi adapter.