logo elektroda
logo elektroda
X
logo elektroda

DOMOTIC - Sending data via URL and display on chart

korzeniewski36 3138 5
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16868143
    korzeniewski36
    Level 9  
    Hi, is domoticz suitable for e.g. sending data via url? E.g. 192.1.1.1:8080?load_data=20°C and then it will show this 20° on the chart?
  • ADVERTISEMENT
  • #2 16868664
    xury
    Automation specialist
    Everything can be sent to it via url or mqtt Everything is described on the wiki
  • ADVERTISEMENT
  • #3 16868848
    DJ MHz
    Level 25  
    by json without any problem
  • ADVERTISEMENT
  • #4 16870193
    korzeniewski36
    Level 9  
    Can someone help to do something like this? I send it via url e.g., 192.1.1.1:8080?load_data=20°C And it shows this value in the window???
  • ADVERTISEMENT
  • #5 16870320
    xury
    Automation specialist
    Here you have a description of the API:
    [url=https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's] Domoticz API[/url] .

    For what you want, you need to create a virtual sensor (dummy).
    You need to know its IDX. Scroll down to the "Temperature" section in the link what I gave you and you will see the syntax of the link:
    /json.htm?type=command¶m=udevice&idx=IDX&nvalue=0&svalue=TEMP
    .
    You substitute the IDX parameter of your dummy sensor under IDX and your value under TEMP.
ADVERTISEMENT