Zitat von schorge
Beitrag anzeigen
Viele Grüße
Jannis
2018-12-10 20:43:00 ERROR root Database [Database]: Could not connect to the database: object supporting the buffer API required 2018-12-10 20:43:00 ERROR plugins.database Database: initialization failed: object supporting the buffer API required 2018-12-10 20:44:00 ERROR root Database [Database]: Could not connect to the database: object supporting the buffer API required 2018-12-10 20:44:00 ERROR plugins.database Database: initialization failed: object supporting the buffer API required

#neu 12/2018 db als mariaDB MySql
database:
class_name: Database
class_path: plugins.database
driver: pymysql
connect:
- host:127.0.0.1
- user:smarthome
- passwd:HdLQfgdge5Q0Z1OQp
- db:smarthome_db
instance: mysqldb
2018-12-10 20:43:00 ERROR root Database [Database]: Could not connect to the database: object supporting the buffer API required 2018-12-10 20:43:00 ERROR plugins.database Database: initialization failed: object supporting the buffer API required 2018-12-10 20:44:00 ERROR root Database [Database]: Could not connect to the database: object supporting the buffer API required 2018-12-10 20:44:00 ERROR plugins.database Database: initialization failed: object supporting the buffer API required
MariaDB [mysql]> select Host, User from user; +-----------+------------+ | Host | User | +-----------+------------+ | localhost | phpmyadmin | | localhost | root | | localhost | smarthome | +-----------+------------+ 4 rows in set (0.00 sec) +-----------------------------------+--------------+------------+ | Host | Db | USer | +-----------------------------------+--------------+------------+ | 127.0.0.1 | smarthome_db | smarthome | | localhost | phpmyadmin | phpmyadmin | | localhost | smarthome_db | smarthome | | «ip of your smarthomeng server» | smarthome_db | smarthome | +-----------------------------------+--------------+------------+
gestern:
type: num
visu_acl: 'ro'
eval: round((sh...db('max', sh.time.minute.since.midnight.dbstr(), sh.time.minute.since.midnight.dbstr()) - sh...db('max', str(sh.time.minute.since.midnight() + 1440) + 'i', str(sh.time.minute.since.midnight() + 1440) + 'i')) / 60 /60, 2)
eval_trigger: heizung.recalc
crontab: 1 0 * * = 1
cache: 'yes'
database: 'yes'
gestern_minus1:
type: num
visu_acl: 'ro'
eval: round((sh...db('max', str(sh.time.minute.since.midnight() + 1440) + 'i', str(sh.time.minute.since.midnight() + 1440) + 'i') - sh...db('max', str(sh.time.minute.since.midnight() + 2880) + 'i', str(sh.time.minute.since.midnight() + 2880) + 'i')) / 60 /60, 2)
eval_trigger: heizung.recalc
crontab: 1 0 * * = 1
cache: 'yes'
gestern_minus2:
type: num
visu_acl: 'ro'
eval: round((sh...db('max', str(sh.time.minute.since.midnight() + 2880) + 'i', str(sh.time.minute.since.midnight() + 2880) + 'i') - sh...db('max', str(sh.time.minute.since.midnight() + 4320) + 'i', str(sh.time.minute.since.midnight() + 4320) + 'i')) / 60 /60, 2)
eval_trigger: heizung.recalc
crontab: 1 0 * * = 1
cache: 'yes'
gestern_minus3:
type: num
visu_acl: 'ro'
eval: round((sh...db('max', str(sh.time.minute.since.midnight() + 4320) + 'i', str(sh.time.minute.since.midnight() + 4320) + 'i') - sh...db('max', str(sh.time.minute.since.midnight() + 5670) + 'i', str(sh.time.minute.since.midnight() + 5670) + 'i')) / 60 /60, 2)
eval_trigger: heizung.recalc
crontab: 1 0 * * = 1
cache: 'yes'
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.


Einen Kommentar schreiben: