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
Not a bug
Francesco Zangara 4 months ago in Server Solutions / Linux Server • updated by Aleksandr Romanov (CTO) 3 weeks ago 1

On Linux server, all logs are saved on same directory.

On Windows server, the logs are saved on different direcory (one per day).

0
volk_234 5 months ago in Server Solutions / Linux Server • updated by Nikolay Rusanov 4 months ago 1

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

0
Jackie Roos 6 months ago in Server Solutions / Linux Server 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 6 months ago in Server Solutions / Linux Server 0

Hi

iRidium Server on Linux is currently installed in the root directory. This is bad practice and is not a standard 3rd party installation location, please change the install to place iRidium in a standard location, such as /usr/local/iridium


/usr/local

The original idea behind '/usr/local' was to have a separate ('local') '/usr' directory on every machine besides '/usr', which might be just mounted read-only from somewhere else. It copies the structure of '/usr'. These days, '/usr/local' is widely regarded as a good place in which to keep self-compiled or third-party programs. The /usr/local hierarchy is for use by the system administrator when installing software locally. It needs to be safe from being overwritten when the system software is updated. It may be used for programs and data that are shareable amongst a group of hosts, but not found in /usr. Locally installed software must be placed within /usr/local rather than /usr unless it is being installed to replace or upgrade software in /usr.

source: http://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/usr.html

0
Jackie Roos 6 months ago in Server Solutions / Linux Server • updated 6 months 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
Jackie Roos 7 months ago in Server Solutions / Linux Server 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 10 months ago in Server Solutions / Linux Server • updated 9 months 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 10 months ago in Server Solutions / Linux Server • updated by Jackie Roos 7 months 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 12 months ago in Server Solutions / Linux Server • updated by Oksana (expert) 12 months 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) 12 months ago

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


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