Installing Ardublockly

来源:互联网 发布:飞机部件修理就业数据 编辑:程序博客网 时间:2024/04/30 05:47

Install Ardublockly

In order to simplify its use and to make it available to restricted systems, Ardublockly does not need to be installed, just downloaded and executed.

Ardublockly needs the Arduino IDE to be available as well, which can be downloaded from thearduino.cc downloads page. More information can be found in the Configure Ardublockly document.

There are two ways to run Ardublockly:

a) Executable application: Simplest method, download a zip file which contains the pre-packaged Ardublockly executable desktop software.

b) Core version: Running directly from source code, requires only Python and a modern browser (like Chrome or Firefox).

Both these methods can be run from the "pre-packaged" downloads, and the GitHub repository source code.

Download executable Ardublockly

The easiest way to use Ardublockly is to download the packaged version, which is a self-contained application that does not have any other dependencies (other than the Arduino IDE).

Download the latest stable version from the GitHub releases page.

Or alternatively, but not recommended, you can download the latest development builds from the links below. These are automatically generated every time code is pushed to the repository and might contain unfinished or buggy features.

http://ardublockly-builds.s3-website-us-west-2.amazonaws.com/index.html

Linux (64 bit only)Windows 7 or higher (32/64 bits)macOS 10.8 or higherLinux Build StatusWindows Build statusMac Build StatusDownload LinkDownload LinkDownload Link

For any of these and other platforms, the "core version" should work on all operating systems with Python and a modern web browser.

Run the executable Ardublockly

To run the application the steps are slightly different depending on the platform.

  • Windows: Double click on the ardublockly_run.bat file located on the Ardublockly folder.
  • Linux: Execute the ardublockly_run.sh shell script located on the Ardublockly folder.
  • OS X: Right click the Ardublockly.app file and click open.

Ardublockly desktop application

The Arduino IDE is required to compile and load the programs into an Arduino board, more information can be found in the Configure Ardublockly page.

Download Ardublockly source code

The easiest way to download a full copy of the repository is using git:

git clone https://github.com/carlosperate/ardublockly.gitcd ardublocklygit submodule update --init --recursive

When the repository is downloaded directly from github as zip file, the internal git submodules are not included, which is why git is the best method to download a working copy.

If you have already "git cloned" the Ardublockly source code, make sure the submodules are initialised. You can run the last git command above in the project root directory to ensure this is the case.

Download without git

If for some reason you are unable to use git, you can download Ardublockly from GitHub as zip fileand the Closure library as a zip file. Uncompress the contents from the Ardublockly zip file and then unzip the Closure library into the closure-library folder within Ardublockly (make sure there is not an additional "closure-library" nested folder inside this one).

If you also need to build Ardublockly locally (which is not necessary to run the development version), all the git submodules required are listed in the .gitmodules file in the repository.

Run "core version" of Ardublockly

This version is the main development environment for the application. You can easily run the latest updates using this method, and should be able to work if there is an issue running the packed Ardublockly application in your platform.

Required Software

  • Python 3: Ardublockly maintains compatibility with Python 2 and 3 (tested on 2.7 and 3.4)
  • Arduino IDE version 1.6 or higher: The latest version is always recommended
  • Modern browser of your choice: Currently supports Firefox, Chrome, IE10+, Opera and Safari; Chrome is recommended
  • Ardublockly source code: The "Downloading Ardublockly" section details how to obtain it

Linux only requirement

Tkinter, which is used in Ardublockly, is not always part of standard Python environment on Linux and needs to be installed.

Install Tkinter for Python 2 on Ubuntu:

sudo apt-get install python-tk

OR, install Tkinter for Python 3 on Ubuntu:

sudo apt-get install python3-tk

Run Ardublockly from source code

To run the "core version" execute the start.py python script file located on the the root of the Ardublockly folder (this also works on the "packaged" executable Ardublockly version):

python start.py

Your default browser should open a local web page to load the Ardublockly application.

Ardublockly development

Run the full Ardublockly desktop application from source

To run the full desktop version of the development Ardublockly you will also need to install node.js.

Navigate to the electron folder inside the package directory:

cd package\electron

Execute the following command to download all the dependencies required to for the desktop application, this might take a while:

npm install

Once that's done, run the following command to open the desktop application:

npm start

The Arduino IDE is still required to compile and load the programs into an Arduino board, more information can be found in the Configure Ardublockly page.

0 0
原创粉丝点击