Earth LinC · Station

Navi 3.0 · 可行性记录Navi 3.0 · 可行性記錄Navi 3.0 · Feasibility log

小小气象站:一键更新可行吗? 小小氣象站:一鍵更新可行嗎? Little Mountain Weather Station: is one-click update feasible?

雾气缭绕的山间,小学校院子里的百叶箱、风速计和雨量筒

我们想做的事我們想做的事What we want to do

山里学校的小小气象站,记录页面已经做好了。现在每周要下载一次数据,再手工存到学校另一台电脑的文件夹里,或者存到学校的公共文件夹里。

我们的设想是:新建一个 Earth LinC Station,把它关联到这个文件夹,比如下面这个路径。每周的数据放进文件夹后,Station 里的 Agent AI 会在管理员按下“本周更新”时读取文件夹,并更新 Dashboard。

我们想弄清三件事:Station 能不能挂一个关联文件夹?能不能带 Agent?按钮点下去,能不能真的改页面?

山裡學校的小小氣象站,記錄頁面已經做好了。現在每週要下載一次資料,再手工存到學校另一台電腦的資料夾裡,或者存到學校的公共資料夾裡。

我們的構想是:新建一個 Earth LinC Station,把它關聯到這個資料夾,比如下面這個路徑。每週的資料放進資料夾後,Station 裡的 Agent AI 會在管理員按下「本週更新」時讀取資料夾,並更新 Dashboard。

我們想弄清三件事:Station 能不能掛一個關聯資料夾?能不能帶 Agent?按鈕點下去,能不能真的改頁面?

The record page for the mountain school's little weather station is already built. Today, someone downloads the data every week and saves it by hand into a folder on another school computer, or into the school's shared folder.

The idea: create a new Earth LinC Station and link it to that folder, for example the path below. Once the week's data is in the folder, an Agent AI in the Station would read it when an administrator presses "Update this week", and refresh the Dashboard.

We want to know three things: can a Station mount a linked folder, can it carry an Agent, and can pressing the button actually change the page?

现有的记录页面現有的記錄頁面The existing record page https://earthlinc.earth/station/b2nbqpeep6/little-mountain-weather-station
示例路径示例路徑Example path C:\Users\XXX\XXXX\小小气象站 记录
  1. 1能挂关联文件夹吗?能掛關聯資料夾嗎?Can it mount a linked folder?
  2. 2能带 Agent 吗?能帶 Agent 嗎?Can it carry an Agent?
  3. 3按钮能真的改页面吗?按鈕能真的改頁面嗎?Can the button really change the page?

先说结论先說結論The short answer

三个问题,三盏灯。三個問題,三盞燈。Three questions, three lamps.

1 / 3

关联本机文件夹:不行關聯本機資料夾:不行Linking a local folder: no

网页没法按路径去找某台电脑上的文件夹。C:\Users\XXX\… 只存在于那一台电脑,用手机访问的人根本没有它。

網頁沒辦法按路徑去找某台電腦上的資料夾。C:\Users\lijh\… 只存在於那一台電腦,用手機瀏覽的人根本沒有它。

A web page cannot address a path on someone's computer. C:\Users\XXX\… exists only on that one machine, and visitors on phones never have it.

2 / 3

Station 里放 Agent:基本不行Station 裡放 Agent:基本不行An Agent inside the Station: mostly no

我们做的 Station 是一张自成一体的单页:没有服务器代码,也不联网。两次访问之间没有任何程序在运行,页面也不能调用 AI 服务。所谓 Agent 的工作,发生在页面重新生成的时候,而不是有人点按钮的时候。

我們做的 Station 是一張自成一體的單頁:沒有伺服器程式碼,也不連網。兩次造訪之間沒有任何程式在運行,頁面也不能呼叫 AI 服務。所謂 Agent 的工作,發生在頁面重新生成的時候,而不是有人點按鈕的時候。

A Station, as we build it, is one self-contained page: no server code, no network calls. Nothing runs between visits, and the page cannot call an AI service. Any Agent work happens when the page is regenerated, not when someone clicks.

