Code Monkey home page Code Monkey logo

tasmoadmin's People

Contributors

alexhk avatar ascillato avatar bigcookie avatar dependabot[bot] avatar flobul avatar frenck avatar gzone156 avatar hmmbob avatar inverse avatar j0se avatar kilkenny44 avatar malikzh avatar martin-herzog avatar merlinschumacher avatar mscreations avatar pepsonel avatar petercpg avatar philipwhiteside avatar ponuryzrzeda avatar raymondmouthaan avatar reloxx13 avatar rhuss avatar salopette avatar sfeakes avatar tjorim avatar tprelog avatar vivantsenior avatar watskebart avatar wiktorbuczko avatar ziocook avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tasmoadmin's Issues

Auto scan From IP and To IP are not saved

On the auto scan page the From IP and To IP are filled with default values 192.168.178.1 and 192.168.178.254, after changing them to a different range eg. 192.168.2.1 ~ 192.168.2.254 and run the scan, these new range is not saved when switch pages. So for each auto scan a user must re-enter it's From IP and To IP.

Add Info Page

Add Info Page and display all Informations from the Device

Feature Request - Api Webhooks

Would it be possible to have an API interface made to allow service like ifttt to use the SonWEB server as relay to control the devices added to it. something that would take form data using the device name.
{ "apikey":"123456789",
"deviceName": "Living Room Light",
"action": "On"
}

Config on Raspberry Pi

Hi

I am fairly new to all this but learning as I go.
I have followed the 'guide for Ubuntu server 16.04' and as you say I have had to make OS adjustments. On Raspian stretch the location of apache2 default web page is now /var/www/html, so I changed that in the sonweb.conf.
I kept getting syntax errors when starting apache using the code posted in the instructions. After much searching I ended up with the following:

<VirtualHost *:9999>
ServerName sonweb
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/sonweb/
<Directory /var/www/html/sonweb/>
Options Indexes FollowSymLinks MultiViews
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>

The code listed in the instructions is not as above. I think because it has been posted without the leading and following triple backticks?
Finally have sonweb working and it's great. Thanks

[Question] Docker Persistent Directories

Hi,

Which directories / files should be kept saved after reinstall / version update etcetera ?

I am working on a docker image for SonWeb, so that SonWeb can run within a docker container. But I like to store its data out side the container., so that configured devices can be restored after redeployment / restart of the container.

This directory /var/www/sonweb/data seems important for persistent, is there any other which I might have overlooked?

Tasmota has spanish firmware

Hi,

I really like SonWEB. It is very nice.

I suggest to add spanish (ES) as option for selecting the firmware due to Sonoff Tasmota has also a spanish version.

Thanks!

Device Discovery

Hi,

Can be added a Device Discovery button to search for Tasmota devices on the local network?

Could be a ping from (localIP) i.e. 192.168.1.x where x goes from 2 to 255 and if there is a ping response, try to retrieve status?

And if it is a Tasmota it can be saved as new device.

I think should be handy tool.

the idea came from Tasmota#1913

No login page

Wow!!! Nice project!!! Nice integration with Tasmota.

After following the Ubuntu installation procedure it still failed to show the login page.

It seems it looks for a login file while it is called login.php. I changed the following line in index.php to get it to work:

	if ( !$loggedin ) {
		header( "Location: "._BASEURL_."login.php" );
	}

Issue is partly touched in #40Wow

Translate JS Outputs

Hi,

There is any way of translating the information while Uploading firmware to any other language?

image

Optimize Status requests

Currently for 10 devices 10 ajax and 10 curls are send.

This will be changed to 1 Ajax and 10 Curls.

The 10 curls will then be handled rolling, meaning only max 5 curls simultaneously will roll.

hopefully this will resolve some ajax timeout problems with much devices on list and start page.

Some devices do not show a name

Some devices (probably without a power/light button) like Sonoff Bridge and Sonoff SC do not show a name in the device list:

image

Without the name I cannot hyperlink to it ;-)

Note: They do have FriendlyName1 set.

Add DHT11/SHT3X Sensor

{"StatusSNS":{"Time":"2018-02-07T20:16:19","DHT11":{"Temperature":78.8,"Humidity":27.0},"SHT3X":{"Temperature":74.8,"Humidity":18.9},"TempUnit":"F"}}

Devices Page aligned to the left with few data

Hi,

The devices page is aligned to the left of the screen when it has few data, and I think that should be better if center aligned.

image

When the data is expanded with the show more checkbox, the left alignment is the best option I think.

Thanks a lot for this tool!

What am I doing wrong?

Minimal Firmware: DEVICE_UPDATE_UPLAOD_FIRMWARE_MIN_WRONG_FORMAT!
Full Firmware: Wrong Format! Please upload Full Firmware BIN file!!

I even get this with firmware downloads directly from the GitHub site.

Translation - Italian

What do you think of adding Italian Language as to match the languages' list Tasmota Firmware has?

I can help with the translation. I study Italian some years. May be then an italian speaker make some corrections.

How to upload full firmware?

On the upload menu, SonWEB ask for both FULL and MINIMAL firmware.

If I want just to upload FULL firmware, SonWEB reply that I did not select any MINIMAL.

And, If I put both, SonWEB upload just the MINIMAL to my Sonoff.

How I can upload the FULL Firmware?

devices_autoscan

Autoscan doesn't work if SonWEB is not at the root directory of httpd.

/var/www/html/"SonWEB subdirectory"

Kevin

Self Update Error Messages

I like a lot this Self Update Feature. 👍

Found 2 scenarios that triggers some errors:

1- When there is No Internet Connection, the Self Update Page shows the following error message:
image
It is possible to change that message to be something like No Internet Connection without the label New Update Found ?

2- When the Internet Connection is slow, the Self Update Page shows the following error message:
image
After 30 seconds while downloading, it stops and shows that message.
Can be updated the 30 seconds to show a message like: Taking too long and that it continues downloading?

Thanks!!!

More Infos on Device List

  1. Add a checkbox to show more infos in the table
  2. save checkbox state in cookie
  3. Show more infos

MQTT State, Chip Version, Modultyp

-Tasmota only response ModulType ID, must be hardcoded then and getting updated for new devices.

Add Device Config Page

Add a config page to manage teh device.

can handle more config then the tasmota web interface with a GUI, better than commands

User choose refresh time

Let the user choose refreshtime by a selectbox
save in cookie

live refreshtime change possible?

Error State, Sonoff device Fatal exception

Unfortunately the state of this devices showed ERROR and after some time it looks oke with the info of the devices, but toggled into error after a few seconds....

The restart message from the sonoff console shows this message:
00:00:06 MQT: tele/sonoff-pow-1/INFO3 = {"RestartReason":"Fatal exception:9 flag:2 (EXCEPTION) epc1:0x40204eec epc2:0x00000000 epc3:0x00000000 excvaddr:0x000014e9 depc:0x00000000"}

Sonweb Docker Image

I've been spending some time to get SonWeb running with a docker container with the final goal to build a docker image for it. Unfortunately until now i did not exceed to run SonWeb from a docker container.

I took the guide from here https://github.com/reloxx13/SonWEB/wiki/Guide-for-Ubuntu-Server-16.04 as a base.

First I started a docker image with the following command:

  • docker run -ti -p9080:80 -p9999:9999 --name ubuntu-test arm32v7/ubuntu

Here port 9080 and 9999 are exposed to the out-side-world in preparation of the default apache webpage (9080) and SonWeb website (9999).

Then is installed the required packages with the following command:

apt-get install -y \
  apache2 php libapache2-mod-php php7.0-curl php7.0-zip git nano net-tools curl && \
  mkdir -p /var/www/sonweb && \
  cd /var/www/sonweb && git clone https://github.com/reloxx13/SonWEB.git . && \
  rm /etc/php/7.0/mods-available/opcache.ini && \
  cd /var/www/sonweb/ && \
  chown www-data:www-data * -R && \
  chmod 777 tmp && \
  chmod 777 data

Then i created /etc/apache2/sites-available/sonweb.conf with the following content:

<VirtualHost *:9999>   
        ServerName sonweb   
        ServerAdmin webmaster@localhost   
        DocumentRoot /var/www/sonweb/   
        <Directory /var/www/sonweb/>   
                Options Indexes FollowSymLinks MultiViews   
                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>

And added port 9999 to /etc/apache2/sites-enabled/000-default.conf

Listen 80
Listen 9999

<IfModule ssl_module>
        Listen 443
</IfModule>

<IfModule mod_gnutls.c>
        Listen 443
</IfModule>

Then I executed these commands

a2ensite sonweb
a2enmod rewrite
service apache2 reload
service apache2 restart

And finally I checked the listening ports within the container

netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:9999            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN

Until now all steps are as expected and according to the guide, but after accessing SonWeb from an out-site-world browser using http://:9999 I get the following error:

Not Found

The requested URL /login was not found on this server.

Apache/2.4.18 (Ubuntu) Server at 192.168.2.101 Port 9999 

But when accessing the default apache url http://:9080 I get perfectly the "Apache2 Ubuntu Default Page - It works1" page.

I am not an Apache nor a php expert but I hope with some advise to have this issue tackled and finally build a docker image for SonWeb.

Any help is appreciated :-)

Start Page can't translate the word START

Hi,

I have tested the Spanish Translation and found that the word START on the Page Title and on the Label at the top of the page remains as START no matter which language you set. For Spanish should be Inicio

image

How can be changed?

status updates broken?

Thank you so much for all your work and effort. I just recently discovered your work. To make a great product even better I have a small issue.

image

Sonoff 1 is offline which is correct. However, Sonoff 2 is online. SonWEB is not able to retrieve statusinformation from the devices still online. And everything slows down tremendously.

Changing the Position of devices has no effect. But everything resorts to normal once everything is turned back on.

Thank you

[Mobile]Hide Navi

hide the navi on small screens.

show burger menu button and scroll in navi

Fehler nach Update

Hi,
ich habe sonWeb auf meinem Raspberry 3 Sketch.

Bis zum letztem Update lief auch alles ohne Probleme wenn ich sonweb wie folgt aufrief:
http://Domain.des.Pi/sonweb
1673

Jetzt komme ich mit diesem Aufruf zum login, und danach auch zur Übersicht. Allerdings funktioniert kein Aufruf aus dem neuem Menü sondern es kommt immer zu den jeweiligen Fehlermeldungen:

`Not Found

The requested URL /sonweb/selfupdate was not found on this server.
Apache/2.4.25 (Raspbian) Server at !Domain! Port 80`

`Not Found

The requested URL /sonweb/devices was not found on this server.
Apache/2.4.25 (Raspbian) Server at !Domain! Port 80`

Wie kann ich Sonweb helfen wieder zu funktionieren? BTW: englisch ist nicht so meines, sorry ;)

Button Size of start autoscan (on spanish translation)

Hi @reloxx13,

Found that the size of the Start AutoScan button is changing its size depending on the width of the screen, but the text inside some times get cut.

Full Screen: (button text cutted)
image

Small Screen: (button text OK)
image

Medium Screen: (button text cutted)
image

I tested that eliminating the <div class="col-sm-4"> the button width is shown as the width of the previous labels and the button text is not cutted.

Are you Ok with this change?

Support OpenBSD/Non-Apache Webserver (no mod_rewrite)

It seems that most of the pages require Apache's mod_rewrite in order to make "nice" URLs.

Is there a setting to use the standard "ugly" URLs in order to be able to run SonWEB on web servers without support for Apache's mod_rewrite ( like OpenBSD's httpd )

Thanks.

Allow ordering of MultiChannel Devices

At current state you cannot order the channel/relais of one device.

  • Need to change the ordering value from stirng to array
  • add multi position inputs
  • display order in frontend (difficult eg. 1 device can have 4 position and another device could be between it)

5.12.0c time display problem

Pos. | Name | IP | State |   | Version | Runtime | Temp. | Humidity | Pressure | Add device
1 | mini1 | 10.0.1.117 |   | 100% | 5.12.0c | NaNd NaNh NaNm NaNs | 69.2°F77.9°F | 38.7% | 997 hPa |  

Device Update not working

Device update correctly moves the firmware.bin files to data/firmwares folder but the OTA update doesn't take. Everything looks like it works but the firmware is not updated. I can update with the tasmota web page directly. The AP order button is also switched somehow during the update attempt so I have to wipe and reload tasmota to be able to reconnect.

OTA update IP isn't quite right or I'm missing something in the setup. No errors are being thrown to troubleshoot from.

Missing keys on translation files

There are 2 missing keys about LOG IN on the translation files ES, FR, IT, NL, PL, RU

On spanish the keys were updated by PR #32

image

Another issue is that selecting IT language, it changes to FR.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.