Skip to content

Instantly share code, notes, and snippets.

from xee import Xee
import xee.entities as xee_entities
import sys
import os
import pickle
import pytz
import json
import paho.mqtt.client as paho
broker="YOUR BROKER IP OR DNS NAME"
[ SQLAlchemy version is : 1.0.15 ]
========= TRACEBACK =============
Traceback (most recent call last):
File "./install.py", line 635, in install
dbi = DbInstall()
File "/home/domogik/src/domogik/install/db_install.py", line 60, in __init__
self._db = database.DbHelper(use_cache=False, owner="DbInstall")
File "/home/domogik/src/domogik/common/database.py", line 188, in __init__
pool_recycle=pool_recycle, pool_size=20, max_overflow=10)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/__init__.py", line 386, in create_engine
[ Trying to find an interface to listen on ]
/home/domogik-mq/src/domogikmq/reqrep/client.py:31: VisibleDeprecationWarning: zmq.eventloop.minitornado is deprecated in pyzmq 14.0 and will be removed.
Install tornado itself to use zmq with the tornado IOLoop.
from zmq.eventloop.zmqstream import ZMQStream
==> Selected interface eth0
from pydhcplib.dhcp_network import *
from urllib2 import Request, urlopen, URLError, HTTPError #pour pouvoir appeler une url
import time
def do_something():
print("button has been pressed")
urlopen("http://192.168.0.1:40406/rest/cmd/id/291?value=1" , timeout = 1)
# Wait for 2 seconds
time.sleep(2)
urlopen("http://192.168.0.1:40406/rest/cmd/id/291?value=0" , timeout = 1)
{
"products" : [
{
"name" : "Z-Stick S2",
"id" : "ctrl_aeon_stick2",
"documentation" : "http://aeotec.com/z-wave-usb-stick",
"type": "primary.controller"
}, {
"name" : "FGS211 Relay 3kW",
"id" : "FGS211_Relay",
2016-01-10 18:37:02,384 domogik-onewired INFO ==> Reading sensor '/uncached/28.56262C030000/temperature'
2016-01-10 18:37:02,385 domogik-onewired DEBUG Get parameter 'interval'
Exception in thread dev_54:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/var/lib/domogik/domogik_packages/plugin_onewired/lib/onewired.py", line 117, in __init__
self.start_read_sensor()
Error: Plugin Starting failed to import module (No module named domogik_packages.plugin_ozwave.lib.ozwave)
is manager
2016-01-10 15:51:04,536 domogik-ozwave INFO Looking for launched instances of 'ozwave'
2016-01-10 15:51:04,549 domogik-ozwave INFO No existing process.
2016-01-10 15:51:04,552 domogik-ozwave DEBUG watcher fork
2016-01-10 15:51:04,553 domogik-ozwave INFO ----------------------------------
2016-01-10 15:51:04,554 domogik-ozwave INFO Starting client 'ozwave' (new manager instance)
2016-01-10 15:51:04,555 domogik-ozwave INFO Python version is sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
2016-01-10 15:51:04,557 domogik-ozwave DEBUG Send client status : starting
2016-01-10 15:51:04,558 domogik-ozwave DEBUG Send client status : starting
sudo -u domogik /usr/bin/python /var/lib/domogik//domogik_packages/plugin_ozwave/bin/ozwave.py -f
Error: Plugin Starting failed to import module (No module named domogik_packages.plugin_ozwave.lib.ozwave)
is manager
2015-11-04 22:08:28,222 domogik-ozwave INFO Looking for launched instances of 'ozwave'
2015-11-04 22:08:28,238 domogik-ozwave INFO No existing process.
2015-11-04 22:08:28,242 domogik-ozwave DEBUG watcher fork
2015-11-04 22:08:28,243 domogik-ozwave INFO ----------------------------------
2015-11-04 22:08:28,245 domogik-ozwave INFO Starting client 'ozwave' (new manager instance)
2015-11-04 22:08:28,245 domogik-ozwave INFO Python version is sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
2015-11-04 22:08:28,248 domogik-ozwave DEBUG Send client status : starting
root@domogik0:/var/lib/domogik/domogik_packages/plugin_ozwave# sudo -u domogik sh start.sh
is manager
2015-11-04 21:56:08,129 domogik-ozwave INFO Looking for launched instances of 'ozwave'
2015-11-04 21:56:08,145 domogik-ozwave INFO No existing process.
2015-11-04 21:56:08,150 domogik-ozwave DEBUG watcher fork
2015-11-04 21:56:08,150 domogik-ozwave INFO ----------------------------------
2015-11-04 21:56:08,151 domogik-ozwave INFO Starting client 'ozwave' (new manager instance)
2015-11-04 21:56:08,152 domogik-ozwave INFO Python version is sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
2015-11-04 21:56:08,155 domogik-ozwave DEBUG Send client status : starting
2015-11-04 21:56:08,157 domogik-ozwave DEBUG Send client status : starting
==> Upgrading
INFO [alembic.migration] Context impl MySQLImpl.
INFO [alembic.migration] Will assume non-transactional DDL.
INFO [alembic.migration] Running upgrade None -> 43e639a62c8b
========= TRACEBACK =============
Traceback (most recent call last):
File "./install.py", line 505, in install
dbi.install_or_upgrade_db(args.skip_database_backup)
File "/home/pi/domogik/src/domogik/install/db_install.py", line 149, in install_or_upgrade_db
command.upgrade(self.alembic_cfg, "head")