Wir haben automatisierte Systeme für Kunden, um ein Bewertungs- und Abrechnungskonto zu erstellen, das Kunden durch Online-Zahlung auf der Website
Hello there to Everybody over the Smart Box channel Today will be the upcoming part of the movie With the online video sequence about Orange Pi Zero In previous videos, I currently confirmed how to setup on Orange Pi Zero the operating program Arbian Web server Apache, MYSQL databases PHPMyAdmin and MQTT Server And in today's movie, I am going to put in on Orange Pi Zero Good residence program MAJORDOMO In addition to supplemental computer software for the proper operation of multimedia during the sensible household technique MAJORDOMO So let us start To start we open up the terminal And enter the IP tackle of ORANGE PI ZERO Authorization within the method At the moment the temperature from the processor is sixty two levels Celsius My ORANGE PI ZERO functions with no glued radiator And of course and not using a admirer All of this aggravates the plastic case Inside the incredibly close to long term I will set the radiator and enthusiast What I recommend Absolutely everyone to accomplish Well, now continue to install the sensible property program MAJORDOMO on ORANGE PI ZERO The first thing to carry out is apt-get update and apt-get improve Let's get it done Enter the command sudo apt-get update Confirm With all the password Enter the next command sudo apt-get update Now let's develop a directory to the sensible household method MAJORDOMO Enter the command sudo mkdir /residence/majordomo Drop by this directory Enter the command cd /dwelling/majordomo Obtain archive with wise home method MAJORDOMO Enter the command sudo wget http://majordomo.
smartliving.
ru/obtain/_majordomo_linux_100b.
tar.
gz And now it stays to set up the procedure Enter the command sudo tar xvfz _majordomo_linux_100b.
tar.
gz Enter the following command sudo cp -rp /home/majordomo/html/* /var/www And enter the final command sudo cp -rp /residence/majordomo/html/.
htaccess /var/www Then you'll want to change the operator with the folder /var/www Enter the command sudo chown -R www-information:www-info /var/www Now you need to include the consumer www-facts on the audio team Enter the command sudo usermod -a -G audio www-info Now it is necessary to open up the browser and down load the archive on the clever household method MAJORDOMO on the computer https://github.
com/sergejey/majordomo/archive/grasp.
zip begin to down load the archive Archive has long been downloaded, now it needs to be unzipped I unzipped it on to the desktop Accomplished Now you must head to PHPMyAdmin For this we enter IP deal with ORANGE PI ZERO And incorporate throughout the slash /phpmyadmin For login you have to enter the login root And inside the password discipline enter the password that we designed during the previous online video when setting up PHPMyAdmin Now you'll want to develop a databases db_terminal For this, click the link to produce a databases In the sector "databases" we enter Within the "comparison" area, choose the encoding utf8_general_ci.
(EN) | cp1251_general_ci.
(RU) And click over the "create" Further we pass during the created databases Visit the tab "import" Click the button "find a file" And now it is necessary in the Formerly unzipped folder Find a databases dump So, I found a database dump db_terminal Opt for it Then shift down this site And click about the "ahead" Tables with info successfully imported And now you'll want to create a user For this we Visit the tab "privileges" Adhere to the hyperlink "include a user" In the sphere "username" we enter the login of the new user At me It'll be admin And develop a new password for this user Just The brand new password can be merely generated Even further down the web page And click on about the "ahead" Performed.
Consumer additional And now we return on the terminal Up coming, you should edit the configuration of the intelligent house technique MAJORDOMO Enter the command sudo nano /var/www/config.
php locate the lines: Determine('DB_USER', 'Person'); and Determine('DB_PASSWORD', 'Go'); And enter the person data of which we just established in PHPMyAdmin If you intend to hook up with the server MAJORDOMO not merely within the household community, but will also by way of the Internet Then you must add the following code for the file: Define('HOME_NETWORK', '192.
168.
0.
*'); // residence network (optional)Outline('EXT_ACCESS_USERNAME', 'consumer'); // entry facts for exterior community (internet)Determine('EXT_ACCESS_PASSWORD', 'password'); In the 1st line we reveal our home community Getting In this particular network you can go to the server MAJORDOMO devoid of authorization In the next two strains, you have to sign-up a login and password for connecting for the MAJORDOMO server by using the world wide web This is certainly In the interim every one of the settings inside the config file.
Now preserve the file "ctrl" "x" "Y" "enter" Future, you must produce a file describing the services for the main loop MAJORDOMO Open the editor.
Enter the command: sudo nano /and so on/systemd/system/majordomo.
provider Increase the next code to the file: [Unit]Description=MajorDoMo [Provider]Necessitates=mysql.
serviceRequires=apache2.
serviceType=simpleWorkingDirectory=/var/wwwExecStart=/usr/bin/php /var/www/cycle.
phpRestart=usually [Set up]WantedBy=multi-user.
target This code are going to be while in the listing file, in The outline beneath the video Now save the file Then you have to restart all companies enter commands: sudo systemctl daemon-reload sudo apache2ctl restart sudo company mysql restart sudo systemctl help majordomo sudo systemctl commence majordomo Now open up the browser and do the Preliminary setup MAJORDOMO Open IP deal with ORANGE PI ZERO In some time zones checklist, you must find your time and energy zone Upcoming, you should select the language on which the process will perform And the last is the choice with the pores and skin Darkish Anbieteriptv or mild Click the "proceed" Return into the terminal all over again And reboot the server Enter the command sudo shutdown -r now Reopen the terminal Authorization on the server And now you should install quite a few packages for the correct operation of multimedia But 1st We'll do apt-get update and apt-get update Enter instructions sudo apt-get update sudo apt-get upgrade No updates, nevertheless it needed to be completed The very first program you have to put in – MPLAYER Enter the command sudo apt-get put in mplayer -y And start the set up The MPLAYER is set up and now we commence to setup the next player – VLC Enter the command sudo apt-get set up vlc -y And begin the installation Further it's important in crontab to add a line with the code to be able to commence the VLC player Using the program crontab -e -u admin Open up the file Decide on editor And at the end of the file insert a line with the command: In the road with the code it's important to specify the password for authorizing the VLC player The password can be anything, you come up with it by yourself Now preserve the file and exit Now you might want to reboot Reopen the terminal And so are approved in the technique Now you might want to install a speech synthesizer that could make the clever dwelling program MAJORDOMO start off chatting We're going to install RHVoice but initial install dependencies Enter the command: apt-get put in gcc g++ git pkg-config scons libao4 libao-popular libao-dev ensure the action by getting into the password Agree Dependencies are founded and now we continue to setup RHVoice Visit the folder, enter the command: cd /usr/src/ Copy RHVoice sudo git clone https://github.
com/Olga-Yakovleva/RHVoice Visit folder cd RHVoice And set up Enter the command: sudo scons Keep on the set up, enter the next command: sudo scons set up And now it remains to enter the final command and finish the installation Enter the command: sudo ldconfig The speech synthesizer is finish Now you have to do a test This will require speakers or headphones I'd at hand such a portable speaker This audio column I'll connect to ORANGE PI ZERO Now try to enter the command echo "examination" | RHVoice-exam again echo "test" | RHVoice-check Properly, now let us try out some thing in Russian echo "Привет Смарт Бокс" | RHVoice-take a look at -p Anna all over again echo "Привет Смарт Бокс" | RHVoice-take a look at -p Anna The set up of your speech synthesizer was productive and now you should restart the program Enter the command: sudo reboot Near terminal Now move on for the sensible household program MAJORDOMO And make many settings for accurate Procedure of speech synthesis and for the proper Procedure from the MQTT server Visit the user interface Upcoming, simply click the backlink – check for updates And click within the button – update the program Then Visit the tab – machines And try to look for the addition of MQTT Install Now on the tab – interaction is looking for RHVoice and install it Go to the portion – programs Visit the RHVoice Below we select the voice other than the last a person this software just isn't mounted It is possible to insert caching And click on about the button – update Go to the Settings segment Check out subsection – terminals Here whilst one terminal, this terminal ORANGEPIZERO Go to edit Choose the type of player – VLC in excess of HTTP Specify the port of use of the player – 8080 And also the password we added earlier And click over the help save button.
Now let's Visit the most important web site And inquire the wise dwelling process MAJORDOMO a little something to mention Now let us go forward to MQTT Go to the control panel Go to the section – devices Visit subsection – MQTT Click on the button – configure Let us subscribe straight away to each of the matters And enter the information for authorization movie part # three From your smartphone, let's go to MQTTOOL Authorization Now send out a message to The subject – test Back on the MAJORDOMO system panel And refresh the webpage Now the sensible property program MAJORDOMO receives data on MQTT set up from the clever residence program MAJORDOMO around the ORANGE PI ZERO can be considered entire In the following films, I am going to show you ways to create a wise home process MAJORDOMO How to connect sensors for the process, the way to get info from sensors How to connect many relays, switches And a number of other things All who similar to this movie tend not to fail to remember To place – like subscribe to my channel All bye.