Skip to content

Added Value Logger on SD Card#429

Merged
psy0rz merged 1 commit intoletscontrolit:megafrom
JK-de:Logger
Jul 13, 2017
Merged

Added Value Logger on SD Card#429
psy0rz merged 1 commit intoletscontrolit:megafrom
JK-de:Logger

Conversation

@JK-de
Copy link
Contributor

@JK-de JK-de commented Jul 10, 2017

This optional feature writes an Excel-confom CSV to the SD card for all device values

Workflow:

  • Add a SD card to the ESP (SPI...)
  • In hardware-tab check "Init SPI" and set the "SD Card CS Pin"
  • In tools-tab enter advanced page and enter NTP settings (for correct time stamp)
  • In tools-tab enter advanced page check "SD Card Value Logger"
  • In device-tab add your sensors with corresponding delay times

A file named "VALUES.CSV" is written on the SD card. It can be imported by any spread sheet program (e.g. Excel)
The file can also be downloaded in tools-tab -> "SD card" -> "VALUES.CSV"

@Grovkillen
Copy link
Member

Would it be possible initiate export using command?

@Grovkillen
Copy link
Member

And maybe use systime and date in the file name?

@psy0rz
Copy link
Member

psy0rz commented Jul 13, 2017

i'm missing error checking in case the write fails when the sd card is full for example. (or broken)

@psy0rz psy0rz merged commit 491fa5c into letscontrolit:mega Jul 13, 2017
@uzi18
Copy link
Contributor

uzi18 commented Jul 13, 2017 via email

@psy0rz
Copy link
Member

psy0rz commented Jul 13, 2017

?

@JK-de
Copy link
Contributor Author

JK-de commented Jul 16, 2017

@Grovkillen - You can already download file with http://<yourIP>/VALUES.CSV

@Grovkillen - At first I used a filename with date but then I see that the SD-lib supports only 8.3-filenames

@Grovkillen
Copy link
Member

@jkDesignDE

1 Great (the download link), is it written to constantly or just on request?

2 I understand the file name now when you explain that. I will inform about this on wiki.

@vincegre
Copy link

Would be great to be able to setup it in a way as local temporary spool no ?? all my ESP modules are connected to MBTT broker. If connection goes down (wifi dead, network issues, mqtt broker unavalaible), then it stores all local values in file. Once connection is back, it sends all spool file values stored to broker and continues to update in live time till connection goes down again and so on :)

@psy0rz
Copy link
Member

psy0rz commented Sep 13, 2017

this would be a nice feature indeed, but requires a bit of planning. maybe in a future release?

@Grovkillen
Copy link
Member

Should we make a "future release" milestone for good ideas that are a bit longer into the future. These can then be merged in to a proper vX.Y.Z milestone once it is planned to be implemented?

@psy0rz
Copy link
Member

psy0rz commented Sep 14, 2017

that sounds like a good idea, will do that.

@Droscovi
Copy link

How do I enable this in ESPEasy-mega-20191028? I have an SD connected up to NodeMCU SPI but the "SD Card Value Logger" is not available (not even visible). Any help would be greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

6 participants