Good evening, I'm Kazumi Ohira, also known as @dz_, an oak fan.
Fortunately, I got the Raspberry Pi Zero because I met the timing of the inventory recovery!
You can develop your Raspberry Pi remotely for more convenienceAdafruit WebIDEI decided to try. Make a note of the installation and setup instructions.
By the way, if you want Pi Zero, check the stock status of multiple online shops on the site Where is My Pi Zero?. I can. GOOD LUCK! :)
By the way, Adafruit WebIDE is an IDE (Integrated Development Environment) for Raspberry Pi that can be accessed and developed from other terminals with a web browser.
Once you have set up the WiFi on the Raspberry Pi, you can develop it remotely, which seems to be very convenient.
As shown in the figure below, you can use not only an editor but also a sample code collection and terminal provided by Adafruit. The source code can be managed with Git and works with Bitbucket.
The assumed language is Python. There is also a terminal so you can do anything if you want to.
Now, to get started with Adafruit WebIDE, you can easily get started by following the steps below.
Let's actually introduce it.
First, let's install the Adafruit WebIDE on the Raspberry Pi. Execute the following command.
#Install Adafruit WebIDE
pi@raspberrypi:~ $ curl https://raw.githubusercontent.com/adafruit/Adafruit-WebIDE/alpha/scripts/install.sh | sudo sh
After installation, start the service.
#Launch Adafruit WebIDE as a service
pi@raspberrypi:~ $ sudo service adafruit-webide.sh start
After starting the service, access it from a remote machine in the same network. Open http: // <Raspberry Pi IP Address>
or http: // <Raspberry Pi IP Address>: 8090
in your web browser. It is OK if the following screen is displayed. If you don't see it, the port may be different, so check your config as follows:
#Check the Adafruit WebIDE config
pi@raspberrypi:~ $ less /usr/share/adafruit/webide/config/config.js
config.js
exports.editor = {
"port": 80,
...
In this case, it will start on port 80.
Basically, follow the steps shown above to proceed with the setup.
First, create an account for Bitbucket and log in.
Then issue a consumer key for the connection. Click the icon in the upper right to open the "But bucket Setting".
Open OAuth> OAuth Consumer> Add Consumer Key. Specify the required information and permissions and save the consumer key. In addition, please adjust the authority as appropriate.
Next, set the "Key" and "Secret" of the created consumer key to Adafruit WebIDE. In addition, specify the Full Name and email required for committing and press "Send Query".
The login screen will be displayed. Log in with your Bitbucket account and you are ready to use the IDE!
After this, I was able to wire to GPIO of Raspberry Pi normally, write a python program and execute it. You can also debug.
Also, Adafruit WebIDE seems to have a Schedule Manager, so it may be possible to let the WebIDE handle the periodic processing.
Recommended Posts