Show Posts
Pages: 1 [2] 3 4 ... 116
16  Products / Arduino Yún / Re: Connecting Arduino Yun to Cell phone wifi on: July 21, 2014, 03:24:55 pm
Plan B:

Setup Yun as Access Point.





17  Products / Arduino Yún / Re: view all pin states from webpage on: July 21, 2014, 02:51:23 pm
http://www.open-electronics.org/interact-and-remotely-control-arduino-yun-with-ajax/
18  Products / Arduino Yún / Re: Deleted Network Config on: July 21, 2014, 02:39:08 pm
reset-to-factory-default

Code:
/usr/bin/reset-to-factory-anyway

run it either at console or Yún Serial Terminal

http://arduino.cc/en/Tutorial/YunSerialTerminal
19  Products / Arduino Yún / Re: YUN SD writing and ftp on: July 21, 2014, 02:32:54 pm
Code:
opkg update
opkg install python-openssl #adds ssl support to python
opkg install distribute #it contains the easy_install command line tool (this can take some time)
easy_install pip #installs pip  (this can take some time)
pip install ftplib

Code:
import ftplib
ftp = ftplib.FTP('server.address.com','USERNAME','PASSWORD')
file = open('/mnt/sda1/data.dat','rb')                  # file to send
session.storbinary('STOR data.dat', file)     # send the file
file.close()                                    # close file and FTP
ftp.quit()
20  Products / Arduino Yún / Re: Repetitive Yun system log: LABEL="Fedora-14-i686-Live-Desktop" TYPE="iso9660" on: July 21, 2014, 01:19:57 pm
quick  reset-to-factory-default

Code:
/usr/bin/reset-to-factory-anyway
21  Products / Arduino Yún / Re: Repetitive Yun system log: LABEL="Fedora-14-i686-Live-Desktop" TYPE="iso9660" on: July 21, 2014, 12:37:18 pm
Code:
Jul 20 23:59:33 YUN user.info sysinit: /dev/sda: UUID="c06c818c-591f-47df-a421-5081d568b8c6" TYPE="ext4"

TYPE="ext4" is a little better than before.

Reinstall the OpenWrt-Yun image on your Yún

http://arduino.cc/en/Tutorial/YunSysupgrade

22  Products / Arduino Yún / Re: Repetitive Yun system log: LABEL="Fedora-14-i686-Live-Desktop" TYPE="iso9660" on: July 21, 2014, 12:19:39 am
From:

http://forum.arduino.cc/index.php?topic=222069.msg1614584#msg1614584

http://www.howtogeek.com/106873/how-to-use-fdisk-to-manage-partitions-on-linux/

Code:
fdisk /dev/sda

Deleting a Partition /Creating a Partition/System ID/Writing Changes/Formatting a Partition

Or:

Format it at windows machine.
23  Products / Arduino Yún / Re: HTTP Routing on Arduino Yun on: July 20, 2014, 08:41:39 pm
Just digging into the Yun. I'm looking at the REST API and wondering where the routing of HTTP requests is handled.

Out of the box, the Yun handles requests at http://{IP}/arduino, /mailbox and /data

I'm wanting to add handling at, for example, /somestring

I cat'd around in /usr/lib/python2.7/bridge with no luck. Anybody know where this is managed?

I understand this won't be done on the arduino side. I am comfortable in python.

To make python work here, you need setup python as CGI.

Plan B:

Code:
mkdir -p /www/cgi-bin/python
nano /www/cgi-bin/python/python.py

Code:
#!/usr/bin/python
import datetime
import cgi
form = cgi.FieldStorage()
id = form.getvalue("id", "(no id)")
print "Content-type:text/html\r\n\r\n"
print '<html>'
print '<head>'
print '<title>Hello Word - First CGI Program</title>'
print '</head>'
print '<body>'
print '<h2>Hello Word! This is my first CGI program</h2>'
print datetime.datetime.now()
print '<br/>'
print id
print '</body>'
print '</html>'

Code:
chmod 755 /www/cgi-bin/python/python.py

http://arduino_ip/cgi-bin/python/python.py?id=100
24  Products / Arduino Yún / Re: Connecting Yun to University Wifi on: July 20, 2014, 08:37:43 pm
Pre Shared Key might mean password,  use webpanel/config to setup wifi.
25  Products / Arduino Yún / Re: Repetitive Yun system log: LABEL="Fedora-14-i686-Live-Desktop" TYPE="iso9660" on: July 20, 2014, 11:51:54 am
Change type:

Code:
opkg update
opkg install mkdosfs
opkg install e2fsprogs


Code:
mkdosfs -F 32 /dev/sda1
mke2fs -t ext2 /dev/sda1
mke2fs -t ext3 /dev/sda1
mke2fs -t ext4 /dev/sda1

26  Products / Arduino Yún / Re: Connecting Yun to University Wifi on: July 20, 2014, 11:41:31 am
Plan C:

Webbots, use php and curl wrote webbots (command line browser) submit form with password and username.

http://www.amazon.com/Webbots-Spiders-Screen-Scrapers-Developing/dp/1593273975
27  Products / Arduino Yún / Re: Connecting Yun to University Wifi on: July 20, 2014, 11:22:10 am
Do I do that before I upload the Yun code for the program or do I add the command line code to my Yun program code?

It is independent to your Yun code, It run once to get Yun connect with wifi.
28  Products / Arduino Yún / Re: Connecting Yun to University Wifi on: July 20, 2014, 11:10:03 am
That is captive portal (server).

You need captive portal client ( command line one  for Yun, since Yun has no X-windows and standard browser )

Give wisprclient.py  a try.

Or

Ask school administrator, tell him(her) you setup Linux headless( No X-window) box, and need command line wifi captive portal client.
Once you have  captive portal client then download source code of it cross compile it for Yun.
29  Products / Arduino Yún / Re: Connecting Yun to University Wifi on: July 20, 2014, 11:00:52 am
How do you connect your laptop at university wifi?

Dose  browser pop out ask  username and password?
30  Products / Arduino Yún / Re: Connecting Yun to University Wifi on: July 20, 2014, 09:30:12 am
If university wifi requires a username and password at browser to login then  it is based on captive portal ( WISPr: Wireless Internet Service Provider roaming)

Setting up OpenWRT as a captive portal client:

https://code.google.com/p/wisprclient/source/browse/wisprclient.py

Code:
import BeautifulSoup
import optparse
import re
import urllib

install BeautifulSoup:

Code:
pip install BeautifulSoup
Pages: 1 [2] 3 4 ... 116