After having performed an SE clone, a new data structure exists on the device. The console script creates links to this structure in both the Home Page content links as well as the Language page. If it is desired to add other files from the same language not included on Scripture Earth, it is logical to simply add them to the directories in this existing structure. Following a clone, the language data exists at:
/home/pi/www/scriptureearth.org/data/iso
in this directory named by the ISO code of the language, other directories will be found depending on the language. Not every language includes all of these sub-directories.
PDF - text
Audio - sound files.
Video - video files.
sab - web based synchronized text and audio. Don't add files to this directory.
study - programs, apps, software, etc.
viewer - SFM Scripture files. This directory may not exist and is not linked to the MircoPi website.
Files of similar type may be copied to the appropriate directory and will be user accessible in searches and views according to language and file type.
While the following information remains true, operations described in this section are now available from the web UI. See Cloning Scripture Earth
The MicroPi firmware includes scripts which will automatically download all contents of the Scripture Earth website for a given language, and install links allowing the files to be accessed using the MicroPi’s website. The script requires two arguments: the three letter ISO code and a quoted, descriptive string giving the common name of the language. The string is used to label directories on the MicroPi’s website. It must run it from the www directory on the device.
Note that the device must be connected to the internet and have the Captive Portal disabled for this to function. The Captive Portal must be Off.
The following is a way to do this from the command line. Its result identical to the previous page.
To get a terminal on the MicroPi, use puTTY (Windows) or the ssh from the Linux terminal. ex;
user@desktop.linux~$ssh pi@mpi.local
promtps for password "bbox100".
Example: To load the data from Scripture Earth for Mitla Zapotec:
$cd ~www
$clonese.sh zaw “Zapoteco de Mitla”
To use this feature, follow the steps below:
Connect the MicroPi to internet (see Connect to external WiFi network on page 11)
Open a terminal on the computer. Via PuTTY or ssh.
Connect to the MicroPi
Turn off captive portal
$sudo portal.sh off
5. Move to /home/pi/www
$cd ~www
6. Run clonese for the language desired -
$clonese.sh eth “Example Language”
This will copy all files in language “eth” on Scripture Earth to the MicroPi and build links to directories named “eth - Example Language” in “Text”, “Audio”, “Video” etc.
Note that the device must be connected to the internet and have the Captive Portal disabled for this to function.
Example: To load the data from Scripture Earth for Mitla Zapotec use:
$cd ~www
$clonese.sh zaw “Zapoteco de Mitla”
To use this feature, follow the steps below:
Open a terminal on the computer. Via PuTTY or ssh.
Connect to the MicroPi
Turn off captive portal
$sudo portal.sh off
5. Move to /home/pi/www
$cd ~www
6. Run clonese for the language desired -
$clonese.sh eth “Example Language”
This will copy all files in language “eth” on Scripture Earth to the MicroPi and build links to directories named “eth - Example Language” in “Text”, “Audio”, “Video” etc.
Progress bars for the files downloading and their speed of download will show on the console.
Be sure the computer stays online and doesn’t go into sleep mode until the process is complete.
Turn on captive portal before deploying the unit.
$sudo portal.sh on
The clonese script copies both the directory structure and the data onto the device from Scripture Earth and then builds links in the MicroPi’s website to cause Scripture Earth Data to appear in the Text, Audio, Video, etc directories. The links will have the form:
{Eth-code} {"Common name”} or, in the example command given above
zaw "Zapoteco de Mitla"
This structure is at ~www/scriptureearth.org/data/{eth_code}. A link called data in www connects to ~www/scriptureearth.org/data/ permitting SAB Apps to find their audio files.
Note: This script only copies data residing on the SE website. It will attempt to download audio stored on Faith Comes by Hearing as well.
Getvids.php
The script getvids.php will download scripture videos from youtube.com by reading lists downloaded from scriptureearth.org. This also must be run from the ~www directory after clonese has run.
$getvids.php
Turn on captive portal before deploying the unit.
$sudo portal.sh on
The script getvids.php will download scripture videos from youtube.com by reading lists downloaded from scriptureearth.org. This also must be run from the ~www directory after clonese has run.
$getvids.php
This script performs the opposite of clonese.sh. It removes all traces of the language files of a particular language, and the links which point to them. It must be run with the exact same two parameters that the corresponding clonese operation used. I.e.:
rmlang.sh iso “Example Language”
rmlang.sh zaw “Zapoteco de Mitla”