3 / 3

按钮改页面:只能改自己眼前这一份按鈕改頁面:只能改自己眼前這一份Button changes the page: only the copy in front of you

按钮可以重画 Dashboard,但只在按下它的那个人的浏览器里,数据来自他自己选的文件。它改不了已经发布、大家都在看的页面。

按鈕可以重畫 Dashboard,但只在按下它的那個人的瀏覽器裡,資料來自他自己選的檔案。它改不了已經發布、大家都在看的頁面。

A button can redraw the Dashboard, but only in the browser of the person who pressed it, from files they choose. It cannot rewrite the published page everyone else sees.

以上判断依据我们工作室构建 Station 的规则。除此之外的平台功能,我们在这里无法验证,所以不下断言。 以上判斷依據我們工作室建構 Station 的規則。除此之外的平台功能,我們在這裡無法驗證,所以不下斷言。 This assessment rests on how our studio builds Stations. Any platform features beyond that we could not verify here, so we make no claim about them.

Navi 3.0 · 模拟运行Navi 3.0 · 模擬運行Navi 3.0 · Simulated run

按下“本周更新”,看 Agent 一步一步地尝试。灯的颜色,就是对你问题的回答。按下「本週更新」,看 Agent 一步一步地嘗試。燈的顏色,就是對你問題的回答。Press "Update this week" and watch the Agent try each step. The colour of each lamp is the answer to your question.

NAVI 3.0 · CONSOLE 待命待命Standing by 运行中…運行中…Running… 完成完成Done

点任意一步,查看详细说明。點任意一步,查看詳細說明。Tap any step for details.

小小气象站 记录(示意)小小氣象站 記錄(示意)小小气象站 记录 (illustration)

C:\Users\XXX\XXXX\小小气象站 记录
  • 小小气象站 记录小小氣象站 記錄小小气象站 记录
    • 第1周.csv第1週.csvweek-1.csv
    • 第2周.csv第2週.csvweek-2.csv
    • 本周.csv(示例)本週.csv(示例)this-week.csv (example)

以下文件仅为示意,并非真实数据。以下檔案僅為示意,並非真實資料。These files are illustrations only, not real data.

  1. 浏览器不允许网页按名字去读取本机路径。瀏覽器不允許網頁按名字去讀取本機路徑。A browser forbids a web page from reading a local path by name.
  2. 只有人在文件对话框里亲自选了文件,代码才能读取。桌面版 Chrome/Edge 可以弹出选文件夹的窗口;大多数手机不行。只有人在檔案對話框裡親自選了檔案,程式碼才能讀取。桌面版 Chrome/Edge 可以彈出選資料夾的視窗;大多數手機不行。Code can read files only after a person picks them in a file dialog. Desktop Chrome/Edge can open a folder picker; most phones cannot.
  3. 在页面里读取 CSV(Excel 导出的 CSV 也可以)是可行的。在頁面裡讀取 CSV(Excel 匯出的 CSV 也可以)是可行的。Reading CSV (including CSV exported from Excel) inside the page works.
  4. 图表可以重画,但只发生在当前这个浏览器里。圖表可以重畫,但只發生在目前這個瀏覽器裡。The charts can be redrawn, but only in this one browser.
  5. 已发布的 Station 是静态页面,必须重新发布,大家看到的才会变。已發布的 Station 是靜態頁面,必須重新發布,大家看到的才會改變。A published Station is a static page. It must be republished before everyone sees a change.
2 绿 · 1 黄 · 2 红 — 按钮能动,但改不了已发布的页面 2 綠 · 1 黃 · 2 紅 — 按鈕能動,但改不了已發布的頁面 2 green · 1 amber · 2 red — the button moves, but it cannot change the published page

试一试:真正能做到的部分試一試:真正能做到的部分Try it: the part that really works

在你自己的电脑上选择本周的数据文件,页面会在浏览器里读取它,并画出图表。

