Concepts dealt with:
Software components used:
Physical devices used:
GUIDE more indicated for:
Notes and disclaimer
|Driving review: 1.1|
This management tool allows you to administer all the components present in the profirst network in a single dashboard; one of the most administrative features apprezzate is to allow us the greaternameof firmware on all or part of the devices in one action.
Nb. This guide is valid in the same way and in the same commands for Ubuntu Server 16.04.
All the controls they are executed from the terminal.
|Nb Users Home Assistant in distribution HASSIO - not being able to install TasmoAdmin as per this guide - they have at their disposal theapplicativo as a stand-alone plug-in.|
Installation of the necessary packages
To work, TasmoAdmin needs Apache2, PHP, Curl and other modules. To install them, execute the following command block in one solution:
sudo apt-get update && \ sudo apt-get install \ apache2 \ php \ libapache2-mod-php \ php7.0-curl \ php7.0-zip \ git \ vim
Now clone TasmoAdmin from profirst Git repositoryHub through the command:
sudo git clone https://github.com/reloxx13/TasmoAdmin.git /var/www/tasmoadmin
Change folder ownership:
sudo chown -R www-data:www-data /var/www/tasmoadmin
Set the rights read / write:
sudo chmod 777 /var/www/tasmoadmin/tasmoadmin/tmp && sudo chmod 777 /var/www/tasmoadmin/tasmoadmin/data
Disable the OPcache:
sudo rm /etc/php/7.0/apache2/conf.d/opcache.ini
Now create the file "tasmoadmin.conf"
sudo nano /etc/apache2/sites-available/tasmoadmin.conf
and copy the following text inside:
<VirtualHost *:9999> ServerName tasmoadmin ServerAdmin webmaster@localhost DocumentRoot /var/www/tasmoadmin/tasmoadmin <Directory /var/www/tasmoadmin/tasmoadmin> AllowOverride All Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/error.log LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On </VirtualHost>
Exit by saving with CTRL + X / Y / enter.
Now edit the file "ports.conf”With the command:
sudo nano /etc/apache2/ports.conf
integrating it as follows:
# If you just change the port or add more ports here, you will likely also # have to change the VirtualHost statement in # /etc/apache2/sites-enabled/000-default.conf Listen 9999 <IfModule ssl_module> Listen 443 </IfModule> <IfModule mod_gnutls.c> Listen 443 </IfModule> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Exit by saving with CTRL + X / Y / enter.
start site and mod:
sudo systemctl reload apache2 sudo a2ensite tasmoadmin sudo a2enmod rewrite
Finally, restart Apache2:
sudo service apache2 restart
If everything has been executed to the letter, by connecting to the address
(taking care to replace "ip-del-raspberry" with the ip assigned to the unit) should apparire the TasmoAdmin interface.
Upon first access, TasmoAdmin asks to create a user account for access. Once executed, the "AutoScan" interface will be accessed, useful for device discovery Sonoff updated Sonoff-Tasmota present in the profirst network:
|From IP||Starting address of the subnet to be analyzed (eg. Xxx1)|
|To IP||Arrival address of the subnet to be analyzed (eg. Xxx254)|
|Device Username||User name for device access Sonoff updated Sonoff-Tasmota (must be the same for everyone)|
|Device Password||Password for device access Sonoff updated Sonoff-Tasmota (must be the same for everyone)|
After configuring these fields and having clicked "Start AutoScan“, The web tool prowill identify all the components Sonoff detected. At the end of procedura (it may take a few seconds) a complete list will be displayed; at the bottom, click on “Save"
Now the list of devices will be available for use:
Update Searchnamemassive firmware
At this point, when you need it, it will be possible to do the Update Searchnameof mass of the Sonoff through this convenient web tool.
After filled the othernamento wanted (as explained in our guide of proming Sonoff) in the versions MINIMAL e Full Firmware (so two different files), go to the menu item "Devices/Update"
and fill in as follows:
|OTA Server IP||IP address of the Raspberry|
|OTA Server Port||9999 port|
|MINIMAL Firmware||.Bin file of the MINIMAL compiled firmware Sonoff-Tasmota|
|Full Firmware||.Bin file of the compiled complete of the firmware Sonoff-Tasmota|
Click on "Next". Appthe list of components will now appear, from which to choose which device / devices to update:
selected one or more components, click on "Start Update"
The tool provvederà to upload firmware and up tonamento.
Wait for that appfarmyard "Update done!”Before closing the page.
Yours Sonoff will be updated to the latest version (or the one you choose) of firmware.
|ATTENZIONE: remember that there is on our FORUM community an ad hoc section dedicated to Sonoff (and more generally to devices ESP8266), for any doubt, question, information on the specific merit of these components.|