phpMyDomo: a convenient Domoticz Web Interface

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.
Post Reply

Your Opinion about phpMyDomo

Seems cool, I intend to contribute as a dev/writer/designer ...
6
7%
Seems cool, I will install/use it
50
61%
Seems promising, but I miss some features
17
21%
I dont need any other Domoticz Web interface
9
11%
 
Total votes: 82

User avatar
wxop
Posts: 90
Joined: Sunday 24 November 2013 20:13
Target OS: Linux
Domoticz version:
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by wxop » Monday 03 March 2014 16:05

This should work fine without any speed issues. BTW If you're not really familiar with NGINX, i suggest you to install it with Apache, which is the "supported way" for installing PMD.
Whitout hundred of client at the same time, you wont notice any speed difference between Apache vs Nginx. And if memory is an issue (which I really doubt), you could simply tweak the Apache config to reduce the number of servers started.

a+
Developer of phpMyDomo, a Web Interface for Domoticz
-----------------------------------------------------------------------

vincent13
Posts: 50
Joined: Friday 14 February 2014 14:12
Target OS: Raspberry Pi
Domoticz version:
Location: marseille
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by vincent13 » Monday 03 March 2014 16:39

thanks, but what's BTW ?

and , if i want save the PMD's config , what are the main file i must save ? (excuse my poor english )
------------------------------------------
1x Raspberry - Domoticz - PhpMyDomo - ISS-Domo - ImperiHome (Lite)
1x RFXTRX USB 433
4x Chacon 54755
3x prises chacon
1x THN132N
2x TX17
3x TX3
------------------------------------------

gertjuhh

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by gertjuhh » Monday 03 March 2014 17:17

vincent13 wrote:thanks, but what's BTW ?
By The Way

User avatar
wxop
Posts: 90
Joined: Sunday 24 November 2013 20:13
Target OS: Linux
Domoticz version:
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by wxop » Monday 03 March 2014 19:57

vincent13 wrote: if i want save the PMD's config , what are the main file i must save ? (excuse my poor english )
PMD/inc/conf is the directory that contains all the config files

et ya pas de probleme pour ton anglais :D
Developer of phpMyDomo, a Web Interface for Domoticz
-----------------------------------------------------------------------

vincent13
Posts: 50
Joined: Friday 14 February 2014 14:12
Target OS: Raspberry Pi
Domoticz version:
Location: marseille
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by vincent13 » Monday 03 March 2014 21:05

thank you WXOP, i came to install phpmydomo on the sd card of domoticz with apache.
But in my browser , i 've always the same message: 403 forbidden

this is th directory /var/www:

drwxr-xr-x 4 root root 4096 Mar 3 18:53 .
drwxr-xr-x 12 root root 4096 Mar 3 18:30 ..
-rw-r--r-- 1 pi pi 57 Feb 8 20:02 _boot.php
-rw-r--r-- 1 pi pi 69 Feb 8 20:02 controller.php
-rw-r--r-- 1 pi pi 377 Feb 8 20:02 .htaccess
drwxr-xr-x 14 pi pi 4096 Mar 3 18:27 inc
-rw-r--r-- 1 root root 177 Mar 3 18:31 index.html
-rw-r--r-- 1 pi pi 430 Feb 8 20:02 index.php
drwxr-xr-x 5 pi pi 4096 Feb 8 20:02 static


And now this is the .htaccess file
root@domoticzpi:/var/www# more .htaccess

#####################################################
# BEGIN Controller
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)controller\.php$ - [L]
RewriteRule ^(.*)static/ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . controller.php [L]
</IfModule>

# END Controller
#####################################################

somebody can help me ?
------------------------------------------
1x Raspberry - Domoticz - PhpMyDomo - ISS-Domo - ImperiHome (Lite)
1x RFXTRX USB 433
4x Chacon 54755
3x prises chacon
1x THN132N
2x TX17
3x TX3
------------------------------------------

vincent13
Posts: 50
Joined: Friday 14 February 2014 14:12
Target OS: Raspberry Pi
Domoticz version:
Location: marseille
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by vincent13 » Monday 03 March 2014 21:27

