Search found 3 matches

by Lisa3746
Monday 27 July 2020 21:50
Forum: Other questions and discussions
Topic: Display the result of a script into the Dashboard
Replies: 16
Views: 1398

Re: Display the result of a script into the Dashboard

Gosh...I do not know what to say, you are genius! Many thanks for you help, I can now read the temperature every X seconds :D
by Lisa3746
Monday 27 July 2020 20:01
Forum: Other questions and discussions
Topic: Display the result of a script into the Dashboard
Replies: 16
Views: 1398

Re: Display the result of a script into the Dashboard

Sure, here is my script: #!/usr/bin/php <?php $json_string = file_get_contents ("https://api.example.com"); $parsed_json = json_decode($json_string, true); $parsed_json = $parsed_json['result']; echo "Temperature ".$parsed_json."C"."\n"; ?> Yes, the script is on the same system in ../domoticz ...
by Lisa3746
Monday 27 July 2020 18:27
Forum: Other questions and discussions
Topic: Display the result of a script into the Dashboard
Replies: 16
Views: 1398

Re: Display the result of a script into the Dashboard

Hi there! Sorry to intervene but I have got the same question and I cannot get my head around it. I have got a php script which reads an JSON API and get a string as follows: Temperature 30.1C Now I want to display this result in the dashboard and I cannot understand how to do it. Happy to run ...