Search found 2 matches

by razzle
Sunday 21 June 2020 11:44
Forum: PHP and all others
Topic: Best way to check the currect state of a (light) switch with PHP?
Replies: 3
Views: 1502

Re: Best way to check the currect state of a (light) switch with PHP?

Hi,

thanks for you're response! I've quickly looked at your code. If I'm right, you're using a cron that loops a curl request to json.htm?type=devices to get all statussen. Is this correct? How do you filter "only changes are sent over the network" ?
by razzle
Saturday 20 June 2020 17:24
Forum: PHP and all others
Topic: Best way to check the currect state of a (light) switch with PHP?
Replies: 3
Views: 1502

Best way to check the currect state of a (light) switch with PHP?

I'm trying to make a dashboard for my light switches with PHP/jquery. Something like Dashticz, only with just the stuff that I need. I know how to get the currect state of an switch(idx device) with json. But what would be the best way to monitor all these devices in my page? Dashticz almost ...