Code Monkey home page Code Monkey logo

ds3231_logger's People

Contributors

awickert avatar bschulz1701 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

awickert

ds3231_logger's Issues

Fix leap year problem

Issue:

Device alarm fails to account for leap year, so ends up missing one day of events. At rollover from 02/28 -> 02/29 the device instead sets the alarm from 02/28 -> 03/01 (since it is not accounting for the existence of 02/29 due to leap year), so device should trigger, but not until a day later.

Potential Solution:

Implement conditional testing for leap year (see conditions), use this condition to determine the number of days in February to prevent pre-mature rollover for leap years

Patch:

Include array of next 10 leap years, test year value against list, if year value is member of list, then take modulus so that February contains proper number of days.
Hopefully this will push the problem off until I am enjoying my cushy Fijian retirement...

Fix month rollover problem

Problem:

It has been reported that when using a logging interval other than 1 minute (software set), that the system fails to set a new alarm when the month rolls over (additional testing required)

Potential Solution:

Investigate the calculation and setting procedure and find why the month is not incremented (suspected cause)

Fix alarm Y2K issue

Alarm seems not to get set/triggered when the time is set to year 2000, test and verify this is the issue, if so find a fix

Fix negative temp calculation

Currently negative temperature calculation rolls over, example (real data):

Thermistor Temp [C] RTC Temp [C]
10.25 10.75
6.19 7.50
1.72 3.50
- 0.3 1.50
-2.01 254.25
-3.52 253.75
-6.24 252.00

Fix calculation to allow for negative outputs (first glance looks like a 2s complement to float issue?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.