Search found 2104 matches

by Egregius
Wednesday 12 September 2018 9:18
Forum: PHP and all others
Topic: Launch Putty from Domoticz [Solved]
Replies: 8
Views: 235

Re: Launch Putty from Domoticz

If it's just a command that you need to send you can do that by the builtin ssh client. Something like: ssh root@192.168.2.212 -i /root/.ssh/home "find /home -type f -printf '%T@\n' | sort -n | tail -1 | cut -f1- -d\" \"" This command grabs the modification time of the last updated file in /home on ...
by Egregius
Tuesday 11 September 2018 8:48
Forum: Bugs and Problems
Topic: Backup/Restore not working
Replies: 5
Views: 134

Re: Backup/Restore not working

Well, normally it should work. But the backup/restore is only for the domoticz.db file, not everything else.
by Egregius
Tuesday 11 September 2018 8:10
Forum: Bugs and Problems
Topic: Backup/Restore not working
Replies: 5
Views: 134

Re: Backup/Restore not working

I would do a complete file copy of your domoticz folder to the new one. This way you also have scripts etc.
by Egregius
Thursday 06 September 2018 12:22
Forum: Suggestions
Topic: Set custom web gui refresh rate
Replies: 1
Views: 147

Re: Set custom web gui refresh rate

Or make your own interface :lol:
I have a 3 second refresh when I'm at home, and a 15 second refresh when I'm on mobile network :D
by Egregius
Thursday 06 September 2018 12:20
Forum: PHP and all others
Topic: [Resolved] Acces to Domoticz.db in PHP
Replies: 7
Views: 279

Re: [Resolved] Acces to Domoticz.db in PHP

You're welcome, glad I could help ;)
by Egregius
Thursday 06 September 2018 6:54
Forum: PHP and all others
Topic: [Resolved] Acces to Domoticz.db in PHP
Replies: 7
Views: 279

Re: Acces to Domoticz.db in PHP

I just remembered that I once used the domoticz database to show a graph on a php page, now I inject the values in a MySQL database. Anyway, here's an old version of my temp.php page: https://github.com/Egregius/PHP-Custom-Floorplan-for-Domoticz/commit/97fc69c8bcc26d1e99615ac264c8041dbf34d716#diff-2...
by Egregius
Wednesday 05 September 2018 17:43
Forum: PHP and all others
Topic: [Resolved] Acces to Domoticz.db in PHP
Replies: 7
Views: 279

Re: Acces to Domoticz.db in PHP

Just give 777 rights on the folder and the database files 😉
by Egregius
Tuesday 04 September 2018 17:10
Forum: PHP and all others
Topic: [Resolved] Acces to Domoticz.db in PHP
Replies: 7
Views: 279

Re: Acces to Domoticz.db in PHP

I use this to clean stuff I'm not interested in, you probably could easily adapt the code for fetching data: <?php $db = new SQLite3('/domoticz/domoticz.db'); $clean = strftime("%G-%m-%d %k:%M:%S",time()-3600*24); $tables = array( 'LightingLog', 'MultiMeter', 'MultiMeter_Calendar', 'Meter', 'Meter_C...
by Egregius
Tuesday 04 September 2018 17:07
Forum: General Discussion
Topic: Fibaro smoke detector
Replies: 2
Views: 210

Re: Fibaro smoke detector

The one with an ID ending on 29 is the smoke sensor.
You can safely leave the rest of the devices as unused.
by Egregius
Tuesday 28 August 2018 22:37
Forum: Switches and Scenes
Topic: JSON commands
Replies: 4
Views: 217

Re: JSON commands

You should use a code block, now the url is showed shortened.
by Egregius
Sunday 26 August 2018 20:46
Forum: PHP and all others
Topic: Pass2PHP
Replies: 652
Views: 60161

Re: Pass2PHP

Could be, but then it's already a long time like that I think.
by Egregius
Saturday 25 August 2018 23:02
Forum: dzVents
Topic: using dzvents to listen on a port
Replies: 6
Views: 306

Re: using dzvents to listen on a port

That won't work if it only can send a json string. You could use a small php page to decode the json.
by Egregius
Saturday 25 August 2018 17:58
Forum: Z-Wave
Topic: Looking for a reliable smoke detector
Replies: 14
Views: 549

Re: Looking for a reliable smoke detector

One or all of them?
Any chance there's dust in them?
by Egregius
Saturday 25 August 2018 16:57
Forum: Z-Wave
Topic: Looking for a reliable smoke detector
Replies: 14
Views: 549

Re: Looking for a reliable smoke detector

I have 6 Fibaro 's and am very happy with them. You just need to use rechargeable batteries and replace them regularly.
by Egregius
Tuesday 21 August 2018 14:45
Forum: PHP and all others
Topic: Pass2PHP
Replies: 652
Views: 60161

Re: Pass2PHP

Is the device pingable? If so, there must be some code somewhere, perhaps the code I use to check if my nas is online. $nas=apcu_fetch('nas'); if(pingport('192.168.2.210',1598)==1){ $prevcheck=apcu_fetch('check_diskstation_1598'); if($prevcheck>0)apcu_store('check_diskstation_1598',0); if($nas!='On'...
by Egregius
Tuesday 21 August 2018 7:40
Forum: Bugs and Problems
Topic: How to check health status of Domoticz processes (e.g. webserver) after problem
Replies: 15
Views: 625

Re: How to check health status of Domoticz processes (e.g. webserver) after problem

For the lose of network connection you could try this script, execute it every minute by cron. Change the ip address to ping to the one of your gateway and change wlan0 to probably eth0 for wired connection. If three pings to the gateway fails the network interface if brought down and then back up. ...
by Egregius
Sunday 19 August 2018 22:19
Forum: PHP and all others
Topic: Pass2PHP
Replies: 652
Views: 60161

Re: Pass2PHP

You can run the floorplan completely besides the domoticz ui. Once you get the hang of it you’ll never use the domoticz ui again. Except for adding devices...
Sometimes I need to use the domoticz ui when I just added a switch, but what a pain it is to find a switch when you have +100 of them :shock:
by Egregius
Sunday 19 August 2018 6:50
Forum: PHP and all others
Topic: Pass2PHP
Replies: 652
Views: 60161

Re: Pass2PHP

You also have a soundtouch? I'm updating Github now ;) There are some new functions for it: function bosekey($key,$sleep=100000){ $xml = "<key state=\"press\" sender=\"Gabbo\">$key</key>"; bosepost("key", $xml); usleep ($sleep); $xml = "<key state=\"release\" sender=\"Gabbo\">$key</key>"; bosepost("...
by Egregius
Saturday 18 August 2018 16:05
Forum: PHP and all others
Topic: Pass2PHP
Replies: 652
Views: 60161

Re: Pass2PHP

Why bother searching for other solutions if it works without issues?
Leave it like that ;)
I only make changes for new stuff, like yesterday for a Bose Soundtouch 30 😁