# \[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:** 4

<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 29, 2019, 3:19am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/61 "2019-08-29T03:19:01Z")

</div>

Can you give an example what the folder name would look like? And why would you want to be able to set it per flow card?

---

<div class="post-metadata">

**Author:** ![ArnoP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnop/32/13709_2.png) [@ArnoP](https://community.homey.app/u/ArnoP)\
**Post date:** [August 29, 2019, 5:56am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/62 "2019-08-29T05:56:29Z")

</div>

For example just the date (yyyymmdd) would be really nice. Maybe it’s even possible to make some kind of settings where it can be more freely configurable like: %y%m%d (for yyyymmdd) or %backupperiod (for last …) or even some free text for maximum freedom.  
But in my case just the date would be great.

---

<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 29, 2019, 9:19am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/63 "2019-08-29T09:19:06Z")

</div>

I added it to a feature request on Github so I won’t forget about it. Feel free to add detailed requirements:

> <https://github.com/gruijter/com.gruijter.insights2csv/issues/6>

---

<div class="post-metadata">

**Author:** ![PieterM](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieterm/32/12434_2.png) [@PieterM](https://community.homey.app/u/PieterM)\
**Post date:** [September 7, 2019, 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/64 "2019-09-07T10:43:38Z")

</div>

Hi, since the last version on August 27 I see no new exports were written to my NAS. In the logs there is this error:  
TypeError: Cannot read property ‘replace’ of undefined at Promise (/app.js:532:44) at at process.\_tickCallback (internal/process/next\_tick.js:89.7)

Too bad it’s not working anymore, because I love this app 😃

---

<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:** [September 7, 2019, 11:46am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/65 "2019-09-07T11:46:12Z")

</div>

@PieterM . Thx for the compliment! 😌 can you please create an issue on github with details of the settings you use and the app log.

---

<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:** [October 6, 2019, 6:13pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/66 "2019-10-06T18:13:19Z")

</div>

Hi @PieterM, I have just updated the app to version 2.5.0. I hope this solves the issue for you.

@Patrick1610, @ArnoP: Version 2.5.0 adds the option to save every export to a seperate folder.

You can get it now on [github](https://github.com/gruijter/com.gruijter.insights2csv/tree/master), or wait for Athom to approve it in the appstore .

---

<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:** [October 7, 2019, 8:41am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/67 "2019-10-07T08:41:53Z")

</div>

Version 2.5.0 was just released in the appstore. It has some bugfixes, and it allows you to do each export in a seperate folder. The folder is named after the date/time when the export started, so you can easily manage / remove old archives.

Let me know if you like it 😉

---

<div class="post-metadata">

**Author:** ![MarcelvVerk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcelvverk/32/12463_2.png) [@MarcelvVerk](https://community.homey.app/u/MarcelvVerk)\
**Post date:** [October 9, 2019, 8:31am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/68 "2019-10-09T08:31:16Z")

</div>

I have setup the app and want to use sftp to export the logs. Now if I use the command line either ssh or sftp the address and folders all work fine. Now if I fill these in the settings en test them in the app I get an error. Looking at the logs, it states it is connected to myip:22 but this message is followed by a general Timeout (control socket). Anyone has any ideas what is going on?

edit: I also checked the logs on the server. It also confirms connections has been made, only that it is being dropped (no official disconnect)

edit 12-10: I have configured a Webdav server on the same machine and that one is working just fine. Still no idea what happened with the sFTP. But for me I am happy to be able to use the app now.

---

<div class="post-metadata">

**Author:** ![Claire\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/claire_d/32/17209_2.png) [@Claire\_D](https://community.homey.app/u/Claire_D)\
**Post date:** [November 6, 2019, 7:46pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/69 "2019-11-06T19:46:41Z")

</div>

Hi,

I managed to download the information on my Synology but I am disapointed to have a zip file for every app and inside each zip a .csv for each measure.  
Would it be possible to have one big CSV ?

---

<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:** [November 6, 2019, 8:02pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/70 "2019-11-06T20:02:11Z")

</div>

Nope 🤗

---

<div class="post-metadata">

**Author:** ![Claire\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/claire_d/32/17209_2.png) [@Claire\_D](https://community.homey.app/u/Claire_D)\
**Post date:** [November 7, 2019, 7:56pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/71 "2019-11-07T19:56:38Z")

</div>

Would it be possbile to have only the CSV files without being into a zip file ?  
Named with the date and year of extraction.  
Thanks

---

<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:** [November 7, 2019, 8:17pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/72 "2019-11-07T20:17:21Z")

</div>

Mmh. I have too look into that. The zipping is important because during archiving, the data is first stored on Homey itself (and Homey has limited memory/storage), and also because exporting non-compressed data takes a very long time over WiFi.  
Why would you want it unzipped?

---

<div class="post-metadata">

**Author:** ![Claire\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/claire_d/32/17209_2.png) [@Claire\_D](https://community.homey.app/u/Claire_D)\
**Post date:** [November 8, 2019, 7:40pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/73 "2019-11-08T19:40:10Z")

</div>

I want to create a Qlik Dashboard based on this data. Unfortunately Qlik can’t read ‘inside’ a zip file.  
If we do a weekly extract (max) it doesn"t take so much space.

---

<div class="post-metadata">

**Author:** ![Wilco\_van\_Ee](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wilco_van_ee/32/12580_2.png) [@Wilco\_van\_Ee](https://community.homey.app/u/Wilco_van_Ee)\
**Post date:** [December 31, 2019, 11:06am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/74 "2019-12-31T11:06:32Z")

</div>

@Gruijter Great app!  
It would be nice to make it possible to select one (or a few) Logics so it will not make an export from all of them. Do you think that is possible?

---

<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:** [December 31, 2019, 12:28pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/75 "2019-12-31T12:28:45Z")

</div>

Hi Wilco,

Thx 4 the compliment 😘

You can add your request as an issue on GitHub so I don’t forget to take a look at it on the next maintenance work I do. But to be honest I think it is too much work to implement it in a user-friendly way.

---

<div class="post-metadata">

**Author:** ![Oscar\_Aurin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oscar_aurin/32/16924_2.png) [@Oscar\_Aurin](https://community.homey.app/u/Oscar_Aurin)\
**Post date:** [February 4, 2020, 8:24am UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/76 "2020-02-04T08:24:22Z")

</div>

Thank you for this app! I have a problem exporting data though. Connection (WebDAV) works fine (it creates a `insights2csv.txt` file).  
However, when I run the flow there are no files created. 😢

I’ve tried having the flow use both `Export all insights` as well as `Export insights of:` for various brands. I do have output in Homey’s Insights, so there is data to export.

The log says only:

> Exporting all insights last24Hours

Unless, of course, I’m only exporting specific brands. Then there are no log messages.  
I have waited sufficiently long time for the export and upload to complete (\>30 min), but still no output.  
I cannot try any other protocol, because of server limitations.

Any ideas?

---

<div class="post-metadata">

**Author:** ![Oscar\_Aurin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oscar_aurin/32/16924_2.png) [@Oscar\_Aurin](https://community.homey.app/u/Oscar_Aurin)\
**Post date:** [February 4, 2020, 12:11pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/77 "2020-02-04T12:11:20Z")

</div>

Restarting Homey fixed the issue, now I get all the data and the log looks good. Thanks!

Feature request: Have failure to upload to server be a trigger for a flow. That way I can get a notification when the server is down and I can troubleshoot the issue immediately.

---

<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:** [February 4, 2020, 2:13pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/78 "2020-02-04T14:13:56Z")

</div>

Good to hear you got it working now! Concerning the ‘trigger flow on error’; I will give it a thought.

---

<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:** [February 17, 2020, 7:37pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/79 "2020-02-17T19:37:58Z")

</div>

Hi !  
I am not able to confige this app to work.  
When i use SMB connect it says  
“Error: STATUS\_LOGON\_FAILURE (0xC000006D) : The attempted logon is invalid. This is either due to a bad username or authentication information.”

But connection to this share on my Samba Server on Ubuntu 18.04 from another system with the sam credentials works fine.

---

<div class="post-metadata">

**Author:** ![Camelen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/camelen/32/9613_2.png) [@Camelen](https://community.homey.app/u/Camelen)\
**Post date:** [February 19, 2020, 12:41pm UTC](https://community.homey.app/t/app-pro-archive-insights-export-all-your-insights-data-to-a-nas-ftp-or-web-folder/10976/80 "2020-02-19T12:41:44Z")

</div>

Hey! I had some troubles last year with fibaro export. I wrote about it but didn’t really help you very much with the bug.

I just wanted you to know that it works perfectly now. Not sure when it started to work, but it does.

Great work.

[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=3)

[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=5)
