<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Patrick Star</title>
        <link>https://145111.xyz//</link>
        <description>欢迎来到我的博客
</description>
        <lastBuildDate>Thu, 05 Mar 2026 01:40:24 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>zh-CN</language>
        <copyright>All rights reserved 2026, Patrick Star</copyright>
        <item>
            <title><![CDATA[无服务器搭建Dashy（个人导航）]]></title>
            <link>https://145111.xyz//article/1df51119-3bfc-8022-9259-d6fa6af6db3d</link>
            <guid>https://145111.xyz//article/1df51119-3bfc-8022-9259-d6fa6af6db3d</guid>
            <pubDate>Fri, 25 Apr 2025 00:00:00 GMT</pubDate>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1df511193bfc80229259d6fa6af6db3d"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-1df511193bfc80288737d5973a54a017"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">很多年前，各种各样的网站导航层出不穷，我刚开始长期使用电脑之后，也关注了好几个导航网站当初都还算良心，但是后来登陆了浏览器，可以进行各种同步，就没再关注了，最近清理书签，看到了很久以前关注的导航网站，看了一下，全都是广告内容…… 然后我想，如果不方便登录的情况下，想要访问常用网站，或者是想要聚合自己常用网站，我是不是也可以搭建一个导航网站，于是便有了这篇文章。</div></div><div class="notion-blank notion-block-1df511193bfc80d2a25dd4470eee82b3"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1df511193bfc806583efeba3ad147eff" data-id="1df511193bfc806583efeba3ad147eff"><span><div id="1df511193bfc806583efeba3ad147eff" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1df511193bfc806583efeba3ad147eff" title="📝 基于Vercel搭建Dashy"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">📝 基于Vercel搭建Dashy</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1df511193bfc800f84bbf79a3f9fd043" data-id="1df511193bfc800f84bbf79a3f9fd043"><span><div id="1df511193bfc800f84bbf79a3f9fd043" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1df511193bfc800f84bbf79a3f9fd043" title="基本要求"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">基本要求</span></span></h3><div class="notion-text notion-block-1df511193bfc80c08ed5c13c9c9e7ae3">只需要一贯Github账号，一个vercel账号，和一个域名（非必须，为了使用自定义域名访问自建导航网站）</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1df511193bfc80ec8e44f4999fecd09a" data-id="1df511193bfc80ec8e44f4999fecd09a"><span><div id="1df511193bfc80ec8e44f4999fecd09a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1df511193bfc80ec8e44f4999fecd09a" title="正式开始"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">正式开始</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-1df511193bfc80c28aeae37209592217" style="list-style-type:decimal"><li>登录GitHub，访问<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/Lissy93/dashy">Dashy</a>主页，点页面上的fork，复制一份到自己的仓库中</li><ol class="notion-list notion-list-numbered notion-block-1df511193bfc80c28aeae37209592217" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc809fbe28ca7badb5d1cb"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A7806cd56-255c-425d-9a58-94e88839ae9a%3Aimage.png?table=block&amp;id=1df51119-3bfc-809f-be28-ca7badb5d1cb&amp;t=1df51119-3bfc-809f-be28-ca7badb5d1cb" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1df511193bfc809c80c2d3f22af25f4c" style="list-style-type:decimal"><li>进入自己fork的dashy仓库中，往下找到 <b>Deploy to the Cloud </b>，打开其中的<b> </b><b><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://vercel.com/new/project?template=https://github.com/lissy93/dashy">Deploy to Vercel</a></b></li><ol class="notion-list notion-list-numbered notion-block-1df511193bfc809c80c2d3f22af25f4c" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc801c9162d4cbf51c5094"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Abf785175-42af-472a-8bd6-15370d9d1b3e%3Aimage.png?table=block&amp;id=1df51119-3bfc-801c-9162-d4cbf51c5094&amp;t=1df51119-3bfc-801c-9162-d4cbf51c5094" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1df511193bfc80a19473e6ff84ce23d0" style="list-style-type:decimal"><li>进入Vercel导入仓库的页面，打开Continue with Github，在弹窗中进行登录。</li><ol class="notion-list notion-list-numbered notion-block-1df511193bfc80a19473e6ff84ce23d0" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc806886ead348c1a53e70"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0ead14ae-1b46-4d71-9060-572921b11e6c%3Aimage.png?table=block&amp;id=1df51119-3bfc-8068-86ea-d348c1a53e70&amp;t=1df51119-3bfc-8068-86ea-d348c1a53e70" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="4" class="notion-list notion-list-numbered notion-block-1df511193bfc80019806e7998c45388e" style="list-style-type:decimal"><li>登陆后会显示可导入vercel的仓库列表（这里出现了dashy和nav），当然第一次使用也可能啥也没有，这时候点击下方的Adjust GitHub App Permissions →</li><ol class="notion-list notion-list-numbered notion-block-1df511193bfc80019806e7998c45388e" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc8030bd2fe126e3b9acb7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A08e4040d-d844-4dfa-843d-9659f9b0f11b%3Aimage.png?table=block&amp;id=1df51119-3bfc-8030-bd2f-e126e3b9acb7&amp;t=1df51119-3bfc-8030-bd2f-e126e3b9acb7" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="5" class="notion-list notion-list-numbered notion-block-1df511193bfc80f9b152e53a1d01de7a" style="list-style-type:decimal"><li>点击之后，经过GitHub验证，会进入一个新的页面，往下找到 <b>Repository access</b> 这个部分，选择下方的<b>Only select repositories</b>，再点击 Select repositories 然后就可以选择你想要导入的仓库，找到我们fork下来的dashy，然后往下滑找到保存按钮。</li><ol class="notion-list notion-list-numbered notion-block-1df511193bfc80f9b152e53a1d01de7a" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc80968a5bcc8f440c8b7a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A344cf7e2-bf17-4d81-926a-66ff63693706%3Aimage.png?table=block&amp;id=1df51119-3bfc-8096-8a5b-cc8f440c8b7a&amp;t=1df51119-3bfc-8096-8a5b-cc8f440c8b7a" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="6" class="notion-list notion-list-numbered notion-block-1df511193bfc80918ddccebce882f4de" style="list-style-type:decimal"><li>完成上一步之后，会回到vercel导入项目的网页中，点击我们要导入项目右边的这个import按键，至此完成了将GitHub项目导入到vercel中。</li><ol class="notion-list notion-list-numbered notion-block-1df511193bfc80918ddccebce882f4de" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc806d868ddfc2f89d97d2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1f2fee64-c9e0-414b-90e4-d5c83b5d79a9%3Aimage.png?table=block&amp;id=1df51119-3bfc-806d-868d-dfc2f89d97d2&amp;t=1df51119-3bfc-806d-868d-dfc2f89d97d2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="7" class="notion-list notion-list-numbered notion-block-1df511193bfc8046bed4cfc7b1164ae7" style="list-style-type:decimal"><li>接下来就是vercel项目配置，其中建议按照我的进行配置，下面三个选项先要点一下右边的笔，打开编辑功能，完成之后点击最下面的Deploy。</li><ol class="notion-list notion-list-numbered notion-block-1df511193bfc8046bed4cfc7b1164ae7" style="list-style-type:lower-alpha"><table class="notion-simple-table notion-block-1df511193bfc800aab9ef786997a0d6e"><tbody><tr class="notion-simple-table-row notion-simple-table-header-row notion-block-1df511193bfc8059b00eeb2dacba4fb9"><td class="" style="width:432px"><div class="notion-simple-table-cell">配置名称</div></td><td class="" style="width:280px"><div class="notion-simple-table-cell">配置内容</div></td></tr><tr class="notion-simple-table-row notion-block-1df511193bfc80a283e9da1ba94ed551"><td class="" style="width:432px"><div class="notion-simple-table-cell">Framework Preset</div></td><td class="" style="width:280px"><div class="notion-simple-table-cell">拉到最下面选Other</div></td></tr><tr class="notion-simple-table-row notion-block-1df511193bfc80989be5d65a9bcc73d2"><td class="" style="width:432px"><div class="notion-simple-table-cell">Build and Output Settings-Build Command</div></td><td class="" style="width:280px"><div class="notion-simple-table-cell">NODE_OPTIONS=--openssl-legacy-provider yarn build</div></td></tr><tr class="notion-simple-table-row notion-block-1df511193bfc8006a71ac382de80cffb"><td class="" style="width:432px"><div class="notion-simple-table-cell">Build and Output Settings-Output Directory</div></td><td class="" style="width:280px"><div class="notion-simple-table-cell">dist</div></td></tr><tr class="notion-simple-table-row notion-block-1df511193bfc80f89314e6e9bf921a38"><td class="" style="width:432px"><div class="notion-simple-table-cell">Build and Output Settings-Install Command</div></td><td class="" style="width:280px"><div class="notion-simple-table-cell">yarn install --ignore-engines</div></td></tr></tbody></table><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc8070b6ace23add66ebe4"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A5976fd29-1d31-4fbd-82c8-7a2f8b0a6ea0%3Aimage.png?table=block&amp;id=1df51119-3bfc-8070-b6ac-e23add66ebe4&amp;t=1df51119-3bfc-8070-b6ac-e23add66ebe4" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="8" class="notion-list notion-list-numbered notion-block-1df511193bfc80b8ae86efc554bd39e2" style="list-style-type:decimal"><li>接下里就是等待编译部署，部署完之后，我们点击Continue to Dashboard，打开项目控制面板</li><ol class="notion-list notion-list-numbered notion-block-1df511193bfc80b8ae86efc554bd39e2" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc806caae2ed1305711e5c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A0bb08048-4788-4b79-8235-9dd611a96ca4%3Aimage.png?table=block&amp;id=1df51119-3bfc-806c-aae2-ed1305711e5c&amp;t=1df51119-3bfc-806c-aae2-ed1305711e5c" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="9" class="notion-list notion-list-numbered notion-block-1df511193bfc8019bbf8fc159b117294" style="list-style-type:decimal"><li>访问我们部署的dashy：点击Dashboard中的Domains下的dashy-dbnz.vercel.app，就可以打开最基本的导航页面了，就可以修改主题，添加自己的收藏了。</li><ol class="notion-list notion-list-numbered notion-block-1df511193bfc8019bbf8fc159b117294" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc807091d9f921a0bb6986"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa8194458-60c3-47b2-9f4c-527095e29dc5%3Aimage.png?table=block&amp;id=1df51119-3bfc-8070-91d9-f921a0bb6986&amp;t=1df51119-3bfc-8070-91d9-f921a0bb6986" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc80e0a51ad963e587585c"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2457a06f-8819-45c8-ba0e-24bd2f200d25%3Aimage.png?table=block&amp;id=1df51119-3bfc-80e0-a51a-d963e587585c&amp;t=1df51119-3bfc-80e0-a51a-d963e587585c" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1df511193bfc80e691e0f5371a9b7a49" data-id="1df511193bfc80e691e0f5371a9b7a49"><span><div id="1df511193bfc80e691e0f5371a9b7a49" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1df511193bfc80e691e0f5371a9b7a49" title="基础部署完成"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">基础部署完成</span></span></h3><div class="notion-text notion-block-1df511193bfc8026825ce542697e4475">利用vercel部署基础dashy到这里就完成了，以后每一次想要添加内容，就需要打开GitHub，修改其中user-data目录下的conf.yml 文件，即使在UI网页中修改，实际上是不会同步到这个文件中，还需要将修改后的内容复制覆盖到这个文件中，这里简单讲解一下。</div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1df511193bfc80358be8e24cacdd31bb" data-id="1df511193bfc80358be8e24cacdd31bb"><span><div id="1df511193bfc80358be8e24cacdd31bb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1df511193bfc80358be8e24cacdd31bb" title="更新dashy配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">更新dashy配置</span></span></h3><ol start="1" class="notion-list notion-list-numbered notion-block-1df511193bfc80678233d661dc89f53a" style="list-style-type:decimal"><li>点击页面中的铅笔进行页面配置</li><ol class="notion-list notion-list-numbered notion-block-1df511193bfc80678233d661dc89f53a" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc807bb6c4c74756007eaf"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9993bdfb-2e3e-4c79-a1bb-10fe9b91b2cd%3Aimage.png?table=block&amp;id=1df51119-3bfc-807b-b6c4-c74756007eaf&amp;t=1df51119-3bfc-807b-b6c4-c74756007eaf" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1df511193bfc80f8ae7ce14d30cdbd8b" style="list-style-type:decimal"><li>在页面中进行修改，修改之后点击Save Locally</li><ol class="notion-list notion-list-numbered notion-block-1df511193bfc80f8ae7ce14d30cdbd8b" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc80109ebee1a480c7d9c1"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aca4a1b01-926f-41cd-ac5b-d73d96b27688%3Aimage.png?table=block&amp;id=1df51119-3bfc-8010-9ebe-e1a480c7d9c1&amp;t=1df51119-3bfc-8010-9ebe-e1a480c7d9c1" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1df511193bfc8034b5d3e0df17f19155" style="list-style-type:decimal"><li>修改之后点击右边的扳手</li><ol class="notion-list notion-list-numbered notion-block-1df511193bfc8034b5d3e0df17f19155" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc8031920ee3bfbb2a5685"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:468.1499938964844px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A2fca36bc-89f9-47e0-8286-a9e03572db74%3Aimage.png?table=block&amp;id=1df51119-3bfc-8031-920e-e3bfbb2a5685&amp;t=1df51119-3bfc-8031-920e-e3bfbb2a5685" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="4" class="notion-list notion-list-numbered notion-block-1df511193bfc8065b494cb901c788edd" style="list-style-type:decimal"><li>弹出框中选择 View / Export Config 进行查看</li><ol class="notion-list notion-list-numbered notion-block-1df511193bfc8065b494cb901c788edd" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc8068a93dcbf8b0f8e6d0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A476c3bbd-9077-4443-927f-f97fe16ed6af%3Aimage.png?table=block&amp;id=1df51119-3bfc-8068-a93d-cbf8b0f8e6d0&amp;t=1df51119-3bfc-8068-a93d-cbf8b0f8e6d0" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="5" class="notion-list notion-list-numbered notion-block-1df511193bfc80f9a453cdaef8d0cbd2" style="list-style-type:decimal"><li>这里就可以复制已修改好的配置，点击Copy to Clipboard，复制</li><ol class="notion-list notion-list-numbered notion-block-1df511193bfc80f9a453cdaef8d0cbd2" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc80fe8efcf67dd942ddfd"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:468.1875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af3350035-b136-4121-ae02-771d4ce32a53%3Aimage.png?table=block&amp;id=1df51119-3bfc-80fe-8efc-f67dd942ddfd&amp;t=1df51119-3bfc-80fe-8efc-f67dd942ddfd" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="6" class="notion-list notion-list-numbered notion-block-1df511193bfc8088ad86c3a57925b5a4" style="list-style-type:decimal"><li>打开GitHub，找到user-data目录下的conf.yml 文件，将所有内容复制进去并保存</li></ol><ol start="7" class="notion-list notion-list-numbered notion-block-1df511193bfc8080b454d5296f6936a6" style="list-style-type:decimal"><li>回到vercel中重新部署</li><ol class="notion-list notion-list-numbered notion-block-1df511193bfc8080b454d5296f6936a6" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1df511193bfc80f3a8f7fe8f787610db"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A02b57c57-5cca-466a-b2b2-f546cdcb67f2%3Aimage.png?table=block&amp;id=1df51119-3bfc-80f3-a8f7-fe8f787610db&amp;t=1df51119-3bfc-80f3-a8f7-fe8f787610db" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="8" class="notion-list notion-list-numbered notion-block-1df511193bfc800f839cc3a1357811be" style="list-style-type:decimal"><li>再次访问网站，刷新既可以看到之前保存在本地的效果。</li></ol><div class="notion-text notion-block-1df511193bfc8058962aefc6a01e96af">是不是还挺繁琐的，并且，这个GitHub仓库是开放状态，所有人都可以访问，所以不太好放一些内网设备或者私人网站。后面我会解决这个问题，详见：</div><div class="notion-blank notion-block-1df511193bfc80d5ac33ce4b51dca66d"> </div><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-1df511193bfc801bbd71d7146614290b" data-id="1df511193bfc801bbd71d7146614290b"><span><div id="1df511193bfc801bbd71d7146614290b" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1df511193bfc801bbd71d7146614290b" title="添加自定义域名"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">添加自定义域名</span></span></h3><div class="notion-text notion-block-1df511193bfc800b80efd168dbcf9033">本节主要是为我们自己搭建的dashy添加一个方便好记的域名，我的域名是托管在cloudflare上面的，具体操作：</div><ol start="1" class="notion-list notion-list-numbered notion-block-1e0511193bfc8024aac9d119414a54de" style="list-style-type:decimal"><li>打开cloudflare网站并登录，进入要绑定的域名界面，进入dns配置页面：</li><ol class="notion-list notion-list-numbered notion-block-1e0511193bfc8024aac9d119414a54de" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0511193bfc80b186efc9ccfab3031f"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A604727b2-b5af-403e-ad56-1e5613eb30af%3Aimage.png?table=block&amp;id=1e051119-3bfc-80b1-86ef-c9ccfab3031f&amp;t=1e051119-3bfc-80b1-86ef-c9ccfab3031f" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-1e0511193bfc8050ba6ec0c15fd643c5" style="list-style-type:decimal"><li>添加一条cname记录，名称表示可以二级域名，代理状态要关掉（变成灰色），这个操作就是可以通过访问dash.域名.xyz访问我们的dashy网页。</li><ol class="notion-list notion-list-numbered notion-block-1e0511193bfc8050ba6ec0c15fd643c5" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0511193bfc80568e22d770ff23ee48"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A40b1acc8-3142-4ec9-a059-5fdb8329d74b%3Aimage.png?table=block&amp;id=1e051119-3bfc-8056-8e22-d770ff23ee48&amp;t=1e051119-3bfc-8056-8e22-d770ff23ee48" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="3" class="notion-list notion-list-numbered notion-block-1e0511193bfc80f5a5d9cb9e66bbcf13" style="list-style-type:decimal"><li>保存之后回到vercel的项目页面，打开项目的settings，找到下面的Domains，点击右边的add添加域名</li><ol class="notion-list notion-list-numbered notion-block-1e0511193bfc80f5a5d9cb9e66bbcf13" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0511193bfc80ffb136ce240f1709a0"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Afcc2b1b5-a9c7-48aa-8ede-fd038a83b810%3Aimage.png?table=block&amp;id=1e051119-3bfc-80ff-b136-ce240f1709a0&amp;t=1e051119-3bfc-80ff-b136-ce240f1709a0" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="4" class="notion-list notion-list-numbered notion-block-1e0511193bfc800b98bed395bd9849f5" style="list-style-type:decimal"><li>在弹窗中输入我们的域名：dash.xxxxx.xyz，点击添加就可以了，会自动为我们的这个域名配置免费的SSL证书。</li><ol class="notion-list notion-list-numbered notion-block-1e0511193bfc800b98bed395bd9849f5" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1e0511193bfc80b2935dcd2fbe2ea08e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:468.1875px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Aa4481085-dd36-45e2-9c38-4ef8f3cf16a4%3Aimage.png?table=block&amp;id=1e051119-3bfc-80b2-935d-cd2fbe2ea08e&amp;t=1e051119-3bfc-80b2-935d-cd2fbe2ea08e" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="5" class="notion-list notion-list-numbered notion-block-1e0511193bfc80b2a495e4b6fcb77bab" style="list-style-type:decimal"><li>已完成配置，通过域名访问dashy试试吧</li></ol><div class="notion-blank notion-block-1df511193bfc80aa8539ce0170cd3173"> </div><div class="notion-blank notion-block-1df511193bfc804999c3f664ddf68b6f"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-1df511193bfc80c686c1c95d5cb55b81" data-id="1df511193bfc80c686c1c95d5cb55b81"><span><div id="1df511193bfc80c686c1c95d5cb55b81" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1df511193bfc80c686c1c95d5cb55b81" title="🤗 预告"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">🤗 预告</span></span></h2><div class="notion-text notion-block-1e0511193bfc808ab4b0da2caec2ae3a">这篇先写到这里，下一篇将配置文件放在私有GitHub仓库中，以及配置其他配置。</div><div class="notion-blank notion-block-1df511193bfc80789a5ac89a580d9eae"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ESP32 MicroPython 稳定MQTT连接]]></title>
            <link>https://145111.xyz//article/16d51119-3bfc-8092-aeef-cca6cd3b77e0</link>
            <guid>https://145111.xyz//article/16d51119-3bfc-8092-aeef-cca6cd3b77e0</guid>
            <pubDate>Tue, 31 Dec 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[解决MicroPython设备自带MQTT会自动断连的问题]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-16d511193bfc8092aeefcca6cd3b77e0"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-16d511193bfc80489bede3b43a44fec4" data-id="16d511193bfc80489bede3b43a44fec4"><span><div id="16d511193bfc80489bede3b43a44fec4" class="notion-header-anchor"></div><a class="notion-hash-link" href="#16d511193bfc80489bede3b43a44fec4" title="MicroPython自带MQTT"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">MicroPython自带MQTT</span></span></h2><div class="notion-text notion-block-16d511193bfc80908043e550ef59dbaa">以下代码使用MicroPython（2024.12最新固件）自带MQTT库 <b>umqtt.simple</b> 实现了连接<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://cloud.bemfa.com/">巴法云</a>，订阅巴法云上的 esp32led 这个 topic ，经过测试，在一段事件后会自动断开连接，导致服务不可用。经过多次测试，应该是 umqtt.simple 这个库本身的问题。</div><div class="notion-text notion-block-1d9511193bfc8044b80fd03be2a10fe4">警告⚠：经多次测试，</div><div class="notion-text notion-block-1d9511193bfc804fbde1e6062b96e4f2">umqtt.simple 这个库确实有问题，不定期断线，短则几分钟，长则几小时，不建议再使用。</div><div class="notion-text notion-block-1d9511193bfc8051a0d7ec122e9426f1">接入巴法云示例：</div><div class="notion-blank notion-block-16d511193bfc80b3b8c6eb8a394ac54e"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-16d511193bfc8025af0aea2e07ceee65" data-id="16d511193bfc8025af0aea2e07ceee65"><span><div id="16d511193bfc8025af0aea2e07ceee65" class="notion-header-anchor"></div><a class="notion-hash-link" href="#16d511193bfc8025af0aea2e07ceee65" title="解决MicroPython自带MQTT自动断连"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">解决MicroPython自带MQTT自动断连</span></span></h2><div class="notion-text notion-block-16d511193bfc803b9ab8c866504f11c1">以下代码换用第三方<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/peterhinch/micropython-mqtt">micropython-mqtt</a>，经过测试，这个mqtt库可以保持连接，不会断开，非常可靠。</div><div class="notion-text notion-block-16d511193bfc808a9754f5a9cd06f879">安装方式（关闭所有与ESP32连接的软件）：</div><div class="notion-text notion-block-1d9511193bfc80a586fbfcf8c6e4773d">连接巴法云使用示例：</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-16d511193bfc80638427ebfff7f84341" data-id="16d511193bfc80638427ebfff7f84341"><span><div id="16d511193bfc80638427ebfff7f84341" class="notion-header-anchor"></div><a class="notion-hash-link" href="#16d511193bfc80638427ebfff7f84341" title="故障排除(使用巴法云平台)"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">故障排除(使用巴法云平台)</span></span></h2><div class="notion-text notion-block-16d511193bfc80bb9608e94a23fce2e5">运行以上代码可能会提示：</div><div class="notion-text notion-block-16d511193bfc806baa7ecfdc866a0231">打开ESP32设备的lib文件夹中的mqtt_as里面的__init__.py，大约在372行，将以下代码注释：</div><div class="notion-blank notion-block-16d511193bfc808cb1c6dfeba97a9491"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[米家、小爱音箱、巴法云app、微信小程序远程控制ESP32开发板]]></title>
            <link>https://145111.xyz//article/16d51119-3bfc-8091-985e-ec5770122a73</link>
            <guid>https://145111.xyz//article/16d51119-3bfc-8091-985e-ec5770122a73</guid>
            <pubDate>Tue, 31 Dec 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[使用米家、小爱音箱、巴法app和巴法云小程序远程控制ESP32设备]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-16d511193bfc8091985eec5770122a73"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-16d511193bfc807c821ec8d05cb3bc07" data-id="16d511193bfc807c821ec8d05cb3bc07"><span><div id="16d511193bfc807c821ec8d05cb3bc07" class="notion-header-anchor"></div><a class="notion-hash-link" href="#16d511193bfc807c821ec8d05cb3bc07" title="基础配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">基础配置</span></span></h2><div class="notion-text notion-block-16d511193bfc80bc9662d0ee172c102a">接上文，在<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://cloud.bemfa.com/">巴法云</a>控制台创建MQTT设备云，以下使用 <b>buildingLock006 </b>作为示例topic，topic名称与设备类型对应信息详见<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://cloud.bemfa.com/docs/src/index_device.html">巴法云文档中心#设备类型</a>。</div><div class="notion-blank notion-block-16d511193bfc8037b146d20c18102dde"> </div><blockquote class="notion-quote notion-block-16d511193bfc80ed8d07c14e407b1db7"><div>示例（后三位数字决定类型）</div><div class="notion-text notion-block-16d511193bfc80649442fca463358b03">若新建主题名字为：chazuo001，haha001，led001，balabala001，sha001等均为插座设备。</div><div class="notion-text notion-block-16d511193bfc80d291faf72c4c1125b1">若新建主题名字为：led002，shawanyi002，led_002，myled002，hahaha002等均为灯泡设备。</div><div class="notion-text notion-block-16d511193bfc80b185fec6c6f5aa2e8b">若新建主题名字为：fan003，fan_003，myfan_003，hahahahh003，balabala003等均为风扇设备。</div><div class="notion-text notion-block-16d511193bfc80ae8764fc6774834320">若新建主题名字为：haha004，m004，my004，hh_004，temp004等均为传感器设备。</div><div class="notion-text notion-block-16d511193bfc80d08c08f007453e41d7">若新建主题名字为：haha005，w005，air005，wo_005，nihao005等均为空调设备。</div><div class="notion-text notion-block-16d511193bfc80508d09ecbb44d04e2f">若新建主题名字为：switch006，haha006，led006，balabala006，sha006等均为开关设备。</div><div class="notion-text notion-block-16d511193bfc80608f63ee54f0abccf7">若新建主题名字为：haha009，1111099，air009，nihao009等均为窗帘设备。</div></blockquote><div class="notion-blank notion-block-16d511193bfc805a90eadecf3375c4cd"> </div><div class="notion-text notion-block-16d511193bfc804dbd3ee039833c883e">配置好topic，设置昵称：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-16d511193bfc80f08860e85e527f2d72"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:363.99554443359375px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F28225b35-035e-429c-8267-57444e4794bb%2Fd22dcf0b-13f4-46c8-895c-0d13cb4a2eef%2Fimage.png?table=block&amp;id=16d51119-3bfc-80f0-8860-e85e527f2d72&amp;t=16d51119-3bfc-80f0-8860-e85e527f2d72&amp;width=363.99554443359375&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-16d511193bfc80e7aa5af2c158e93195" data-id="16d511193bfc80e7aa5af2c158e93195"><span><div id="16d511193bfc80e7aa5af2c158e93195" class="notion-header-anchor"></div><a class="notion-hash-link" href="#16d511193bfc80e7aa5af2c158e93195" title="ESP32 MicroPython代码"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">ESP32 MicroPython代码</span></span></h2><div class="notion-text notion-block-16d511193bfc80f7a0dcc53614df3347">将代码内容写入ESP32 开发板根目录的main.py文件中，配置好网络信息和巴法云的认证<b>私钥</b>，按下开发板的启动键或者断电再上电，即可在巴法云平台上线。</div><div class="notion-blank notion-block-16d511193bfc8067967dd2e1883a254c"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-16d511193bfc808196a8ea215b12afdb" data-id="16d511193bfc808196a8ea215b12afdb"><span><div id="16d511193bfc808196a8ea215b12afdb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#16d511193bfc808196a8ea215b12afdb" title="连接到米家（需要小爱音箱）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">连接到米家（需要小爱音箱）</span></span></h2><ol start="1" class="notion-list notion-list-numbered notion-block-16d511193bfc80c1bc54d4f5f4dfb0ac" style="list-style-type:decimal"><li>米家app-我的-添加其它平台-添加-搜索 巴法 ，然后进行登录绑定，绑定之后，点击同步设备，即会出现与巴法云平台上昵称相同的设备，这里的昵称示例是 楼栋门锁 ，同步完成之后，进入下一步。</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-16d511193bfc800ba3e0c1278bd1323b" style="list-style-type:decimal"><li>米家app-智能-右上角添加-手动控制-执行动作-家居设备-选择小爱音箱—自定义指令-打开楼栋门锁（示例昵称为 楼栋门锁），可勾选下方的静默执行。</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-16d511193bfc806ab3ffd3f54151b051" style="list-style-type:decimal"><li>保存之后，更多设置里面可以添加到全屋置顶，可以使用按键和小爱音箱语音控制。</li></ol><div class="notion-blank notion-block-16d511193bfc809cbaa1c1a1f34705b8"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-16d511193bfc80cd95d5c6297ec71695" data-id="16d511193bfc80cd95d5c6297ec71695"><span><div id="16d511193bfc80cd95d5c6297ec71695" class="notion-header-anchor"></div><a class="notion-hash-link" href="#16d511193bfc80cd95d5c6297ec71695" title="使用巴法app或者巴法云微信小程序"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">使用巴法app或者巴法云微信小程序</span></span></h2><div class="notion-text notion-block-16d511193bfc80718422c304ae654b92">登录后，会自动出现设备，可以直接进行控制。</div><div class="notion-blank notion-block-16d511193bfc80ca9b5aef8364cbdf07"> </div><div class="notion-blank notion-block-16d511193bfc8008b965c59b0a777fb5"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Padavan（老毛子）固件路由器自动切换网关和DNS]]></title>
            <link>https://145111.xyz//article/6ff0bf46-1c1a-4fbf-9a27-38b451015fcc</link>
            <guid>https://145111.xyz//article/6ff0bf46-1c1a-4fbf-9a27-38b451015fcc</guid>
            <pubDate>Sat, 30 Jul 2022 00:00:00 GMT</pubDate>
            <description><![CDATA[Padavan（老毛子）固件路由器自动切换网关和DNS]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-6ff0bf461c1a4fbf9a2738b451015fcc"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-3aee9e7f50a046afa175a069e872825d">家中网络连接示意图（已省略接在主路由上的光猫）：</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-19a3291c2c3b42c4a80a64633b4ebcef"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:443px;max-width:100%;flex-direction:column"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F015a62cd-8f53-4849-a5a0-94e9fefc9150%2FUntitled.png?table=block&amp;id=19a3291c-2c3b-42c4-a80a-64633b4ebcef&amp;t=19a3291c-2c3b-42c4-a80a-64633b4ebcef&amp;width=443&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-7b5015b49ce84c108f33b815a46e45a6" data-id="7b5015b49ce84c108f33b815a46e45a6"><span><div id="7b5015b49ce84c108f33b815a46e45a6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#7b5015b49ce84c108f33b815a46e45a6" title="基本情况"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">基本情况</span></span></h4><ul class="notion-list notion-list-disc notion-block-f276d48d68204335910a1ce796a436d9"><li>联通宽带（光猫改桥接，主路由拨号）</li></ul><ul class="notion-list notion-list-disc notion-block-69f7801023764349ab755ff27f7844d0"><li>主路由红米AC2100（RM2100） 老毛子系统（<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/hanwckf/rt-n56u">padavan  </a>3.4.3.9-099_20200619）IP：10.0.0.1 </li></ul><ul class="notion-list notion-list-disc notion-block-97307c846b194d9bbd5ebf4497f409da"><li>NAS 蜗牛星际A款单口  群晖 7.0.1-42218   IP：10.0.0.2</li></ul><ul class="notion-list notion-list-disc notion-block-8bae8b40b792450e97b42ea6df34fbe2"><li>旁路由 群晖自带虚拟机 分配1C1G   <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.istoreos.com/">iStoreOS </a>（OpenWrt 21.02.1 2022042919） IP：10.0.0.21 </li></ul><div class="notion-blank notion-block-223360b7f13048bb9708fbbe6153f765"> </div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-5a409f0088dc4ced89da2b5256947b10" data-id="5a409f0088dc4ced89da2b5256947b10"><span><div id="5a409f0088dc4ced89da2b5256947b10" class="notion-header-anchor"></div><a class="notion-hash-link" href="#5a409f0088dc4ced89da2b5256947b10" title="基础配置"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">基础配置</span></span></h4><details class="notion-toggle notion-block-a19bf1de7917413383860fa34603a97f"><summary>主路由</summary><div><div class="notion-text notion-block-c51352ae2c274594ba5e9d50bd29f441">开启DHCP</div><div class="notion-text notion-block-34091bfd1ecf42aabc02479e9e6c7ee0">默认网关和DNS服务器均设置为旁路由IP</div></div></details><details class="notion-toggle notion-block-1fff6b69290d4385bd38002356da23bb"><summary>旁路由</summary><div><div class="notion-text notion-block-40ded1939c524dbfb292fadd714b3370">接口-LAN-常规设置-勾选开机自动运行</div><div class="notion-text notion-block-c9963fac3ea242f1a936d6a090a36696">接口-LAN-常规设置-IP地址 10.0.0.21</div><div class="notion-text notion-block-a14971a8096c441992f3bb6fad12da2c">接口-LAN-常规设置-IPv4网关 10.0.0.1</div><div class="notion-text notion-block-865766f4a9eb450ba87cf241796a0139">接口-LAN-DHCP服务器 勾选忽略此接口</div></div></details><div class="notion-blank notion-block-4d64c46cc8f7494dbe0110f1051c43be"> </div><div class="notion-blank notion-block-6dcdaaf4ef894d77b0ffe602fe356562"> </div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-ec21906a49af4526b5eb395d2485f083" data-id="ec21906a49af4526b5eb395d2485f083"><span><div id="ec21906a49af4526b5eb395d2485f083" class="notion-header-anchor"></div><a class="notion-hash-link" href="#ec21906a49af4526b5eb395d2485f083" title="旁路由服务"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">旁路由服务</span></span></h4><details class="notion-toggle notion-block-2838487b64f646f091a5b413434eb096"><summary>PassWall </summary><div></div></details><details class="notion-toggle notion-block-9c4e4a73e14546f5b96285a1e9b02e6a"><summary><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/AdguardTeam/AdGuardHome">AdGuard Home</a></summary><div></div></details><details class="notion-toggle notion-block-1cd9f1a389ee4da0a75e0dc166ce529e"><summary><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/pymumu/smartdns">SmartDNS</a></summary><div></div></details><div class="notion-blank notion-block-0936e2e2246e4d84b6a4633fa183f519"> </div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-aa9c1b51b6a2480b8741e06e15e113d6" data-id="aa9c1b51b6a2480b8741e06e15e113d6"><span><div id="aa9c1b51b6a2480b8741e06e15e113d6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#aa9c1b51b6a2480b8741e06e15e113d6" title="需求"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">需求</span></span></h4><div class="notion-text notion-block-fc1c5674c0f64b27ae78eceed1c733b8">1、NAS每晚 11:30 自动关机，此时旁路由也会关机，因为主路由的网关和DNS都是旁路由地址，旁路由关机后，其他家人使用 WiFi 无法上网。</div><div class="notion-text notion-block-bd4fe77d622c46cb98c0d59d2bc07338">2、平常旁路由出现突发状况掉线，WiFi 也无法上网。</div><div class="notion-blank notion-block-d311ac4519ec47a59512b7b80f0183ec"> </div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-aee0ed43b0164cf4a792c14c5206ab4a" data-id="aee0ed43b0164cf4a792c14c5206ab4a"><span><div id="aee0ed43b0164cf4a792c14c5206ab4a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#aee0ed43b0164cf4a792c14c5206ab4a" title="解决"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">解决</span></span></h4><div class="notion-text notion-block-e00912eb9b4946d6b0d37eae12ac1449">在主路由中创建自定义脚本，通过 Crontab 监测旁路由是否在线。</div><div class="notion-text notion-block-edd3763ac16b45a6ba74285ee475ce23">场景1：晚上 NAS 关机，旁路由关机后，主路由监测到旁路由不存在，随即将主路由的网关和 DNS 切换到自身，早上 NAS 开机后，主路由监测到旁路由上线，此时将主路由网关和 DNS 切换为旁路由地址。</div><div class="notion-text notion-block-1c2f00c8d0194957a752db1cb8c211d1">场景2：主路由中实时监测旁路由是否在线，不在线时立即将主路由的网关和 DNS 切换到主路由本身，旁路由恢复在线时，随即切换回去。</div><div class="notion-blank notion-block-6fa3794b6f7245c5936c94fd85b7908e"> </div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-1f021bdab4be4cbab542adace2c957c6" data-id="1f021bdab4be4cbab542adace2c957c6"><span><div id="1f021bdab4be4cbab542adace2c957c6" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1f021bdab4be4cbab542adace2c957c6" title="Padavan自定义脚本"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Padavan自定义脚本</span></span></h4><div class="notion-blank notion-block-9df1db6e89df4f7fa1f88bc79a738450"> </div><div class="notion-blank notion-block-f8cfa63d5b26406caece97daba361148"> </div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-5ab97e46d2d44e8e8d90aa216033fe0d" data-id="5ab97e46d2d44e8e8d90aa216033fe0d"><span><div id="5ab97e46d2d44e8e8d90aa216033fe0d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#5ab97e46d2d44e8e8d90aa216033fe0d" title="最终步骤"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">最终步骤</span></span></h4><ol start="1" class="notion-list notion-list-numbered notion-block-e2bf8e6787fb42eca5a8155efaacaf3b" style="list-style-type:decimal"><li>将脚本置于 /etc/storage/</li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-fa671154eecb44fba9d9e0dc03812818" style="list-style-type:decimal"><li>设置脚本运行权限：chmod +x  /etc/storage/change_gatway.sh</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-fa3ee5bd232c4e8586f018da144ea5a9" style="list-style-type:decimal"><li>保存脚本，防止重启丢失：/sbin/mtd_storage.sh save</li></ol><ol start="4" class="notion-list notion-list-numbered notion-block-df0e0881f6e0428da7ebbf4a13de42f8" style="list-style-type:decimal"><li>自动定时运行脚本（每一分钟检测一次）： </li><ol class="notion-list notion-list-numbered notion-block-df0e0881f6e0428da7ebbf4a13de42f8" style="list-style-type:lower-alpha"><div class="notion-text notion-block-64c0a0e1469a451db8906ff0cc52562f"> crontab -e  加入 */1 * * * * /etc/storage/change_gatway.sh  </div><div class="notion-blank notion-block-6bd818084dbb4a7493fa5c13ae141966"> </div></ol></ol></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CloudFlare托管域名DDNS]]></title>
            <link>https://145111.xyz//article/245434cd-e64e-4236-be89-74512e306d9d</link>
            <guid>https://145111.xyz//article/245434cd-e64e-4236-be89-74512e306d9d</guid>
            <pubDate>Mon, 01 Apr 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[使用Python通过cloudflare API更新群晖、软路由等设备的动态域名解析]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-245434cde64e4236be8974512e306d9d"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-f6e9fe64d5dc416f984d725d91cfd62a"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="😀">😀</span></div><div class="notion-callout-text">本文使用Python通过cloudflare API更新群晖、软路由等设备的动态域名解析</div></div><div class="notion-blank notion-block-37dc168ca5914831a7bda5274629a6ff"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-0bb1ca9f17464176a6a759708ce4972a" data-id="0bb1ca9f17464176a6a759708ce4972a"><span><div id="0bb1ca9f17464176a6a759708ce4972a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0bb1ca9f17464176a6a759708ce4972a" title="准备工作"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">准备工作</span></span></h3><blockquote class="notion-quote notion-block-68b7606056924d86954d6d6b960080ea"><div>已配置cloudflare托管域名(本文略过)</div></blockquote><blockquote class="notion-quote notion-block-55225e8fa6e2497b81d5b05311cdd1e5"><div>获取cloudflare API令牌（token） 和 域名API的区域id（zone_id）</div></blockquote><details class="notion-toggle notion-block-a01883f233fe499b985632172d10a9be"><summary>登录cloudflare</summary><div></div></details><details class="notion-toggle notion-block-2180a2df196041d692e755739c02727c"><summary>获取 API令牌（token）</summary><div><ol start="1" class="notion-list notion-list-numbered notion-block-c00529da37184bf8826d2937de7f4373" style="list-style-type:decimal"><li>登录 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://dash.cloudflare.com/login">cloudflare官方网站</a></li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-5c4b5c5473b54da0a158d40d83c49cd8" style="list-style-type:decimal"><li>打开 <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://dash.cloudflare.com/profile/api-tokens">创建API令牌页面</a></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-0c1dd893179543c69f7b8cb4822d7b0f" style="list-style-type:decimal"><li>点击创建令牌</li><ol class="notion-list notion-list-numbered notion-block-0c1dd893179543c69f7b8cb4822d7b0f" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-61113ff57b1942b1b18bd9b1efa6ec7a"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F28225b35-035e-429c-8267-57444e4794bb%2Fd63554c2-e8a8-44ff-8559-a34b362f3704%2FUntitled.png?table=block&amp;id=61113ff5-7b19-42b1-b18b-d9b1efa6ec7a&amp;t=61113ff5-7b19-42b1-b18b-d9b1efa6ec7a&amp;width=1881&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="4" class="notion-list notion-list-numbered notion-block-75d8a775359045648afeaab7ab51ecb1" style="list-style-type:decimal"><li>选择使用 编辑区域DNS</li><ol class="notion-list notion-list-numbered notion-block-75d8a775359045648afeaab7ab51ecb1" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-b49d406c4ad34d60bb2596667b611904"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F28225b35-035e-429c-8267-57444e4794bb%2F092144c4-24e3-4028-bd20-2e2a15c87c8f%2FUntitled.png?table=block&amp;id=b49d406c-4ad3-4d60-bb25-96667b611904&amp;t=b49d406c-4ad3-4d60-bb25-96667b611904&amp;width=1510&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="5" class="notion-list notion-list-numbered notion-block-7866b1a854a241ffa790f7a80ccaddc6" style="list-style-type:decimal"><li>API令牌页面 权限 不需要更改，区域资源 最后一项选择需要做DDNS的域名，然后拉到底点击 继续以显示摘要</li><ol class="notion-list notion-list-numbered notion-block-7866b1a854a241ffa790f7a80ccaddc6" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-219592abba834ae5aa0b0e559e93c0b6"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F28225b35-035e-429c-8267-57444e4794bb%2F3286f3de-079f-49f9-89cf-ac4d5c1f3f11%2FUntitled.png?table=block&amp;id=219592ab-ba83-4ae5-aa0b-0e559e93c0b6&amp;t=219592ab-ba83-4ae5-aa0b-0e559e93c0b6&amp;width=1322&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol><ol start="6" class="notion-list notion-list-numbered notion-block-6811122cf1c44aa29a2cf1ae69f91237" style="list-style-type:decimal"><li>再点击创建令牌，最后复制生成的API 令牌，这就是我们后文需要用到的token</li></ol></div></details><details class="notion-toggle notion-block-bd9422654b6144a8a1fc8a5643374236"><summary>获取 域名API的区域id（zone_id）</summary><div><ol start="1" class="notion-list notion-list-numbered notion-block-d27231141f1743b8af5733a0fe055177" style="list-style-type:decimal"><li>登录 cloudflare </li></ol><ol start="2" class="notion-list notion-list-numbered notion-block-bd89d3b544a6438b9fb4b02061a09fb0" style="list-style-type:decimal"><li>点击需要做DDNS的域名，打开域名概述页面</li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-e4431b3dbe464f37994f4f22fb64da73" style="list-style-type:decimal"><li>获取如图所示 区域ID即zone_id</li><ol class="notion-list notion-list-numbered notion-block-e4431b3dbe464f37994f4f22fb64da73" style="list-style-type:lower-alpha"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-68d44e580b4c45ecbe8aba6c0790c70b"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F28225b35-035e-429c-8267-57444e4794bb%2Fa3146e6a-e53f-47a8-bb61-284f5726af40%2FUntitled.png?table=block&amp;id=68d44e58-0b4c-45ec-be8a-ba6c0790c70b&amp;t=68d44e58-0b4c-45ec-be8a-ba6c0790c70b&amp;width=1856&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></ol></ol></div></details><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-e2d0f970b2f04b80aaed4601a31ff8a8" data-id="e2d0f970b2f04b80aaed4601a31ff8a8"><span><div id="e2d0f970b2f04b80aaed4601a31ff8a8" class="notion-header-anchor"></div><a class="notion-hash-link" href="#e2d0f970b2f04b80aaed4601a31ff8a8" title="CloudFlare DDNS Python 程序"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">CloudFlare DDNS Python 程序</span></span></h3><blockquote class="notion-quote notion-block-7dd64acb174d4c15bffdd519b43eb787"><div>主体程序，需安装requests库，也可使用 urllib 实现</div></blockquote><blockquote class="notion-quote notion-block-104fac5e42af4e348a930a8162d7ed27"><div>运行程序</div></blockquote><div class="notion-blank notion-block-1daf917383c74769954a9d8e8bd7f6ba"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-77bb24c159334f0694818cb5a4b45d09" data-id="77bb24c159334f0694818cb5a4b45d09"><span><div id="77bb24c159334f0694818cb5a4b45d09" class="notion-header-anchor"></div><a class="notion-hash-link" href="#77bb24c159334f0694818cb5a4b45d09" title="🤗 总结归纳"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">🤗 总结归纳</span></span></h2><div class="notion-text notion-block-abcba3dffa154cb390f9976648e76881">按照示例程序修改，作者使用群晖定时任务，每天定时运行本脚本，即可实现自动DDNS。如有需要，请在文章底部留言。</div><div class="notion-blank notion-block-9d80fea4a9b24169a8355b9a23859cc9"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shortcut Zen]]></title>
            <link>https://145111.xyz//article/1b26f401-e2e9-4960-92f0-62f8559aa546</link>
            <guid>https://145111.xyz//article/1b26f401-e2e9-4960-92f0-62f8559aa546</guid>
            <pubDate>Tue, 11 May 2021 00:00:00 GMT</pubDate>
            <description><![CDATA[有用的 Tips]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-1b26f401e2e9496092f062f8559aa546"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-a3f91a433c88435297a6e2fcfa55e9fb" data-id="a3f91a433c88435297a6e2fcfa55e9fb"><span><div id="a3f91a433c88435297a6e2fcfa55e9fb" class="notion-header-anchor"></div><a class="notion-hash-link" href="#a3f91a433c88435297a6e2fcfa55e9fb" title="长文"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red"><b>长文</b></span></span></span></h2><a class="notion-page-link notion-block-5a3ed3775ee1403eb5556b5e29598687" href="/5a3ed3775ee1403eb5556b5e29598687"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="阻止Windows注册表被修改" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">阻止Windows注册表被修改</span></span></a><a class="notion-page-link notion-block-00e94b57f53345f09bc352cc34a3ce2c" href="/00e94b57f53345f09bc352cc34a3ce2c"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="K8S基本操作" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">K8S基本操作</span></span></a><a class="notion-page-link notion-block-7e86f500d684479cb28a68339bdfeba6" href="/7e86f500d684479cb28a68339bdfeba6"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="Glang 学习笔记" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">Glang 学习笔记</span></span></a><a class="notion-page-link notion-block-54ec775e3d704ee79279b82670a81e0e" href="/54ec775e3d704ee79279b82670a81e0e"><span class="notion-page-title"><div class="notion-page-icon-inline notion-page-icon-image"><svg class="notion-page-title-icon notion-page-icon" alt="常用网络工具" viewBox="0 0 30 30" width="16"><path d="M16,1H4v28h22V11L16,1z M16,3.828L23.172,11H16V3.828z M24,27H6V3h8v10h10V27z M8,17h14v-2H8V17z M8,21h14v-2H8V21z M8,25h14v-2H8V25z"></path></svg></div><span class="notion-page-title-text">常用网络工具</span></span></a><div class="notion-blank notion-block-a716a711c5d7432faaf0b7a7ef535c07"> </div><div class="notion-blank notion-block-8fadf0315c1d497fa4f9097fb334136b"> </div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-b0e6776b71ca449b93c6dd5ff8a6c289" data-id="b0e6776b71ca449b93c6dd5ff8a6c289"><span><div id="b0e6776b71ca449b93c6dd5ff8a6c289" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b0e6776b71ca449b93c6dd5ff8a6c289" title="片段"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><span class="notion-red">片段</span></span></span></h2><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-6e5e99f880514600b0a9570c9f65e178" data-id="6e5e99f880514600b0a9570c9f65e178"><span><div id="6e5e99f880514600b0a9570c9f65e178" class="notion-header-anchor"></div><a class="notion-hash-link" href="#6e5e99f880514600b0a9570c9f65e178" title="Conda 国内源（清华源）"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Conda 国内源<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://mirror.tuna.tsinghua.edu.cn/help/anaconda/">（清华源）</a></span></span></h4><div class="notion-blank notion-block-ca77aa0aa1ed41629f310690636bbb4e"> </div><hr class="notion-hr notion-block-f7ead2befdd94aa88dccfbff38c2ccdc"/><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-4516e0ac5d2843a5961e2b5a5e5a3244" data-id="4516e0ac5d2843a5961e2b5a5e5a3244"><span><div id="4516e0ac5d2843a5961e2b5a5e5a3244" class="notion-header-anchor"></div><a class="notion-hash-link" href="#4516e0ac5d2843a5961e2b5a5e5a3244" title="Pip 国内源"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Pip 国内源</span></span></h4><div class="notion-blank notion-block-57227fcd95944f5db156705f751cfaa2"> </div><hr class="notion-hr notion-block-3c6f5ff4bcba482785f9beb68ed6a266"/><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-c1ffcc9ca9294bf898f54981bb23739c" data-id="c1ffcc9ca9294bf898f54981bb23739c"><span><div id="c1ffcc9ca9294bf898f54981bb23739c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#c1ffcc9ca9294bf898f54981bb23739c" title="Ubuntu 国内源（阿里源）(18.04 bionic )"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Ubuntu 国内源<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://developer.aliyun.com/mirror/ubuntu?spm=a2c6h.13651102.0.0.3e221b11peUu70">（阿里源）</a>(<b>18.04 </b>bionic )</span></span></h4><hr class="notion-hr notion-block-630364561d224af6b077c14345ff4c6d"/><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-23fb3b3f23014296a10c9163b98ec06e" data-id="23fb3b3f23014296a10c9163b98ec06e"><span><div id="23fb3b3f23014296a10c9163b98ec06e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#23fb3b3f23014296a10c9163b98ec06e" title="树莓派软件源"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">树莓派软件源</span></span></h4><div class="notion-blank notion-block-540e0f406b344afc98903a8ba9967f5b"> </div><div class="notion-blank notion-block-e28ecf171e88428ebb28162b7f8a992c"> </div><hr class="notion-hr notion-block-ab9ff6a187ee40eba97e01f7d7bda310"/><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-84f695576a234a17920c372eee93dda0" data-id="84f695576a234a17920c372eee93dda0"><span><div id="84f695576a234a17920c372eee93dda0" class="notion-header-anchor"></div><a class="notion-hash-link" href="#84f695576a234a17920c372eee93dda0" title="Google Colab 自动重连"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Google Colab 自动重连</span></span></h4><div class="notion-blank notion-block-f9bb347b7c0a4b40b958a86d015fb43c"> </div><hr class="notion-hr notion-block-ff4e6d51570946bf93658a888791433f"/><div class="notion-blank notion-block-635392d56a4d46ee985a4c74aa5e62fe"> </div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-1315ec50467a4743b6d6270344f15178" data-id="1315ec50467a4743b6d6270344f15178"><span><div id="1315ec50467a4743b6d6270344f15178" class="notion-header-anchor"></div><a class="notion-hash-link" href="#1315ec50467a4743b6d6270344f15178" title="爬虫常用 User-Agent"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">爬虫常用 User-Agent</span></span></h4><div class="notion-blank notion-block-25ea399ba17445269899113f640e702a"> </div><hr class="notion-hr notion-block-08412da8957148c18f567434b7f5202e"/><div class="notion-blank notion-block-618edddf325a42778589dbc71aea9a3a"> </div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-2ba3b084c34c41888d949d8b87ed20f2" data-id="2ba3b084c34c41888d949d8b87ed20f2"><span><div id="2ba3b084c34c41888d949d8b87ed20f2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2ba3b084c34c41888d949d8b87ed20f2" title="Python虚拟环境"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Python虚拟环境</span></span></h4><div class="notion-blank notion-block-cf5bc8913a224ee8824c143b61bfc768"> </div><hr class="notion-hr notion-block-c7cb604041a34996b81677974126a1d6"/><div class="notion-blank notion-block-0fcf931c52264c54b20762ed04509dbb"> </div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-b195abf469de4a7fabec04383afa0f09" data-id="b195abf469de4a7fabec04383afa0f09"><span><div id="b195abf469de4a7fabec04383afa0f09" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b195abf469de4a7fabec04383afa0f09" title="PySide2（PyQt） 信号与槽机制"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">PySide2（PyQt） 信号与槽机制</span></span></h4><div class="notion-blank notion-block-82e34fa231a14b729428ffa33e395aec"> </div><hr class="notion-hr notion-block-d81632598ede4bc1882f90dc86c31040"/><div class="notion-blank notion-block-ced5cca79dce42968548b3918abb4dea"> </div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-b6fbc453f9dc4fa5ad4a0920804b41ea" data-id="b6fbc453f9dc4fa5ad4a0920804b41ea"><span><div id="b6fbc453f9dc4fa5ad4a0920804b41ea" class="notion-header-anchor"></div><a class="notion-hash-link" href="#b6fbc453f9dc4fa5ad4a0920804b41ea" title="Python使用QQ邮箱发送邮件"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Python使用QQ邮箱发送邮件</span></span></h4><div class="notion-blank notion-block-6a1df322bf2440e8a95f87269bab3b51"> </div><hr class="notion-hr notion-block-79a69e292e5e4eb3816e1b7943c7f5b2"/><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-547c301a9f344e8c8cea4de0d9751803" data-id="547c301a9f344e8c8cea4de0d9751803"><span><div id="547c301a9f344e8c8cea4de0d9751803" class="notion-header-anchor"></div><a class="notion-hash-link" href="#547c301a9f344e8c8cea4de0d9751803" title="PySide2（PyQt）手动控制槽函数的连接和断开"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">PySide2（PyQt）手动控制槽函数的连接和断开</span></span></h4><div class="notion-blank notion-block-ce654bd919844c6fa29ad365770ce436"> </div><hr class="notion-hr notion-block-6aab1abd30714952a0dbd3a8b6338722"/><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-4b6a8466288f43de8da8ecd47b81b82c" data-id="4b6a8466288f43de8da8ecd47b81b82c"><span><div id="4b6a8466288f43de8da8ecd47b81b82c" class="notion-header-anchor"></div><a class="notion-hash-link" href="#4b6a8466288f43de8da8ecd47b81b82c" title="PySide2 自定义 QFileDialog 组件默认输入、按键名称和功能"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">PySide2 自定义 QFileDialog 组件默认输入、按键名称和功能</span></span></h4><hr class="notion-hr notion-block-ee4f78577a3e49fea90b1070a0712b48"/><div class="notion-blank notion-block-2d73905e87ce41ed93d59012e1a1f644"> </div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-8e6711854416443ea23c8d4a75e2abcf" data-id="8e6711854416443ea23c8d4a75e2abcf"><span><div id="8e6711854416443ea23c8d4a75e2abcf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#8e6711854416443ea23c8d4a75e2abcf" title="Pyinstaller 打包Pyside2程序界面载入图片的操作"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Pyinstaller 打包Pyside2程序界面载入图片的操作</span></span></h4><div class="notion-blank notion-block-8956ee43ff2847a4b52830005d6cc6e7"> </div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-79535fb307aa41d29146301d7f39766f" data-id="79535fb307aa41d29146301d7f39766f"><span><div id="79535fb307aa41d29146301d7f39766f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#79535fb307aa41d29146301d7f39766f" title="Pyinstaller 打包 Pyside2 程序添加icon"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Pyinstaller 打包 Pyside2 程序添加icon</span></span></h4><div class="notion-text notion-block-370cd8f10b7445808e13338991d7d335"> </div><div class="notion-blank notion-block-8c82f800d92b4297b16b12ef92929fe3"> </div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-7efe189ed34f4047ad61ea27551f3fe2" data-id="7efe189ed34f4047ad61ea27551f3fe2"><span><div id="7efe189ed34f4047ad61ea27551f3fe2" class="notion-header-anchor"></div><a class="notion-hash-link" href="#7efe189ed34f4047ad61ea27551f3fe2" title="查看Windows激活id"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">查看Windows激活id</span></span></h4><div class="notion-blank notion-block-43c84c97740a40d0a79939ea66b34c7d"> </div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>