Page 4 of 10

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Sunday 29 December 2013 19:13
by Peter112
today i tried phpmydomo to run on a preconfigred http://www.uniformserver.com/

i installed this on my harddrive (can also run form usb stick), downloaded the PHP module

i test the standard webserver on uniformserver = ok
replaced the www folder files with the phpdomo files, i then end with an error 403 forbidden page

i have deleted the apache security, in the log there is an issue wich i do not understand (no apache or iss knowledge), but i read in the log that something is forbidden

Code: Select all

Sun Dec 29 19:08:09.250101 2013] [mpm_winnt:notice] [pid 6076:tid 140] AH00418: Parent: Created child process 8476
[Sun Dec 29 19:08:30.170298 2013] [mpm_winnt:notice] [pid 8476:tid 556] AH00354: Child: Starting 150 worker threads.
[Sun Dec 29 19:08:30.280304 2013] [rewrite:error] [pid 8476:tid 1744] [client ::1:28863] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : P:/domoticz/UNIFORMSERVER/www/controller.php
[Sun Dec 29 19:08:30.280304 2013] [rewrite:error] [pid 8476:tid 1760] [client ::1:28861] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : P:/domoticz/UNIFORMSERVER/www/index.php
[Sun Dec 29 19:09:26.211503 2013] [rewrite:error] [pid 8476:tid 1760] [client ::1:28915] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : P:/domoticz/UNIFORMSERVER/www/server-info
[Sun Dec 29 19:09:36.490091 2013] [rewrite:error] [pid 8476:tid 1764] [client ::1:28918] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : P:/domoticz/UNIFORMSERVER/www/server-status
[Sun Dec 29 19:11:22.932179 2013] [core:warn] [pid 8056:tid 140] AH00098: pid file P:/domoticz/UNIFORMSERVER/core/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Dec 29 19:11:29.372548 2013] [mpm_winnt:notice] [pid 8056:tid 140] AH00455: Apache/2.4.7 (Win32) PHP/5.4.23 configured -- resuming normal operations
[Sun Dec 29 19:11:29.378548 2013] [mpm_winnt:notice] [pid 8056:tid 140] AH00456: Apache Lounge VC10 Server built: Nov 26 2013 15:46:56
[Sun Dec 29 19:11:29.379548 2013] [core:notice] [pid 8056:tid 140] AH00094: Command line: 'P:\\domoticz\\UNIFORMSERVER\\core\\apache2\\bin\\httpd_z.exe -d P:/domoticz/UNIFORMSERVER/core/apache2 -f P:\\domoticz\\UNIFORMSERVER\\core\\apache2\\conf\\httpd.conf -d P:\\domoticz\\UNIFORMSERVER\\core\\apache2'
[Sun Dec 29 19:11:29.611561 2013] [mpm_winnt:notice] [pid 8056:tid 140] AH00418: Parent: Created child process 5196

played arround
installed pearl
added 2 lines in the .htaccess in the www folder

Code: Select all

#####################################################
# BEGIN Controller
Options Indexes FollowSymLinks   >>>>>>>>>>>> added this line
Options +FollowSymLinks  >>>>>>>>>>>>>>>>>>> added this line
<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
#####################################################
now it sometimes displays the controller.php partley, after this the uniform application crashes
(the 403 pages are gone)
i also try to run it as vHost but no luck

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Thursday 02 January 2014 18:38
by andriej
Is it possible to set 24h time format instead of am/pm?

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Friday 03 January 2014 12:46
by capman
Why get a get this warning (see screenshot) when a set debug to 1 in the config file ?

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 04 January 2014 17:30
by wxop
andriej wrote:Is it possible to set 24h time format instead of am/pm?
It depends on the language you're currently using...
If set to english (en) , it uses the 12h format (as standard in the US)
I have just pushed a UK language file (which use the 24h format) to the "develop" branch. It will be included in the next release

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 04 January 2014 17:34
by wxop
capman wrote:Why get a get this warning (see screenshot) when a set debug to 1 in the config file ?
It seems weird. You also seems to have a font display problem (according to your sceenshot)... Compare with the online demo at
http://www.phpmydomo.org/demo/www/

You might try to clear the cache by going to
http://PMD_IP/utils/reset

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 04 January 2014 17:39
by wxop
v 0.142 released:
- new : PhotoFrame display your photo library (Directory based or from iPhoto)
- fix : Remove (online) Google Font dependencies
- new : Cameras FullScreen Mode
- fix : Cameras list scaled
- fix : Domotiga v1.0.013 compatibility
- fix : device sorted according to the user language

PhotoFrame is a cool features to let your PMD dedicated tablet controller to display a nice photoframe like diaporama, while it is idle.
Wife like it! ;-)

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Wednesday 15 January 2014 14:31
by vincenttor
Thanks for sharing, looks very nice as the standard page does as well.

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Sunday 19 January 2014 18:13
by jaytee
I installed it today and liked it :D
A few features/changes I would like to see:

- Automatically enter photoframe mode after idle for x minutes
- Fullscreen mode (to get "app-feeling") on iPhone without the address field on top if launched from an icon on springboard. For example Domoticz web interface has this feature.
- If sensors are added to a GROUP the icons and values are displayed in the header frame of the group, without the name of the sensor. If you have multiple sensors you cannot see which sensor it is. Any work-arounds for this?
- Sub-groups within a GROUP.
- Landscape mode on mobile devices.

I also found this issue:
- Scandinavian characters (å,ä,ö) are not displayed in GROUP_NAME, it replaces the character with a "diamond with a question-mark" inside.

