Logo Logo en
  • iRidi Pro
    Основные компоненты
    • Приложение i3 Pro
    • iRidi Pro Server
    • iRidi Studio
    • iRidium studio v. 1.3.8 (устаревшая версия)
    Java Script в iRidi
    • Руководство
    • Справочник
    • Примеры
    • JS драйвера
    другие
    • Личный Кабинет
    • iRidium Cloud
    • iRidium Transfer
    • Push-уведомления
    • Лучшая практика
    Лицензирование
    • Лицензирование и передача проекта
    • Оффлайн-лицензирование
    • Активация iRidi Pro Server
  • Продукты
    i3 lite
    • Приложение i3 lite
    • Регистрация и лицензирование
    • Сервер
    • Модули
    KNX Home Server
    • Приложение i3 KNX
    • KNX Home Server
    BUS77 HOME SERVER
    • Приложения Bus77 Home и Bus77 Lite
    • Bus77 Home Server
    Решения
    • BYOD - решение для гостиниц
    • Портал жителя - решение для МКД
    iRidi SCADA
    • iRidi SCADA
  • Bus77
    НАСТРОЙКА BUS77
    • Основы Bus77
    • Приложения Bus77 Home и Bus77 Lite
    • Работа с драйвером Bus77 в iRidi Studio
    • Настройка шины Bus77 в iRidi Studio
    ПРОТОКОЛ BUS77
    • Характеристики CAN (Bus77)
    • Описание протокола
    • Исходники на GitHub
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
  • Поддерживаемое оборудование
    Драйверы
    • Список драйверов
    • ProAV драйвера
    • AV & Custom Systems
    • JS драйвера
    • Сторонние драйвера и фриланс
    Протоколы и интерфейсы
    • Голосовое управление
    • 1-Wire
    • BACnet IP
    • Bus77
    • KNX
    • KNX IP BAOS
    • Weinzierl kBerry
    • Microsoft Exchange
    • Modbus
    • MQTT
    • NFC
    • ODBC
    • Onvif
    • SIP
    • SNMP
    • Wake On Lan
    • Z-Wave
    • ZigBee
    Производители
    • AMX
    • AVCiT
    • Beckhoff ADS
    • Biamp Tesira
    • Bluesound
    • Casambi
    • BSS Harman
    • Clipsal
    • ControlArt 7Port
    • Crestron
    • DigiBird
    • Domintell
    • Duotecno
    • EIDE
    • EPSNET
    • Global Cache
    • HDL Buspro
    • Helvar
    • IEAST
    • INELS BUS
    • INELS Wireless
    • Intesis
    • Kleger
    • Kramer VIA
    • Kramer 3000
    • Larnitech
    • Legrand Netatmo
    • LG TV
    • Lutron
    • Lutron Homeworks QS
    • MyHome
    • Nest
    • Novastar
    • Panasоnic PTZ
    • Philips Dynalite
    • PJLink
    • Satel
    • SamsungTV
    • Sonos
    • Somfy
    • SpinetiX
    • Televic Conference
    • TIS
    • Tion
    • URRI
    • Velbus
    • Velocio
    • Vinteo
    • WyreStorm
    • WiiM
    • Xicato
    • Yamaha
    • ZONT
    • Z-Wave.me
    Протестированное оборудование
    • Панель HDL S57
    • Панель HDL S10
    • SIP-домофон
    • Akuvox
    • Arlight
    • Divus
    • QBic TD-1050 PRO
    • QBic TD-1060 Slim
    • QBic TD-1070
    • Sigur
    • Uni-Ubi
    • Velocio
  • Оборудование iRidi

    Серверы
    • HS Сервер
    • ProAV Control Processor Basic
    • ProAV Control Processor Advanced
    • Спецификация контроллеров UMC
    • Настройка контроллера UMC C2
    • Настройка контроллера UMC C3
    • Настройка контроллера HDL IntelliCenter 2 (UMC C4)
    Модули расширения
    • I-PX-RS1
    • I-PX-RS4
    • I-PX-IR3
    KNX
    • KNX Home Server
    • KNX IP Interface
    Панели управления
    • iRidium Panel 7
    • Touch Panel P3
    • Touch Panel P6
    • Touch Panel P8
    • Touch Panel P10
    • Tabletop Touch Panel 10
    • AV Remote Control
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
    • Differences
