# \[APP\]\[Pro\] Archive Insights - export all your Insights data to a NAS, FTP or web folder

**URL:** <https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976>\
**Category:** Apps\
**Tags:** app, tools, flow, insights, export\
**Created:** [March 24, 2019, 3:04pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976 "2019-03-24T15:04:32Z")\
**Posts on this page:** 20\
**Page:** 5

<div class="post-metadata">

**Author:** ![Arnold\_vd\_Linden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnold_vd_linden/32/19336_2.png) [@Arnold\_vd\_Linden](https://community.homey.app/u/Arnold_vd_Linden)\
**Post date:** [February 28, 2020, 11:20am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/81 "2020-02-28T11:20:15Z")

</div>

I have some issues with uploading to my NAS over FTP.  
In my flow I activate an export of the last 24 hours every night at 03:00 and not all the day are going well and the following results is in the log of the app.

> 2020-02-28 03:00:13 [log] [App] Finshed all exports  
> 2020-02-28 03:00:03 [err] [App] { Error: This socket has been ended by the other party (control socket) at Socket.writeAfterFIN [as write] (net.js:376:12) at FTPContext.send (/node\_modules/basic-ftp/dist/FtpContext.js:170:22) at Promise (/node\_modules/basic-ftp/dist/FtpContext.js:232:22) at new Promise () at FTPContext.handle (/node\_modules/basic-ftp/dist/FtpContext.js:202:16) at Client.send (/node\_modules/basic-ftp/dist/Client.js:100:25) at Client.cd (/node\_modules/basic-ftp/dist/Client.js:226:21) at at process.\_tickCallback (internal/process/next\_tick.js:189:7) code: ‘EPIPE’ }  
> 2020-02-28 03:00:03 [err] [App] error: { Error: This socket has been ended by the other party (control socket) at Socket.writeAfterFIN [as write] (net.js:376:12) at FTPContext.send (/node\_modules/basic-ftp/dist/FtpContext.js:170:22) at Promise (/node\_modules/basic-ftp/dist/FtpContext.js:232:22) at new Promise () at FTPContext.handle (/node\_modules/basic-ftp/dist/FtpContext.js:202:16) at Client.send (/node\_modules/basic-ftp/dist/Client.js:100:25) at Client.cd (/node\_modules/basic-ftp/dist/Client.js:226:21) at at process.\_tickCallback (internal/process/next\_tick.js:189:7) code: ‘EPIPE’ }  
> 2020-02-28 03:00:03 [log] [App] 18 files zipped, 68930 total bytes  
> 2020-02-28 03:00:01 [log] [App] getting logs related to com.homewizard

The results so far:  
28 failed  
27 okay  
26 failed  
25 okay  
24 failed  
23 okay

Does someone knows what goed wrong here?

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [March 7, 2020, 6:30pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/82 "2020-03-07T18:30:08Z")

</div>

New app version will soon be released in the appstore.  
v2.5.1: Packages update. athom-api@2.1.220. webdav@2.10.2. basic-ftp@4.5.3 FTP fixes. Added Export and Cancel Export via app setting

Some bugfixes for (Secure) FTP were implemented. Also it is now possible to start a Insights backup straight from the app settings tab.

 ![Screenshot_20200307-193050_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/1/11c5fe1f25a65fdbf34008c4599af7e5d5f5978a.jpeg)

Already available now for install as test version:

> **[Archive Insights](https://homey.app/en-us/app/com.gruijter.insights2csv/Archive-Insights/)**
>
> Make backups of all insights

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [March 7, 2020, 7:33pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/83 "2020-03-07T19:33:03Z")

</div>

Can you please try the new version, and let me know if that helps (and do a ptp of Homey before doing a new export)

---

<div class="post-metadata">

**Author:** ![AlexEbner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alexebner/32/19438_2.png) [@AlexEbner](https://community.homey.app/u/AlexEbner)\
**Post date:** [March 8, 2020, 10:43am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/84 "2020-03-08T10:43:05Z")

</div>

Hi !  
I have installed the app and ptp for 15min.  
Nothing has changed

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [March 8, 2020, 1:45pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/85 "2020-03-08T13:45:08Z")

</div>

If SMB doesnt work for you, try ftp or webdav (or another SMB server)

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [March 9, 2020, 9:31am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/86 "2020-03-09T09:31:35Z")

</div>

The new version 2.5.2 is now released in the Homey appstore. Enjoy 👍

---

<div class="post-metadata">

**Author:** ![Arnold\_vd\_Linden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnold_vd_linden/32/19336_2.png) [@Arnold\_vd\_Linden](https://community.homey.app/u/Arnold_vd_Linden)\
**Post date:** [March 12, 2020, 10:35am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/87 "2020-03-12T10:35:31Z")

</div>

FTP is working again after update and PTP. Now for 4 days a good export.  
Thx.

---

<div class="post-metadata">

**Author:** ![Arnold\_vd\_Linden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnold_vd_linden/32/19336_2.png) [@Arnold\_vd\_Linden](https://community.homey.app/u/Arnold_vd_Linden)\
**Post date:** [March 14, 2020, 11:40am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/88 "2020-03-14T11:40:49Z")

</div>

Oops…  
Again FTP isn’t working anymore.  
After 3 successful nights with a backup each night, now already 2 nights missed.  
It’s time for me to go find another solution to export the data frequently. This app isn’t working good enough.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 14, 2020, 11:48am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/89 "2020-03-14T11:48:29Z")

</div>

Perhaps it’s not caused by the app but by Homey’s not-so-stellar networking?

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [March 14, 2020, 12:06pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/90 "2020-03-14T12:06:35Z")

</div>

Or your FTP service reached its limits?

What does the app log say?

---

<div class="post-metadata">

**Author:** ![Arnold\_vd\_Linden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnold_vd_linden/32/19336_2.png) [@Arnold\_vd\_Linden](https://community.homey.app/u/Arnold_vd_Linden)\
**Post date:** [March 14, 2020, 12:56pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/91 "2020-03-14T12:56:12Z")

</div>

FTP server is working good as also the network is.

Logging from the app:

2020-03-13 03:00:13 [log] [App] Finshed all exports  
2020-03-13 03:00:03 [err] [App] { Error: This socket has been ended by the other party (control socket) at Socket.writeAfterFIN [as write] (net.js:376:12) at FTPContext.send (/node\_modules/basic-ftp/dist/FtpContext.js:170:22) at Promise (/node\_modules/basic-ftp/dist/FtpContext.js:230:22) at new Promise () at FTPContext.handle (/node\_modules/basic-ftp/dist/FtpContext.js:200:16) at FTPContext.request (/node\_modules/basic-ftp/dist/FtpContext.js:177:21) at Client.send (/node\_modules/basic-ftp/dist/Client.js:103:25) at Client.cd (/node\_modules/basic-ftp/dist/Client.js:234:21) at at process.\_tickCallback (internal/process/next\_tick.js:189:7) code: ‘EPIPE’ }  
2020-03-13 03:00:03 [err] [App] error: { Error: This socket has been ended by the other party (control socket) at Socket.writeAfterFIN [as write] (net.js:376:12) at FTPContext.send (/node\_modules/basic-ftp/dist/FtpContext.js:170:22) at Promise (/node\_modules/basic-ftp/dist/FtpContext.js:230:22) at new Promise () at FTPContext.handle (/node\_modules/basic-ftp/dist/FtpContext.js:200:16) at FTPContext.request (/node\_modules/basic-ftp/dist/FtpContext.js:177:21) at Client.send (/node\_modules/basic-ftp/dist/Client.js:103:25) at Client.cd (/node\_modules/basic-ftp/dist/Client.js:234:21) at at process.\_tickCallback (internal/process/next\_tick.js:189:7) code: ‘EPIPE’ }  
2020-03-13 03:00:03 [log] [App] 18 files zipped, 70982 total bytes  
2020-03-13 03:00:01 [log] [App] getting logs related to com.homewizard

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [March 14, 2020, 12:58pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/92 "2020-03-14T12:58:46Z")

</div>

> [@Arnold\_vd\_Linden](#):
>
> Error: This socket has been ended by the other party

means your FTP service stopped the upload. Could also be related to bad network connection. Why don’t you try another FTP service, or a SMB (network drive) or WebDAV?

---

<div class="post-metadata">

**Author:** ![Arnold\_vd\_Linden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnold_vd_linden/32/19336_2.png) [@Arnold\_vd\_Linden](https://community.homey.app/u/Arnold_vd_Linden)\
**Post date:** [March 16, 2020, 1:34pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/93 "2020-03-16T13:34:03Z")

</div>

The FTP server is my local NAS and because of the of Mac at home I don’t need SMB or WebDAV.  
Normally I don’t have issues with local FTP and my logs on the NAS are not logging these issues. So maybe it’s Homey related.  
I wil have a look into SMB later.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Alex.Boel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/alex.boel/32/16640_2.png) [@Alex.Boel](https://community.homey.app/u/Alex.Boel)\
**Post date:** [March 27, 2020, 5:18pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/94 "2020-03-27T17:18:12Z")

</div>

Unzipped files are easier to handle. I have something similar running on my NAS, I use a PHP script to read the text files, push the data into a SQL database and delete the file immediately. On that same NAS I run a webserver to show all the data in trends.

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [March 27, 2020, 5:58pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/95 "2020-03-27T17:58:41Z")

</div>

I see. Well this app is intended for archiving purposes.  
If you want to do trending you might want to take a look at prometheus exporter or mqtt hub.

---

<div class="post-metadata">

**Author:** ![Arnold\_vd\_Linden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnold_vd_linden/32/19336_2.png) [@Arnold\_vd\_Linden](https://community.homey.app/u/Arnold_vd_Linden)\
**Post date:** [April 9, 2020, 9:48am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/96 "2020-04-09T09:48:23Z")

</div>

Can you share your solution?  
It’s the same purpose I want to use the data for.

---

<div class="post-metadata">

**Author:** ![Ima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ima/32/18816_2.png) [@Ima](https://community.homey.app/u/Ima)\
**Post date:** [April 13, 2020, 7:15pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/97 "2020-04-13T19:15:36Z")

</div>

I’m trying to configure my Archive Insights, but can’t… I tried NAS, WebDAV and FTP which work good with a browser.

Here what results from NAS:  
2020-04-13 21:05:59 [log] [App] connect ETIMEDOUT 192.168.1.10:445  
2020-04-13 21:04:32 [log] [App] testing SMB settings from frontend

And here from FTP:  
2020-04-13 18:53:39 [log] [App] Error: Timeout (control socket) at Socket.socket.once (/node\_modules/basic-ftp/dist/FtpContext.js:310:58) at Object.onceWrapper (events.js:313:30) at emitNone (events.js:106:13) at Socket.emit (events.js:208:7) at Socket.\_onTimeout (net.js:422:8) at ontimeout (timers.js:498:11) at tryOnTimeout (timers.js:323:5) at Timer.listOnTimeout (timers.js:290:5)  
2020-04-13 18:53:09 [log] [App] testing FTP settings from frontend

Please, can you help me with any clues?  
Thank you…

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [May 24, 2020, 8:31pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/98 "2020-05-24T20:31:56Z")

</div>

New app version 2.6.0 will soon be released. It has major stability improvements and a workaround for handling corrupt insights data.

You can already get it as test version:

> **[Archive Insights](https://homey.app/en-us/app/com.gruijter.insights2csv/Archive-Insights/)**
>
> Make backups of all insights

- Packages update.
- athom-api@3.2.3.
- webdav@3.3.0.
- basic-ftp@4.5.4.
- marsaud/smb2@0.16.0
- archiver@4.0.1.
- Fix crash on corrupt Insights data.

---

<div class="post-metadata">

**Author:** ![pim555](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pim555/32/9616_2.png) [@pim555](https://community.homey.app/u/pim555)\
**Post date:** [August 15, 2020, 7:00am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/99 "2020-08-15T07:00:37Z")

</div>

I am trying to export to a network drive on my NAS (DS218+). Connection set-up seems to work as i do see the ìnsights2.csv`file appear but when I explicitly export from the app menu, the logging seems to say that the files were zipped and exported but I dont see them appear on the drive.

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [August 15, 2020, 7:04am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/100 "2020-08-15T07:04:54Z")

</div>

did you switch on the ‘use smb on export’ ?

[Previous page](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976.md?page=4)

[Next page](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976.md?page=6)
