Page 3 of 10

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Saturday 14 December 2013 23:46
by alfred_j_kwak
PhpMyDomo?

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Sunday 15 December 2013 1:15
by wxop
capman wrote: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 ;) .
difficult to answer, but i guess that you dont have a connections to the API server.

Please check that you have set "$conf['urls']['server_domogik']" in config.php to the right server

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Sunday 15 December 2013 1:18
by wxop
jkimmel wrote:
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.
PMD=PhpMyDomo :roll:

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Sunday 15 December 2013 1:26
by wxop
Please Help me to focus my time on enhancing PMD!!!!!

1) Sucessfull users : Please do answer to support questions. While i'm answering here, I dont' further enhance PMD

2) People missing features (according to the poll results) : Please report what you miss? what you'd expect? what you want?
Else it will never happen :mrgreen:

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Sunday 15 December 2013 20:53
by capman
wxop wrote:Please Help me to focus my time on enhancing PMD!!!!!

1) Sucessfull users : Please do answer to support questions. While i'm answering here, I dont' further enhance PMD

2) People missing features (according to the poll results) : Please report what you miss? what you'd expect? what you want?
Else it will never happen :mrgreen:
Okee , what a want :D . It's nice if a could see weather forecast. A warning when its misty or icy outside with a certain icon.
Maybe a tab for internet radio or other multimedia stuff. ;) And tabs for changing rooms , so it's not all on one screen. example, a tab for living room, bathroom,
kitchen,... The information on the right is nice and should be visible for all times , but with a weather forecast.

You ask what a want, so a answer you what a want. :mrgreen: Hope its not to match ;)

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Sunday 15 December 2013 22:12
by wxop
What I displays, is what the Server API provides. If It doesnt provide a Weather forecast, I cant display it. Same for Radios and multimedias.
But maybe i missed something in Domoticz?

About making a tabs, per room/groups, I'ts usefull only if you have dozen of commands and sensors per room, or you have dozens of rooms (ie you're living in a castle). So I don't think Its really usefull for the average user. But if you like to do it, Its really easy to clone the home php page (+ its template) , and add it to the config menu_head to build as many room page as you want. (Your head menu would certainly not fit in a average tablet width). The app concept is build with this in mind, but obviously you will have to make your custom pages yourself.

In the future,we might implement features not provided by servers API, but this involve a larger team of developper.... 8-)

Thank you very much for your feedback!

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Tuesday 17 December 2013 14:37
by andriej
I'm currently at work, but I already have installing PMD on my today's ToDo list! Defo! ;-)

I have a simple question - if I want to help you translate it to polish, do I rather have to translate Domoticz or your interface?
(Sorry I couldn't look at source, but I'm at work and don't have access for such files atm).

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Tuesday 17 December 2013 14:49
by wxop
To translate you just have to build a php file based on the current english file in /PMD/www/inc/lang/en/global.php
Making a GitHub PullRequest would be the prefered way, else post in on a sharing site, or post the content here (with CODE tags around it)

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Tuesday 17 December 2013 21:05
by hansrune
Assuming nginx already being installed, here are my steps to set up phpMyDomo as virtual server for the phpMyDomo files:

First, set up php (there are many ways) with this change for php.ini:

Code: Select all

  $ sudo apt-get install php5-fpm php5 php5-curl
  $ sudo cp /etc/php5/fpm/php.ini /tmp/php.ini
  $ sudo vi /tmp/php.ini
  $ diff /etc/php5/fpm/php.ini /tmp/php.ini
  765c765
  < ;cgi.fix_pathinfo=1
  ---
  > cgi.fix_pathinfo=0
  $ sudo cp /tmp/php.ini /etc/php5/fpm/php.ini
  $ sudo service php5-fpm restart
  [ ok ] Restarting PHP5 FastCGI Process Manager: php5-fpm.
Then set up the virtual server with PHP support and the needed URL rewrite rules for phpMyDomo by downloading this nginx site configuration file. For example:

Code: Select all

  $ cd /tmp
  $ curl http://hansrune.net/download/nginx/sites-available/phpMyDomo > /tmp/phpMyDomo 
  $ sudo cp  /tmp/phpMyDomo /etc/nginx/sites-available/phpMyDomo
  $ cd /etc/nginx/sites-enabled
  $ ln -s ../sites-available/phpMyDomo .
  $ sudo service nginx stop
  $ sudo service nginx start
The port number (8090) and server root directory (/var/www/html) can of course be changed as you please in /etc/nginx/sites-available/phpMyDomo

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Wednesday 18 December 2013 10:34
by wxop
Excellent! I've added it here:
https://github.com/phpMyDomo/phpMyDomo/ ... install.md

Can you confirm, it precisely follows your guidelines.

Thank you

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Wednesday 18 December 2013 11:03
by wxop
BTW a new version is coming soon. :) ChangeLog at:
https://github.com/phpMyDomo/phpMyDomo/ ... angelog.md

I'm just waiting some feedback on the dimmer at:
https://github.com/phpMyDomo/phpMyDomo/issues/1
and on Blinds at
https://github.com/phpMyDomo/phpMyDomo/issues/13

If you have a github account, and if you own Dimmers or Blinds, Please post your feedback at GitHub...