文件不会上传,全部留在你的设备上。页面会找出日期列和数字列(比如温度、湿度、降雨量,按表头名称识别),然后画成曲线。

手边没有文件?可以载入演示数据。那是虚构的演示值,不是真实记录。

每周上传的数据会累积:新文件与这个浏览器里已保存的记录合并,同一时间点以新数据为准,所以不只显示本周,而是可以持续更新。用上方的区间按钮切换“最近 7 天 / 最近 30 天 / 全部”。记录只保存在这个浏览器里,其他人看不到。

在你自己的電腦上選擇本週的資料檔案,頁面會在瀏覽器裡讀取它,並畫出圖表。

檔案不會上傳,全部留在你的裝置上。頁面會找出日期欄和數字欄(比如溫度、濕度、降雨量,按表頭名稱辨識),然後畫成曲線。

手邊沒有檔案?可以載入示範資料。那是虛構的示範數值,不是真實記錄。

每週上傳的資料會累積:新檔案與這個瀏覽器裡已儲存的記錄合併,同一時間點以新資料為準,所以不只顯示本週,而是可以持續更新。用上方的區間按鈕切換「最近 7 天 / 最近 30 天 / 全部」。記錄只保存在這個瀏覽器裡,其他人看不到。

Choose this week's data file(s) on your own computer. The page reads them in your browser and draws the charts.

Nothing is uploaded; every file stays on your device. The page looks for a date column and numeric columns (such as temperature, humidity or rainfall, recognised by header name) and plots them as lines.

No file at hand? Load the demo data. Those are fictional demo values, not real records.

Weekly uploads accumulate: new files are merged with the records already saved in this browser (newer data wins for the same timestamp), so you see more than just this week. Use the range buttons to switch between last 7 days, last 30 days and all. Records stay in this browser only; nobody else will see them.

文件只在本机读取,不会上传。檔案只在本機讀取,不會上傳。Files are read on this device and never uploaded.

还没有数据。选择文件,或载入演示数据。還沒有資料。選擇檔案,或載入示範資料。No data yet. Choose a file or load the demo data.
最新最新Latest—
区间最低區間最低Range min—
区间最高區間最高Range max—

此结果只在这个浏览器里,不会改变已发布的页面。此結果只在這個瀏覽器裡,不會改變已發布的頁面。This result lives in this browser only. It does not change the published page.

可行的做法可行的做法What is feasible

三个选项:谁来做、做多少、访客会看到什么变化。三個選項:誰來做、做多少、訪客會看到什麼變化。Three options: who does it, how much work, and what visitors see change.

推荐 · 现在可用推薦 · 現在可用Recommended · works now

A · 每周重新发布A · 每週重新發布A · Weekly republish

做法:管理员照现在的习惯整理文件夹。每周把新文件交给 Navi,说一声“更新本周”,Dashboard 重新生成并发布。“Agent”就是这一步重新生成,由人来触发。

谁来做:管理员。

访客看到:所有人都看到新的 Dashboard。

做法:管理員照現在的習慣整理資料夾。每週把新檔案交給 Navi,說一聲「更新本週」,Dashboard 重新生成並發布。「Agent」就是這一步重新生成,由人來觸發。

誰來做:管理員。

訪客看到:所有人都看到新的 Dashboard。

How: the administrator keeps the folder exactly as today. Each week they bring the new file to Navi and ask to update the station; the Dashboard is regenerated and republished. The "Agent" is that regeneration step, triggered by a person.

Who: the administrator.

Visitors see: everyone gets the new Dashboard.

工作量工作量Effort
现在可用 · 仅本机現在可用 · 僅本機Works now · local only

B · 本机 Dashboard 按钮B · 本機 Dashboard 按鈕B · Local dashboard button

做法:Station 里放上“试一试”那块面板。管理员在学校电脑上选文件夹或文件,马上预览本周的样子。适合在做 A 之前先检查数据。

谁来做:管理员,在学校电脑上。

访客看到:没有变化,公开页面不会改。

