Welcome!

On this forum you can discuss iRidium with other users. iRidium consist of 2 main components - i3 pro app and iRidium Server. Please post here your questions, ideas or errors you find.

Please send your questions to support team as a private messages.


Please subscribe to the Change Log to know our news

0
volk_234 12 months ago in Server Solutions / Linux Server • updated by Nikolay Rusanov 11 months ago 1

Возможно ли принимать HTTP запросы и отсылать ответ от не иридиум сервера?

0

Hi

I have the following script that starts, stops and restarts iRidium server on Ubuntu


#!/bin/sh
### BEGIN INIT INFO
# Provides:          iridiumserver
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Should-Start:      $portmap
# Should-Stop:       $portmap
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Example initscript
# Description:       This file should be used to construct scripts to be
#                    placed in /etc/init.d.

### END INIT INFO

test -x /iridiumserver/iridium || exit 0
IRDIR=/iridiumserver
IREXE=$IRDIR/iridium
IRPID=$IRDIR/iridium.pid
IRPARAMS="--watchdog=10 --hidden"
USERID="root"

case "$1" in
start)
        echo -n "Starting iRidium server:"
        cd $IRDIR
        start-stop-daemon --start --chuid $USERID --chdir $IRDIR --make-pidfile --pidfile $IRPID    --exec $IREXE -- $IRPARAMS &
        echo "."
        ;;

stop)
        echo -n "Stopping iRidium server:"
        start-stop-daemon --stop --quiet --pidfile $IRPID
        if [ -e $IRPID ]
                then rm $IRPID
        fi
        echo "."  ;;

restart)
        echo -n "Restarting iRidium server:"
        cd $IRDIR
        start-stop-daemon --stop --quiet --pidfile $IRPID
        start-stop-daemon --start --chuid $USERID --chdir $IRDIR --make-pidfile --pidfile $IRPID    --exec $IREXE -- $IRPARAMS &  echo "."  ;;
*)
        echo "Usage: /etc/init.d/iridiumserver (start|stop|restart)"
        exit 1
        ;;

esac
exit 0


Then run the following commands in the terminal to get this to work

//move the above script to the startup folder

 cp home/linux/Downloads/iridiumserver /etc/init.d/iridiumserver

//change permissions to be executable

sudo chmod +x /etc/init.d/iridiumserver

//add the script to the startup

  sudo update-rc.d iridiumserver defaults 10

Now can run the script manually to test

  sudo /etc/init.d/iridiumserver

Result:

 Usage: /etc/init.d/iridiumserver (start|stop|restart)

 sudo /etc/init.d/iridiumserver start

Result:

  Starting iRidium server:.
   =================== Start as Daemon ===================
   Main thread exit

//enter CTL + C to get back to the terminal

  ^C

Test by rebooting

sudo shutdown -r now


The iRidium server starts.


But I cannot get the stop and restarts to work. It says cannot find the pid, and running the second time says stopping, but it does not actually stop.


Any suggestions please?


Thanks


0
Jackie Roos 1 year ago in Server Solutions / Linux Server • updated 1 year ago 0

Hi

On Linux, the name of the user documents "iRidium Server", with the space between iRidium and Server means to use this directory name in the command line means we must always put "" around it.


Can you please change to iRidiumServer, without the space.


Thanks


0

Hi

On Ubuntu 16.04


start iRidium: sudo ./iridium --hidden


It will run for a minute or so and then stops - connected clients go offline and system monitor no longer shows the iRidium process


is there anything else I need to do to get this to work as a daemon?

thanks :)

0
Waiting for user's reply
Martin Lang 1 year ago in Server Solutions / Linux Server • updated 1 year ago 6

Hi, when using a new Linux installation for iRidium 3 Server, what Linux Distribution do you prefer?


Thx!

0
Waiting for user's reply
Erik van den Brink 1 year ago in Server Solutions / Linux Server • updated by Jackie Roos 1 year ago 3

Hello,


Is there a command or setting to autostart the server on a linux device?

Also the "W" button shortcut isn't working in the server i think this need's to be checked.

I'm using a PC running Xubuntu 16.04 LTS

0
Waiting for user's reply
George Petrov 2 years ago in Server Solutions / Linux Server • updated by Oksana (expert) 2 years ago 4

Platform: Raspberry Pi 2 Model B

OS: Raspbian Jessie 4.1

iRidium Server: 1.0.0.7946

Web-panel: v1.0.0.20


На tag = KNX IP Router.Температура из системы KNX раз в 10 секунд получаем значение температуры. На графике точки данных располагаются неравномерно, данные записываются с точностью до минуты. Выгрузка данных в CSV приложена. Получается, что мы не можем работать с процессами, которые изменяются чаще, чем раз в минуту.



KNX IP Router.Температура.csv

Answer
Oksana (expert) 2 years ago

Здравствуйте,


Пришлите пожалуйста ваш проект