Regards
/jaytee

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Monday 03 February 2014 15:44
by gysmo38
I tried today.

It look good. I like the page with cameras.

So i made some changes.

I would like to use the snapshot.cgi to get a jpg file and show it. The advantage is that work, if you use the website outside your network.

It work, the only thing i need is to autorefresh the page to get new picture.

How can I do that?

Thank you.

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Monday 03 February 2014 20:19
by gysmo38
Forget my previous post i found another way to do it.

I will make more test and share it.

It allow you to watch live view evenif you are outside your local network.

It work like "a proxy" for the webcam.

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 08 February 2014 17:43
by wxop
jaytee wrote: - Automatically enter photoframe mode after idle for x minutes
Nice idea: done in develop branch !
- Fullscreen mode (to get "app-feeling") on iPhone without the address field on top if launched from an icon on springboard. For example Domoticz web interface has this feature.
Done in develop branch!
- If sensors are added to a GROUP the icons and values are displayed in the header frame of the group, without the name of the sensor. If you have multiple sensors you cannot see which sensor it is. Any work-arounds for this?
Done in develop branch!
- Sub-groups within a GROUP.
What you mean exactly?
- Landscape mode on mobile devices.
???? Should already automatically switch view from portrait to landscape mode depending on mobile orientation. no?
I also found this issue:
- Scandinavian characters (å,ä,ö) are not displayed in GROUP_NAME, it replaces the character with a "diamond with a question-mark" inside.
Should work! Certainly an issue when saving the config file on your side: If the config file is correctly UTF8 encoded/saved, it should display properly. You certainly have converted the file to ASCII or ISO8859-1 while saving the file with a dumb text editor.

You can checkout the develop branch on GitHub to already test all your suggestions, or wait until I'll release the next Master version.
;)

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Sunday 09 February 2014 0:51
by jaytee
Nice! Hopefully i can try it tomorrow.

- Landscape mode... It behaves differently on different mobile devices. The menu bar sometimes shows sometimes not. The menu bar interferes the top part of the page contents.

My plan is to have a dedicated tablet in landscape mode mounted on the wall as a primary controller. In this case the landscape mode needs to be at least as good looking as the portrait mode.

- Submenus... I mean, on Dashboard I create a group called 'Living room' inside the group I want to have groups 'Lighting' 'Scenes' 'Etc...'.

- Will check the encoding of the config file.

/jaytee

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Sunday 09 February 2014 12:57
by wxop
Version 0.143 just released :

Code: Select all

new : PhotoFrame ScreenSaver mode : automatically switch to photoframe when idle
new : Links Block : Custom links to various website
new : Hide browser address bar on mobiles
new : Show/hide sensors names in groups titles
new : UK language (same as EN language, but using the 24h format)
fix : Show missing sensors units in groups titles
fix : Fix Domotiga DIM commands
8-)

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Tuesday 11 February 2014 21:00
by sstolk
Great interface! I'm going to use it on my wall-mounted ipad but there are some items not working like:
Door sensors and blinds inverted
Keep up the good work!

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Tuesday 11 February 2014 21:09
by wxop
Hi @sstolk
Thank you for the kind words !

As I can't own all devices (and so understand how to fix it), please do describe as much as you can what don't work, and how it should be fixed.

best regards

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Tuesday 11 February 2014 21:39
by sstolk
The part for the blinds_inverse is the same as for the blinds.
It's just the difference between open and close and vice versa.

the part for the door sensors... What kind of information do you need? Domoticz namings or states that domoticz gives it?

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Tuesday 11 February 2014 21:43
by sstolk
Regarding the blinds...
1.PNG
1.PNG (49.11 KiB) Viewed 3892 times
Be aware that there are 2 buttons in Domoticz for blinds. One for Open and one for Close. This is so you can stop the sunscreen/blinds halfway.
Otherwise you cannot stop the blinds and it will always collapse / open fully.

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Tuesday 11 February 2014 22:27
by sstolk
The following code added in api_client.php in the Domoticz folder

Code: Select all

				elseif($raw['SwitchType']=='Blinds Inverted'){
					$d['class']	='command';
					$d['type']	='blinds';
					$d['value']	=$raw['LevelInt'];
				}
Resulted in a working button but not the problem I described above regarding to stop the blinds on your own preference.

For the doors I added this code to the same file resulting in working sensors but no icons in the GUI

Code: Select all

				elseif($raw['SwitchType']=='Contact'){
					$d['class']	="sensor";
					$d['type']	="door";
				}

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Wednesday 12 February 2014 11:21
by wxop
Thank you @sstolk for the report. As I've no blinds to test, your feedback really helps me !

Would you please explain me how you stop the blind, ie Halfway?

In Domoticz there are 2 buttons: OPEN and CLOSE

1) Let's say that blinds are currently fully closed: How do you open it halfway?
- press OPEN, then OPEN again or
- press OPEN then CLOSE or
- ???

2) Same question, when blinds are currently fully Open?

3) Also what is the current State reported by the Domoticz API when the Blinds are halfway open? "Open"? "Closed"? "XXX" ?

4) How long in seconds does it take to fully Open, or fully Close your blinds ? Max time?


thank you

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Wednesday 12 February 2014 11:50
by sstolk
The blinds stop with the same command.
So press OPEN, then OPEN again will stop the blinds
The state in Domoticz is then the OPEN state. He will not measure if the blinds are closed because there is no feedback from the receiver to the RFXCom 433