Skip to content

Nomadnet

e2ret edited this page Aug 25, 2026 · 10 revisions

🇷🇺 Русский | 🇬🇧 English


Русский

Nomadnet — Страницы и скрипты

Nomadnet

Nomadnet — децентрализованная информационная сеть поверх Reticulum. Аналог веба без серверов и DNS. Страницы пишутся в формате Micron и адресуются по хэшу узла:

5f3d0144348220d7da85331e1e512cfe:/page/index.mu

Имя узла

Каждый узел Nomadnet может иметь отображаемое имя — оно видно другим узлам сети в потоке анонсов, вместо голого hex-адреса. Если у вас несколько шлюзов (например, дома и на даче), задайте каждому своё имя, чтобы отличать их друг от друга.

Настраивается прямо в этой вкладке: поле Имя узла над списком страниц. Введите название → нажмите Save → служба nomadnet перезапустится и объявит новое имя в сети.

При установке (install.sh) имя узла также запрашивается — по умолчанию подставляется NOEMA RNSGate (hostname), где hostname берётся с самого устройства, чтобы разные шлюзы не совпадали по имени даже без ручной настройки.

PAGES — Редактор страниц

Шлюз автоматически публикует страницу-визитку. Адрес доступен во вкладке Addresses → Nomadnet Node.

Редактирование

  1. Выберите файл во вкладках (index.mu, nomadnet.mu или созданные вами)
  2. Отредактируйте содержимое в редакторе
  3. Нажмите SAVE — страница сохранится, nomadnet перезапустится

Для создания новой страницы: нажмите + NEW, введите имя файла (без расширения).

MICRON COMPOSER

Встроенный визуальный редактор Micron-разметки доступен прямо в вкладке.

Формат Micron

`c`Заголовок по центру
`b`Жирный текст
`i`Курсив
`l`Список
>[ссылка на страницу]

Исполняемые страницы (.mu-скрипты)

Некоторые .mu-файлы — не статичный текст, а исполняемые Python-скрипты, которые генерируют Micron-разметку на лету (например nomadnet.mu из встроенного IRC-чата ChatRoom). Nomadnet определяет такой файл по правам на выполнение (chmod +x) — если бит x снят, файл отдаётся клиенту как сырой текст вместо того чтобы выполниться, и вместо страницы виден исходный код скрипта.

Если редактируете такой файл через дашборд (эта вкладка) — права обычно сохраняются автоматически. Но если правите файл вручную через SSH/SFTP — обязательно выставьте исполняемый бит заново после сохранения:

chmod +x ~/.nomadnetwork/storage/pages/nomadnet.mu

Проверить права всех страниц:

ls -la ~/.nomadnetwork/storage/pages/*.mu

Исполняемые скрипты должны показывать -rwxr-xr-x, а не -rw-r--r--.

⚠️ Если после правки страница вдруг показывает сырой Python-код вместо чата/интерфейса — в 99% случаев причина именно в слетевшем chmod +x.

SCRIPTS — Автоматизация

Python-скрипты хранятся в /root/NOEMA-RNSGate-Lite/scripts/ и управляются из вкладки.

Создание скрипта

  1. Нажмите + NEW
  2. Введите имя (без расширения)
  3. Напишите код в редакторе
  4. Нажмите SAVE

Запуск вручную

Нажмите RUN — вывод скрипта появится внизу редактора.

Автозапуск по расписанию

В блоке Schedule выберите интервал: каждые 5 / 15 / 30 минут, час, день. Нажмите APPLY — скрипт добавится в crontab.

Пример: обновление погоды

Скрипт получает данные и записывает их в страницу Nomadnet. В файле index.mu добавьте маркеры:

##WEATHER_START##
##WEATHER_END##

Скрипт заменит содержимое между маркерами актуальными данными. Настройте расписание на каждые 15 минут.

rBrowser

Встроенный браузер Nomadnet для просмотра страниц других узлов.

  • Кнопка OPEN RBROWSER — открыть браузер
  • Кнопка NOMADNET CHAT — открыть IRC-чат в rBrowser

Nomadnet Chat

IRC-подобный чат, доступный всем пользователям сети Reticulum через браузер Nomadnet.

Адрес чата: Addresses → Nomadnet Chat

Команды в чате:

Команда Описание
/users Список активных пользователей
/stats Статистика сообщений
/time Время сервера
/cmd Полный список команд

Страница не обновляется автоматически — нажимайте Reload Page для получения новых сообщений.


English

Nomadnet — Pages and scripts

Nomadnet

Nomadnet is a decentralized information network built on top of Reticulum. Think of it as the web without servers or DNS. Pages are written in Micron markup and addressed by the node's hash:

5f3d0144348220d7da85331e1e512cfe:/page/index.mu

Node name

Every Nomadnet node can have a display name — visible to other nodes on the network in the announce stream, instead of a bare hex address. If you run several gateways (say, one at home and one at a cabin), give each a distinct name so you can tell them apart.

Set it right in this tab: the Node name field above the page list. Enter a name → click Save → the nomadnet service restarts and announces the new name on the network.

During installation (install.sh), a node name is also requested — it defaults to NOEMA RNSGate (hostname), where the hostname comes from the device itself, so different gateways won't end up with the same name even without manual configuration.

PAGES — Page editor

The gateway automatically publishes an info page. Its address is available in the Addresses tab → Nomadnet Node.

Editing

  1. Select a file from the tabs (index.mu, nomadnet.mu, or ones you've created)
  2. Edit the content in the editor
  3. Click SAVE — the page is saved and nomadnet restarts

To create a new page: click + NEW, enter a filename (no extension).

MICRON COMPOSER

A built-in visual Micron markup editor is available right in the tab.

Micron format

`c`Centered heading
`b`Bold text
`i`Italic
`l`List
>[link to a page]

Executable pages (.mu scripts)

Some .mu files aren't static text — they're executable Python scripts that generate Micron markup on the fly (for example nomadnet.mu from the built-in ChatRoom IRC chat). Nomadnet tells these apart by their execute permission (chmod +x) — if the x bit is missing, the client is served the raw file content instead of the script's output, so you see the source code instead of the page.

If you edit such a file through the dashboard (this tab), permissions are usually preserved automatically. But if you edit the file manually over SSH/SFTP, make sure to reapply the execute bit after saving:

chmod +x ~/.nomadnetwork/storage/pages/nomadnet.mu

Check permissions for all pages:

ls -la ~/.nomadnetwork/storage/pages/*.mu

Executable scripts should show -rwxr-xr-x, not -rw-r--r--.

⚠️ If a page suddenly shows raw Python code instead of a chat/interface after editing, 99% of the time the cause is a lost chmod +x.

SCRIPTS — Automation

Python scripts are stored in /root/NOEMA-RNSGate-Lite/scripts/ and managed from this tab.

Creating a script

  1. Click + NEW
  2. Enter a name (no extension)
  3. Write the code in the editor
  4. Click SAVE

Running manually

Click RUN — the script's output appears below the editor.

Scheduled auto-run

In the Schedule block, choose an interval: every 5 / 15 / 30 minutes, hourly, daily. Click APPLY — the script gets added to crontab.

Example: weather update

A script fetches data and writes it into a Nomadnet page. In index.mu, add markers:

##WEATHER_START##
##WEATHER_END##

The script replaces the content between the markers with current data. Set the schedule to every 15 minutes.

rBrowser

A built-in Nomadnet browser for viewing other nodes' pages.

  • OPEN RBROWSER button — opens the browser
  • NOMADNET CHAT button — opens the IRC chat in rBrowser

Nomadnet Chat

An IRC-like chat available to all Reticulum network users via the Nomadnet browser.

Chat address: Addresses → Nomadnet Chat

Chat commands:

Command Description
/users List of active users
/stats Message statistics
/time Server time
/cmd Full command list

The page doesn't refresh automatically — click Reload Page to see new messages.

Clone this wiki locally