User Tools

Site Tools


2016:smart_remote_control

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
2016:smart_remote_control [2016/05/10 20:42] – [Step #5: Start Web Interface Server] 75.177.137.22016:smart_remote_control [2016/05/10 20:45] (current) – [Step #2: Install Software Dependencies] 75.177.137.2
Line 30: Line 30:
   * After you connect to the Yún's command line, it will show the firmware version. This project has been tested and works with BusyBox v1.19.4 dated 2014-04-10 and later. If you're using an older version, you may need to follow these instructions to update your board.   * After you connect to the Yún's command line, it will show the firmware version. This project has been tested and works with BusyBox v1.19.4 dated 2014-04-10 and later. If you're using an older version, you may need to follow these instructions to update your board.
   * From the command line, execute the following command to update the package manager:   * From the command line, execute the following command to update the package manager:
 +<code>
    opkg update    opkg update
-   +</code>   
   * Now install PIP, the Python package manager:\\   * Now install PIP, the Python package manager:\\
 +<code>
    opkg install distribute && opkg install python-openssl && opkg install python-expat && easy_install pip    opkg install distribute && opkg install python-openssl && opkg install python-expat && easy_install pip
-   +</code>   
 This process may take a few minutes. You may see some warnings; they're safe to ignore. This process may take a few minutes. You may see some warnings; they're safe to ignore.
   * Create a directory on the SD card to store Python packages:   * Create a directory on the SD card to store Python packages:
 +<code>
    mkdir /mnt/sda1/python-packages    mkdir /mnt/sda1/python-packages
-   +</code>   
   * Install the Flask Python web framework:   * Install the Flask Python web framework:
 +<code>
    pip install --target /mnt/sda1/python-packages flask    pip install --target /mnt/sda1/python-packages flask
-   +</code>   
 You may see some warnings; they're safe to ignore. You may see some warnings; they're safe to ignore.
   * Update Python's package search path:   * Update Python's package search path:
 +<code>
    echo "export PYTHONPATH=/mnt/sda1/python-packages" >> /etc/profile    echo "export PYTHONPATH=/mnt/sda1/python-packages" >> /etc/profile
-   +</code>   
   * Create the directories where the Arduino IDE will upload the web server files:   * Create the directories where the Arduino IDE will upload the web server files:
 +<code>
    mkdir /mnt/sda1/arduino    mkdir /mnt/sda1/arduino
    mkdir /mnt/sda1/arduino/www    mkdir /mnt/sda1/arduino/www
-   +</code>   
   * Restart your Arduino Yún to make sure the Python search path is updated.   * Restart your Arduino Yún to make sure the Python search path is updated.
 ==== Step #3: Load Arduino Sketch ==== ==== Step #3: Load Arduino Sketch ====
2016/smart_remote_control.1462927364.txt.gz · Last modified: 2016/05/10 20:42 by 75.177.137.2