User Tools

Site Tools


yun_reset

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
yun_reset [2015/02/12 02:55]
wbeckett [packages]
yun_reset [2021/06/04 02:16] (current)
Line 1: Line 1:
 ====== YUN Topics ====== ====== YUN Topics ======
 +
 +<​code>​
 +Once you’ve connected to your Arduino’s WiFi, open a browser and visit arduino.local.
 +If that doesn’t work, visit 192.168.240.1.
 +When asked for a password, enter “arduino”
 +</​code>​
  
  
Line 123: Line 129:
  
 <​code>​ <​code>​
 +
 +opkg intsall sqlite3-cli
 +
 +
 Install php5-mod-sqlite3 - 5.4.17-1, And of cource the other PHP modules you need Install php5-mod-sqlite3 - 5.4.17-1, And of cource the other PHP modules you need
  
Line 150: Line 160:
  
 Ensure that you uncomment the extension interpreter line for PHP in the main section of the uHTTPd config file: list interpreter "​.php=/​usr/​bin/​php-cgi" ​ Ensure that you uncomment the extension interpreter line for PHP in the main section of the uHTTPd config file: list interpreter "​.php=/​usr/​bin/​php-cgi" ​
 +</​code>​
 +
 +<​code>​
 +Creating keys on the Yun:
 +
 +dropbearkey -t rsa -f id_rsa
 +
 +Viewing the keys: 
 +
 +dropbearkey -f ./id_rsa -y
 +
 +Connecting using the key:
 +
 + ssh -i ./id_rsa <​address>​
 +
 +Need to copy the ~/​.ssh/​known_hosts to /.ssh for automated startup scripts to work with SSH and SCP
 +</​code>​
 +
 +[[http://​www.lucadentella.it/​en/​2014/​02/​10/​yun-sketch-uploader/​ | Sketch Uploader]]
 +
 +[[http://​www.itopen.it/​arduino-1-0-development-with-a-makefile/​ | Building with Makefile]]
 +
 +[[https://​gist.github.com/​probonopd/​9594775| Run avrdude]]
 +
 +<​code>​
 +The sketch will be transferred to the AR9331,
 +and the Linux distribution will program the ATmega32U4 ​
 +through the SPI bus, emulating an AVR ISP programmer.
 +</​code>​
 +
 +<​code>​
 +The "/​arduino"​ directory doesn'​t have anything pre-configured. Anything added to the URL after the end point is passed from the webserver to the sketch on the 32U4. You can define your APIs inside the sketch. See the Bridge example to see how this is done to access the pins on the board.
 +
 +"/​data"​ is used to access to the internal key/value storage. The available calls are:
 +
 +    /​put/​KEY/​VALUE : stores a value inside the storage
 +    /get/KEY : obtains the value of the requested key in JSON
 +    /get : obtains the entire storage list in JSON.
 +    /delete : deletes the internal storage ​
 +
 +
 +"​mailbox"​ is used to add messages into a queue called Mailbox. The message queue is stored inside the Linux system and can be read by the Arduino microcontroller. The available REST call is:
 +
 +    "/​mailbox/​message" ​
 +</​code>​
 +
 +<​code>​
 +Time working in PHP
 +ssue commands
 +
 +opkg update
 +opkg install zoneinfo-core
 +opkg install zoneinfo-europe
 +opkg install zoneinfo-northamerica
 +
 +Type opkg list | grep zoneinfo and look for your timezone ​
 +
 +Still has Warnings - remove warnings:
 +error_reporting(E_ERROR | E_PARSE);
 +
 +</​code>​
 +
 +<​code>​
 +
 +MOD CURL
 +
 +opkg install php5-mod-curl
 +Installing php5-mod-curl (5.4.5-3) to root...
 +
 </​code>​ </​code>​
yun_reset.1423709739.txt.gz · Last modified: 2021/06/04 02:16 (external edit)