{% extends "base.html" %} {% from "_integration_extras.html" import integration_record, claude_handoff with context %} {% block title %}Product catalogue · NEXXVU{% endblock %} {% block head %}{% if admin and catalog and catalog.service and not catalog.service.approved and catalog.service.destination.pending %}{% set dp = catalog.service.destination %} {% if dp.pending.status != 'requested' %}{% elif not dp.observed %}{% endif %}{% endif %}{% endblock %} {% block content %}

Settings

Product catalogue

Product names, pictures and details from MikroTik for the MikroTik devices in this Portal. Only the products of your own models are kept.

All settings
{% include "_settings_navigation.html" %}
{% if notice %}
{{ notice }}
{% endif %} {% if error %}{% endif %} {% if not admin %}

Only Portal administrators manage the product catalogue.

{% else %}{% set c = catalog %}

Status

{% set st = status %}

{{ st.text }} {% if st.state == 'off' %} Enter your MikroTik account API key below.{% elif st.state == 'pending' %} Approve the catalogue service's address below, then refresh the products.{% elif st.state == 'ready' %} Refresh the products below.{% else %} {{ c.last_refresh_detail or '' }}{% endif %}

{% if st.key_warning %}
{% if st.key_days_left < 0 %}The API key expired on {{ c.key_expires }}.{% elif st.key_days_left == 0 %}The API key expires today.{% else %}The API key expires in {{ st.key_days_left }} day{{ 's' if st.key_days_left != 1 }} ({{ c.key_expires }}).{% endif %} Renew or regenerate it in your mikrotik.com account, then enter the new key and its new expiry date below. A reminder also appears under notifications from 30 days before.
{% endif %}
Products kept
{{ c.products }}
Last refresh
{{ (c.last_refresh_at or 'never')|replace('T',' ')|replace('Z',' UTC') }}{% if c.last_refresh_at %} · {{ 'succeeded' if c.last_refresh_ok else 'failed' }}{% endif %}
{% if status.next_refresh %}
Next automatic refresh
{{ status.next_refresh|replace('T',' ')|replace('Z',' UTC') }} (sooner when a new MikroTik device is added)
{% endif %}{% if c.key_expires %}
API key expires
{{ c.key_expires }}
{% endif %}
MikroTik models in this Portal
{{ models|join(', ') or 'none yet' }}
{% if c.service and c.service.approved %}
{% endif %}
{% if c.service and not c.service.approved %}{% set d = c.service.destination %}

Catalogue service address

api.mikrotik.com · {{ c.service.address }}:{{ c.service.port }}

{% if d.pending and d.pending.status == 'requested' and d.observed %}
Address certificate (SHA-256)
{{ d.fingerprint }}

Every connection also checks the certificate for api.mikrotik.com the normal way, so MikroTik renewing its certificate does not break the catalogue.

{% elif d.pending and d.pending.status == 'requested' %}

NEXXVU is reading the address's certificate; this page refreshes by itself.

{% elif d.pending %}

Approved. The Portal applies the address and restarts once; this page continues by itself.

{% elif d.latest and d.latest.status == 'failed' %}

The catalogue service could not be reached: {{ d.latest.failure }}.

{% endif %}
{% endif %}

Setup

From your mikrotik.com account (API section). It is stored encrypted in this Portal's credential store, never shown again and never written to logs.

Details NEXXVU uses

Only the ticked details are stored and shown, and only for your own models. Product name and picture are the default.

{% for f in c.choices %}{% endfor %}

Brochures and data sheets are not offered by MikroTik's API; they are linked from the product page.

{% endif %} {% if admin and record %} {{ claude_handoff('MikroTik API key', handoff_text) }} {% if request.query_params.get('record_saved') %}
Record saved.
{% endif %}{% if request.query_params.get('record_error') %}{% endif %} {{ integration_record(record, 'catalog') }} {% endif %}
{% endblock %} {% block scripts %}{% endblock %}