# emini Home

**A calm, four-colour poster of your day for the ZECTRIX NOTE4C e-paper devkit.**

`0.6.2` · [emini.ink](https://emini.ink/home/) · tested on one NOTE4C · ESP-IDF v6.0 · MIT

<p align="center">
  <img src="docs/images/note4c-photo.webp" width="720" alt="A ZECTRIX NOTE4C on a fridge door running emini Home 0.5.1. The Weather screen in the Print composition shows 15° in Czaplinek, 12–17 °C over 24 hours, cloud cover, a dithered band of the next hours, and the line Dry until 06:00 · Wind 3.4 m/s.">
</p>
<p align="center"><sub>Photo of a NOTE4C running 0.5.1 · Weather in the Print composition</sub></p>

emini Home puts the weather forecast, one headline, a note in your own words,
the sky above you and the air you breathe on the NOTE4C's 400 × 300 display, using its black, white, red and
yellow pigments. You set it up in your phone's browser, without an app or an
account. After that the device does the rest on its own, and no emini.ink
server sits in between.

[Install](docs/INSTALL.md) · [Phone panel](docs/PANEL.md) · [Release 0.6.2](https://github.com/fiedoruk/emini-home/releases/tag/v0.6.2) · [Website](https://emini.ink/home/) · [Hardware report](https://github.com/fiedoruk/emini-home/issues/new?template=hardware-report.yml)

> [!WARNING]
> Version 0.6.2 has been installed and tested on one NOTE4C. Read the
> [status](#status) before you install. The preflight check in the
> installation guide tells you to stop if your device's boot data differs
> from the tested one. It cannot tell a NOTE4 from a NOTE4C, and only the
> four-colour NOTE4C is supported.

## One forecast, three compositions

<p align="center">
  <img src="docs/images/epaper-weather-rhythm.png" width="400" alt="Rhythm composition: a sample forecast for Lisbon with a dithered temperature curve for the next hours">
  <img src="docs/images/epaper-weather-atlas.png" width="400" alt="Atlas composition: the same sample forecast with a large sun and cloud on the left half">
</p>
<p align="center"><sub>Rhythm and Atlas, drawn on a computer by the 0.5.0 renderer from sample data. The photo at the top shows Print.</sub></p>

Rhythm draws the coming hours as a curve, and Atlas gives the sky half of the
page. Each screen can keep one composition, or use **In turn** and move on to
the next one each time it comes back to the display. The weather screen shows
the range for the next 24 hours under the temperature and a short line about precipitation,
such as “Rain from 18:00”.

There is no grey on this display, so the renderer mixes the four pigments in
ordered dither patterns to draw warmth, light and cloud. Coloured patterns are
never finer than 2 pixels, while black and paper patterns can still use single
pixels.

## Sky and Air

Two more screens arrived in 0.5.0, both switched off until you enable them in the panel.
**Sky** shows sunrise, sunset, the length of the day and the Moon's phase, worked out on the
device from your saved location; nothing is downloaded for it. **Air** shows the European
air quality index, PM2.5 over the next 24 hours, the UV index with a sunscreen hint and,
in Europe, four pollens, from Open-Meteo's Air Quality service (CC BY 4.0). Each has the
same three compositions as the weather.

<p align="center">
  <img src="docs/images/epaper-sky-print.png" width="400" alt="The Sky screen in the Print composition: the sunset time in large type, the length of the day, a warm dome with the sun in its current position and a strip of the whole day from night through dawn, day and dusk">
  <img src="docs/images/epaper-air-print.png" width="400" alt="The Air screen in the Print composition: the European air quality index in large type, the word Good, 24 hourly bars on a warm scale, a UV sun, the UV line and four pollen tiles">
</p>
<p align="center"><sub>Sky (Warsaw, equinox) and Air (Berlin, May), drawn from sample data by the 0.5.0 renderer</sub></p>

## Your brush

Four pigments and no grey mean every tone on this display is a pattern. Since 0.5.0 the
panel lets you choose the brush that paints it, in Settings → Appearance: grain (blue noise,
the default), halftone dots, or the ordered grid of the earlier versions. The renderer was measured on a real NOTE4C with test
cards before 0.5.0; yellow needs two pixels to exist at all, so no brush ever draws
it finer.

## One headline and your note

<p align="center">
  <img src="docs/images/epaper-news-print.png" width="400" alt="The News screen: one headline from a news feed">
  <img src="docs/images/epaper-note-rhythm.png" width="400" alt="The Your note screen: a personal note in large type above a dithered band">
</p>
<p align="center"><sub>News and Your note, drawn from sample data</sub></p>

News comes from BBC World by default, or from a public RSS or Atom feed of your
choice, as long as it is served over HTTPS. The note is yours: a reminder, a
line from a friend, a few words to keep in view.

Headlines and notes in Simplified Chinese are drawn with Noto Sans CJK glyphs
(the whole of GB 2312, 6 763 characters, plus punctuation); lines break between
characters, so a Chinese feed such as a news site's RSS works as it is. Since
0.5.1 the screens themselves speak Simplified Chinese too: every label, footer
and sentence, the date as 9月15日, and air quality, UV and pollen by name.
Choose the language in the phone panel, or hold the lower side button for five
seconds on the device.

## Set it up from your phone

On first start the display shows a setup screen. Join the **emini.ink** Wi-Fi
network it shows, open `http://192.168.4.1`, type the pairing code from the
display, and move the device onto your home network. From then on the panel
lives at the device's own address on that network (Settings → Your device);
the setup network exists only for the 5-minute setup window. In Breath, the
default power mode, press the round OK button on the device first and give it a
few seconds: the panel then answers for five minutes. Then search for your town,
pick your screens and their compositions, and choose one screen, a day rhythm
or a rotation, with quiet hours for the night.

<p align="center">
  <img src="docs/images/epaper-setup.png" width="400" alt="The setup screen on the display: QR codes for the setup Wi-Fi and the panel address, and a pairing code">
  <img src="docs/images/panel-pair-crop.webp" width="195" alt="Pairing page in the phone browser: the six-digit code and the Connect this phone button">
  <img src="docs/images/panel-location-search-crop.webp" width="195" alt="Town search on the Weather page: Warsaw typed in, and matching places with their region and country">
</p>
<p align="center"><sub>Panel screenshots were taken in a browser on a computer, with sample data.</sub></p>

The [phone panel guide](docs/PANEL.md) walks through every step.

## Breath and Open

Since 0.6.0 Home has two power modes, chosen in the panel under Settings → Battery.

- **Breath**, the default, turns Wi-Fi off between downloads. About twice an hour Home
  switches the radio on, fetches the weather and the news, and lets it sleep again: overnight
  on the tested unit the radio was on for 15 to 55 seconds an hour. While it sleeps the phone
  panel cannot reach the device. Press the round OK button, wait a few seconds, and the
  panel opens for five minutes. The five minutes start again whenever you ask Home for
  something in the panel, such as opening it, a preview or a save; what the panel checks by
  itself does not count.
- **Open** keeps Wi-Fi connected, so the panel answers at any time, as in earlier releases.
  The battery runs down roughly two to four times faster, by our estimate.

On a USB cable and while the setup window is open, Home keeps Wi-Fi on in either mode.

## Install

The short way is the web installer at [esp32ai.me/install](https://esp32ai.me/install?fw=emini-home):
open it in Chrome or Edge, plug the NOTE4C in with a USB-C data cable and give it the
firmware, either as a file you downloaded from the release or as a link to it. If the
installer does not see the device, hold the round OK button for 2 seconds until the
setup screen appears, then plug the cable in again: Home sleeps between events on
battery, and its USB port with it.

The careful way needs `esptool` and a terminal. The
[installation guide](docs/INSTALL.md) has eight steps, and most of the time
goes into two full backups. In short:

1. Back up the whole flash twice.
2. Run [`tools/preflight.py`](tools/preflight.py) on the backups. It compares
   them with the tested NOTE4C and says `READY` or `STOP`.
3. Write two files from the [0.6.2 release](https://github.com/fiedoruk/emini-home/releases/tag/v0.6.2):
   the partition table at `0x8000` and the application at `0x20000`. The
   bootloader and factory data stay untouched. An update from an earlier
   emini Home needs only the application: every release so far has used the
   same partition table.
4. Verify, start and continue on your phone.

## Status

Where 0.6.2 stands:

- **0.6 is the final version of emini Home.** 0.6.1 and 0.6.2 are maintenance releases:
  0.6.1 keeps the status LED off, and 0.6.2 fixes what a review of 0.6.1 found (see the
  [release notes](https://github.com/fiedoruk/emini-home/releases/tag/v0.6.2)). The code
  stays here under the MIT licence for anyone to build, change and install; no further feature
  releases are planned.
- **Tested on one NOTE4C Devkit** (ESP32-S3, 16 MiB flash, factory partition
  layout). The preflight check compares your backups with that unit's factory
  flash. 0.6.2 went onto it as an update from 0.6.1 with the web installer: a
  full backup first, then the three parts written and checked on the chip;
  settings and pairing were kept.
- **Phone setup** has been done end to end from an iPhone on that unit, from
  the setup Wi-Fi to the panel on the home network. Android phones have not
  been tried yet.
- **Starting over**, which erases only the settings area, has been done on
  that unit: the area read back empty and Home opened the setup screen.
- **A full picture change takes about 25 seconds**, measured on that unit
  over USB power.
- **Location** comes from a town you search for in the panel, or from an
  estimate based on your internet address, which can land on your provider's
  city.
- **Battery life depends on the power mode.** On the tested unit, on 0.5.2 a charge lasted a
  day and a half to two days, by the device's own battery readings. With 0.6 we expect two
  to four weeks in Breath and about a week in Open. All three are estimates: a full
  discharge has not been measured.
  On a cable Home never sleeps and behaves exactly as before. The panel shows voltage and
  a rough percentage, and after a few days on battery the emini card shows its own estimate.
- **Going back to the factory firmware** uses the standard esptool procedure
  and has not yet been tried on a real unit.
- **Updates** are installed over USB. There is no over-the-air update mechanism.

If you install it, a [hardware report](https://github.com/fiedoruk/emini-home/issues/new?template=hardware-report.yml)
helps the next person decide.

## Privacy

Home talks to MET Norway for weather, to the news feed you choose, to FreeIPAPI
for an approximate location and to public time servers. While the Air screen is
switched on, it also sends the saved coordinates to the Open-Meteo Air Quality
API for air quality, UV and pollen. Weather, news and air quality are fetched only
while their screens are switched on. When you search for a town, your phone's
browser sends the search to Open-Meteo. Each of these services sees an ordinary
request from your internet address. Nothing goes to emini, and the firmware has
no analytics. The panel runs over HTTP on your local network and settings are
stored on the device without encryption, so keep the device on a network and in
a home you trust. Details: [privacy](docs/PRIVACY.md).

## Build it yourself

The firmware builds with ESP-IDF v6.0 and nothing else; see
[building from source](docs/BUILD.md). Hardware details and the flash layout
are in [hardware](docs/HARDWARE.md).

## How it was built

One person directing two AI coding agents, Claude Code and Codex. I set the
direction, made the calls and tested the firmware on a NOTE4C.

## Security

Please report vulnerabilities privately through
[GitHub security advisories](https://github.com/fiedoruk/emini-home/security/advisories/new).
[SECURITY.md](SECURITY.md) lists the known limits of this release.

## Credits and licence

emini Home is released under the [MIT License](LICENSE).

- Weather data from [MET Norway](https://api.met.no/), licensed CC BY 4.0.
- Air quality, UV and pollen from the [Open-Meteo Air Quality API](https://open-meteo.com/en/docs/air-quality-api), licensed CC BY 4.0.
- Place search by [Open-Meteo.com](https://open-meteo.com/), using location
  data from [GeoNames](https://www.geonames.org/), licensed CC BY 4.0.
- Approximate location from [FreeIPAPI](https://freeipapi.com/).
- Headlines belong to their publishers; the default feed is BBC World.
- Display driver and battery curve adapted from the
  [NOTE4C reference firmware by LazyYoun](https://github.com/LazyYoun/youn-ink-fourcolor-firmware) (MIT).
- Typeface: [Atkinson Hyperlegible Next](https://github.com/googlefonts/atkinson-hyperlegible-next) (SIL OFL 1.1).
- Chinese glyphs: [Noto Sans CJK SC](https://github.com/notofonts/noto-cjk) (SIL OFL 1.1), GB 2312 levels 1 and 2.
- Small text (12 and 16 px): [TRMNL12 and TRMNL16](https://github.com/usetrmnl/trmnl-framework) pixel fonts by Heavyweight Digital Type Foundry for TRMNL (SIL OFL 1.1).
- Built on [ESP-IDF](https://github.com/espressif/esp-idf); all components and
  licences are listed in [third-party notices](THIRD_PARTY_NOTICES.md).

ZECTRIX and NOTE4C may be trademarks of their owner. The author bought the
NOTE4C used for development at the retail price. emini Home is an independent
project, not made or sponsored by ZECTRIX.