BTW adding a star on Gitub (button at top right) might help to promote PMD and thus gathering more people to help to develop. I definitively need external help, to improve PMD faster... :roll:

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Wednesday 18 December 2013 20:41
by hansrune
wxop: Confirmed. The transcript is good . Tested on an untouched setup that never had php before. I needed to for that for my other domo anyway :-)

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Wednesday 18 December 2013 20:42
by remb0
the security panel is not available from domoticz?

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Thursday 19 December 2013 0:17
by capman
How to update , please?

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Thursday 19 December 2013 10:50
by remb0
go to the directory with a SSH client.
then typ: git pull or download the latest files from github en overwrite them manual.

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Thursday 19 December 2013 12:54
by wxop
remb0 wrote:the security panel is not available from domoticz?
No: nothing to test here, and it seems already well done. But I keep your idea to have custom Links, so that you will be able to make a link to the security panel.

@capman remb0 answer is exact!
And you will see "manual update" instruction, when a new version will be released... In a few minutes :mrgreen:

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Thursday 19 December 2013 14:22
by wxop
Version 0.134 just released !

- new: (Experimental) Dimmers button implementation (Tested on openHab, Domoticz)
- new: Dutch translation (thanks to Pepijn Goossens)
- new: German translation (thanks to Juergen Kimmel)
- new: Now default to openHab Api, which has a convenient ONLINE api demo
- new: Domoticz now supports type "Temp + Humidity", "Motion Sensor", "YouLess Meter", "P1 Smart Meter"
- new: CSS enhancements
- new: Additionnal Metal skin
- new: Nginx Install HowTo (Thanks to Hans Rune)
- new: Directly check update NOW from the home page , with ?update in the url (/home?update)
- fix: Devices, Command and Sensors Page sorted by Type & Name
- fix: better type icons
- fix: 'Cache NotWritable' Error Help text
- dev: ApiFetchCustom for specific Fetch cases
- dev: Draft Pilight API (absolutely not tested, certainly needs some fixes)
- dev: "current" type renamed to "consum"
- dev: Devices page shows a full Dump when adding ?dump to the url
- dev: Starting to support Blinds type in Domoticz
- dev: move doc folder to www/inc/doc
- dev: move conf/config-sample.php to to conf_sample/config.php
- dev: move changelog.md to www/inc/doc/

Update should be shown soon (when your cache expires), in the footer of each page of PMD. Click the "available" link, and follow instructions.
BTW: If you want to reset the cache (and thus update NOW), just deleted the PMD/www/inc/cache/last_version file and refresh the home page TWICE. The link will then appear.

enjoy! ;)

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Thursday 26 December 2013 20:59
by wxop
I've released a new version (0.141). This version introduces a very cool feature: Actions

Actions (ie Notificationw) allow you to create notifications triggerered by a simple URL get request.
Ie: in Domotic, you can can make a Lua script (Event) that triggers an URL, when something happen (sensor detection, swicth actionnated, etc...)

By using phpMyDomo, you will be able to send:

like in Domoticz, but not limited to one recipient, and with unlimited templates, subjects, contents..
- Emails
- Android or iPhone notifications

but also:
- Growl Notifications (popup window on any Mac, WIndow or Linux workstation)
- XBMC notifications or pausing the movie you're currently watching
- Nabaztag Text To Speech messages
- Standart xPl Messages
- Shell scripts
- HTTP GET requests
....

If you know PHP , You will be able to easily build others custom actions methods, by creating your own action plugin :geek:

Change log:

## Version : 0.141 - Dec 24, 2013
- new : Add (unmerged) actions Email, XBMC, Growl
- new : Action Nabaztag (using OJN)
- new : Action Prowl (IOS devices)
- new : Action NMA (Android devices)

## Version : 0.140 - Dec 23, 2013
- new: Introduces Actions (notifications)
- fix: New Domoticz Types : UV, Radiation, Visibility
- fix: IOS icon
- dev: fix PageError in api clients
- dev: add Demo mode
- fix: auto-truncate long names in blocks
- fix: footer no longer triggers scroll arrows

BTW, I've completely re-made the PMD website, so you can now try an online Demo of PMD.
You will also see the new features (ie PhotoFrame) currently being developed, and not being already released.
http://www.phpmydomo.org

Enjoy! ;)

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Friday 27 December 2013 9:53
by Peter112
can it run in windows7 /server2008 ?

Like install apache http://www.webdevelopersnotes.com/how-d ... dows-7.php
or php and apache http://www.vbforums.com/showthread.php? ... -Windows-7
http://www.apachelounge.com/download/ latest version

wget for windows http://gnuwin32.sourceforge.net/packages/wget.htm

is this posible ? Then i wil try it.

Re: phpMyDomo: a convenient Domoticz Web Interface

Posted: Friday 27 December 2013 11:29
by wxop
Peter112 wrote:can it run in windows7 /server2008 ?
...
is this posible ? Then i wil try it.
If you can install Apache (with ModRewrite) + PHP + Php-curl, it should work, NP!

BTW didn't read your links in details, but there are some easiest solutions on Window, ie installing a simple free application that provides a full configured WAMP (Windows Apache+Mysql+PHP : the Mysql part is not needed but wont hurt)... It should certainly be easiser to install it for testing.

http://en.wikipedia.org/wiki/WAMP_(software_bundle)

Here are some examples (not tested personnally, jsut a quick google on "Apache php mysql windows")

http://www.easyphp.org
http://www.wampserver.com/en/

PS: wget is NOT needed


EDIT: I dont know if these Package allow that, but the only thing that could make it incompatible, is the use of the "/" directory separator, vs "\" on Win.
If the WAMP package can change this in php, no problem. If not It might work as is, but you have to test.