Page 2 of 10

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Wednesday 11 December 2013 22:09
by geho
wxop wrote:implemented in latest develop branch. ;)

be sure to run /utils/reset to clear the cache, or to enable debug.force in the config.php, if you install the develop branch
- temp + hum thermometers are working fine now (on develop branch)
- dimmers are recognized and be switched on and off, now it needs a slider to set a level

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Thursday 12 December 2013 10:54
by remb0
is it possible to make an synology package of this great piece of work?

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Thursday 12 December 2013 11:09
by remb0
I tried to install on a synology 1512:
'www_home' is not defined /www/home

I have git cloned is to:
volume1/web/phpMyDomo
and in config manager I have placed:
vhosts:
phpmydomo phpmydomo.domain 80
and php_basedir:
/volume1/web/phpMyDomo/www/

but it only works when i user:
phpmydomo.domain/www
and then i got the error 'www_home' is not defined /www/home


in my httpd log
[Thu Dec 12 11:04:02 2013] [error] [client 194.151.37.70] File does not exist: /var/services/web/phpMyDomo/devices, referer: http://phpmydomo.domain/www/home
[Thu Dec 12 11:04:08 2013] [error] [client 194.151.37.70] File does not exist: /var/services/web/phpMyDomo/home, referer: http://phpmydomo.domain/www/home
[Thu Dec 12 11:06:19 2013] [error] [client 194.151.37.70] Directory index forbidden by Options directive: /var/services/web/phpMyDomo/

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Thursday 12 December 2013 19:53
by wxop
@remb0, already answered on GitHUB.. BTW please avoid crossposting. GitHub being my favorite place!

@geho can you give me feedback about dimmers. Does it works? (on GitHub please)
BTW a Dutch translation is in the develop branch ;)

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Friday 13 December 2013 0:02
by capman
Dynamic wrote:To be sure, I did a "sudo a2enmod rewrite". Then it says "module rewrite already enabled". So, that's good. But it still didn't work.
Then I copied the .htaccess AGAIN using "sudo cp /home/pi/phpMyDomo-phpMyDomo-60c999f/www/.htaccess /var/www/.htaccess". Then I rebooted Apache and now it's running!

But I need to config it now, because I don't see the devices. But I'll try to find that out.... EDIT: got it running!
Thnx for your help!

I want to help you with creating a Dutch language-file. But in Dutch 'commands' should be 'commando's'. Should I escape the ' like \' ?
Question. What have you do, to see the devices? What changes do you make in the config file? A suppose that the // marks must be deleted before the 2 lines for domoticz?
A have see the home screen in my browser but thats it. When a click on devices or any other button nothing happens. Just empty pages. With sunrise and sunset is no time.
Just the date is visible on the dashboard. Please help a noob. Thanks.

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Friday 13 December 2013 7:17
by wxop
You have to edit the config file, setting domoticz as the API, if not already set, and set the server_domoticz if not on the same machine.

The config file is self explaining, just read it very carefully, and you should succeed .

and yes // are comments that can be removed

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Friday 13 December 2013 20:50
by capman
Finally succeed !!! I had first edit the wrong config file :). It was on var/www/inc/conf and not home/pi/phpmydomo/www/inc/conf.
Now its working and can a go playing in the config file for the right look :) .
Thanks for the nice interface.

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 14 December 2013 0:02
by jkimmel
capman wrote:Finally succeed !!! I had first edit the wrong config file :). It was on var/www/inc/conf and not home/pi/phpmydomo/www/inc/conf.
Now its working and can a go playing in the config file for the right look :) .
Thanks for the nice interface.
I tried to follow install.md and after executing

Code: Select all

