b2e0f6d683
- api/index.php: new haGetInfo() endpoint (unique_id, version, instance, items count) - api/index.php: new haGetShoppingItems() endpoint (Bring! + internal shopping list) - api/index.php: haInventorySensor() now accepts ?expiry_days=N query param - api/cron_smart_shopping.php: auto-register avahi mDNS service if avahi-daemon present - docker/avahi-evershelf.xml: Zeroconf _evershelf._tcp service declaration - .env.example: add INSTANCE_NAME variable (used by HA integration for device label)
13 lines
386 B
XML
13 lines
386 B
XML
<?xml version="1.0" standalone='no'?>
|
|
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
|
<service-group>
|
|
<name replace-wildcards="yes">EverShelf Pantry (%h)</name>
|
|
<service>
|
|
<type>_evershelf._tcp</type>
|
|
<port>80</port>
|
|
<txt-record>path=/api/</txt-record>
|
|
<txt-record>version=1.0</txt-record>
|
|
<txt-record>app=evershelf</txt-record>
|
|
</service>
|
|
</service-group>
|