Cov txheej txheem:

Edison Head Impact System: 6 Kauj Ruam
Edison Head Impact System: 6 Kauj Ruam

Video: Edison Head Impact System: 6 Kauj Ruam

Video: Edison Head Impact System: 6 Kauj Ruam
Video: skibidi toilet multiverse 023 bloopers 2024, Kaum ib hlis
Anonim
Edison Head Impact System
Edison Head Impact System

Lub hom phiaj ntawm txoj haujlwm no yog txhawm rau tsim lub cuab yeej uas saib xyuas qhov ua rau lub taub hau cuam tshuam thiab pom qhov cuam tshuam uas muaj feem yuav ua rau raug mob hnyav. Hauv kev ncaws pob hluas, cov cuab yeej siv kho mob no tuaj yeem yog "txheej ntawm qhov muag" saib xyuas kev nyab xeeb ntawm cov neeg ua si thiab ceeb toom cov kws qhia thaum muaj qee yam tsis raug.

**************************** NCO TSEG KAWM NTAWV ORIGINAL EDISON FREQUENTLY **************** ************

Kauj ruam 1: Teeb Intel Edison

Teeb Intel Edison
Teeb Intel Edison

Mus rau Lub Vev Xaib no:

Ua raws li cov lus qhia THOROUGHLY thiab ua tiav Kev Txhim Kho Txheej Txheem/Hloov Kho Firmware.

Teeb Wifi: teeb tsa_edison --wifi

Teeb lub Npe: configure_edison --name

Teeb tus Password: configure_edison --password

Teeb hnub tim:

rm /etc /localtime

ln -s/usr/qhia tawm/zoneinfo/America/Chicago/etc/localtime

ls -l /etc /localtime

Kauj ruam 2: Teeb RTIMULib

Teeb RTIMULib
Teeb RTIMULib

Rub RTIMULib Zip Cov Ntaub Ntawv mus rau Laptop:

Siv SFTP txhawm rau xa cov ntaub ntawv RTIMULib unzipped rau hauv Intel Edison lub hauv paus npe.

Nkag mus rau cov lus txib no rau nruab RTIMULib's Linux system:

Tsim /etc/ld.so.conf thiab ntxiv kab: "/usr/local/lib"

Hauv qab RTIMULib Library sau cov lus txib no:

mkdir ua

cd tsim

cmk ua..

ua j4

ua nruab

ldconfig

Hauv qab /Linux /RTIMULibCal Library sau cov lus txib no:

ua j4

ua nruab

Hauv qab /Linux /python Library sau cov lus txib no:

nab hab sej setup.py tsim

nab hab sej setup.py nruab

Kauj ruam 3: Java thiab Tomcat Teeb

Java thiab Tomcat Teeb
Java thiab Tomcat Teeb
Java thiab Tomcat Teeb
Java thiab Tomcat Teeb

Thaum ua tiav qhov teeb tsa RTIMULib, rub tawm cov program Python tsis ntev los no thiab "Cov Ntaub Ntawv Cov Ntaub Ntawv" Cov ntawv los ntawm Edison thaub qab dhau los ntawm SFTP Session.

*** Nco ntsoov khaws cov ntawv kaw thawj zaug ua ntu zus

Koj yuav tsum tau ntxiv Java:

mkdir java

cd iav

Tsiv jdk.blah.blah.blah.tar.gz los ntawm thaub qab mus rau edison ntawm SFTP Session

tar -zxvf TARNAME

Tam sim no, rau TOMCAT, ntawm no yog yuav ua li cas rub tawm thiab teeb tsa lub vev xaib (pib los ntawm cov hauv paus hauv paus npe):

mkdir tug

cd twm

Tsiv apache-tomcat-blah-blah.#.#.#. Tar.gz (** Tsis yog hom ntawv tseeb) los ntawm kev thaub qab mus rau edison ntawm SFTP Session

tar -zxvf TARNAME

cd apache-tomcat-9.0.0. M1/conf

vim tomcat-users.xml

*Rho tawm Cov Lus Teb ib puag ncig Tus Kheej thiab ntxiv kab hauv qab cov npe nrog "cov luag haujlwm =" tus thawj tswj-gui "/>"

vim context.xml

*Hloov "" kab rau "privileged =" true ">"

cd../ ib

