Read text file and assign value to virtual temp sensor?
Posted: Monday 19 February 2018 7:39
I would like to read a text file located on a local webserver with adress: http://192.168.0.3/rgt.txt
The only contet in the text file is the current exhaust gas tempereature of my boiler with one decimal, example: 231.8
Every five minutes I would like to assign/store the temperature to a virtual temp sensor that I have created with idx: 104
I have found a couple of examples on this forum that is similar and tried to modify them for my needs. But I can't get it to work, so I would be really glad for some help.
The only contet in the text file is the current exhaust gas tempereature of my boiler with one decimal, example: 231.8
Every five minutes I would like to assign/store the temperature to a virtual temp sensor that I have created with idx: 104
I have found a couple of examples on this forum that is similar and tried to modify them for my needs. But I can't get it to work, so I would be really glad for some help.