Page 5 of 32

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Monday 02 January 2017 21:18
by squandor
We've just made an update to the domoboard and pushed it to the master version.

We added an "push on" and "push off" feature for doors or light scenes which only need an activate feature.
and also added some examples to the example.conf like an camera url and the new Title feature which are implemented on the following templates:
- Switches
- Map
- Camera

you can pull the new version by standing in the root folder and run the code:

Code: Select all

git pull

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Monday 02 January 2017 21:27
by blackdog65
squandor wrote:We've just made an update to the domoboard and pushed it to the master version.

We added an "push on" and "push off" feature for doors or light scenes which only need an activate feature.
and also added some examples to the example.conf like an camera url and the new Title feature which are implemented on the following templates:
- Switches
- Map
- Camera

you can pull the new version by standing in the root folder and run the code:

Code: Select all

git pull
Yay! There's a pile of features I've been wanting... time for testing :D

Thanks guys!

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Monday 02 January 2017 21:37
by squandor
blackdog65 wrote: Yay! There's a pile of features I've been wanting... time for testing :D

Thanks guys!
Haha you guys brought some great idea's so when we have time we will try to make them real :)

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Monday 02 January 2017 21:40
by felix63
Still trying out how to set things up. Title feature works like a charm.

Still got some trouble with traffic.

Code: Select all

192.168.178.29 - - [02/Jan/2017 21:38:31] "GET /verkeer HTTP/1.1" 200 -
[2017-01-02 21:38:32,012] ERROR in app: Exception on /api [POST]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python2.7/dist-packages/Flask_Auth-0.85-py2.7.egg/flaskext/auth/auth.py", line 186, in decorator
    return func(*args, **kwargs)
  File "/home/pi/domoboard/modules/api.py", line 86, in gateway
    result = call(request.args)
  File "/home/pi/domoboard/plugins/anwb.py", line 162, in getData
    start = config['general_settings']['anwb']['startPoint']
KeyError: 'anwb'
192.168.178.29 - - [02/Jan/2017 21:38:32] "POST /api?custom=anwb HTTP/1.1" 500 -

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Monday 02 January 2017 21:42
by squandor
hmm how did you setup you're config?

did you have the [[anwb]] section beneath [[general_settings]] ?

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Monday 02 January 2017 21:47
by wez3
felix63 wrote:Still trying out how to set things up. Title feature works like a charm.

Still got some trouble with traffic.

Code: Select all

192.168.178.29 - - [02/Jan/2017 21:38:31] "GET /verkeer HTTP/1.1" 200 -
[2017-01-02 21:38:32,012] ERROR in app: Exception on /api [POST]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python2.7/dist-packages/Flask_Auth-0.85-py2.7.egg/flaskext/auth/auth.py", line 186, in decorator
    return func(*args, **kwargs)
  File "/home/pi/domoboard/modules/api.py", line 86, in gateway
    result = call(request.args)
  File "/home/pi/domoboard/plugins/anwb.py", line 162, in getData
    start = config['general_settings']['anwb']['startPoint']
KeyError: 'anwb'
192.168.178.29 - - [02/Jan/2017 21:38:32] "POST /api?custom=anwb HTTP/1.1" 500 -
Here are the instructions to get it working:
Under the general_settings a subsection [[anwb]] can be created with a "startPoint" and "endPoint" setting (both addresses). Now you can add [[anwb]] and [[verkeer]] under the page you prefer. Also specify it at the display_components.

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Monday 02 January 2017 21:50
by felix63
Great! That worked a charme!

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Monday 02 January 2017 21:59
by blackdog65
I'm not getting my push button right. My code is

Code: Select all

  [[switches]]
     D-Gong = 56, pushon
But all that shows is "D-Gong" and no button...
How does one summon the children to meals without a dinner gong??? :lol: :lol: :lol:

Would the fact that it is a ByronSX Chime affect it?

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Monday 02 January 2017 22:03
by squandor
haha that's an ultimate solution :)

it's only strange that no button is created. do you get an error from the console.log or the server?
With you're config and my idx my button is still created so the '-' does not affect anything.

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Monday 02 January 2017 22:03
by proza
Show me some screendumps please


Verzonden vanaf mijn iPhone met Tapatalk

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Monday 02 January 2017 22:07
by squandor
here is an screenshot with the pushon button with D-Gong for example.

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Monday 02 January 2017 22:35
by proza
squandor wrote:here is an screenshot with the pushon button with D-Gong for example.
I was wondering what kind off domoboards everbody are creating. Just some samples Image

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Monday 02 January 2017 22:48
by squandor
proza wrote:
squandor wrote:here is an screenshot with the pushon button with D-Gong for example.
I was wondering what kind off domoboards everbody are creating. Just some samples Image
okay here are some pics from my test situation

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Monday 02 January 2017 22:51
by squandor
and my traffic and cams obviously

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Tuesday 03 January 2017 0:25
by blackdog65
squandor wrote:haha that's an ultimate solution :)

it's only strange that no button is created. do you get an error from the console.log or the server?
With you're config and my idx my button is still created so the '-' does not affect anything.
I deleted the Domoboard folder and reinstalled via git-clone and all works now.

I assume something was wrong with the git-pull process

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Tuesday 03 January 2017 8:32
by GreenSmart01
Hi There,

im still getting an error while starting:

Code: Select all

pi@raspberrypi:~$ sudo python /home/pi/domoboard/server.py -c example.conf
Traceback (most recent call last):
  File "/home/pi/domoboard/server.py", line 4, in <module>
    from flaskext.auth import Auth, AuthUser, login_required, logout
ImportError: No module named auth
also updated the version from git

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Tuesday 03 January 2017 8:57
by wez3
GreenSmart01 wrote:Hi There,

im still getting an error while starting:

Code: Select all

pi@raspberrypi:~$ sudo python /home/pi/domoboard/server.py -c example.conf
Traceback (most recent call last):
  File "/home/pi/domoboard/server.py", line 4, in <module>
    from flaskext.auth import Auth, AuthUser, login_required, logout
ImportError: No module named auth
also updated the version from git
Make sure you are using Python 2.7 for running Domoboard and that you have installed the modules for Python 2.7 and not for Python 3. You might have installed the modules for Python 3, however running Domoboard through Python 3.7.

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Tuesday 03 January 2017 9:04
by GreenSmart01
wez3 wrote: Make sure you are using Python 2.7 for running Domoboard and that you have installed the modules for Python 2.7 and not for Python 3. You might have installed the modules for Python 3, however running Domoboard through Python 3.7.
can u help me out how to check this?

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Tuesday 03 January 2017 9:09
by wez3
Check if the following program is available:
easy_install-2.7
and
python2.7

Then:
sudo easy_install-2.7 flask flask-auth configobj gitpython simplejson bleach requests
and:
sudo python2.7 server.py -c <your config>

Re: Domoboard a New Dashboard using Domoticz as backend

Posted: Tuesday 03 January 2017 9:35
by GreenSmart01

Code: Select all

pi@raspberrypi:~/domoboard$ easy_install-2.7
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-27341.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/local/lib/python2.7/dist-packages/

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  https://pythonhosted.org/setuptools/easy_install.html

Please make the appropriate changes for your system and try again.

Code: Select all

pi@raspberrypi:~/domoboard$ python2.7
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2