ahoy icon indicating copy to clipboard operation
ahoy copied to clipboard

Feature Request: Messwerte auf SD-Karte schreiben

Open MaDill opened this issue 1 year ago • 10 comments
trafficstars

Für die Zukunft würde ich mir wünschen, dass die Messwerte auf eine SD Karte geschrieben werden. Vielleicht wird pro Monat eine CSV Datei angelegt und nach jeder Messung die Werte da hinzugefügt. Nach X Monate wird die älteste Datei gelöscht.

Hintergrund ist, dass ich dann nicht noch mehr Hardware/Software (MQTT, Datenbank, Visum) ständig am laufen habe und pflegen muss.

Über eine einfache HTML Seite könnten dann die aktuellen Dateien auf der SD Karte aufgelistet und herunterladen werden.

Im Anschluss kann man dann Auswertungen mit Excel oder ähnlichem machen.

MaDill avatar Apr 07 '24 03:04 MaDill

schaue bitte auch mal in #1199 vorbei, evtl. haben wir diesen Wunsch dort auch schon aufgenommen. Neu ist die Idee nicht, es gab schon mehrere Issues mit diesem Wunsch 😊

lumapu avatar Apr 08 '24 20:04 lumapu

in #1063 haben wir schonmal darüber diskutiert - ich habe sogar schon Adapter hier, den hier: https://www.az-delivery.de/products/copy-of-spi-reader-micro-speicherkartenmodul-fur-arduino

lumapu avatar Apr 08 '24 20:04 lumapu

Actually you don't need any adapter. You can directly connect sd-cards to ESPs. Adapter just is needed if you want to have possibility to connect without soldering. I connected SD cards with soldering Micro-SD-adapters to ESP (not Ahoy-DTU), by this you can also change your micro-SD card.

When using this adapter, you need to connect it to 5V, if using SD-cards directly, you have to use 3.3V, that's the only difference.

technics42 avatar Apr 09 '24 14:04 technics42

what do you mean by connecting directly? My ESP does not have a slot for cards.

lumapu avatar Apr 09 '24 16:04 lumapu

You have to solder/wire your SD card to your ESP, just like the adapter. The adapter just passes through the signals, as SD-cards do have SPI itself - e.g. take a look at: https://alexlubbock.com/micro-sd-adapter-esp8266-esp32

technics42 avatar Apr 09 '24 17:04 technics42

ok, I won't do that to a SD card 🙈. For me it's like destroying it.

lumapu avatar Apr 09 '24 17:04 lumapu

You don't have to solder your card directly, just solder your micro-SD-adapter and you can exchange your micro-SD like usual. I just wanted to clarify, that those adapters you were referring, are not needed at all.

technics42 avatar Apr 09 '24 17:04 technics42

I got your point, it's clever. I didn't thought about these adapters. It's the first time I know their intentional use 😊

lumapu avatar Apr 09 '24 17:04 lumapu

schaue bitte auch mal in #1199 vorbei, evtl. haben wir diesen Wunsch dort auch schon aufgenommen. Neu ist die Idee nicht, es gab schon mehrere Issues mit diesem Wunsch 😊

In dem Issue habe ich zumindest im ersten Post nichts gefunden und daher einen neuen Issue aufgemacht. Wenn es den Wunsch schon mal gab ist das gut um vielleicht in der Gunst nach oben zu rutschen.

@lumapu Einen ähnlichen Adapter für die Micro-SD habe ich auch hier.

MaDill avatar Apr 10 '24 14:04 MaDill

@lumapu hier haben wir das Thema SD Card mit einigen der zu beachtenden Besonderheiten in OpenDTU besprochen:

https://github.com/tbnobody/OpenDTU/pull/2125

stefan123t avatar Sep 10 '24 18:09 stefan123t