mv -f /home/pi/ phpMyDomo-phpMyDomo-f94590f/www/* /var/www/
mv -f /home/pi/ phpMyDomo-phpMyDomo-f94590f/www/.htaccess /var/www/
/home/pi/ phpMyDomo-phpMyDomo-f94590f/www/ must be empty

So where was the wrong config file?

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 14 December 2013 0:04
by jkimmel
Need help at the point

Code: Select all

<Directory /var/www/>	
	Options Indexes
	AllowOverride All
	(other directives)
</Directory>
being this NooB I don't know how to handle this

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 14 December 2013 0:19
by remb0
when I use openhab demo it works fine.
but when i use my domoticz i got this error in domoticz log

Error: Sat Dec 14 00:17:02 2013 UNHANDLED PACKET TYPE: FS20 45
Sat Dec 14 00:17:02 2013 (Domoticz Shared)
Sat Dec 14 00:17:08 2013 (Smart meter) P1 Smart Meter Power (energie)
Sat Dec 14 00:17:18 2013 (Smart meter) P1 Smart Meter Power (energie)
Incoming connection from: 92.109.*.*
Error: Sat Dec 14 00:17:24 2013 UNHANDLED PACKET TYPE: FS20 45

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 14 December 2013 9:06
by wxop
jkimmel wrote:
capman wrote:Finally succeed !!! I had first edit the wrong config file :). It was on var/www/inc/conf and not home/pi/phpmydomo/www/inc/conf.
Now its working and can a go playing in the config file for the right look :) .
Thanks for the nice interface.
I tried to follow install.md and after executing

Code: Select all

mv -f /home/pi/ phpMyDomo-phpMyDomo-f94590f/www/* /var/www/
mv -f /home/pi/ phpMyDomo-phpMyDomo-f94590f/www/.htaccess /var/www/
/home/pi/ phpMyDomo-phpMyDomo-f94590f/www/ must be empty

So where was the wrong config file?
I dont understand the question :geek:

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 14 December 2013 9:08
by wxop
jkimmel wrote:Need help at the point

Code: Select all

<Directory /var/www/>	
	Options Indexes
	AllowOverride All
	(other directives)
</Directory>
being this NooB I don't know how to handle this
Follow install instructions:
il you're on debian, you just have to change one word in the default apache configuration. Its written in the Install document!

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 14 December 2013 9:54
by wxop
remb0 wrote:when I use openhab demo it works fine.
but when i use my domoticz i got this error in domoticz log

Error: Sat Dec 14 00:17:02 2013 UNHANDLED PACKET TYPE: FS20 45
Sat Dec 14 00:17:02 2013 (Domoticz Shared)
Sat Dec 14 00:17:08 2013 (Smart meter) P1 Smart Meter Power (energie)
Sat Dec 14 00:17:18 2013 (Smart meter) P1 Smart Meter Power (energie)
Incoming connection from: 92.109.*.*
Error: Sat Dec 14 00:17:24 2013 UNHANDLED PACKET TYPE: FS20 45
(UNHANDLED..), (Domoticz Shared) , (Smart meter...) lines have nothing to do with PMD.
Incoming connection from: 92.109.*.* might be related if your PMD is not on the same host, and do have a 92.109.*.* ip.

What is the question? does it work?

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 14 December 2013 13:12
by jkimmel
jkimmel wrote:Need help at the point

Code: Select all

<Directory /var/www/>	
	Options Indexes
	AllowOverride All
	(other directives)
</Directory>
being this NooB I don't know how to handle this

Got it Thank you

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 14 December 2013 13:18
by jkimmel
I see "It works" but how to proceed?

Any real life config.php out there? (maybe PM)

Would be helpful for me because I'm not sure how device is set in "$conf['blocks']['sensors'][]="DEVICE_ID_7";"

In the Domoticz device list are devices with same ID and a additional unit number, how should I change "DEVICE_ID" using ID and unit number?

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 14 December 2013 17:41
by wxop
use the long id printed in the device list, ie command_switch_7

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 14 December 2013 17:53
by jkimmel
wxop wrote:use the long id printed in the device list, ie command_switch_7
Is there a different devicelist somewhere here I don't find something similar to "command_switch_7"
Screenshot (15)_1.png
Screenshot (15)_1.png (65.27 KiB) Viewed 4913 times

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 14 December 2013 20:29
by wxop
look in the device page of PMD

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 14 December 2013 22:44
by capman
Problem:
When a set debug force to 1 (enabled) , a get this error message on top of my screen:
'Warning: Invalid argument supplied for foreach() in /var/www/inc/lib/pmd_root_api_client.php on line 265'

So when a go to line 265 , a see this 'foreach($rows as $row){'. Also did a do a update and a reset , but still no dimmers and
no sensors with temp and hym on thesame device. What should a do to fix this issue.

Still a great UI , thanks ;) .

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 14 December 2013 23:07
by jkimmel
wxop wrote:look in the device page of PMD
I'm really sorry. But I don't have the slightest idea what PMD could be.

Edit: By chance I opened Ip-address/index.php and my devices were visible. Don't know yet how to edit if already possible.