Node-RED Timestamp Synchronization Success Story

Hey everyone! I wanted to share a success story that might help others who are dealing with timestamp synchronization issues in Node-RED, especially when working with Schneider Modbus nodes. :tada:

After struggling with mismatched timestamps from two different devices, I finally figured out a reliable setup that ensures both devices send data to Machine Advisor with the same timestamp. Here’s how I did it:

  1. Understanding the Problem: The main issue was that each device was sending data with its own timestamp, making it impossible to correlate the data in real-time. This was crucial for my application formulas, which rely on synchronized data points.

  2. Node-RED Flow Design: I restructured my Node-RED flows to use a single timestamp generator node. This node creates a standardized timestamp that both devices use before sending data to the cloud. It ensures that no matter when the devices send their data, they’re both tagged with the same timestamp.

  3. Testing and Validation: I tested the setup extensively to make sure the timestamps were consistent. It took a few tweaks, but seeing the data align perfectly in Machine Advisor was a huge relief! :tada:

  4. Tips for Others:

  • Use a centralized timestamp generator to avoid discrepancies.
  • Ensure your nodes are properly configured to handle timestamp overrides.
  • Test with sample data before integrating it into your live system.

If anyone has similar issues or needs help setting this up, feel free to reach out! I’d be happy to share my flow setup or troubleshoot any challenges. :hugs:

Happy coding and happy automating! :rocket: