ПВИ-Л

Материал из Придумать имя Вики
Версия от 02:29, 15 октября 2024; Krivov (обсуждение | вклад)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигации Перейти к поиску

Логика работы

Информатор:

  • Принять вызов:

{"dest": "informator", "action": "acceptCall" }

  • Смена направления:

{"dest":"informator", "action":"changeDirection"}

  • Проверка SD карты:

{"dest":"informator", "action":"checkSd"}

  • Закрыть маршрут:

{"dest":"informator", "action":"closeRoute"}

  • Завершить вызов:

{'dest":"informator", "action":"finishCall"}

  • Первая остановка:

{"dest":"informator", "action":"firstStation"}

  • Форматирование SD карты:

{"dest":"informator", "action":"formatSd"}

  • Следующий маршрут:

{"dest","informator", "action":"nextRoute"}

  • Следующая станция:

{"dest":"informator", "action", "nextStation"}

  • Воспроизвести маршрут

{"dest":"informator",

"action":"playRoute",

"dirName:"название направления?"}

  • Предыдущий маршрут:

{"dest":"informator", "action":"prevRoute"}

  • Предыдущая станция:

{"dest":"informator", "action":"prevStation"}

  • Переоткрыть маршрут:

{"dest":"informator",

"action":"reopenRoute",

"path":"какой-то путь"}

  • Запросить автоматические ночные параметры:

{"dest":"informator", "action":"getAutoNightParams"}

  • Запросить медиасистему:

{"dest":"informator", "action":"getMediaSystem"}

  • Запросить цвета табло:

{"dest":"informator", "action":"getTabloColors"}

  • Запросить громкость:

{"dest":"informator", "action":"getValue"}

  • Установить автоНочь уровень:

{"dest":"informator",

"actoin":"setAutoNightLevel",

"autoNightLevel":"уровень число"}

  • Установить автоНочь время:

{"dest":"informator",

"action":"setAutoNightTime",

"autoNightTime":"что-то непонятное"}

  • Установить громкость в кабине:

{"dest":"informator",

"action":"setCabinVolume",

"volume":"уровень громкости"}

  • Установить громкость вызова:

{"dest":"informator",

"action":"setCallerVolume",

"volume":"уровень громкости"}

  • Включение\выключение информатора:

{"dest":"informator",

"action":"setEnabled",

"enabled":"true|false"}

  • Установка режима gsp:

{"dist":"informator",

"action":"setGpsMode",

"gpsMode":"true|false"}

  • Установка громкости микрофона:

{"dest":"informator",

"action":"setMicrophoneVolume"',

"valume":"Уровень громкости"}

  • Установить тон заднего хода:

{"dest":"informator",

"action":"setReverseTone",

"tone":"тон"}

  • Установить громкость заднего хода:

{"dest":"informator",

"action":"setReverseVolume",

"volume":"уровень громкости"}

  • Установка цвета табло салона:

{"dest":"informator",

"action":"setSalonTabloColor",

"color":"цвет"}

  • Установка видимости громкости салона:

{"dest":"informator",

"action":"setSalonVolumeVisible",

"salonVolumeVisible":"true|false"}

  • Установка яркости табло авто режим:

{"dest":"informator",

"action":"setTabloBrightAutoMode",

"tabloBrightAutoMode":"true|false"}

  • Установка яркости табло:

{"dest":"informator",

"action":"setTabloBrightness",

"brightness":"яркость"}

  • Установка цвета табло:

{"dest":"informator",

"action":"setFrontTabloColor|setBackTabloColor|setSideTabloColor"'

"color":"цвет",

"startColor":"цвет",

"destColor":"цвет"}

  • Установка цвета табло из маршрута:

{"dest":"informator",

"action":"setTabloColorsFromRoute",

"value":"true|false"}

  • Установка уровня ночной яркости табло:

{"dest":"informator",

"action":"setTabloNightBrightness",

"tabloNightBrightness":"уровень"}

  • Установка громкости:

{"dest":"informator",

"action":"setSpeakerVolume",

"volume":"громкость"}

  • После коннекта к серверу:

{"dest":"informator",

"action":"setNotifier",

"enable":"1"}

{"dest":"informator",

"action":"setNexStationDelay",

"nexStationDelay":"0"}