2016:smart_remote_control
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
2016:smart_remote_control [2016/05/10 20:41] – [Step #5: Start Web Interface Server] 75.177.137.2 | 2016: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: | ||
+ | < | ||
opkg update | opkg update | ||
- | + | </ | |
* Now install PIP, the Python package manager:\\ | * Now install PIP, the Python package manager:\\ | ||
+ | < | ||
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 | ||
- | + | </ | |
This process may take a few minutes. You may see some warnings; they' | This process may take a few minutes. You may see some warnings; they' | ||
* Create a directory on the SD card to store Python packages: | * Create a directory on the SD card to store Python packages: | ||
+ | < | ||
mkdir / | mkdir / | ||
- | + | </ | |
* Install the Flask Python web framework: | * Install the Flask Python web framework: | ||
+ | < | ||
pip install --target / | pip install --target / | ||
- | + | </ | |
You may see some warnings; they' | You may see some warnings; they' | ||
* Update Python' | * Update Python' | ||
+ | < | ||
echo " | echo " | ||
- | + | </ | |
* 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: | ||
+ | < | ||
mkdir / | mkdir / | ||
mkdir / | mkdir / | ||
- | + | </ | |
* 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 ==== | ||
Line 83: | Line 83: | ||
{{: | {{: | ||
* To run the server, connect to the Yún over SSH. Execute the following command to start the server: | * To run the server, connect to the Yún over SSH. Execute the following command to start the server: | ||
+ | < | ||
python / | python / | ||
+ | </ | ||
* If the server starts successfully you should see the following text: | * If the server starts successfully you should see the following text: | ||
< | < | ||
Line 93: | Line 95: | ||
* Once the page is loaded, you should see a list of the configured activities as buttons. If you see an error, check that dependencies were installed properly, the sketch was uploaded, and the server is running without errors. | * Once the page is loaded, you should see a list of the configured activities as buttons. If you see an error, check that dependencies were installed properly, the sketch was uploaded, and the server is running without errors. | ||
* To stop the server, press Ctrl-C in the command window where you started running the server. | * To stop the server, press Ctrl-C in the command window where you started running the server. | ||
- | |||
==== Step #6: Use Web Interface ==== | ==== Step #6: Use Web Interface ==== | ||
{{: | {{: |
2016/smart_remote_control.1462927299.txt.gz · Last modified: 2016/05/10 20:41 by 75.177.137.2