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

I would like to store a variable (temperature) to a simple index.html and upload to a ftp server.
something like:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body>
	<div>20</div>
</body>
</html>

Where 20 is the variable from a sensor.

i tried:

let file= '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>  </head><body>	<div>20</div></body></html>'
let base64 = file.toString('base64');
return base64;

but did not work

how can i achieve this?
thank you

solved it myself

let file= '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>  </head><body>	<div>30</div></body></html>'
let base64 = Buffer.from(file).toString('base64')
return base64;
2 Likes

Hi,

I have a flow that saves some images to Micro Web Server at intervals.
Since I use more than one “Save image to directory/filename” Then flow card, they some times run at the same time, giving this error message:

Client is closed because User launched a task while another one is still running. Forgot to use ‘await’ or ‘.then()’?

I currently have a workaround by adding delays to the flows to try to keep them from running at the same time, but is this something that can be fixed in the app?
It is a bit difficult and inconvenient to use delays like this.