做法:Station 裡放上「試一試」那塊面板。管理員在學校電腦上選資料夾或檔案,馬上預覽本週的樣子。適合在做 A 之前先檢查資料。

誰來做:管理員,在學校電腦上。

訪客看到:沒有變化,公開頁面不會改。

How: the Station includes the "Try it" panel. On the school PC the administrator picks the folder or files and previews the week instantly. Handy for checking data before doing A.

Who: the administrator, on the school PC.

Visitors see: no change; the public page stays as it is.

工作量工作量Effort
需要平台支持需要平台支援Needs platform support

C · 云端数据源(将来)C · 雲端資料來源(將來)C · Cloud data source (future)

做法:OneDrive 文件夹本来就同步在云端,真正的一键更新需要一项服务去读取共享的云端位置,再改写页面。这需要服务器和联网能力,而自成一体的 Station 没有,应当和平台团队讨论,而不是先承诺。

谁来做:平台团队与管理员。

访客看到:目前无法保证。

做法:OneDrive 資料夾本來就同步在雲端,真正的一鍵更新需要一項服務去讀取共享的雲端位置,再改寫頁面。這需要伺服器和連網能力,而自成一體的 Station 沒有,應當和平台團隊討論,而不是先承諾。

誰來做:平台團隊與管理員。

訪客看到:目前無法保證。

How: the OneDrive folder is already synced to the cloud, but a true one-click update would need a service that reads a shared cloud location and rewrites the page. That takes server-side and network features a self-contained Station does not have. Raise it with the platform team rather than promising it.

Who: the platform team and the administrator.

Visitors see: nothing we can guarantee yet.

工作量工作量Effort

命名小提示:文件名用固定格式,如 YYYY-周次.csv,表头行也固定不变,这样无论选哪个方案都省事。

命名小提示:檔名用固定格式,如 YYYY-週次.csv,表頭列也固定不變,這樣無論選哪個方案都省事。

Naming tip: use a fixed file name pattern such as YYYY-week.csv and a fixed header row, so every option stays easy.

每周例行流程每週例行流程The weekly routine

推荐做法里的一周,六步走完。推薦做法裡的一週,六步走完。One week of the recommended approach, in six steps.

  1. 1 下载本周数据下載本週資料Download the week's data
  2. 2 按命名规则存入公共文件夹按命名規則存入公共資料夾Save it to the shared folder using the naming pattern
  3. 3 可选:用本机 Dashboard 预览(B)可選:用本機 Dashboard 預覽(B)Optional: preview with the local dashboard (B)
  4. 4 把文件发给 Navi,说“更新本周”把檔案傳給 Navi,說「更新本週」Send the file to Navi: "update this week"
  5. 5 Station 重新发布Station 重新發布The Station is republished
  6. 6 所有人看到新的 Dashboard所有人看到新的 DashboardEveryone sees the new Dashboard

参考链接參考連結References

本页所依据的资料如下。本頁所依據的資料如下。The sources this page relies on.

  1. 1
    Little Mountain Weather Station (Earth LinC) https://earthlinc.earth/station/b2nbqpeep6/little-mountain-weather-station 现有的小小气象站记录页面。現有的小小氣象站記錄頁面。The existing weather station record page.
  2. 2
    MDN · File System API https://developer.mozilla.org/en-US/docs/Web/API/File_System_API 网页在用户授权下访问文件的方式概览。網頁在使用者授權下存取檔案的方式概覽。Overview of how web pages access files with the user's permission.
  3. 3
    MDN · window.showDirectoryPicker() https://developer.mozilla.org/en-US/docs/Web/API/Window/showDirectoryPicker 弹出“选择文件夹”窗口的方法,仅部分桌面浏览器支持。彈出「選擇資料夾」視窗的方法,僅部分桌面瀏覽器支援。The method that opens a folder picker; supported in some desktop browsers only.
  4. 4
    MDN · HTMLInputElement.webkitdirectory https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory 让文件输入框可以选择整个文件夹的属性。讓檔案輸入框可以選擇整個資料夾的屬性。The attribute that lets a file input choose a whole folder.