Custom Template question Html Topic is solved

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
edwin1234
Posts: 341
Joined: Sunday 09 October 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Nederland
Contact:

Custom Template question Html

Post by edwin1234 »

Hi i have an html that worked with domoticz 2021
But it doesnt in the latest 2026 version

I did a call for my devices with:
*/ const DOMO =
"http://192.168.2.130:9091/json.htm?type=devices&rid="; function parseValue(str){
if(!str) return 0; const n =
parseFloat(String(str).replace(",",".").replace(/[^0-9.\-]/g,"")); return isFinite(n)
? n : 0;
}
Worked perfect in 2021 version
But in the 2026 version nothing happends.
What is changed?

Thanks
Regards edwin
Thorgal789
Posts: 920
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Html

Post by Thorgal789 »

The API.

OLD request >"/json.htm?type=devices&rid="
NEW request > "/json.htm?type=command&param=getdevices&rid="

Look at the JSON API Page https://wiki.domoticz.com/Domoticz_API/JSON_URL%27s
User avatar
gizmocuz
Posts: 3026
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Custom Template question Html

Post by gizmocuz »

Also have a look at the new examples, you can now use websockets to directly get updates without polling
Quality outlives Quantity!
grecof973
Posts: 27
Joined: Wednesday 26 July 2017 6:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Custom Template question Html

Post by grecof973 »

Hi!! Can I have some more information or a link to the documentation on websockets?
Post Reply