rkaczorek / astroberry-server

Astroberry Server is a ready to use system for Raspberry Pi for controlling all your astronomy equipment
GNU General Public License v3.0
274 stars 19 forks source link

Advertise HTTP service properly #118

Closed marcocipriani01 closed 3 years ago

marcocipriani01 commented 3 years ago

Hello, I had some troubles discovering the Astroberry service (astroberry.local) from some devices, Android in particular. I solved it by adding the following file: /etc/avahi/services/astroberry.service

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_http._tcp</type>
<port>80</port>
</service>
</service-group>

And then running sudo systemctl restart avahi-daemon.service. Can you add this file in the next Astroberry release? Reference: How to use Avahi to advertise an HTTP service

Kind regards, Marco Cipriani

rkaczorek commented 3 years ago

Thanks for the fix. I will add this config in the next release

rkaczorek commented 3 years ago

Implemented in astroberry-server-sysmod on the 1st of March