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
Custom Template question Html Topic is solved
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.
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.
-
Thorgal789
- Posts: 920
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Html
The API.
OLD request >"/json.htm?type=devices&rid="
NEW request > "/json.htm?type=command¶m=getdevices&rid="
Look at the JSON API Page https://wiki.domoticz.com/Domoticz_API/JSON_URL%27s
OLD request >"/json.htm?type=devices&rid="
NEW request > "/json.htm?type=command¶m=getdevices&rid="
Look at the JSON API Page https://wiki.domoticz.com/Domoticz_API/JSON_URL%27s
- 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
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
Hi!! Can I have some more information or a link to the documentation on websockets?