Your comments

As a workarround 
I think you can set Tag "On server" option to "False" so it will not count as tag and can not use
but i'm not sure if this option works default tokens or not

Hi,

But if "Read On Start" set to "True" IR Server still send ReadRequest to KNX Bus 

even if  On Server = False

I try to use Script Modifier as following:

But it look like script will run only if input is changed


eg: if input like this : 0 0 0 1 1 1 0 0 0


Output will show only : 0 1 0


anyway to make it run everytime that its get data?

I have the same requirement.

Currently I have to use JS to prompted for a password then save list of allow page/button in JS var

if some page is request so some checking if requested page is in list of allowed list or not

or create invisible panel over some button that you want to locked and hide this  invisible panel if user password is allow to control those panel

So, it is very complex and hard to maintenance 

Any update on this? I also looking for enable/disable routine,

I already look in https://dev.iridi.com/Demo_schedule_edit 

it refer to IR.GetScheduler()

but it can not find any document on this method 

or how can I simple update start/end date time like this: (how about date time format should i use?)

var mMonth = IR.GetVariable("System.Date.Month");

var schedule_i_want = IR.GetScheduler("Schedule 1").GetEvents("NIGHT_LIGHT");

       if(mMonth <= 2 || mMonth>= 9)
       {//WINTER
            IR.Log("updateSchedule to WINTER");
            schedule_i_want.Start = "2019-09-29 18:00:00"; //what date time format shouid i use here?*/
            schedule_i_want.End = "2019-09-30 06:15:00"; 
            schedule_i_want.Enabled = true;
            schedule_i_want.Done();
       }
       else
       {//SUMMER
            IR.Log("updateSchedule to SUMMER");       
            schedule_i_want.Start = "2019-09-29 18:30:00";
            schedule_i_want.End = "2019-09-30 06:00:00"; 
            schedule_i_want.Enabled = true;
            schedule_i_want.Done();            
       } 


Hi,

I agree that that would be nice if it can choose where db file should be save 

BTW, I would like to share my method by using symbolic link from /var/lib/iRidium Server/DataBase to remote folder

(in my case SD card in UMC C3) (C2 also has SD card for database but i didn't test it yet)

PLEASE NOTE: put your own SD card in UMC C3 might void warranty since it need to make a hole in C3 Case in order

to put sd card in

1. plugin your SD card or USB

2. SSH to UMC

3. check your device path

fdisk -l

  and you should see something like this

Device       Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/mmcblk0p1    0,1,1       1023,3,16           16  124735487  124735472 59.4G 83 Linux
Disk /dev/mmcblk2: 3728 MB, 3909091328 bytes, 7634944 sectors
119296 cylinders, 4 heads, 16 sectors/track
Units: cylinders of 64 * 512 = 32768 bytes

Device       Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/mmcblk2p1    160,0,1     1023,3,16        10240     534591     524352  256M 83 Linux
/dev/mmcblk2p2    1023,3,16   1023,3,16       534592    1058943     524352  256M 83 Linux
/dev/mmcblk2p3    1023,3,16   1023,3,16      1058944    7110591    6051648 2954M 83 Linux
/dev/mmcblk2p4    1023,3,16   1023,3,16      7110592    7634943     524352  256M 83 Linux

find device of your SD card in my case /dev/mmcblk0p1 , size of 59.4G

4.remove all partition in SD card ** Please note command line if there is some thing like p1 or p2 at the end for your drive path, remove it so in mycase just fdisk /dev/mmcblk0

fdisk /dev/mmcblk0

- then enter

d

to delete all partition

- use

p

to make sure that all partition are deleted

- enter

n
p
1

to create new primary partition

- use p to check it again now it should be 1 partition

- now use w to save

w

after done with fdisk now you have to create ext4 file system 

mkfs.ext4 /dev/mmcblk0p1

create mount folder

mkdir /mnt/ext_card
chmod 777 /mnt/ext_card

create udev rule

vi /etc/udev/rules.d/automount.rules

press i to switch vi to edit mode

and add following to the end of file

ACTION=="add" KERNEL=="mmcblk0p1" RUN+="/bin/mount /dev/mmcblk0p1"

press following key to save and exit

ESC
:
w
q
!

- then 

vi /etc/fstab

and add following to the end of file (same method as edit udev file

/dev/mmcblk0p1           /mnt/ext_card            ext4   defaults        0       0

-now restart UMC

- relogin to UMC

- stop server

- copy previous DB to sd card

cd /mnt/ext_card/
mkdir ir_db
chmod 777 ir_db
rsync --info=progress2 /var/lib/iRidium\ Server/DataBase/* /mnt/ext_card/ir_db/

then rename old database folder in umc

mv /var/lib/iRidium\ Server/DataBase /var/lib/iRidium\ Server/DataBase-local

and link SD card to IR database folder

ln -s /mnt/ext_card/ir_db /var/lib/iRidium\ Server/DataBase

- restart UMC again now everything should work

Hi,

I would like to do something like:

- Turn off light 1 hr before sunrise

- turn on light 0:30  hr before sunset

If it was tag i can do it with vbscript

Hi

I mean JS command like this

mybase = new SQL();
   mybase.Open('WHICH FILE SHOULD I oPEN HERE', true);

Ok, 

I will take a risk

But which command i should use for open system database? 

Hi, 

Yes i want to clear zero value on some tag in tag history

Because it writes down zero value when server was restart