Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docs/stylesheets/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,30 @@ p.hero-description {
object-fit: contain;
}

/* Mobile */
@media (max-width: 768px) {
.hero-wrapper {
flex-direction: column-reverse; /* image first, text second */
align-items: center;
}

.hero-content {
max-width: 100%;
text-align: center;
}

.hero-image {
max-width: 100%;
margin-bottom: 1.5rem;
}

.hero-logo-crisp {
max-width: 600px;
width: 100%;
height: auto;
}
}

/* --- PROMO CARDS --- */
.promo-card-wrapper {
display: flex;
Expand Down
10 changes: 9 additions & 1 deletion front/plugins/_publisher_mqtt/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ def initialize_message(self):
self.state_topic = f'{topic_root}/{self.sensorType}/{self.deviceId}/state'
self.unique_id = f'{self.deviceId}_sensor_{self.sensorName}'

if self.mac != "":
connections_snippet = [
["mac", self.mac]
]
else:
connections_snippet = []

# Update the message dictionary, expanding it without overwriting
self.message.update({
"name": self.sensorName,
Expand All @@ -165,7 +172,8 @@ def initialize_message(self):
"device": {
"identifiers": [f"{self.deviceId}_sensor"],
"manufacturer": "NetAlertX",
"name": self.deviceName
"name": self.deviceName,
"connections": connections_snippet
},
"icon": f'mdi:{self.icon}'
})
Expand Down
2 changes: 2 additions & 0 deletions front/plugins/rest_import/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ Enable **Generate Fake MAC** when the API does not expose MAC addresses (e.g. re

### Example: OPNsense Dnsmasq API

See the [OPNsense configuration guide](https://docs.netalertx.com/REST_IMPORT) for details.

**Response:**
```json
{
Expand Down
10 changes: 6 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ nav:
- Getting started:
- Subnets: SUBNETS.md
- Enable Plugins: PLUGINS.md
- Pi-hole Guide: PIHOLE_GUIDE.md
- Home Assistant: HOME_ASSISTANT.md
- Emails: SMTP.md
- Backups: BACKUPS.md
- Security Features: SECURITY_FEATURES.md
- Security Considerations: SECURITY.md
Expand All @@ -60,7 +57,6 @@ nav:
- Performance: PERFORMANCE.md
- Reverse DNS: REVERSE_DNS.md
- Reverse Proxy: REVERSE_PROXY.md
- Webhooks (n8n): WEBHOOK_N8N.md
- Workflows: WORKFLOWS.md
- Workflow Examples: WORKFLOW_EXAMPLES.md
- Docker Swarm: DOCKER_SWARM.md
Expand All @@ -85,6 +81,12 @@ nav:
- Icons and Topology:
- Icons: ICONS.md
- Network Topology: NETWORK_TREE.md
- Other guides:
- Pi-hole Guide: PIHOLE_GUIDE.md
- Home Assistant: HOME_ASSISTANT.md
- Emails: SMTP.md
- Rest import: REST_IMPORT.md
- Webhooks (n8n): WEBHOOK_N8N.md
- Troubleshooting:
- General Tips: DEBUG_TIPS.md
- Common Issues: COMMON_ISSUES.md
Expand Down
Loading