Hi, I am looking for something as simple as writing (or appending) to a text file. And then I mean a local text file.
I found ways to export Insights with Archive Insights, write flow variables to a Google Sheets worksheet. Until now I did not find ways to write (and read) a local text file that I create myself and that I can export to my NAS with FTP Client.
I do not understand “write text to a local ftp file”. What is local here? The Homey or the NAS?
If I can’t create a text file on Homey, I also can’t sent it via FTP…
In general:
If I have to do a lot of work on Archived Insights files that were exported to my NAS, I wonder if it is not easier to do collection of the data via MQTT on my NAS in the first place.
On my NAS I have a Docker container that runs Nodered. This has MQTT capabilities. So I can recieve the data, use Python to aggregate /analyze store the results. That saves the extra step in transporting the data.
If you use the Micro Webserver app, you can create a local FTP server and use the FTP client to store something on Homey.
But, the ftp client app has a flowcard to save a string/text directly as a file.
So you can use that flowcard to write a file with text directly on you NAS.
Yeah, i use this app also, i believe i have even placed my Bash script on the forum, which unzippes/extracts all files (on my Synology NAS), so it can be directly used in an excel file as datasource on my network.
The reason why I ask these things is the following:
for deeper insights you often combine data of various sources. I need to decide if I do this “combining” on the NAS side or on the Homey side. The point is that neither of both side has the interfaces for all sensors.
IMO it makes less sense to transport data to the Homey side with MQTT for sensors that it doesn’t have on board if I have to transport aggregated data back to the NAS later. Rather, I use Homey to acquire data that are still missing, then transport them to the NAS/Nodered directly upon receipt and do further processing there.
This becomes especially true if there are no possibilities to create files with multiple lines of processed data on the Homey side.
Do you need a text file (like a log) or do you better want to export data in a database like MySQL on your NAS? For example log sensor data into one table, Aggregate data into another.