PiMessenger V1.01

This is a step by step guide to setup PiMessenger V1.01 with EduBoard on the Raspberry Pi.

What is PiMessenger V1.01?

Send messages to the EduBoard via the Raspberry Pi through a web interface.

Here is me sending messages to EduBoard using my computer (you can use your mobile and tablet too!)

The project will involve the following functions:

  • Output/LED
  • Input/Button
  • Display/OLED
  • WebServer/Apache+PHP+Bootstrap

Installing the required components

If you not alrady done so, install the following components:

 

The PHP script below, should be placed to /var/www/ location. Navigate to this directory in the terminal:

You can choose from two method to place the PHP script into this loaction. This is method one.

(Method 2)

Open an editor window using:

Then type or paste in the following script and save the file using CTRL-X and then Y and then ENTER. Could take a while, be patient.  (assumes connected through SSH)

The second method is to download the script, using wget:

Unzip the archive using the following command:

 

Enter the I.P. address of your Raspberry Pi+pimessenger_1.php into your web browser.

ip/pimessenger_1.php

You should see something like this:
pimessenger_no_BS

 

As you noticed, there is not much style to the user interface, as we have not installed the Bootstrap Framework.

To do this, use the following command:

(Should be downloaded to /var/www location)

Unzip the archive using the following command:

Open Midnight Commander usig the following command:

Navigate the left panel to /var/www/bootstrap-3.3.2-dist, and the right panel to /var/www.

Should look like this:

mc

Highlight the three components within /var/www/bootstrap-3.3.2-dist on the left panel (css, fonts, js) using INSERT on your keyboard, and copy them over to /var/www on right panel using F5.

Should look like this:

mc2

 

You can switch between terminal view and MC view using CTRL+O. To close MC, use F10 on your keyboard.

 

Enter the I.P. address of your Raspberry Pi+pimessenger_1.php into your web browser.

ip/pimessenger_1.php

You should see something like this:

pimessenger_with_BS

 

Please note, the buzer ON/OFF button will not work at this stage. If you would like to add this function to the PiMessenger, you will need to create the relevant Python scripts.

Refer to Tutorial 4 to create the ON/OFF scripts for the buzzer.

The buzzer ON/OFF script should be saved to the location seen on the below script:

Enjoy..:-)