SiYuan icon

SiYuan

Manage SiYuan notebooks, documents, blocks, attributes, and more. Designed for AI agent workflows.

System → Get Current Time

AI-generated

Overview

This node interacts with the SiYuan API to perform various operations related to system utilities, including retrieving the current system time. It is useful in workflows that require synchronization with the SiYuan system time or need to log or display the current time from the SiYuan environment.

Use Case Examples

  1. A user wants to get the current time from the SiYuan system to timestamp notes or actions within their workflow.
  2. A workflow that triggers actions based on the current SiYuan system time, such as scheduling or logging events.

Output

JSON

  • currentTime - The current system time retrieved from the SiYuan system

Dependencies

  • SiYuan API URL and API Token credentials are required to authenticate and interact with the SiYuan system.

Troubleshooting

  • Ensure that the SiYuan API URL and API Token credentials are correctly set; missing or incorrect credentials will cause authentication errors.
  • If the node throws an error about unsupported resources, verify that the resource parameter is set to 'System'.
  • If the operation fails, check network connectivity to the SiYuan API endpoint and ensure the API token has the necessary permissions.

Discussion