Search found 5 matches

by jmv75013
Thursday 06 September 2018 8:53
Forum: PHP and all others
Topic: [Resolved] Acces to Domoticz.db in PHP
Replies: 7
Views: 3355

Re: Acces to Domoticz.db in PHP

Hi Egregius,

Thank very very much. It works. I was so simple... :oops:
Thank you for the link to your github.
by jmv75013
Wednesday 05 September 2018 10:24
Forum: PHP and all others
Topic: [Resolved] Acces to Domoticz.db in PHP
Replies: 7
Views: 3355

Re: Acces to Domoticz.db in PHP

I have tried to adapt your PHP code like this. <?php $db = new SQLite3('/home/pi/domoticz/domoticz.db'); var_dump($db); var_dump($db->lastErrorMsg()); $sql = "SELECT ID, Name, sValue, LastUpdate FROM DeviceStatus WHERE"; $sql .= " Type = 80 ORDER BY ID ASC"; $statement = $db->prepare($sql); var_dump ...
by jmv75013
Wednesday 05 September 2018 8:39
Forum: PHP and all others
Topic: [Resolved] Acces to Domoticz.db in PHP
Replies: 7
Views: 3355

Re: Acces to Domoticz.db in PHP

Hi Egreguis,

Thank you for your help, I will see with what you use if it works.

In fact, I have a website on which I want to show the temperature and electrical consumption curves.
by jmv75013
Tuesday 04 September 2018 8:35
Forum: PHP and all others
Topic: [Resolved] Acces to Domoticz.db in PHP
Replies: 7
Views: 3355

[Resolved] Acces to Domoticz.db in PHP

Hello, I want to access the domoticz database for consultation with a php page and I have some problems ... Domoticz turns on a raspberry. I have on this same raspberry lighttp, php and sqlite3. My script is <?php class MyDB extends SQLite3 { function __construct() { $chemin="/home/pi/domoticz ...
by jmv75013
Wednesday 05 April 2017 14:36
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Domoticz with IOS
Replies: 2
Views: 1539

Domoticz with IOS

Hi,

Under IOS with Safari or with Chrome, I get the message "browser cache refresh failed" and i can not use domoticz.
How to solve this problem?
Thanks you for help