Temperature Logs for BrewPiLess

BrewPiLess now supports data log LOCALLY. Given the fact that there is 3M space of 4M flash on NodeMcu or WEMOS D1 min, it seems to be a waste not to use the space, not to mention that WEMOS D1 pro has 16M flash.


Some fact about the log:

  • The log won’t start automatically. You have to start it at log setting page.
  • The temperatures are logged every minute.
  • A 30 day log will take around 350k bytes. That might imply that 3M space can record around 6 month data. However, there is no guarantee of the robustness of SPIFFS.
  • Changing temperature when logging will result in wrong data interpret.
  • Maximum 10 logs. The logs will not be deleted automatically. Manual deleting is necessary.
  • Internet access is required to view the chart. To save some more space and to alleviate the loading of ESP8266, the library is not put in the ESP8266.
  • Off-line viewer is available.

Comments (20)

  1. It’s currently under robustness testing.
    How long will you regard it robust enough?

    In my option, it should be two weeks, which is enough for the primary fermentation of most ales.

    I started the test since 28 Dec, but I found a bug that will stop display of current chart.
    Therefore, I had to interrupt the test to uploading new code on 1/6.
    The test and logging resumed. (I regarded it as a test of log resumption after power failure.)
    I am thinking about the following candidates:
    1/11, two weeks from 12/28
    1/13, one week from 1/6
    1/20, two weeks from 1/6

    What do you think?

  2. I’m usually quite impatient but i believe 2 weeks from 1/6 would be perfect. My ale fermentation schedules that I’ve used on brewpiless are generally around 12-14 days.

    Look forward to testing it in a couple of weeks!


  3. Frankly speaking, ONE single test isn’t really a robustness test, but what I concern is the robustness of SPIFFS(file system) and Web Server when the log grows up.
    I can’t find the maximum file size that SPIFFS can support and am curious about it. If the system can’t handle large log, I might need to split the log.
    A log of 10 days is around 10k. 20K should be not too big. Let’s see.

  4. Hi will you upload data folder to brewpiless or you are still doing any coding. I saw there is new readme including new logging and new code but data folder is is old. Thank you for information

  5. It’s not ready to release yet, but it’s nearly done( or I hope so). The files in Data folder is now embedded in the code, you don’t have to upload the files.
    You can still do it though. The files on File System will take higher priority. Therefore, if you don’t delete them, nor do you upload newer files. You will see the OLD version of files on the File System.
    I did forget to upload new version of the files that are no longer needed. I will remove them and add some note on README later.

  6. Hi Vito, I have a problem with the activation of the outputs of the cold and heat in the settings, the relay operates immediately, without differences that indicate invert or not invert

  7. You might have to check your relays.
    Are you using relay modules, or SSR, or relays?
    I have about 4 relay modules which work fine.
    However, three of the relay modules I recently bought seem doesn’t work well with 3.3V. They are also “inverted”.
    That results
    ESP8266 output low -> the relay is ON. (for inverted logic)
    ESP8266 output high -> 3.3v is not regarded as HIGH for the relay modules, the relay is ON.

    If possible, test your relay module(or relay) by connecting the control PIN directly to GND/5V/3.3V to check how it works.

  8. use a relay module, connect gnd to control pin the relay works well. I noticed that when activated invert switch is activated LED lights dim when you select not invert the relay is activated the LED on the switch lights up brightly.

  9. The relay was activated when the control connect to GND, right?
    How about connecting the control to 3V3 and 5V ?

  10. connect 5v to control pin relay does not work, control connect to GND relay was activated, control connect to 3.3v relay was activated.

  11. That seems to be the “problematic” relays.
    No simple solution yet.
    Solution #1: level shift the control signal from ESP8266 to 5V.
    Solution #2: Using transistor-controlled circuit like the reference circuit, or the my shield.
    Connect Power to connector “+”(5V), and control/GND to connector “-“(GND).
    Solution #3: find a relay module that supports 3V3 signal. However, I don’t know how to find one, though.

  12. Pin type Not Inverted: if Mode Off i have 4.5v in D5 pin, if i set Fridge Const i both have 4.5v in D5.
    Pin type Inverted: if Mode Off i have 3.1v in D5 pin, if i set Fridge Const i both have 3,1v in D5.

  13. Inverted: output HIHGH(3V3) to deactivate, output LOW(GND) to activate.
    Not-Inverted: output LOW(GND) to deactivate, output HIGH(3V3) to activate.

    BrewPi(less) will wait for at least 3 minutes before activating the cooling/heating.
    Therefore, it should be deactivated mode when power-up in any mode.

    “Pin type Inverted: if Mode Off i have 3.1v in D5 pin, if i set Fridge Const i both have 3,1v in D5.”
    That is normal if you measure before the cooling turned on.

    However, I don’t understand why ESP8266 output 4.5v signal.

  14. I have one exact the same two way relay module as yours.
    I haven’t figure out a way to use it, yet.

    I just tested it by connecting it to 5V/3V3/GND and found that it is a defected one.

    The LED on the module did lite-on, but the relay didn’t ‘click’.

Leave a Reply

Your email address will not be published. Required fields are marked *