Hi all,
Trying to fetish temperature degrees from a log file centrally stored in NAS over the network, so how to mount this NAS shares to Hass.io ?
Thanks in advance.
Take a look at
Great, but could you please share the accepted formula to access these files shared in NAS 192.168.1.200 ?
It bit hard to do without a bunch of info.
Does the Pi have rights to access the share? How is it shared?
What is the file path on the nas? For instance I have a folder in my nas named documents, if I wanted to read out of ‘document1’ in that folder it would be…
\192.168.1.200\documents\document1.txt
Note that it needs to be a plain text file.
Now that you have the file path you need to provide what the output is. HA will only read the last line of the file. If the last line is plain text and only the value you want that is fine. If it is in json or has multiple values it will take some templating to get the value out in a clean fashion.
Really appreciate your efforts and support,
Actually I do need your guidance to provide the following:
- Log files are accessible only if you do provide username and password as it you can consider it is a normal windows shared folders.
- logs file contain data like temperatures, but I need to capture the recent only with means I do need to scan that file from the bottom onward.
log sample:
Temp: GPU0 75C GPU1 62C GPU2 73C GPU3 69C GPU4 59C
Thanks and Appreciated.