i 've testing a modification of the file defautl:
<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
# the above line is good but the bellow line is not good !!!!!!!!!!!!!!!!!
# Options Indexes
AllowOverride All
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>


are you agree with my file ???
------------------------------------------
1x Raspberry - Domoticz - PhpMyDomo - ISS-Domo - ImperiHome (Lite)
1x RFXTRX USB 433
4x Chacon 54755
3x prises chacon
1x THN132N
2x TX17
3x TX3
------------------------------------------

User avatar
wxop
Posts: 90
Joined: Sunday 24 November 2013 20:13
Target OS: Linux
Domoticz version:
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by wxop » Monday 03 March 2014 22:40

I cant fully understand what you means...

remet le en francais 8-)
Si tu suis bien scrupulesement le manuel de PMD ca devrait marcher sans probleme!
Si tu as un message d'erreur 403, etudie bien le /var/log/apache2/error.log qui va t'indiquer plus précisement le probleme que tu rencontre.
NB; si tu change quelque chose dans la config d'apache, il faut le redemarer pour que ca soit actif : apache2ctl restart
A ce stade, c'est pas tres clair pour moi: poste plus précisément ce que tu fait (en francais) et je pourrais peut etre t'aider.
a+
Developer of phpMyDomo, a Web Interface for Domoticz
-----------------------------------------------------------------------

vincent13
Posts: 50
Joined: Friday 14 February 2014 14:12
Target OS: Raspberry Pi
Domoticz version:
Location: marseille
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by vincent13 » Tuesday 04 March 2014 0:11

pour supprimer mon erreur 403 , je viens de modifier le fichier default d'apache dont le contenu d'origine est ci dessous:
--------------------------------------------
<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>

Options Indexes

AllowOverride All
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

----------------------------------------

justement après avoir regardé le fichier error.log d'apache dans lequel on peut voir des erreurs de " FollowSymLinks "ci dessous:
---------------------------------------
[Mon Mar 03 20:13:50 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u8 configured -- resuming normal operat
ions
[Mon Mar 03 20:19:50 2014] [error] [client 192.168.0.3] Options FollowSymLinks or SymLinksIfOwnerMatch is off which
implies that RewriteRule directive is forbidden: /var/www/
[Mon Mar 03 20:19:51 2014] [error] [client 192.168.0.3] Options FollowSymLinks or SymLinksIfOwnerMatch is off which
implies that RewriteRule directive is forbidden: /var/www/favicon.ico
[Mon Mar 03 20:19:53 2014] [error] [client 192.168.0.3] Options FollowSymLinks or SymLinksIfOwnerMatch is off which
implies that RewriteRule directive is forbidden: /var/www/favicon.ico
------------------------------------

j'ai changé la ligne "options" du fichier "default" par ceci:

Options Indexes FollowSymLinks MultiViews


et depuis je peux me connecter à PMD, est ce que tu trouves cela normal ,au vue des indications dans les docs d'installation ????
------------------------------------------
1x Raspberry - Domoticz - PhpMyDomo - ISS-Domo - ImperiHome (Lite)
1x RFXTRX USB 433
4x Chacon 54755
3x prises chacon
1x THN132N
2x TX17
3x TX3
------------------------------------------

User avatar
wxop
Posts: 90
Joined: Sunday 24 November 2013 20:13
Target OS: Linux
Domoticz version:
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by wxop » Tuesday 04 March 2014 11:32

C'est tout a fait normal qu'il faille mettre FollowSymLinks. Pour la doc, je me suis basé sur une install de base debian qui a DEJA le FollowSymLinks, mais qui par contre a le AllowOverride à None. Sinon je pense que le "MultiViews" n'est pas necessaire
Comme quoi la conf apache par defaut de la Rasbian, n'est pas identique a la conf par defaut de la Debian...

Grace a toi, Je vais mieux le preciser dans la doc. ;-)
Developer of phpMyDomo, a Web Interface for Domoticz
-----------------------------------------------------------------------

vincent13
Posts: 50
Joined: Friday 14 February 2014 14:12
Target OS: Raspberry Pi
Domoticz version:
Location: marseille
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by vincent13 » Tuesday 04 March 2014 12:10