vim startup.sh

*Ntxiv "export JAVA_HOME =/home/root/java/"

vim shutdown.sh

*Ntxiv "export JAVA_HOME =/home/root/java/"

Tam sim no Txheeb xyuas yog tias Lub Vev Xaib tuaj yeem pib los ntawm "./startup.sh" thiab kaw los ntawm "./shutdown.sh" hauv qab daim nplaub tshev.

** Tsis quav ntsej "Catalina Server yuav tsis ua haujlwm" yuam kev, thiab sim pib thiab kaw ob peb zaug ntxiv …

Kauj Ruam 4: EHIS rau Kev Ua Haujlwm thiab Pib Web Server

EHIS rau Executable thiab Auto Web Server
EHIS rau Executable thiab Auto Web Server

Tsim eHIS Txoj Haujlwm Ua Haujlwm:

Ntxiv " #!/Usr/bin/python2.7" rau saum eHISprogram.py

Tom qab ntawd Nkag mus rau Command: chmod u+x eHISprogram.py

Automating Web Server:

mkdir /etc/init.d

cd pib d

MOVE edison.sh los ntawm thaub qab rau init.d dir ntawm SFTP

EDIT edison.sh los ntawm Kev Hloov Chaw ntawm startup.sh thiab shutdown.sh

xwm 755 edison.sh

hloov tshiab-rc.d edison.sh defaults

Kauj Ruam 5: Teeb Up Ubidots (Huab) Ntaus Ntawv

Teeb Up Ubidots (Huab) Ntaus Ntawv
Teeb Up Ubidots (Huab) Ntaus Ntawv

Sau Cov Lus Hais los ntawm cov hauv paus hauv paus:

cd RTIMULib-master/Linux/nab hab sej/xeem/OfficialSFprograms/

nab hab sej eHISnewCloudSource.py

Configure Device Variables:

Nkag mus rau hauv Tus lej ntawm

Nyem rau ntawm Sources Tab

Nyem rau ntawm Device

Nyem rau ntawm qhov cuam tshuam_Graph Variable

Luam tus ID nkag mus

*cd RTIMULib-master/Linux/nab hab sej/xeem/OfficialSFprograms/

* vim eHIS.py

* PASTE qhov cuam tshuam_Graph Hloov pauv ID hauv qab cov lus hais ntawm impact_Graph = api.get_variable ("")

** Rov ua dua rau lwm 3 yam sib txawv

Kauj Ruam 6: Teeb thiab Xeem TomCat Webserver

Teeb thiab Xeem TomCat Webserver
Teeb thiab Xeem TomCat Webserver

*** Koj xav tau Tus Thawj Edison Qhov Kev Thaub Qab Tsis ntev los no rau txheej txheem no

Cov Kauj Ruam rau Nruab thiab Khiav Hauv Nroog Edison Webserver:

Los ntawm SFTP Session, luam Edisonwar nplaub tshev thiab Edisonwar.war cov ntaub ntawv los ntawm thaub qab rau hauv /home/root/tomcat/apache-tomcat-9.0.0. M1/webapps directory.

Pib lub vev xaib

Mus rau Tus Thawj Saib Xyuas Haujlwm ntawm qhov browser siv "rikseddy#.local: 8080" thiab tshawb xyuas yog tias EdisonWar App tau teev tseg

Nkag mus rau EdisonWar App thiab Txheeb Xyuas Cov Teeb Meem…

Thaum kawg, sim Edison Head Impact System program:

./eHISprogram

*** Yog tias muaj "cov ntaub ntawv tsis muaj" lossis "phau ntawv teev npe tsis muaj tam sim no" yuam kev, kho lawv los ntawm kev luam cov ntaub ntawv/cov npe no los ntawm kev thaub qab rau hauv lawv phau ntawv teev npe.

Txheeb Xyuas Tus Kheej Hauv Zos Lub Vev Xaib:

Nkag mus rau tus tswv tsev siv "localhost: 8080" ntawm Mac thiab nkag mus rau Player2 hauv qab Chartwar

Txheeb xyuas yog tias Cov Ntaub Ntawv cuam tshuam cov ntaub ntawv tau hloov kho nrog cov ntaub ntawv tsis ntev los no los ntawm kev sim qhov program nab npawb.

Pom zoo: