Thanks!
Got it to work, but got stuck on one sensor that is both temp & humidity.
I´ve tried this:
<?php
//Lets grab all temp devices
$domoticz=json_decode(file_get_contents('http://192.168.1.77:8080/json.htm?type=devices&filter=temp&used=true'),true);
//Check if we got a result
if($domoticz ...
Search found 5 matches
- Sunday 13 August 2017 21:38
- Forum: PHP and all others
- Topic: Show current temp/value on homepage
- Replies: 7
- Views: 3837
- Saturday 12 August 2017 23:58
- Forum: PHP and all others
- Topic: Show current temp/value on homepage
- Replies: 7
- Views: 3837
Re: Show current temp/value on homepage
Well so much I have figured out :-)
But if I for exampel do /json.htm?type=devices&rid=IDX I get a reply with lots of values.
I see that "Temp" is one of them, but I can´t figure out the php code for this to show on my webpage.
For example on the webpage:
Pool - (current temp, json script)
Inside ...
But if I for exampel do /json.htm?type=devices&rid=IDX I get a reply with lots of values.
I see that "Temp" is one of them, but I can´t figure out the php code for this to show on my webpage.
For example on the webpage:
Pool - (current temp, json script)
Inside ...
- Saturday 12 August 2017 23:15
- Forum: PHP and all others
- Topic: Show current temp/value on homepage
- Replies: 7
- Views: 3837
Re: Show current temp/value on homepage
So I must do a roomplan for this? I can´t "just" query current temp by json and print that value on a page?
- Saturday 12 August 2017 22:40
- Forum: PHP and all others
- Topic: Show current temp/value on homepage
- Replies: 7
- Views: 3837
Show current temp/value on homepage
I am trying to build a homepage that are made for an old smartphone that will be mounted on the wall.
I want to get current temp from my different temp sensors and perhaps wind and rain sensors as well.
Trying to do this by json but I just get day/month or year and not the just the current value ...
I want to get current temp from my different temp sensors and perhaps wind and rain sensors as well.
Trying to do this by json but I just get day/month or year and not the just the current value ...
- Friday 14 July 2017 1:09
- Forum: iOS
- Topic: Homekit app wont add homebridge
- Replies: 1
- Views: 5616
Homekit app wont add homebridge
I have searched the forum but I have not found an answer, hopefully somebody could help me out.
I have installed homebridge on my Pi and started it. It find all of my stuff. I have followed this tutorial:
https://www.domoticz.com/wiki/Homekit_Siri
But when I try to add my homebridge in the ...
I have installed homebridge on my Pi and started it. It find all of my stuff. I have followed this tutorial:
https://www.domoticz.com/wiki/Homekit_Siri
But when I try to add my homebridge in the ...