In english:
"options" without "multiviews" is well.
For information, my distribution is a package on SDcard image with raspbian and domoticz included.

If i want to access of my PMD from internete , there is no security (login/password or anything else), can you predict this option ?

thanks

En français:

C'est mieux en français non ??
Sinon je viens en effet de supprimer le "multiviews" et tout fonctionne nickel aussi .
Pour information mon installation provient d'une image de carte sd avec domoticz intégré ;)

Par contre as-tu déjà intégrer une option pour sécuriser l'accès à PMD car j'ai configuré ma freebox pour avoir un accès externe et du coup n'importe qui peut faire n'importe quoi avec mon PMD (comme dirait Rémi Gaillard)


bon dev
Last edited by vincent13 on Tuesday 04 March 2014 13:30, edited 1 time in total.
------------------------------------------
1x Raspberry - Domoticz - PhpMyDomo - ISS-Domo - ImperiHome (Lite)
1x RFXTRX USB 433
4x Chacon 54755
3x prises chacon
1x THN132N
2x TX17
3x TX3
------------------------------------------

User avatar
mbliek
Posts: 826
Joined: Friday 12 July 2013 14:08
Target OS: Raspberry Pi
Domoticz version: beta
Location: the Netherlands
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by mbliek » Tuesday 04 March 2014 13:21

English please.
So everyone can use this information.

Or continue by PM.

User avatar
wxop
Posts: 90
Joined: Sunday 24 November 2013 20:13
Target OS: Linux
Domoticz version:
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by wxop » Tuesday 04 March 2014 20:46

mbliek wrote:English please.
So everyone can use this information.

Or continue by PM.
You're perfectly right :?

To resume : we've found that there is a different Apache Default config for the Pi compared to a default Debian install. So i've updated the Installation Documentation to reflect this. (this will be online in a fews days, when I'll update the PMD version)
Developer of phpMyDomo, a Web Interface for Domoticz
-----------------------------------------------------------------------

User avatar
wxop
Posts: 90
Joined: Sunday 24 November 2013 20:13
Target OS: Linux
Domoticz version:
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by wxop » Tuesday 04 March 2014 21:00

vincent13 wrote: Par contre as-tu déjà intégrer une option pour sécuriser l'accès à PMD car j'ai configuré ma freebox pour avoir un accès externe...
Question is about : securing the PMD access, especially when the PMD site is forwarded to the Internet public IP.

If you tweak the Apache configuration for PMD, it is easy to add an Authentication scheme for the PMD's Virtual Host, at the Apache conf level:
http://httpd.apache.org/docs/2.2/howto/auth.html

I might add this at the .htaccess level of PMD, but only if I find a transparent way to add this to the default install, without adding complexness for a "newbie" user. (PullRequests are welcome!)

Best Regards
Developer of phpMyDomo, a Web Interface for Domoticz
-----------------------------------------------------------------------

vincent13
Posts: 50
Joined: Friday 14 February 2014 14:12
Target OS: Raspberry Pi
Domoticz version:
Location: marseille
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by vincent13 » Tuesday 04 March 2014 21:36

thanks ;)
------------------------------------------
1x Raspberry - Domoticz - PhpMyDomo - ISS-Domo - ImperiHome (Lite)
1x RFXTRX USB 433
4x Chacon 54755
3x prises chacon
1x THN132N
2x TX17
3x TX3
------------------------------------------

User avatar
BigDog
Posts: 300
Joined: Tuesday 17 September 2013 13:59
Target OS: Raspberry Pi
Domoticz version: V3.9269
Location: The Netherlands
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by BigDog » Friday 21 March 2014 11:07

i have it running but the Doorsensors are displaying as unknown device with a ? in front of it
is there anyting i or the dev. can do?

