版本与功能以设备当前固件为准 · 返回相机页面Features follow the device's current firmware · Back to the camera
AllSky-Pico, 密码 allsky123。http://192.168.5.1 —— 看到大图与状态栏即成功。相机默认每 60 秒拍一张, 第一张图要等一个拍摄间隔才出现。
| 访问方式 | 看到的界面 | 权限 |
|---|---|---|
连热点 AllSky-Pico | 管理面: 全部功能 + 设备管理区 | 免口令, 可改一切设置 |
| 局域网 / 公网 | 同一个页面, 少"参数区""设备管理" | 建任务/删除/拍摄记录要管理口令; 参数区不开放 |
12345678, 就显示在该区; 正式站点建议改掉。大图约 0.8 帧/秒, 是省资源设计, 不影响正式拍摄; 正式帧是全尺寸高质量, 按"拍摄间隔"出图。
| 字段 | 含义 |
|---|---|
| 当前曝光 | 正在用的曝光时间(µs) |
| 存储 | 滚动存储用量 |
| 上传队列 | 待上传到服务器的帧数 |
| 模式 | 行为 | 何时用 |
|---|---|---|
| 全天相机 | 按间隔定时拍摄, 自动曝光, 自动流星检测 | 日常观测 |
| 拍摄模式 | 手动曝光/增益, 全幅 964×545 预览约 1.5–2 秒刷新; 设备端与公网页都可进入 | 对焦、单张、间隔与长曝光; 调完点"返回全天" |
| 参数 | 约束 | 说明 |
|---|---|---|
| 站点名 | ≤60 字 | 烧录在图像左上角 |
| 拍摄间隔(秒) | ≥10 | 默认 60。两张正式帧之间的时间 |
| 检测灵敏度(kσ) | ≥2, 默认 5.0 | 调小更灵敏(误报增多), 调大更保守 |
| 固定曝光(µs) | 空 = 自动 | 填了就不再自动曝光 |
| 固定增益(dB) | 空 = 自动 | 填了就不再自动增益 |
| 开启上传 | 开关 | 把帧与事件推送到服务器(第 5 章) |
| 开启检测 | 开关 | 流星检测总开关 |
任务 = 在指定时间段按固定参数拍指定张数(如流星雨观测), 创建后列表里可见进度。
| 字段 | 约束 | 默认 |
|---|---|---|
| 任务名 | ≤40 字 | — |
| 开始 / 结束 | 可留空: 空开始 = 立即; 空结束 = 拍完为止 | 现在 ~ 1 小时后 |
| 间隔(秒) | ≥1, 且 ≥ 曝光(秒)+1 | 10 |
| 曝光(µs) | 1000 ~ 30000000 | 5000000(5 秒) |
| 增益(dB) | 0 ~ 30 | 20 |
| 张数 | 1 ~ 2000 | 100 |
事件由连续帧比对产生(流星等线状亮斑), 按时间倒序展示, 每条带置信度; 大图与分级(显著/标准/微弱)在"历史图库 → 事件"。白天(曝光短于 100ms)不检测。
页面顶部的"拍摄模式"按钮在设备本地面(热点/局域网直连)与公网页都可用 (公网页经服务器控制通道透传, 需选中具体设备并输入管理口令)。进入后全天定时拍摄、 流星检测与上传暂停, 相机交给手动拍摄; 退出即恢复。
它与"日常使用 → 拍摄任务"是两回事: 拍摄任务仍属于全天相机(按任务参数拍, 存独立目录); 拍摄模式则完全接管相机, 走全天 CIF RAW + 软件解码(raw12_tool), 不启动 ISP, 适合接望远镜/镜头做对焦、单张与长曝光。
| 功能 | 说明 |
|---|---|
| 实时预览 | 软件解码全幅预览 964×545(3856×2180 的 skip-4 采样, 视场与全天一致); 约 1.5 秒一帧, 无撕裂 |
| 拍照 | 964×545 JPEG(与预览同尺寸, 全幅); 在历史图库的「拍摄」视图按日管理(也可在「全部」视图看到, 但不参与帧的批量删除) |
| 曝光 / 增益 / HCG | 滑块调节, 预览与拍照的曝光上限 2 秒(更长请用长曝光 RAW); 读回值下一帧才生效, 状态栏每 2 秒刷新 |
| 间隔拍摄 | "开始到开始"间隔连拍; 张数 0 = 不限, 随时可停 |
| 长曝光 RAW | 3 ~ 900 秒, 可选 HCG; 存为 r_*.raw, 在历史图库「拍摄」视图下载 |
| 拍摄记录 | 已并入历史图库「拍摄」视图: 按日折叠; 点缩略图看大图(RAW 大图现编 964×545); 可单条或按日删除; 设备端可下载 |
点页面顶部"历史图库"进入; 设备端与服务器是同一个页面。区别: 设备端只看本机存着的 (约最近 2 天), 服务器看历次上传的存档(长期)。
| 视图 | 内容 |
|---|---|
| 全部 | 当天全部帧, 按天 → 小时逐级浏览; 任务帧混排并带角标 |
| 任务 | 按任务归组, 可下钻看单个任务的全部帧 |
| 事件 | 事件网格, 按天分组, 带置信度与"显著/标准/微弱"分级 |
| 拍摄 | 拍照 JPEG 与长曝光 RAW, 按日折叠; 预览(RAW 现编大图)、下载(仅设备局域网)、单条/按日删除 |
图库顶部有可折叠的存储容量面板: 当前存储、SD 卡、内部旧库, 以及 帧/事件/任务/照片/RAW/缩略图各类占用。设备页的「拍摄」视图还提供 SD 卡的重新检测/挂载/ 卸载/格式化; 公网页只读。
/var/allsky_internal(内部旧库, 只读保留), 不自动删、不自动迁移到
SD; 容量面板会单独显示它的占用。之后 SD 缺失期间写入回退目录的数据, 在 SD
重新挂载后会被遮住但不会丢, 卸下 SD 即可看到。设备端「拍摄」视图里旧照片/RAW
会以「内部旧库」分组出现(只读, 可预览/下载, 不能从界面删除); 公网页不显示旧库。FORMAT 确认。格式化/挂载/卸载期间
采集与拍摄会短暂暂停, 完成后自动恢复。设备端缩略图在你浏览时现场生成: 第一次翻到一个小时稍慢, 之后秒开。
开了"公网接入", 任何地方打开服务器地址就能看到这台相机——同一个页面: 大图是最新上传帧, 历史图像与事件按日期浏览。设备离线时显示最后一张存档帧, 图库不受影响。
| 位置 | 策略 |
|---|---|
| 设备 · 全天帧 | 滚动区 3.5GB, 满了删最旧 —— 大约只留最近 2 天(启用 SD 时这块配额在 SD 上) |
| 设备 · 事件 | 1GB(约 14 天), 满了删最旧(启用 SD 时在 SD 上) |
| 设备 · 拍摄照片/RAW | 不自动回收(用户资产); 在历史图库「拍摄」视图手动单条/按日删除; 启用 SD 时存 SD |
| 设备 · 内部旧库 | /var/allsky_internal, 首次启用 SD 时搬入; 只读保留、不自动删, 占用内部 rootfs |
| 服务器 · 全天帧 | 默认保留 7 天(可配, 见第 6 章) |
| 服务器 · 事件 | 永久保留 |
设备端滚动删除不是数据丢失: 长期留存在服务器, 事件永久保存。
服务器集中存档设备推上来的帧/事件/任务, 并 serve 同一个页面——任何地方打开服务器地址就能看; 多台设备接一台服务器, 页头有筛选条。没有服务器设备照常工作, 只是不能远程看、没有长期留存。
源码仓库的获取方式见产品随附说明(或向供应商索取)。
server.py、dev_channel.py、
admin.py(取自 server/allsky_server/)、
gallery_render.py(取自 project/app/allsky_webui/backend/)。project/app/allsky_webui/www/ 整个拷到安装目录下 (即 <安装目录>/www)。pip install aiohttp pillowcd <安装目录> && ALLSKY_WWW=<安装目录>/www python3 server.py —— 浏览器开 http://<服务器>:8084 能看到页面即成功。把下面内容存为 /etc/systemd/system/allsky-server.service(崩溃自动拉起):
[Unit] Description=AllSky server After=network-online.target [Service] User=<运行用户> WorkingDirectory=<安装目录> Environment=ALLSKY_WWW=<安装目录>/www # 公网部署必须取消下一行注释(只许 nginx 反代进来): #Environment=ALLSKY_SRV_HOST=127.0.0.1 ExecStart=/usr/bin/python3 server.py Restart=always RestartSec=3 [Install] WantedBy=multi-user.target
启用: sudo systemctl daemon-reload && sudo systemctl enable --now allsky-server;
日志: journalctl -u allsky-server。
| 变量 | 默认 | 说明 |
|---|---|---|
ALLSKY_SRV_PORT | 8084 | 监听端口 |
ALLSKY_SRV_DATA | <安装目录>/data | 数据目录 |
ALLSKY_WWW | 仓库内 www 目录 | 独立部署时指向你的 www/ |
ALLSKY_SRV_KEEP_DAYS | 7 | 帧保留天数; 事件永久保留 |
ALLSKY_SRV_HOST | 0.0.0.0 | 公网必须 127.0.0.1 并用 nginx 反代 |
nginx 在 443 终结 TLS → 反代到 127.0.0.1:8084。页面按根路径写死, 要用子域名
(如 allsky.example.com)直接指过来, 挂子路径会白屏:
server {
listen 443 ssl;
server_name allsky.example.com;
ssl_certificate /etc/letsencrypt/live/allsky.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/allsky.example.com/privkey.pem;
client_max_body_size 50m;
location / {
proxy_pass http://127.0.0.1:8084;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# 设备长轮询一次挂 25 秒, 必须大于它
proxy_read_timeout 40s;
}
}
cd <安装目录> && python3 admin.py new-device <设备ID> (设备 ID 在管理面「公网接入」区显示, 自动生成)。密钥只显示这一次; 丢了重跑换发。http://192.168.5.1, 在「设备管理 → 公网接入」填: 服务器地址 = https://<你的服务器>, 设备密钥 = 刚打印的那把, 勾选启用, 保存。多台设备: 各自 new-device 各自的 ID(每台一把密钥), 页头自动出现筛选条(上限 256 台)。
data/by_device/<设备>/; 无设备信息的历史数据在「未归属」桶, 页面可筛。python3 admin.py rename <设备ID> <名字>(随时可改, 不动数据); 吊销: python3 admin.py revoke <设备ID>(该设备轮询不到指令; 上行无鉴权不受影响)。127.0.0.1。本章操作都在管理面: 连热点 AllSky-Pico → 开 http://192.168.5.1 →
页面底部"设备管理"区。
公网/局域网写操作的钥匙, 至少 6 位; 初始 12345678(就显示在该区),
正式站点建议改掉。留空保存 = 关闭外网写控制。
改热点名称(≤32 字)与密码(≥8 位); 保存后热点立即重启, 用新名称/密码重连。
让设备接入场地 WiFi(密码 ≥8 位), 用于上传与公网访问; 保存后设备重连上行, 热点不受影响。 下方列出已记录的网络, 可逐条删除(删光 = 回到纯热点模式)。
填服务器地址(自建见第 6 章; 公网须 HTTPS)、勾选启用、保存; 设备 ID 自动生成。 想切断公网: 取消启用并保存。详见第 5 章。
"重启 webui 服务"只重启相机程序(页面短暂不可用); "重启设备"整机重启(约 1 分钟恢复)。
设备开机满 48 小时会在白天(10~15 时)自动重启一次防缓慢劣化;
想关掉可改配置文件 auto_reboot_hours(0 = 关闭)。
设备每 6 小时自动检查升级: 有新版本自动下载、校验并切换, 失败自动回滚, 无需人工干预。
查看当前版本: 浏览器开 http://<设备地址>/api/ota/status(只读, 公网也可查)。
手动触发一次检查: POST /api/ota/run-now(热点直连免口令, 否则要管理口令)。
设计如此: 曝光短于 100ms 即判白天, 自动暂停检测(白天只会有误报), 天黑自动恢复。
预览只是参考图, 会做拉伸显示; 以正式帧(全尺寸高质量)为准。
上电后等约 1 分钟再搜; 确认找的是 AllSky-Pico(改过名就找新名); 靠近设备再试。
连热点开管理面(免口令), 在"设备管理 → 管理口令"直接重置。
浏览器缓存了旧页面, 强制刷新: Ctrl+F5(Mac: Cmd+Shift+R)。
先等 1~2 分钟(约一个拍摄间隔)再看。仍离线: 查上行 WiFi 是否断连("设备管理 → 上行 WiFi" 重连), 以及"公网接入"是否启用、地址是否填对。
AllSky-Pico, password allsky123.http://192.168.5.1 — seeing the live image and status bar means success.The camera captures one frame every 60s by default; the first image arrives after one capture interval.
| Access | What you see | Rights |
|---|---|---|
On hotspot AllSky-Pico | Admin plane: everything + Device Management | No token; all settings editable |
| LAN / public | The same page, minus "Parameters" and "Device Management" | Task create/delete and capture-record operations need the admin token; the parameter area is not offered |
12345678, shown right there; change it for a real site.The big image runs at ~0.8 fps by design (saves resources); real captures are full-size high quality at the capture interval.
| Field | Meaning |
|---|---|
| Exposure | Exposure time currently in use (µs) |
| Storage | Rolling storage usage |
| Upload queue | Frames waiting to be uploaded to the server |
| Mode | Behavior | When |
|---|---|---|
| All-sky | Timed captures, auto exposure, automatic meteor detection | Daily observing |
| Photo mode | Manual exposure/gain, full-frame 964×545 preview at ~1.5–2 s; device and public page | Focusing, single shots, interval and long exposures; tap "Exit photo mode" when done |
| Parameter | Constraint | Notes |
|---|---|---|
| Site name | ≤60 chars | Burned into the image top-left |
| Capture interval (s) | ≥10 | Default 60. Time between two stored frames |
| Detect sensitivity (kσ) | ≥2, default 5.0 | Lower = more sensitive (more false positives); higher = more conservative |
| Fixed exposure (µs) | empty = auto | Once set, auto exposure is off |
| Fixed gain (dB) | empty = auto | Once set, auto gain is off |
| Enable upload | toggle | Push frames and events to the server (chapter 5) |
| Enable detection | toggle | Master switch for meteor detection |
A task = shoot N frames with fixed parameters inside a time window (e.g. meteor-shower watch). Progress shows in the list right after creation.
| Field | Constraint | Default |
|---|---|---|
| Task name | ≤40 chars | — |
| Start / End | may be empty: empty start = now; empty end = until done | now ~ +1h |
| Interval (s) | ≥1, and ≥ exposure(s)+1 | 10 |
| Exposure (µs) | 1000 ~ 30000000 | 5000000 (5 s) |
| Gain (dB) | 0 ~ 30 | 20 |
| Frames | 1 ~ 2000 | 100 |
Events come from comparing consecutive frames (linear bright streaks such as meteors), newest first, each with a confidence; images and grading (strong/standard/faint) are under "Gallery → Events". No detection in daytime (frames exposed under 100ms).
The "Photo mode" button appears on the device page (hotspot/direct LAN) and on the public page (proxied through the server control channel; select a concrete device and enter the admin token). Entering it pauses scheduled all-sky capture, meteor detection and uploads, and hands the camera to manual shooting; exit restores them.
This is different from "Daily use → Capture tasks": tasks still belong to the all-sky camera (they shoot with task parameters into their own folder). Photo mode takes the camera over completely and uses the all-sky CIF RAW + software decode (raw12_tool) path — no ISP — suited to a telescope/lens for focusing, single shots and long exposures.
| Feature | Details |
|---|---|
| Live preview | Software-decoded full-frame preview 964×545 (skip-4 of 3856×2180; same field of view as all-sky), about 1.5 s per frame, tear-free |
| Capture | 964×545 JPEG (same as preview, full frame); managed in the Gallery's Captures view by day (also visible under "All", but excluded from frame batch delete) |
| Exposure / gain / HCG | Sliders; read-back takes effect on the next frame; the status line refreshes every 2 s |
| Interval shooting | Start-to-start interval; count 0 = unlimited; stop any time |
| Long-exposure RAW | 3–900 s, optional HCG; saved as r_*.raw, downloadable from the Gallery's Captures view |
| Captures | Moved to the Gallery's Captures view: collapsed by day; click a thumbnail for a large view (RAW rendered at 964×545 on demand); delete a single item or a whole day; downloads on the device page |
Open "Gallery" at the top of the page; the device and the server render the same page. Difference: the device shows only what it still holds (~the last 2 days), the server shows the long-term archive.
| View | Content |
|---|---|
| All | All frames of the day, browsed day → hour; task frames mixed in with a badge |
| Tasks | Grouped by task; drill in for all frames of one task |
| Events | Event grid by day, with confidence and strong/standard/faint grading |
| Captures | Captured JPEGs and long-exposure RAW, collapsed by day; preview (RAW rendered on demand), download (device LAN only), delete one item or a whole day |
The collapsible Storage panel at the top shows active storage, SD card, internal legacy library, and usage for frames/events/tasks/photos/RAW/thumbnails. The Captures view on the device page also offers SD rescan/mount/unmount/format; the public page is read-only.
/var/allsky_internal (read-only legacy); it is not auto-deleted or auto-migrated.
The storage panel shows its usage separately. Data captured while the card is absent is hidden
(not lost) when the card is mounted again; unmount the card to see it. On the device,
legacy photos/RAW appear as read-only "Internal legacy" groups in the Captures view
(preview/download allowed, no delete); the public page does not show the legacy library.FORMAT. Capture/photo activity pauses briefly during
mount/unmount/format and resumes afterwards.On the device, thumbnails are generated as you browse: the first visit to an hour is slower, then instant.
With "public access" on, opening the server address from anywhere shows this camera — the same page: latest uploaded frame, history and events by date. Device offline: the last archived frame shows and the gallery is unaffected.
| Where | Policy |
|---|---|
| Device · all-sky frames | Rolling area 3.5GB, oldest deleted first — about the last 2 days only (on the SD card when enabled) |
| Device · events | 1GB (~14 days), oldest first (on the SD card when enabled) |
| Device · captured photos/RAW | Never auto-pruned (user assets); delete by item/day in the Gallery's Captures view; on the SD card when enabled |
| Device · internal legacy | /var/allsky_internal, created on first SD enable; read-only, never auto-pruned, uses internal rootfs |
| Server · all-sky frames | Kept 7 days by default (configurable, chapter 6) |
| Server · events | Kept forever |
Rolling deletion on the device is not data loss: long-term retention lives on the server, and events are kept forever.
The server archives what devices push up (frames/events/tasks) and serves the same page — open its address from anywhere; several devices on one server get a header selector. No server = the device works the same, just no remote viewing and no long-term retention.
How to get the source repo: see the note shipped with the product (or ask your supplier).
server.py,
dev_channel.py, admin.py (from server/allsky_server/) and gallery_render.py (from project/app/allsky_webui/backend/).project/app/allsky_webui/www/ into the install directory (as <install-dir>/www).pip install aiohttp pillowcd <install-dir> && ALLSKY_WWW=<install-dir>/www python3 server.py — open http://<server>:8084; seeing the page means success.Save this as /etc/systemd/system/allsky-server.service (restarts on crash):
[Unit] Description=AllSky server After=network-online.target [Service] User=<user> WorkingDirectory=<install-dir> Environment=ALLSKY_WWW=<install-dir>/www # Public deployment: uncomment the next line (only nginx may proxy in): #Environment=ALLSKY_SRV_HOST=127.0.0.1 ExecStart=/usr/bin/python3 server.py Restart=always RestartSec=3 [Install] WantedBy=multi-user.target
Enable: sudo systemctl daemon-reload && sudo systemctl enable --now allsky-server;
logs: journalctl -u allsky-server.
| Variable | Default | Meaning |
|---|---|---|
ALLSKY_SRV_PORT | 8084 | Listening port |
ALLSKY_SRV_DATA | <install-dir>/data | Data directory |
ALLSKY_WWW | the repo's www directory | In a standalone deployment, point it at your www/ |
ALLSKY_SRV_KEEP_DAYS | 7 | Frame retention; events kept forever |
ALLSKY_SRV_HOST | 0.0.0.0 | Must be 127.0.0.1 on the public internet, behind nginx |
nginx terminates TLS on 443 → proxies to 127.0.0.1:8084. The page hard-codes
root paths, so point a subdomain (e.g. allsky.example.com) straight at it —
mounting under a sub-path renders a blank page:
server {
listen 443 ssl;
server_name allsky.example.com;
ssl_certificate /etc/letsencrypt/live/allsky.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/allsky.example.com/privkey.pem;
client_max_body_size 50m;
location / {
proxy_pass http://127.0.0.1:8084;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# the device long-poll hangs for 25s; must exceed it
proxy_read_timeout 40s;
}
}
cd <install-dir> && python3 admin.py new-device <device-id> (the device ID is shown in the admin plane's "Public access" area, generated automatically). The key is printed only once; rerun the command to re-issue.http://192.168.5.1, and under "Device Management → Public access" fill: server address = https://<your-server>, device key = the key just printed; tick enable, save.More devices: run new-device with each device's own ID (one key per device);
the header grows a selector automatically (up to 256 devices).
data/by_device/<device>/; historical data with no device info lands in the "Unattributed" bucket, filterable on the page.python3 admin.py rename <device-id> <name> (safe anytime, data untouched); revoke: python3 admin.py revoke <device-id> (the device can no longer poll for commands; unauthenticated uploads are unaffected).127.0.0.1 only.Everything here happens on the admin plane: join the hotspot AllSky-Pico →
open http://192.168.5.1 → "Device Management" at the bottom.
The key for public/LAN writes, 6+ chars; initial 12345678 (shown right
there) — change it for a real site. Save empty = remote writes off.
Change the hotspot SSID (≤32 chars) and password (≥8 chars); the hotspot restarts on save, reconnect with the new credentials.
Joins the device to the site WiFi (password ≥8 chars) for uploading and public access; the device rejoins on save, the hotspot is unaffected. Recorded networks are listed below and can be deleted one by one (delete all = hotspot-only mode).
Fill in the server address (self-hosted: chapter 6; HTTPS mandatory on the public internet), tick enable, save; the device ID is generated automatically. To cut off public access: untick and save. See chapter 5.
"Restart webui service" restarts just the camera program (page briefly down); "Reboot
device" reboots everything (back in ~1 minute). The device also auto-reboots once in daytime
(10:00–15:00) after 48 hours of uptime; set auto_reboot_hours to 0 in the
config file to disable.
The device checks for updates every 6 hours: new versions are downloaded, verified and switched to automatically; a failed upgrade rolls back by itself — no human needed.
Current version: open http://<device>/api/ota/status (read-only, also via the
public server). Trigger a check manually: POST /api/ota/run-now (free on the
hotspot, admin token otherwise).
By design: exposure under 100ms counts as daytime and detection pauses (daytime would only produce false positives). It resumes at dusk.
The preview is only a stretched reference image; trust the stored frames (full-size high quality).
Wait about a minute after power-on; make sure you're looking for AllSky-Pico
(or its new name); move closer and retry.
Join the hotspot and open the admin plane (no token needed), then reset it under "Device Management → Admin token".
The browser cached the old page. Hard-refresh: Ctrl+F5 (Mac: Cmd+Shift+R).
Wait 1–2 minutes (about one capture interval) and look again. Still offline: check the uplink WiFi ("Device Management → Uplink WiFi") and that "Public access" is enabled with the right address.