iRidium mobile web-site
Содержание
    Инструменты‌
    • Сведения о странице
    • Постоянная ссылка
    • Версия для печати
    • Спецстраницы
    • Связанные правки
    • Ссылки сюда
    Login / Create Account
    Материал из for iRidium developers
    Перейти к: навигация, поиск
    Эта страница является переводом страницы Presence Simulator. Перевод выполнен на 100%.

    Other languages:
    English • ‎русский

    Содержание

    • 1 Presence Simulator
    • 2 Project Setting
    • 3 Script
      • 3.1 g_oPrecenceWorker.Collect
      • 3.2 g_oPrecenceWorker.Emulate
      • 3.3 g_oPrecenceWorker.Stop
      • 3.4 g_oPrecenceWorker.Clear

    Presence Simulator

    When it is required to leave a house or an apartment unattended for several day, there appears a question of protection against intrusion. For a house not to attract attention of uninvited guests we offer a system to control light and other equipment imitating presence of house owners.
    Solution for server project.

    documentation was last updated on 28.8.2020


    How does it work?

    1. Download an example of a server project from our website.
    2. Choose required drivers and channels to track.
    3. Assign control to graphic items.
    4. Start keeping track of channels.
    5. Start presence simulator.
    Example:

    Panel project
    Server project

    Project Setting

    The panel project contains tags of a virtual server to send a command to remember device events (7 and 14 days), to start simulation (7 and 14 days), to stop emulation and clear the database and it does not require further setting.

    The server project contains two scripts required for work: Main and PresenceWorker. To set your project, open a tab of the "Main" script in the server project and enter all required data:

    1 Enter the driver name you want to keep track of, the script will imitate the work of this device in the absence of house owners. "Modbus TCP" is used in the example.

    Simulator1.png

    2 Enter names of channels which changes you want to track:

    Simulator2.png

    3 Assign commands to control Database to an event (for example, when a button is pressed)

    Simulator3.png
    • Collect7 - Start collecting data for 7 days;
    • Collect14 - Start collecting data for 14 days;
    • Emulate7 - Start emulation for 7 days;
    • Emulate14 - Start emuation for 14 days;
    • Stop - Stop all launched processes;
    • Clear - Clear the database.

    You can create your own virtual command in there server project and write a required function in the Script Modifier field.

    You can change the number of days to read and write in the corresponding functions “Collect” (read) and “Emulate” (write).

    Simulator4.png

    When data collection is launched all previous data in the database are deleted!

    The emulation process starts with the second day of writing.

    Script

    These examples will help you to use more settings of script functions.

    g_oPrecenceWorker.Collect

    Start writing data.

    Syntax

    g_oPrecenceWorker.Collect(days);

    input value description
    days 7 type: number
    start collecting data for a definite number of days
    output

    -


    Sample

    function ACollect7() 
    {
       g_oPrecenceWorker.Collect(7);   
    }




    g_oPrecenceWorker.Emulate

    Start the emulation process

    Syntax

    g_oPrecenceWorker.Emulate(days, loop, starts_from);

    input value description
    days 7 type: number
    number of days for emulation
    loop false type: boolean
    • true - when emulation is over, the process starts from the begining;
    • false - when emulation is over, the process won't start again.
    start_from 1 type: number
    day of emulation start
    output

    -


    Sample

    function AEmulate7() 
    {
       g_oPrecenceWorker.Emulate(7);
    }




    g_oPrecenceWorker.Stop

    Stop all processes

    Syntax

    g_oPrecenceWorker.Stop();

    input value description

    -

    output

    -


    Sample

    function AStop() 
    {
       g_oPrecenceWorker.Stop();
    }




    g_oPrecenceWorker.Clear

    Clear the database.

    Syntax

    g_oPrecenceWorker.Clear()

    input value description

    -

    output

    -


    Sample

    function AClear() 
    {
       g_oPrecenceWorker.Clear();
    }




    Источник — «https://dev.iridi.com/index.php?title=Presence_Simulator/en&oldid=97162»
    About us
    Company
    Team
    History
    Philosophy
    Rewards
    Partnership
    Our partner
    Partnership Programs
    Apply for partnership
    products
    iRidium pro
    iRidium lite
    iRidium gate
    iRidium server
    Loads
    iRidium pro
    iRidium lite
    Other version
    Marketing materials
    Support
    On-line courses/Video
    Recommended equipment
    Other version
    iRidium pro
    Documentation
    FAQ
    Forum
    iRidium lite
    Documentation
    Forum
    Projects
    Standart projects
    Smart buildings
    Smart house
    Special solution
    Find a dealer
    News
    Youtube
    Twitter
    VK
    Logo
    contact@iridi.com
    +7 (499) 322-73-29

    Privacy policy