![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
많은 고급 기능, 플러그인 및 커뮤니티 지원을 갖춘 환상적인 노트 테이킹 유틸리티이기 때문에 Obsidian을 많이 사용하기 시작했습니다.
I've started using Obsidian quite a lot, as it's a fantastic note-taking utility with a lot of advanced features, plugins, and community support. I know others who use Notion, and while I've been trying to get to grips with it, there are some things I'd like to keep in both services at all times. That's why I wrote a Python script that allows me to synchronize my to-do list from Obsidian to a Notion database.
많은 고급 기능, 플러그인 및 커뮤니티 지원을 갖춘 환상적인 노트 테이킹 유틸리티이기 때문에 Obsidian을 많이 사용하기 시작했습니다. 나는 개념을 사용하는 다른 사람들을 알고 있으며, 나는 그것을 잡기 위해 노력하는 동안 항상 두 서비스에 항상 유지하고 싶은 것이 있습니다. 그렇기 때문에 내가 할 일 목록을 Obsidian에서 개념 데이터베이스로 동기화 할 수있는 Python 스크립트를 작성했습니다.
In order to use this script, you'll need to follow the instructions outlined below in order to generate an integration token for your Notion database. You can then give your integration access to your selected database, and it will be able to read and write to it as it needs to. Notion has a lot of different integrations readily available, but we're going to be creating our own combined with a pre-made template.
이 스크립트를 사용하려면 개념 데이터베이스에 대한 통합 토큰을 생성하려면 아래에 요약 된 지침을 따라야합니다. 그런 다음 선택한 데이터베이스에 통합 액세스 권한을 부여 할 수 있으며 필요에 따라 읽고 쓸 수 있습니다. 개념은 쉽게 사용할 수있는 다양한 통합을 가지고 있지만, 우리는 사전 제작 된 템플릿과 결합 된 자체를 만들 것입니다.
As well, this is mostly a proof of concept. While it may be useful to some in its current state, this article is designed to help you get to grips with the Notion API and build your own integrations.
또한 이것은 대부분 개념 증명입니다. 현재 상태의 일부에게는 유용 할 수 있지만이 기사는 개념 API를 잡고 자신의 통합을 구축 할 수 있도록 설계되었습니다.
Setting up API access in Notion
개념으로 API 액세스를 설정합니다
Notion's API is easy to use
개념의 API는 사용하기 쉽습니다
First and foremost, Notion's API is really easy to use and quite well-documented. It can be quite hard to get started if you're not too familiar, so we'll walk you through the steps in order to create your own integration. The pictures above can also be used as a reference to ensure that you are creating the integration correctly.
무엇보다도 Notion의 API는 사용하기 쉽고 잘 문서화되어 있습니다. 너무 익숙하지 않으면 시작하기가 어려울 수 있으므로 자신의 통합을 만들기 위해 단계를 안내해 드리겠습니다. 위의 그림은 통합을 올바르게 생성하는지 확인하기 위해 참조로 사용될 수 있습니다.
Next, we'll need to create the Notion database that your notes will be stored in. We're going to use the To-do List template on Notion, though we'll need to remove some additional fields. This template turns each task into its own page so that you can enter additional information.
다음으로, 노트가 저장 될 개념 데이터베이스를 만들어야합니다. 우리는 추가 필드를 제거해야하지만 개념에 할 일 목록 템플릿을 사용하겠습니다. 이 템플릿은 각 작업을 자체 페이지로 바꾸어 추가 정보를 입력 할 수 있습니다.
Now that we have our template ready, click the "..." button (to the left of "New") and click "Customize To-dos". Click "Tasks" to remove it from the database. This will allow us to modify the fields in the template, where we can remove the "Assign" and "Due" fields. I also renamed "Task name" to simply "Name".
템플릿이 준비되었으므로 "..."버튼 ( "새"왼쪽에있는 왼쪽)을 클릭하고 "할 일을 사용자 정의"클릭하십시오. "작업"을 클릭하여 데이터베이스에서 제거하십시오. 이를 통해 템플릿에서 필드를 수정하여 "할당"및 "마감"필드를 제거 할 수 있습니다. 나는 또한 "Task Name"으로 이름을 단순히 "이름"으로 바꿨습니다.
Finally, we'll finish by adding our integration to the page, so that it can edit the page. Go to the very top right of the page, where there's another "..." button. Click that, hover over "Connections" and scroll down to the integration that we created. Click it, and confirm that you want to give it access to the page.
마지막으로 페이지에 통합을 추가하여 페이지를 편집 할 수 있도록 완료합니다. 또 다른 "..."버튼이있는 페이지의 오른쪽 상단으로 이동하십시오. 이를 클릭하고 "연결"위로 가져 가서 우리가 만든 통합으로 스크롤하십시오. 클릭하고 페이지에 액세스 할 수 있는지 확인하십시오.
Now with our page set up, we can move on to deploying the script to synchronize our Obsidian notes with Notion!
이제 페이지가 설정되면 스크립트를 배포하여 Obsidian 메모를 개념으로 동기화 할 수 있습니다!
Setting up our script
스크립트 설정
You need your database ID, integration token, and Markdown file name
데이터베이스 ID, 통합 토큰 및 Markdown 파일 이름이 필요합니다.
The script that I've written can be found on GitHub, and it's pretty easy to get set up. You'll need to have Python installed on your machine, and you'll need to place the downloaded script in the same folder as your Obsidian notes. The only required Python library that doesn't already come preinstalled is the requests library, which you can install with the following command:
내가 쓴 스크립트는 Github에서 찾을 수 있으며 설정하기가 매우 쉽습니다. 컴퓨터에 Python을 설치해야하며 다운로드 된 스크립트를 Obsidian 메모와 동일한 폴더에 배치해야합니다. 아직 미리 설치되지 않은 유일한 필수 파이썬 라이브러리는 요청 라이브러리이며 다음 명령으로 설치할 수 있습니다.
pip3 install requests
PIP3 요청을 설치하십시오
Next, you'll need to replace the NOTION_TOKEN, DATABASE_ID, and TASKS variables defined at the start of the file with your details. The token is the integration token that we created earlier, and the database ID is found in the URL of the Notion database we created. The database ID is everything after "notion.so/" and everything before "?v=..." For example, a database ID might look like the following:
다음으로 파일 시작시 정의 된 Notion_Token, Database_id 및 작업 변수를 세부 사항으로 바꿔야합니다. 토큰은 이전에 만든 통합 토큰이며 데이터베이스 ID는 우리가 만든 개념 데이터베이스의 URL에 있습니다. 데이터베이스 ID는 "Notion.so/"및 이전의 모든 것 "이후의 모든 것"? v = ... "예를 들어, 데이터베이스 ID는 다음과 같습니다.
1bd1ef8871068079b3f7e7a515dc292b
1BD1EF8871068079B3F7E7A515DC292B
Finally, replace "tasks.md" with the actual name of the markdown file that you use to track your tasks. I used tasks.md to test this script, but if you already have a daily tracker, you can change the name to match the file where they're stored.
마지막으로, "tasks.md"를 작업을 추적하는 데 사용하는 Markdown 파일의 실제 이름으로 바꾸십시오. Tasks.md를 사용 하여이 스크립트를 테스트했지만 이미 매일 추적기가있는 경우 저장된 파일과 일치하도록 이름을 변경할 수 있습니다.
Running the script
스크립트 실행
Now that we have everything in place, we can run the script! Simply open a terminal in the folder and run the following command:
이제 우리는 모든 것을 제자리에두고 있으므로 스크립트를 실행할 수 있습니다! 폴더에서 터미널을 열고 다음 명령을 실행합니다.
python3 synctasks.py
This will then connect to your Notion database with your integration token, read your markdown file, and synchronize its contents with the server. You can also automate the running of the script so that it synchronizes multiple times a day. It will remove tasks that you delete from your notes, and it will also update the status if you change them from incomplete to completed (or vice versa).
그러면 통합 토큰으로 개념 데이터베이스에 연결하고 Markdown 파일을 읽고 서버와 컨텐츠를 동기화합니다. 스크립트 실행을 자동화하여 하루에 여러 번 동기화 할 수 있습니다. 메모에서 삭제하는 작업을 제거하고 불완전에서 완료로 변경하면 상태가 업데이트됩니다 (또는 그 반대).
This is a very basic script that will get you started with the Notion API, and you can expand on its functionality to do a lot more than just manage
이것은 개념 API를 시작하게하는 매우 기본적인 스크립트이며, 단순히 관리하는 것보다 더 많은 기능을 수행하기 위해 기능을 확장 할 수 있습니다.
부인 성명:info@kdj.com
제공된 정보는 거래 조언이 아닙니다. kdj.com은 이 기사에 제공된 정보를 기반으로 이루어진 투자에 대해 어떠한 책임도 지지 않습니다. 암호화폐는 변동성이 매우 높으므로 철저한 조사 후 신중하게 투자하는 것이 좋습니다!
본 웹사이트에 사용된 내용이 귀하의 저작권을 침해한다고 판단되는 경우, 즉시 당사(info@kdj.com)로 연락주시면 즉시 삭제하도록 하겠습니다.
-
-
-
-
- 2025 년은 이더 리움을위한 난류 캔버스를 그렸습니다.
- 2025-03-25 20:40:16
- 한 번 시장에 스며 들었던 강세 예측에서 벗어나면서 2,000 달러 미만의 이더 리움 하강
-
-
-
-
-