# SQMeter

SQMeter 夜空仪

An ESP32 dark-sky monitor with a browser dashboard for sky brightness, cloud and rain conditions.

ESP32 夜空质量监测仪，用网页仪表盘查看天空亮度、云量和降雨条件。

- id: sqmeter
- author: DeanJ87
- repository: https://github.com/DeanJ87/SQMeter
- license: MIT
- shape: headless
- scenes: home, tools
- boards: ESP32, ESP32-S3
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/sqmeter/
- html_zh: https://esp32gallery.com/zh/projects/sqmeter/
- json: https://esp32gallery.com/data/catalog/projects/sqmeter.json

## Hardware

ESP32 with a TSL2591 light sensor, infrared sky-temperature sensor and optional weather sensors.

ESP32 搭配 TSL2591 光照传感器、红外天空温度传感器与可选气象传感器。

## English

```
Sky brightness in mag/arcsec squared, a Bortle class, a naked-eye limiting magnitude and an estimated cloud cover, all decided on an ESP32 that also tells an imaging rig whether it is safe to open the shutter. A TSL2591 measures the sky, an MLX90614 reads infrared sky temperature, a BME280 adds temperature, humidity and pressure, and a Hydreon RG-15, anemometer, wind vane and GPS are optional. It presents itself natively as an ASCOM Alpaca SafetyMonitor and ObservingConditions device, so N.I.N.A. finds it on the network with no Windows driver or bridge, and both roles pass ASCOM ConformU on every change. The dashboard runs on the board in 14 languages, and alerts leave through ntfy, Pushover, a webhook or MQTT. No TLS; it belongs on a trusted LAN. Public beta at v0.3.x.
```

## 中文

```
夜空亮度（mag/arcsec²）、Bortle 等级、肉眼极限星等和估算云量，全部在一块 ESP32 上算出来，顺便告诉拍摄设备现在能不能开镜。TSL2591 测天光，MLX90614 读红外天空温度，BME280 补温度、湿度和气压，雨量计 RG-15、风速风向和 GPS 都是选配。板子本身就是一台 ASCOM Alpaca 的 SafetyMonitor 兼 ObservingConditions 设备，N.I.N.A. 在局域网里直接发现它，不需要 Windows 驱动或桥接程序，两个角色每次改动都跑 ASCOM ConformU。网页看板跑在板子上，支持 14 种语言；告警走 ntfy、Pushover、webhook 或 MQTT。没有 TLS，只适合可信内网。目前是 v0.3.x 公测。
```
