Scrape Local File

I have a file on my local network that gets updated every 16 seconds. I can control how the data is formatted, but right now it is a csv with an attribute in the first column and its value in the second. The file contains readings from various RF sensors throughout the house.

Is there a way I can have Hubitat scrape this file in order to make rules for if values get above certain thresholds or control other devices?

1 Like

Pretty sure @thebearmay had something for this.

I tried using their web scrape tool but it only allowed for one value to be scraped out. Was there another tool you were thinking of?

Sorry, no that's the only one I'm aware of.

Although I wrote it to demonstrate the possibilities of the localFileMethods library you could use https://raw.githubusercontent.com/thebearmay/hubitat/main/fileMgr.groovy to create a file manager device and read the file into the fileContent attribute using the Read External File and then use RM or webCoRE to parse the text….

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.