Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to Jaspers temp network from computer? #11

Closed
PJBentham opened this issue Apr 9, 2014 · 3 comments
Closed

Connecting to Jaspers temp network from computer? #11

PJBentham opened this issue Apr 9, 2014 · 3 comments

Comments

@PJBentham
Copy link

"After connecting to Jasper’s temporary network, browse to 192.168.1.1:8000/cgi-bin/index.cgi and follow the on-screen instructions. When complete, your Jasper will restart and connect to your selected wireless network automatically."

How do I connect to the temporary network, my computer will not load "192.168.1.1:8000/cgi-bin/index.cgi"? I have tried 2 wifi dongles, Edimax & TP-Link and has success with neither. I did the quick start but on having problems also followed the setting up wifi guide to ensure everything was correct...

@soothslayer
Copy link

Had the same problem and did a few things to troubleshoot and then gave up and put my wireless info in manually. I'll tell you about what I did:

Be sure that your computer is getting a dhcp IP address by pinging 192.168.1.1. If you can't ping then dhcp might not be working. Watch the rPi during startup and/or check /var/log/syslog for errors.

I also thought it was strange that /etc/dhcp/dhcpd.conf refers to 192.168.1.1 while etc/udhcpd.conf refers to 192.168.42.X so I changed them both to 192.168.42.X.

If all else fails you can also manually fill in wireless details into networks.yml, ~/jasper/boot/connect.txt, and /etc/network/interfaces.

~/jasper/boot/networks.yml should look like this:
SSID : your_wireless_network_name
KEY: your_wireless_network_password
[]

And ~/jasper/boot/connect.txt should look like this:
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "your_wireless_network_name"
wpa-psk "you_wireless_network_password"

Then copy ~/jasper/boot/connect.txt to /etc/network/interfaces using the following command:
sudo cp ~/jasper/boot/connect.txt /etc/network/interfaces

And reboot and Jasper will work!

@shbhrsaha
Copy link
Member

Thanks for that alternative suggestion. I'm not sure what could be the original problem, but this work-around should configure the wireless for now.

@PJBentham
Copy link
Author

I managed to get the 192.168.1.1 up and running and it spat out this, I tried a clean install too...:

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

/home/pi/jasper/boot/app/cgi-bin/index.cgi in ()
18 if not network:
19
=> 20 wifi = Wifi()
21
22 networks = [x.replace("\n","") for x in wifi.access_points if x.replace("\n","") != "Jasper"]
wifi undefined, Wifi =
/home/pi/jasper/boot/app/cgi-bin/wifi.py in init(self=<wifi.Wifi instance>)
9
10 subprocess.call("iwlist wlan0 scan > temp.txt", shell = True)
=> 11 output = open("temp.txt")
12 lines = output.readlines()
13
output undefined, builtin open =
<type 'exceptions.IOError'>: [Errno 2] No such file or directory: 'temp.txt'
args = (2, 'No such file or directory')
errno = 2
filename = 'temp.txt'
message = ''
strerror = 'No such file or directory'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants