schollz / find

High-precision indoor positioning framework for most wifi-enabled devices.
https://www.internalpositioning.com/
GNU Affero General Public License v3.0
5.03k stars 370 forks source link

Autostart local FIND server at boot #195

Open alegiovannelli opened 6 years ago

alegiovannelli commented 6 years ago

Hi everyone, I'm trying to run FIND on my sever linux Ubuntu 16.04.

If I run the command from the terminal ./findserver -mqtt 192.168.1.5:1883 -mqttadmin xxxxxxx -mqttadminpass xxxxxx: 8003 everything works regularly, if I would start the FIND server with a bash script (detailed below) at boot, I can open the FIND dashboard but the data is not updated. Some idea ? Thanks in advance.

#! /bin/bash
#
cd /home/xxxxxxx/find && ./find -mqtt 192.168.1.5:1883 -mqttadmin xxxxxxxx -mqttadminpass xxxxx :8003
ishanjain28 commented 6 years ago

@alegiovannelli What are you using to autostart script?

alegiovannelli commented 6 years ago

I tried with rc.local and now,from the Ubuntu desktop Startup sessions as from the attached picture. As I say, the dashboard is working at http://192.168.1.5:8003 but devices data are not updated. Thank you so much for your help. find