[APP][Pro] FTP Client - Control FTP Servers through a directory-based UI in the Homey App or Web App

The FTP protocol can only send files, it cannot write data into files.

To export that temperature value to a, say, .csv via FTP, I’d recommend to use the Archive Insights app:

When you do this on an hourly rate, you catch values with a 5s interval.
When you do this on an 6-hourly rate, you catch values with a 1 minute interval.

1 Like

Actually, this should work, you can write text into a text file.
What happends if you write text in it (and not a number tag)?
It should work, but i am curious.

1 Like

Hi.
I tested that to but it was no change, still unreadable, I wrote Nisse and got no similar characters.

Learning everyday! :blush:
However, is it usable: it overwrites the value instead of adding it, so you can only save the last sent value?

Got the same weird results as Mats when sending strings and numbers:

Hi.
I don’t understand. When I go to insights it’s just momentarly, I can’t save the insight, and let it run.

Now I can’t follow you too :smiling_face::face_with_peeking_eye: Did you read the howto in the Archive Insights topic?

Hi.
I have no Insight and don’t know how to make one. So if I have non I can’t archive it. In Homey App I can’t save a insight.

Ow I’m sorry, I automatically just made the assumption you knew about Homey Insights.
In theory every sensor’s data updates are recorded to Insights. https://my.homey.app/insights/
This is happening “under the hood”.
https://support.homey.app/hc/en-us/articles/360015370454-Viewing-charts-with-Homey-Insights

With Archive insights, you can automatically export insights data on all of the data, or on app level.

Hi.
Oki I didn’t know that. I have tried that and its not for me in the way I will use it on.
I wan’t the last reading in plain text to put on a special website automatically.
To implement an unzipper i JavaScript on that site to get a value…

Is that webserver capable of receiving webhooks (HTTP requests)?
If so, you can send every updated value, something like this:

Hi. I’m using the Homey app, Micro web server and I cant se if I could use POST on the website.

I am looking for a way to store images from Homey to my web hosting server.
I have a small webhost with Strato. It has SFTP which works fine from my PC with filezilla.

When I try to reach it from a flow it waits a while and eventually gives an error.

I use the exact same credentials as with filezilla.

IP/Hostname: ssh.strato.com
Port: 22
Username: [my account number].swh.strato-hosting.eu
Password: Masterpassword
Secure: Yes
Download Time: 60

When I go to device, and click repair, after a while I get an error as well:
“Error: Network request failed”.

What am I doing wrong?

Not sure, just a thought, but perhaps it is a similar issue that prevents me from using SFTP to connect to my NAS as posted here in this topic earlier.

In my case the FTP client does not accept/cannot validate the certificate of my NAS, as it is linked to an external domain (with a valid external certificate) and I am access it internally. The FTP Client app does not have an option to trust know or self-signed certificates. So I have to fall back to regular/unsecure FTP.

Perhaps in your case the app cannot validate the certificate either.

But I think @Arie_J_Godschalk will probably have more insight into what may be the issue :blush:.

1 Like

@SunBeech

Yeah, sorry i havent implemented it yet.
Btw, did you also got timeouts? Or rapidly responsed errors about the certificate?

@Arie_J_Godschalk
I didn’t have rapidly responsed errors, but I got timeouts when trying to repair the device.

@SunBeech
Thanks for pointing me in the right direction, it works now!

I had a setting in Strato to accept FTP (next to SFTP).
I changed the port to 21 and safe connection to “no”.
Now I can upload anything from Homey to Strato.

Keep in mind that, as far as I know, this also means that your user credentials will be sent over the internet unsecured. Something to consider.

Hi @Arie_J_Godschalk, no I did not. Just one error message after some time, indicating that all available connection strategies have been tried. My assumption (may be wrong :blush:) is that the error it is linked to the certificate. As I am able to connect via other methods (like FileZilla) with the same settings. In FileZilla I need to trust the certificate once (it asks me on the first connection attempt) after which Incan connect securely.

@Cuprani and @SunBeech ,
I have added a device setting to allow for incorrect certificates.
This way you can still connect through FTPS even if the hostname doesnt match the certificate.

Ofc this is still hackable through dns-records etc, but at least the username and password are not send as clear text through the internet.

It’s in test now waiting for approval.

3 Likes

Hi @Arie_J_Godschalk, I couldn’t get it to work initially, because I was trying to connect to my NAS via SFTP (so the SSH variant). However when using FTPS (so the SSL/TLS variant, instead of SFTP), connecting securely with the ‘invalid certificate’ option enabled works!

Thank you so much for implementing this feature :grinning_face: !

1 Like

The flow below generates a base64 audio file, saves the file with ftp cient, gets the mp3 url and tries to play mp3 on Nest mini.

Tested:

  • the base64 is a valid mp3 file (tested with base64 to mp3 decoder and audible)
  • opening (within 60 seconds) the CloudUrl in Chrome browser shows a media player without any sound
  • playing on Nest mini: after the announcement sound is played, there is no mp3 sound

Micro Webserver settings (IP is Homey address):

What could be improved to hear the sound (mp3) on my Nest mini? Closed ports (if yes, how to open (I’m not a system expert))?