@nanomatic/time_synchronize
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

    Time synchronize

    @nanomatic/time_synchronize

    Status License


    Time synchronization based on any RTC module for the Linux Ubuntu.

    📝 Table of Contents

    🏁 Getting Started

    Installing

    npm i @nanomatic/time_synchronize
    

    Using

    Example code below:

    import TimeSynchronize from '@nanomatic/time_synchronize';
    import { DS3231 } from '@nanomatic/ds3231';
    
    const RTC = new DS3231;
    
    // Config time synchronization
    TimeSynchronize.config(() => RTC.get(), RTC.set);
    
    // Start synchronization
    TimeSynchronize.start();
    
    // Swtich off automatic stop after first corrert synchronization by Internet
    // TimeSynchronize.auto(false);
    
    // Stop synchronization
    // TimeSynchronize.stop();

    ⛏️ Built With

    📦 Dependencies

    • @nanomatic/ds3231 - RTC DS3231 implementation for the Raspberry PI 4 + temperature reading 🌡
    • axios - Promise based HTTP client for the browser and node.js

    ✍️ Authors

    🎉 Acknowledgments

    • Special thanks for Łukasz & Sebastian for working together and giving ideas 😉

    Install

    npm i @nanomatic/time_synchronize

    Homepage

    nanomatic.pl

    DownloadsWeekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    6.32 kB

    Total Files

    4

    Last publish

    Collaborators

    • nano_matic