Greetz Bob
1X Raspberry1B : Domoticz V3.8153 [Linux ver. 4.14.34+ #1110]
1X RFXtrx433 USB Firmware:183
1X Mysensors Gateway 1.5 -3 Mysensors
3X Cresta Thermo-hygro sensor
6X ESP8266: easy firmware(Testing)
1X 8 Channel Relay Web Control Ethernet interface(Testing)

User avatar
BigDog
Posts: 300
Joined: Tuesday 17 September 2013 13:59
Target OS: Raspberry Pi
Domoticz version: V3.9269
Location: The Netherlands
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by BigDog » Friday 21 March 2014 13:18

the icons @ the top and foot menu arent showing :| dont know why becose all the other images are ok :|

greetz Bob

--------------EDITED-----------------

have found a BUG :) i have changed the directory that it isnt in the root ---> domo
but the images stil use the root to find the images(fonts)
have copyed the fonts to to right place but it stil need to be changed by the dev :)


Greetz Bob
1X Raspberry1B : Domoticz V3.8153 [Linux ver. 4.14.34+ #1110]
1X RFXtrx433 USB Firmware:183
1X Mysensors Gateway 1.5 -3 Mysensors
3X Cresta Thermo-hygro sensor
6X ESP8266: easy firmware(Testing)
1X 8 Channel Relay Web Control Ethernet interface(Testing)

User avatar
BigDog
Posts: 300
Joined: Tuesday 17 September 2013 13:59
Target OS: Raspberry Pi
Domoticz version: V3.9269
Location: The Netherlands
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by BigDog » Friday 21 March 2014 14:45

hi

i was wondering if the domo website can only be accesed in the local area and not the internet
becose there isnt a pass on it and if they know the adres they could control the switches :)

Greetz Bob
1X Raspberry1B : Domoticz V3.8153 [Linux ver. 4.14.34+ #1110]
1X RFXtrx433 USB Firmware:183
1X Mysensors Gateway 1.5 -3 Mysensors
3X Cresta Thermo-hygro sensor
6X ESP8266: easy firmware(Testing)
1X 8 Channel Relay Web Control Ethernet interface(Testing)

User avatar
wxop
Posts: 90
Joined: Sunday 24 November 2013 20:13
Target OS: Linux
Domoticz version:
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by wxop » Sunday 30 March 2014 20:43

BigDog wrote:hi

i was wondering if the domo website can only be accesed in the local area and not the internet
becose there isnt a pass on it and if they know the adres they could control the switches :)

Greetz Bob
As soon as your PMD install is not on your Internet router, you can't access it from the internet, except if you manually setup a "forward" on your router.
In this case is it not password protecetd, but you can either redirected a hard to guess port ie (internet_ip:65327-> PMD_ip:80), or (way bteter) modify the apache virtual host configuration to setup a secure authentication:
http://httpd.apache.org/docs/2.2/howto/auth.html

HTH
Developer of phpMyDomo, a Web Interface for Domoticz
-----------------------------------------------------------------------

shardik
Posts: 55
Joined: Tuesday 01 April 2014 10:32
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by shardik » Thursday 03 April 2014 13:43

I'm trying to get the PMD interface to work on my linux machine, but it's not working.
I used to get a forbidden message, i fixed that but now i only get a white empty screen....

my .htaccess file:

Code: Select all

#####################################################
# BEGIN Controller
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)controller\.php$ - [L]
RewriteRule ^(.*)static/ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . controller.php [L]
</IfModule>
# END Controller
#####################################################
the needed part from /etc/apache2/apache2.conf

Code: Select all

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
Quick edit: Not running on a Pi but on ubuntu server.

Quick edit2: mod_rewrite is enabled ->

Code: Select all

Loaded Modules:
core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_user mod_autoindex mod_deflate mod_dir mod_env mod_filter mod_mime prefork mod_negotiation mod_php5 mod_rewrite mod_setenvif mod_status

User avatar
wxop
Posts: 90
Joined: Sunday 24 November 2013 20:13
Target OS: Linux
Domoticz version:
Contact:

Re: phpMyDomo: a convenient Domoticz Web Interface

Post by wxop » Thursday 03 April 2014 16:39

please check the apache error_log, should be in /var/log/apache2 or something like that.

If you can figure what's happening, post the corresponding log.

HTH
Developer of phpMyDomo, a Web Interface for Domoticz
-----------------------------------------------------------------------

Post Reply

Who is online

Users browsing this forum: spider2 and 1 guest