Q: list-view | password | Refresh rates

Help
Ingo Lages
2010-06-30
2012-12-10
  • Ingo Lages
    Ingo Lages
    2010-06-30

    I'm sorry that I must report about the following problems:

    1. Quote from http://anyremote.sourceforge.net/set-menu.html

    "Set(menu,replace …) command is not a superposition of Set(menu,clean)
    and Set(menu,add …)commands because predefined menu items will be
    added only during Set(menu,replace …). As a results, it is possible to
    omit predefined menu items by executing Set(menu,clean) and
    Set(menu,add …) commands."

    In "list-view" the "menu-clean" command doesn't work.
    I replaced "Set(menu,replace" with "Set(menu,clean);Set(menu,add".
    It is interesting that a single "Set(menu,clean)"-command doesn't show
    any effect.
    In log-file there is "menu add"  or  "menu replace" but never "menu
    clean"…
    The reason for me to do this is that I would like the "Back" item to be
    removed from the set of menu items.

    2. Is it possible to ask for the password whenever I connect to
    anyremote? Note: I use anyremote2html.

    3. Refresh rates: "-r smart" works, but I can't type my password in the
    browser (anyremote2html) because refresh rate is too fast.
    Is is possible to choose refresh rates manually (in which units)?
    "-r 200" (please see below) doesn't show any effect.

    My startup for anyremote and anyremote2html is as follows:
    anyremote -log -password
    -f /usr/share/anyremote/cfg-data/Server-mode/hcan.cfg -s socket:5000
    -http & anyremote2html -w 8078 -a 5000
    -i /usr/share/pixmaps/anyremote2html/ -r 200

    Please find below the configuration file and the log file.

    Thanks in advance.

    ____ hcan.cfg ____
    %
    % anyremote configuration file for  customization of GUI of Java client. (Server-mode)
    %

    GuiAppName=hcan
    GuiAppType=Example
    GuiAppBinary=true
    GuiAppModes=Server
    GuiAppDesc=hcan remote

    =Server

    Cancel=Exit

    (Connect)=Make(mode,LIST_HEIZUNGEN);

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %Licht:
    REFRESH_LAMPEN=ExecAndSet(list,replace,Licht ein|aus,echo "lampe" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getLampenStatusUndBez.awk);
    TIMER_LAMPEN=Exec(echo "LampenTimer\n");Macro(REFRESH_LAMPEN);

    =LIST_LAMPEN
    (EnterMode)=Timer(TIMER_LAMPEN,20,0);Macro(REFRESH_LAMPEN);Set(menu,clean);Set(menu,replace,schalten,1.Heizung…,3.Rollaeden…,4.Fenster…);
    1.Heizung…($$)=Make(mode,LIST_HEIZUNGEN);
    3.Rollaeden…($$)=Make(mode,LIST_ROLLAEDEN);
    4.Fenster…($$)=Make(mode,LIST_REEDKONTAKTE);
    schalten($$)=Exec(echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/invertLampenStatus.awk | telican);Macro(REFRESH_LAMPEN);Set(list,select,$(Index));
    (ExitMode)=Timer(TIMER_LAMPEN,cancel);

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %Heizung:
    REFRESH_HEIZUNG=ExecAndSet(list,replace,Heizungen (Tsoll),echo "heizung" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getHeizungTempUndBez.awk)
    TIMER_HEIZUNGEN=Exec(echo "HeizungsTimer\n");Macro(REFRESH_HEIZUNG);

    =LIST_HEIZUNGEN
    (EnterMode)=Timer(TIMER_HEIZUNGEN,20,0);Macro(REFRESH_HEIZUNG);Set(menu,replace,ein,aus,auto,plus2K,minus2K,2.Licht…,3.Rollaeden…,4.Fenster…);
    ein($$)=Exec(echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/HeizungEin.awk | telican);Macro(REFRESH_HEIZUNG);
    aus($$)=Exec(echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/HeizungAus.awk | telican);Macro(REFRESH_HEIZUNG);
    auto($$)=Exec(echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/HeizungAuto.awk | telican);Macro(REFRESH_HEIZUNG);
    plus2K($$)=Exec(echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/HeizungPlus2Grad.awk | telican);Macro(REFRESH_HEIZUNG);
    minus2K($$)=Exec(echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/HeizungMinus2Grad.awk | telican);Macro(REFRESH_HEIZUNG);
    --EG-gesamt--ohneWohnzimmer($$)=Exec(echo "$(Param)");
    2.Licht…($$)=Make(mode,LIST_LAMPEN);
    3.Rollaeden…($$)=Make(mode,LIST_ROLLAEDEN);
    4.Fenster…($$)=Make(mode,LIST_REEDKONTAKTE);
    (ExitMode)=Timer(TIMER_HEIZUNGEN,cancel);

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %Reedkontakt:
    REFRESH_REEDKONTAKTE=ExecAndSet(list,replace,Fenster ----|offen,echo "reedkontakt" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getReedkontaktStatusUndBez.awk);
    TIMER_REEDKONTAKTE=Exec(echo "ReedkontaktTimer\n");Macro(REFRESH_REEDKONTAKTE);

    =LIST_REEDKONTAKTE
    (EnterMode)=Timer(TIMER_REEDKONTAKTE,20,0);Macro(REFRESH_REEDKONTAKTE);Set(menu,replace,1.Heizung…,2.Licht…,3.Rollaeden…);
    1.Heizung…($$)=Make(mode,LIST_HEIZUNGEN);
    2.Licht…($$)=Make(mode,LIST_LAMPEN);
    3.Rollaeden…($$)=Make(mode,LIST_ROLLAEDEN);
    (ExitMode)=Timer(TIMER_REEDKONTAKTE,cancel);

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    %Rolladen:
    REFRESH_ROLLAEDEN=ExecAndSet(list,replace,Rolladen-Position,echo "rolladen" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getRolladenPosUndBez.awk);
    TIMER_ROLLAEDEN=Exec(echo "RolladenTimer\n");Macro(REFRESH_ROLLAEDEN);

    =LIST_ROLLAEDEN
    (EnterMode)=Timer(TIMER_ROLLAEDEN,20,0);Macro(REFRESH_ROLLAEDEN);Set(menu,replace,auf,zu,Schlitz,Sonnenschutz,1.Heizung…,2.Licht…,4.Fenster…);
    auf($$)=Exec(echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/setRolladenPos100.awk | telican);Macro(REFRESH_ROLLAEDEN);
    zu($$)=Exec(echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/setRolladenPos0.awk | telican);Macro(REFRESH_ROLLAEDEN);
    Schlitz($$)=Exec(echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/setRolladenPos17.awk | telican);Macro(REFRESH_ROLLAEDEN);
    Sonnenschutz($$)=Exec(echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/setRolladenPos40.awk | telican);Macro(REFRESH_ROLLAEDEN);
    1.Heizung…($$)=Make(mode,LIST_HEIZUNGEN);
    2.Licht…($$)=Make(mode,LIST_LAMPEN);
    4.Fenster…($$)=Make(mode,LIST_REEDKONTAKTE);
    (ExitMode)=Timer(TIMER_ROLLAEDEN,cancel);


    ____ anyremote.log ____
    CFG - Wed May 12 21:48:43 2010
    CFG - anyRemote v5.0
    CFG -  LIST_ROLLAEDEN
    CFG - (ExitMode) = Timer(TIMER_ROLLAEDEN<|>,cancel);
    CFG - 4.Fenster…($$) = Make(mode<|>,LIST_REEDKONTAKTE);
    CFG - 2.Licht…($$) = Make(mode<|>,LIST_LAMPEN);
    CFG - 1.Heizung…($$) = Make(mode<|>,LIST_HEIZUNGEN);
    CFG - Sonnenschutz($$) = Exec(<|>echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/setRolladenPos40.awk | telican);\
    CFG - Macro(REFRESH_ROLLAEDEN<|>);
    CFG - Schlitz($$) = Exec(<|>echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/setRolladenPos17.awk | telican);\
    CFG - Macro(REFRESH_ROLLAEDEN<|>);
    CFG - zu($$) = Exec(<|>echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/setRolladenPos0.awk | telican);\
    CFG - Macro(REFRESH_ROLLAEDEN<|>);
    CFG - auf($$) = Exec(<|>echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/setRolladenPos100.awk | telican);\
    CFG - Macro(REFRESH_ROLLAEDEN<|>);
    CFG - (EnterMode) = Timer(TIMER_ROLLAEDEN,20,0,<|>);\
    CFG - Macro(REFRESH_ROLLAEDEN<|>);\
    CFG - Set(menu,replace,auf,zu,Schlitz,Sonnenschutz,1.Heizung…,2.Licht…,4.Fenster…<|>);
    CFG -  LIST_ROLLAEDEN
    CFG -  LIST_REEDKONTAKTE
    CFG - (ExitMode) = Timer(TIMER_REEDKONTAKTE<|>,cancel);
    CFG - 3.Rollaeden…($$) = Make(mode<|>,LIST_ROLLAEDEN);
    CFG - 2.Licht…($$) = Make(mode<|>,LIST_LAMPEN);
    CFG - 1.Heizung…($$) = Make(mode<|>,LIST_HEIZUNGEN);
    CFG - (EnterMode) = Timer(TIMER_REEDKONTAKTE,20,0,<|>);\
    CFG - Macro(REFRESH_REEDKONTAKTE<|>);\
    CFG - Set(menu,replace,1.Heizung…,2.Licht…,3.Rollaeden…<|>);
    CFG -  LIST_REEDKONTAKTE
    CFG -  LIST_HEIZUNGEN
    CFG - (ExitMode) = Timer(TIMER_HEIZUNGEN<|>,cancel);
    CFG - 4.Fenster…($$) = Make(mode<|>,LIST_REEDKONTAKTE);
    CFG - 3.Rollaeden…($$) = Make(mode<|>,LIST_ROLLAEDEN);
    CFG - 2.Licht…($$) = Make(mode<|>,LIST_LAMPEN);
    CFG - --EG-gesamt--ohneWohnzimmer($$) = Exec(<|>echo "$(Param)");
    CFG - minus2K($$) = Exec(<|>echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/HeizungMinus2Grad.awk | telican);\
    CFG - Macro(REFRESH_HEIZUNG<|>);
    CFG - plus2K($$) = Exec(<|>echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/HeizungPlus2Grad.awk | telican);\
    CFG - Macro(REFRESH_HEIZUNG<|>);
    CFG - auto($$) = Exec(<|>echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/HeizungAuto.awk | telican);\
    CFG - Macro(REFRESH_HEIZUNG<|>);
    CFG - aus($$) = Exec(<|>echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/HeizungAus.awk | telican);\
    CFG - Macro(REFRESH_HEIZUNG<|>);
    CFG - ein($$) = Exec(<|>echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/HeizungEin.awk | telican);\
    CFG - Macro(REFRESH_HEIZUNG<|>);
    CFG - (EnterMode) = Timer(TIMER_HEIZUNGEN,20,0,<|>);\
    CFG - Macro(REFRESH_HEIZUNG<|>);\
    CFG - Set(menu,replace,ein,aus,auto,plus2K,minus2K,2.Licht…,3.Rollaeden…,4.Fenster…<|>);
    CFG -  LIST_HEIZUNGEN
    CFG -  LIST_LAMPEN
    CFG - (ExitMode) = Timer(TIMER_LAMPEN<|>,cancel);
    CFG - schalten($$) = Exec(<|>echo "$(Param)" | awk -f /usr/share/anyremote/cfg-data/Server-mode/invertLampenStatus.awk | telican);\
    CFG - Macro(REFRESH_LAMPEN<|>);\
    CFG - Set(list,select,$(Index)<|>);
    CFG - 4.Fenster…($$) = Make(mode<|>,LIST_REEDKONTAKTE);
    CFG - 3.Rollaeden…($$) = Make(mode<|>,LIST_ROLLAEDEN);
    CFG - 1.Heizung…($$) = Make(mode<|>,LIST_HEIZUNGEN);
    CFG - (EnterMode) = Timer(TIMER_LAMPEN,20,0,<|>);\
    CFG - Macro(REFRESH_LAMPEN<|>);\
    CFG - Set<|>;\
    CFG - Set(menu,replace,schalten,1.Heizung…,3.Rollaeden…,4.Fenster…<|>);
    CFG -  LIST_LAMPEN
    CFG -  default
    CFG - (Disconnect) = Set(list,close<|>);
    CFG - TIMER_ROLLAEDEN = Exec(<|>echo "RolladenTimer\n");\
    CFG - Macro(REFRESH_ROLLAEDEN<|>);
    CFG - REFRESH_ROLLAEDEN = ExecAndSet(list,replace,Rolladen-Position<|>,echo "rolladen" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getRolladenPosUndBez.awk);
    CFG - TIMER_REEDKONTAKTE = Exec(<|>echo "ReedkontaktTimer\n");\
    CFG - Macro(REFRESH_REEDKONTAKTE<|>);
    CFG - REFRESH_REEDKONTAKTE = ExecAndSet(list,replace,Fenster ----|offen<|>,echo "reedkontakt" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getReedkontaktStatusUndBez.awk);
    CFG - TIMER_HEIZUNGEN = Exec(<|>echo "HeizungsTimer\n");\
    CFG - Macro(REFRESH_HEIZUNG<|>);
    CFG - REFRESH_HEIZUNG = ExecAndSet(list,replace,Heizungen (Tsoll)<|>,echo "heizung" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getHeizungTempUndBez.awk);
    CFG - TIMER_LAMPEN = Exec(<|>echo "LampenTimer\n");\
    CFG - Macro(REFRESH_LAMPEN<|>);
    CFG - REFRESH_LAMPEN = ExecAndSet(list,replace,Licht ein|aus<|>,echo "lampe" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getLampenStatusUndBez.awk);
    CFG - (Connect) = Make(mode<|>,LIST_HEIZUNGEN);
    CFG - Cancel = Exit<|>;
    CFG -  default
    CFG -
    CFG - ToMainMenu -> E
    CFG - TwoWayComm -> false
    CFG - ServiceName -> anyRemote
    CFG - RetrySeconds -> 60
    CFG - Logging -> debug
    CFG - Device -> socket:5000
    CFG - CmerOn -> (empty)
    CFG - CmerOff -> (empty)
    CFG - CharSet -> 8859-1
    CFG - Baudrate -> 19200
    CFG - AutoRepeat -> false
    CFG - AutoConnect -> false
    CFG - MixerChannel -> Master
    CFG - MixerCard -> 0
    CFG - Dbus -> yes
    CFG - Bluez -> yes
    CFG - Xtest -> yes
    CFG - CfgDir -> /usr/share/anyremote/cfg-data
    CFG - Home -> /home/ingo
    CFG -
    - DBG - g_main_loop_new
    - DBG - Do not setup front-end connection
    - DBG - g_main_loop_run
    - DBG - : start dispatcher thread
    - DBG - : wait init OK event
    - INF - : Start executor thread
    - DBG - dbusInit
    - DBG - findItemInMode >default,(Init)<
    - DBG - findItemInMode: No parameters suspected. Item does not found.
    - DBG - findItem() internal mode
    - DBG - handleHook() >1<
    - DBG - loadCmds
    - INF - Send init OK event to dispatcher
    - DBG - send to dispatcher 98
    - DBG - : Got event
    - INF - : Got init OK event
    - DBG - : ************ outer loop **********
    - INF - : openPort()
    - DBG - : TCP Server mode. Use port 5000

    - DBG - initPort
    - INF - Server mode: Waiting connection
    - INF - listenAndAcceptSocketConn
    - INF - listenAndAcceptSocketConn: accepted
    - DBG - getStoredPass >5<
    - DBG - writeSocketConn
    - DBG - Get(password);
    - INF - writeSocketConn 14 bytes
    - DBG - : Password => Msg:_PASSWORD_(,1111)

    - DBG - : Password => 1111)

    - DBG - : Compare to => 1111

    - INF - : Password OK
    - INF - : Start event forwarding
    - DBG - : got event >3<
    - DBG - findItemInMode >default,(Connect)<
    - INF - : Exec cmd on connect
    - DBG - handleCmdByKey() >(Connect)<
    - DBG - getCommand for >(Connect)<
    - INF - processOneCommand >mode< >LIST_HEIZUNGEN< >1<
    - INF - Command: Make
    - INF - Command: Make(mode,…)
    - DBG - substParams >LIST_HEIZUNGEN<
    - DBG - findItemInMode >default,(ExitMode)<
    - DBG - findItemInMode: No parameters suspected. Item does not found.
    - DBG - findItem() internal mode
    - DBG - Leave mode
    - DBG - setMode() to LIST_HEIZUNGEN
    - DBG - findMode() LIST_HEIZUNGEN = LIST_HEIZUNGEN
    - DBG - setMode() new mode was set to LIST_HEIZUNGEN
    - DBG - findItemInMode >LIST_HEIZUNGEN,(EnterMode)<
    - DBG - Exec cmd on enter to mode
    - DBG - handleCmdByKey() >(EnterMode)<
    - DBG - getCommand for >(EnterMode)<
    - INF - processOneCommand >TIMER_HEIZUNGEN< >no exec params< >1<
    - INF - Command: Timer
    - INF - processOneCommand >REFRESH_HEIZUNG< >no exec params< >1<
    - INF - Command: Macro
    - DBG - macroCmd/timerCmd
    - DBG - findItemInMode >LIST_HEIZUNGEN,REFRESH_HEIZUNG<
    - DBG - findItemInMode: No parameters suspected. Item does not found.
    - DBG - findItem() search in default
    - DBG - findItemInMode >default,REFRESH_HEIZUNG<
    - DBG - handleCmdByKey() >REFRESH_HEIZUNG<
    - DBG - getCommand for >REFRESH_HEIZUNG<
    - INF - processOneCommand >list,replace,Heizungen (Tsoll)< >echo "heizung" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getHeizungTempUndBez.awk< >1<
    - INF - Command: ExecAndSet
    - DBG - execCmdAndGetResults
    - DBG - substParams >list,replace,Heizungen (Tsoll)<
    - DBG - substParams >echo "heizung" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getHeizungTempUndBez.awk<
    - DBG - execSimpleCmd >echo "heizung" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getHeizungTempUndBez.awk<
    - INF - closeSocketPort
    - DBG - readResultsFile >94<
    - DBG - sendData() >131<
    - DBG - send to dispatcher 1
    - DBG - Command: ExecAndSet FINISHED
    - INF - processOneCommand >menu,replace,ein,aus,auto,plus2K,minus2K,2.Licht…,3.Rollaeden…,4.Fenster…< >no exec params< >1<
    - DBG - substParams >menu,replace,ein,aus,auto,plus2K,minus2K,2.Licht…,3.Rollaeden…,4.Fenster…<
    - INF - Command: Set
    - INF - Data is new
    - DBG - send to dispatcher 1
    - DBG - handleHook() >3<
    - DBG - loadCmds
    - DBG - send to dispatcher 1
    - DBG - : Got event
    - DBG - : Set()
    - DBG - writeSocketConn
    - DBG - Set(list,replace,Heizungen (Tsoll),--EG-gesamt--ohneWohnzimmer, 0.0 Wohn-Arbeitszimmer, 0.0 Flur, 0.0 Kueche-Esszimmer, 0.0 Bad);
    - INF - writeSocketConn 131 bytes
    - DBG - : Got event
    - DBG - : Set()
    - DBG - writeSocketConn
    - DBG - Set(menu,replace,ein,aus,auto,plus2K,minus2K,2.Licht…,3.Rollaeden…,4.Fenster…);
    - INF - writeSocketConn 85 bytes
    - DBG - : Got event
    - DBG - : Set()
    - DBG - writeSocketConn
    - DBG - End();
    - INF - writeSocketConn 6 bytes
    - DBG - : ------------- Command read -------------
    - DBG - : parseCommand >Msg:2.Licht…(1,--EG-gesamt--ohneWohnzimmer)<
    - DBG - : got key >Msg:2.Licht…(1,--EG-gesamt--ohneWohnzimmer)<
    - DBG - : handle_command
    - DBG - : Got event from client
    - DBG - : handle_key_press() >2.Licht…(1,--EG-gesamt--ohneWohnzimmer)<
    - DBG - findItemInMode >LIST_HEIZUNGEN,2.Licht…(1,--EG-gesamt--ohneWohnzimmer)<
    - DBG - Parametrized command parsed as >2.Licht…< >1< >--EG-gesamt--ohneWohnzimmer<
    - DBG - Search findStartingWith() >2.Licht…($<
    - DBG - Found part of multi-key or parametrized command
    - DBG - Found parametrized command >1,--EG-gesamt--ohneWohnzimmer<
    - DBG - Got parametrized command
    - DBG - handleCmdByKey() >2.Licht…($$)<
    - DBG - getCommand for >2.Licht…($$)<
    - INF - processOneCommand >mode< >LIST_LAMPEN< >1<
    - INF - Command: Make
    - INF - Command: Make(mode,…)
    - DBG - substParams >LIST_LAMPEN<
    - DBG - findItemInMode >LIST_HEIZUNGEN,(ExitMode)<
    - DBG - Exec cmd on exit from mode
    - DBG - handleCmdByKey() >(ExitMode)<
    - DBG - getCommand for >(ExitMode)<
    - INF - processOneCommand >TIMER_HEIZUNGEN< >cancel< >1<
    - INF - Command: Timer
    - DBG - processTimerCmd() change status of TIMER_HEIZUNGEN timer
    - DBG - processTimerCmd(): cancel this timer
    - DBG - cancelTimer() >TIMER_HEIZUNGEN<
    - DBG - setMode() to LIST_LAMPEN
    - DBG - findMode() LIST_LAMPEN = LIST_LAMPEN
    - DBG - setMode() new mode was set to LIST_LAMPEN
    - DBG - findItemInMode >LIST_LAMPEN,(EnterMode)<
    - DBG - Exec cmd on enter to mode
    - DBG - handleCmdByKey() >(EnterMode)<
    - DBG - getCommand for >(EnterMode)<
    - INF - processOneCommand >TIMER_LAMPEN< >no exec params< >1<
    - INF - Command: Timer
    - INF - processOneCommand >REFRESH_LAMPEN< >no exec params< >1<
    - INF - Command: Macro
    - DBG - macroCmd/timerCmd
    - DBG - findItemInMode >LIST_LAMPEN,REFRESH_LAMPEN<
    - DBG - findItemInMode: No parameters suspected. Item does not found.
    - DBG - findItem() search in default
    - DBG - findItemInMode >default,REFRESH_LAMPEN<
    - DBG - handleCmdByKey() >REFRESH_LAMPEN<
    - DBG - getCommand for >REFRESH_LAMPEN<
    - INF - processOneCommand >list,replace,Licht ein|aus< >echo "lampe" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getLampenStatusUndBez.awk< >1<
    - INF - Command: ExecAndSet
    - DBG - execCmdAndGetResults
    - DBG - substParams >list,replace,Licht ein|aus<
    - DBG - substParams >echo "lampe" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getLampenStatusUndBez.awk<
    - DBG - execSimpleCmd >echo "lampe" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getLampenStatusUndBez.awk<
    - INF - closeSocketPort
    - DBG - readResultsFile >531<
    - DBG - sendData() >564<
    - DBG - send to dispatcher 1
    - DBG - Command: ExecAndSet FINISHED
    - INF - processOneCommand >no description< >no exec params< >1<
    - ERR - substParams(): null input
    - DBG - Empty command after substParams()
    - INF - processOneCommand >menu,replace,schalten,1.Heizung…,3.Rollaeden…,4.Fenster…< >no exec params< >1<
    - DBG - substParams >menu,replace,schalten,1.Heizung…,3.Rollaeden…,4.Fenster…<
    - INF - Command: Set
    - INF - Data is new
    - DBG - send to dispatcher 1
    - DBG - : Got event
    - DBG - : Set()
    - DBG - writeSocketConn
    - DBG - Set(list,replace,Licht ein|aus,-- Windfang,-- Bad-EG-Decke,-- Speisekammer,-- Esszimmer-Wand,-- Wohnzimmer-Wand,-- Wohnzimmer-Decke,-- Musikanlage,-- Beamer,-- Arbeitszimmer-Wand-Sued,-- Arbeitszimmer-Wand-Nord,-- Esszimmer-Decke,-- Kueche-Mit
    - INF - writeSocketConn 564 bytes
    - DBG - : got as is
    - DBG - send to dispatcher 1
    - DBG - : Got event
    - DBG - : Set()
    - DBG - writeSocketConn
    - DBG - Set(menu,replace,schalten,1.Heizung…,3.Rollaeden…,4.Fenster…);
    - INF - writeSocketConn 68 bytes
    - DBG - : Got event
    - DBG - : Set()
    - DBG - writeSocketConn
    - DBG - End();
    - INF - writeSocketConn 6 bytes
    - DBG - : ------------- Command read -------------
    - DBG - : parseCommand >Msg:3.Rollaeden…(1,-- Windfang)<
    - DBG - : got key >Msg:3.Rollaeden…(1,-- Windfang)<
    - DBG - : handle_command
    - DBG - : Got event from client
    - DBG - : handle_key_press() >3.Rollaeden…(1,-- Windfang)<
    - DBG - findItemInMode >LIST_LAMPEN,3.Rollaeden…(1,-- Windfang)<
    - DBG - Parametrized command parsed as >3.Rollaeden…< >1< >-- Windfang<
    - DBG - Search findStartingWith() >3.Rollaeden…($<
    - DBG - Found part of multi-key or parametrized command
    - DBG - Found parametrized command >1,-- Windfang<
    - DBG - Got parametrized command
    - DBG - handleCmdByKey() >3.Rollaeden…($$)<
    - DBG - getCommand for >3.Rollaeden…($$)<
    - INF - processOneCommand >mode< >LIST_ROLLAEDEN< >1<
    - INF - Command: Make
    - INF - Command: Make(mode,…)
    - DBG - substParams >LIST_ROLLAEDEN<
    - DBG - findItemInMode >LIST_LAMPEN,(ExitMode)<
    - DBG - Exec cmd on exit from mode
    - DBG - handleCmdByKey() >(ExitMode)<
    - DBG - getCommand for >(ExitMode)<
    - INF - processOneCommand >TIMER_LAMPEN< >cancel< >1<
    - INF - Command: Timer
    - DBG - processTimerCmd() change status of TIMER_LAMPEN timer
    - DBG - processTimerCmd(): cancel this timer
    - DBG - cancelTimer() >TIMER_LAMPEN<
    - DBG - setMode() to LIST_ROLLAEDEN
    - DBG - findMode() LIST_ROLLAEDEN = LIST_ROLLAEDEN
    - DBG - setMode() new mode was set to LIST_ROLLAEDEN
    - DBG - findItemInMode >LIST_ROLLAEDEN,(EnterMode)<
    - DBG - Exec cmd on enter to mode
    - DBG - handleCmdByKey() >(EnterMode)<
    - DBG - getCommand for >(EnterMode)<
    - INF - processOneCommand >TIMER_ROLLAEDEN< >no exec params< >1<
    - INF - Command: Timer
    - INF - processOneCommand >REFRESH_ROLLAEDEN< >no exec params< >1<
    - INF - Command: Macro
    - DBG - macroCmd/timerCmd
    - DBG - findItemInMode >LIST_ROLLAEDEN,REFRESH_ROLLAEDEN<
    - DBG - findItemInMode: No parameters suspected. Item does not found.
    - DBG - findItem() search in default
    - DBG - findItemInMode >default,REFRESH_ROLLAEDEN<
    - DBG - handleCmdByKey() >REFRESH_ROLLAEDEN<
    - DBG - getCommand for >REFRESH_ROLLAEDEN<
    - INF - processOneCommand >list,replace,Rolladen-Position< >echo "rolladen" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getRolladenPosUndBez.awk< >1<
    - INF - Command: ExecAndSet
    - DBG - execCmdAndGetResults
    - DBG - substParams >list,replace,Rolladen-Position<
    - DBG - substParams >echo "rolladen" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getRolladenPosUndBez.awk<
    - DBG - execSimpleCmd >echo "rolladen" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getRolladenPosUndBez.awk<
    - INF - closeSocketPort
    - DBG - readResultsFile >304<
    - DBG - sendData() >341<
    - DBG - send to dispatcher 1
    - DBG - Command: ExecAndSet FINISHED
    - INF - processOneCommand >menu,replace,auf,zu,Schlitz,Sonnenschutz,1.Heizung…,2.Licht…,4.Fenster…< >no exec params< >1<
    - DBG - substParams >menu,replace,auf,zu,Schlitz,Sonnenschutz,1.Heizung…,2.Licht…,4.Fenster…<
    - INF - Command: Set
    - INF - Data is new
    - DBG - send to dispatcher 1
    - DBG - : Got event
    - DBG - : Set()
    - DBG - writeSocketConn
    - DBG - Set(list,replace,Rolladen-Position,1 --EG-gesamt--,1 Wohnzimmer-Tuer,1 Arbeitszimmer,1 Flur,1 Kueche,1 Esszi-Tuer,1 Esszi-neben-Tuer,1 Esszi-West-links,1 Esszi-West-Mitte,1 Esszi-West-rechts,1 --OG-gesamt--,1 K1-Doppel-Fenster,1 K1-Einzel-Fenster,1 K2
    - INF - writeSocketConn 341 bytes
    - DBG - : got as is
    - DBG - send to dispatcher 1
    - DBG - : Got event
    - DBG - : Set()
    - DBG - writeSocketConn
    - DBG - Set(menu,replace,auf,zu,Schlitz,Sonnenschutz,1.Heizung…,2.Licht…,4.Fenster…);
    - INF - writeSocketConn 83 bytes
    - DBG - : Got event
    - DBG - : Set()
    - DBG - writeSocketConn
    - DBG - End();
    - INF - writeSocketConn 6 bytes
    - DBG - : ------------- Command read -------------
    - DBG - : parseCommand >Msg:4.Fenster…(1,1 --EG-gesamt--)<
    - DBG - : got key >Msg:4.Fenster…(1,1 --EG-gesamt--)<
    - DBG - : handle_command
    - DBG - : Got event from client
    - DBG - : handle_key_press() >4.Fenster…(1,1 --EG-gesamt--)<
    - DBG - findItemInMode >LIST_ROLLAEDEN,4.Fenster…(1,1 --EG-gesamt--)<
    - DBG - Parametrized command parsed as >4.Fenster…< >1< >1 --EG-gesamt--<
    - DBG - Search findStartingWith() >4.Fenster…($<
    - DBG - Found part of multi-key or parametrized command
    - DBG - Found parametrized command >1,1 --EG-gesamt--<
    - DBG - Got parametrized command
    - DBG - handleCmdByKey() >4.Fenster…($$)<
    - DBG - getCommand for >4.Fenster…($$)<
    - INF - processOneCommand >mode< >LIST_REEDKONTAKTE< >1<
    - INF - Command: Make
    - INF - Command: Make(mode,…)
    - DBG - substParams >LIST_REEDKONTAKTE<
    - DBG - findItemInMode >LIST_ROLLAEDEN,(ExitMode)<
    - DBG - Exec cmd on exit from mode
    - DBG - handleCmdByKey() >(ExitMode)<
    - DBG - getCommand for >(ExitMode)<
    - INF - processOneCommand >TIMER_ROLLAEDEN< >cancel< >1<
    - INF - Command: Timer
    - DBG - processTimerCmd() change status of TIMER_ROLLAEDEN timer
    - DBG - processTimerCmd(): cancel this timer
    - DBG - cancelTimer() >TIMER_ROLLAEDEN<
    - DBG - setMode() to LIST_REEDKONTAKTE
    - DBG - findMode() LIST_REEDKONTAKTE = LIST_REEDKONTAKTE
    - DBG - setMode() new mode was set to LIST_REEDKONTAKTE
    - DBG - findItemInMode >LIST_REEDKONTAKTE,(EnterMode)<
    - DBG - Exec cmd on enter to mode
    - DBG - handleCmdByKey() >(EnterMode)<
    - DBG - getCommand for >(EnterMode)<
    - INF - processOneCommand >TIMER_REEDKONTAKTE< >no exec params< >1<
    - INF - Command: Timer
    - INF - processOneCommand >REFRESH_REEDKONTAKTE< >no exec params< >1<
    - INF - Command: Macro
    - DBG - macroCmd/timerCmd
    - DBG - findItemInMode >LIST_REEDKONTAKTE,REFRESH_REEDKONTAKTE<
    - DBG - findItemInMode: No parameters suspected. Item does not found.
    - DBG - findItem() search in default
    - DBG - findItemInMode >default,REFRESH_REEDKONTAKTE<
    - DBG - handleCmdByKey() >REFRESH_REEDKONTAKTE<
    - DBG - getCommand for >REFRESH_REEDKONTAKTE<
    - INF - processOneCommand >list,replace,Fenster ----|offen< >echo "reedkontakt" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getReedkontaktStatusUndBez.awk< >1<
    - INF - Command: ExecAndSet
    - DBG - execCmdAndGetResults
    - DBG - substParams >list,replace,Fenster ----|offen<
    - DBG - substParams >echo "reedkontakt" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getReedkontaktStatusUndBez.awk<
    - DBG - execSimpleCmd >echo "reedkontakt" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getReedkontaktStatusUndBez.awk<
    - INF - closeSocketPort
    - DBG - readResultsFile >227<
    - DBG - sendData() >267<
    - DBG - send to dispatcher 1
    - DBG - Command: ExecAndSet FINISHED
    - INF - processOneCommand >menu,replace,1.Heizung…,2.Licht…,3.Rollaeden…< >no exec params< >1<
    - DBG - substParams >menu,replace,1.Heizung…,2.Licht…,3.Rollaeden…<
    - INF - Command: Set
    - INF - Data is new
    - DBG - send to dispatcher 1
    - DBG - : Got event
    - DBG - : Set()
    - DBG - writeSocketConn
    - DBG - Set(list,replace,Fenster ----|offen,---- K1-Doppel-Fenster1,---- K1-Doppel-Fenster2,---- K1-Einzel-Fenster,---- K2-Balkon-Tuer,---- Schlafzimmer-Tuer,---- Schlafzimmer-Fenster1,---- Schlafzimmer-Fenster2,---- OG-Bad-Fenster1,---- OG-Ba
    - INF - writeSocketConn 267 bytes
    - DBG - : got as is
    - DBG - send to dispatcher 1
    - DBG - : Got event
    - DBG - : Set()
    - DBG - writeSocketConn
    - DBG - Set(menu,replace,1.Heizung…,2.Licht…,3.Rollaeden…);
    - INF - writeSocketConn 57 bytes
    - DBG - : Got event
    - DBG - : Set()
    - DBG - writeSocketConn
    - DBG - End();
    - INF - writeSocketConn 6 bytes
    - DBG - : ------------- Command read -------------
    - DBG - : parseCommand >Msg:1.Heizung…(1,---- K1-Doppel-Fenster1)<
    - DBG - : got key >Msg:1.Heizung…(1,---- K1-Doppel-Fenster1)<
    - DBG - : handle_command
    - DBG - : Got event from client
    - DBG - : handle_key_press() >1.Heizung…(1,---- K1-Doppel-Fenster1)<
    - DBG - findItemInMode >LIST_REEDKONTAKTE,1.Heizung…(1,---- K1-Doppel-Fenster1)<
    - DBG - Parametrized command parsed as >1.Heizung…< >1< >---- K1-Doppel-Fenster1<
    - DBG - Search findStartingWith() >1.Heizung…($<
    - DBG - Found part of multi-key or parametrized command
    - DBG - Found parametrized command >1,---- K1-Doppel-Fenster1<
    - DBG - Got parametrized command
    - DBG - handleCmdByKey() >1.Heizung…($$)<
    - DBG - getCommand for >1.Heizung…($$)<
    - INF - processOneCommand >mode< >LIST_HEIZUNGEN< >1<
    - INF - Command: Make
    - INF - Command: Make(mode,…)
    - DBG - substParams >LIST_HEIZUNGEN<
    - DBG - findItemInMode >LIST_REEDKONTAKTE,(ExitMode)<
    - DBG - Exec cmd on exit from mode
    - DBG - handleCmdByKey() >(ExitMode)<
    - DBG - getCommand for >(ExitMode)<
    - INF - processOneCommand >TIMER_REEDKONTAKTE< >cancel< >1<
    - INF - Command: Timer
    - DBG - processTimerCmd() change status of TIMER_REEDKONTAKTE timer
    - DBG - processTimerCmd(): cancel this timer
    - DBG - cancelTimer() >TIMER_REEDKONTAKTE<
    - DBG - setMode() to LIST_HEIZUNGEN
    - DBG - findMode() LIST_HEIZUNGEN = LIST_HEIZUNGEN
    - DBG - setMode() new mode was set to LIST_HEIZUNGEN
    - DBG - findItemInMode >LIST_HEIZUNGEN,(EnterMode)<
    - DBG - Exec cmd on enter to mode
    - DBG - handleCmdByKey() >(EnterMode)<
    - DBG - getCommand for >(EnterMode)<
    - INF - processOneCommand >TIMER_HEIZUNGEN< >no exec params< >1<
    - INF - Command: Timer
    - INF - processOneCommand >REFRESH_HEIZUNG< >no exec params< >1<
    - INF - Command: Macro
    - DBG - macroCmd/timerCmd
    - DBG - findItemInMode >LIST_HEIZUNGEN,REFRESH_HEIZUNG<
    - DBG - findItemInMode: No parameters suspected. Item does not found.
    - DBG - findItem() search in default
    - DBG - findItemInMode >default,REFRESH_HEIZUNG<
    - DBG - handleCmdByKey() >REFRESH_HEIZUNG<
    - DBG - getCommand for >REFRESH_HEIZUNG<
    - INF - processOneCommand >list,replace,Heizungen (Tsoll)< >echo "heizung" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getHeizungTempUndBez.awk< >1<
    - INF - Command: ExecAndSet
    - DBG - execCmdAndGetResults
    - DBG - substParams >list,replace,Heizungen (Tsoll)<
    - DBG - substParams >echo "heizung" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getHeizungTempUndBez.awk<
    - DBG - execSimpleCmd >echo "heizung" | telican | awk -f /usr/share/anyremote/cfg-data/Server-mode/getHeizungTempUndBez.awk<
    - INF - closeSocketPort
    - DBG - readResultsFile >94<
    - DBG - sendData() >131<
    - DBG - send to dispatcher 1
    - DBG - Command: ExecAndSet FINISHED
    - INF - processOneCommand >menu,replace,ein,aus,auto,plus2K,minus2K,2.Licht…,3.Rollaeden…,4.Fenster…< >no exec params< >1<
    - DBG - substParams >menu,replace,ein,aus,auto,plus2K,minus2K,2.Licht…,3.Rollaeden…,4.Fenster…<
    - INF - Command: Set
    - INF - Data is new
    - DBG - send to dispatcher 1
    - DBG - : Got event
    - DBG - : Set()
    - DBG - writeSocketConn
    - DBG - Set(list,replace,Heizungen (Tsoll),--EG-gesamt--ohneWohnzimmer, 0.0 Wohn-Arbeitszimmer, 0.0 Flur, 0.0 Kueche-Esszimmer, 0.0 Bad);
    - INF - writeSocketConn 131 bytes
    - DBG - : got as is
    - DBG - send to dispatcher 1
    - DBG - : Got event
    - DBG - : Set()
    - DBG - writeSocketConn
    - DBG - Set(menu,replace,ein,aus,auto,plus2K,minus2K,2.Licht…,3.Rollaeden…,4.Fenster…);
    - INF - writeSocketConn 85 bytes
    - DBG - : Got event
    - DBG - : Set()
    - DBG - writeSocketConn
    - DBG - End();
    - INF - writeSocketConn 6 bytes
    - DBG - : aboutToExit
    - DBG - : aboutToExit: join executor
    - DBG - : aboutToExit: join dispatcher
    - DBG - send to dispatcher 100
    - DBG - EOF during read()
    - INF - : Got disconnected
    - INF - : Wait 5 seconds to connect/open server socket …

     
  • Mike
    Mike
    2010-07-08

    >In "list-view" the "menu-clean" command doesn't work.
    Yes, it is a bug. Please try to change "clean" to "clear" in configuration file.

    This issue will be fixed in next release.

     
  • Mike
    Mike
    2010-07-08

    >3. Refresh rates: "-r smart" works, but I can't type my password in the browser (anyremote2html) because refresh
    >rate is too fast. Is is possible to choose refresh rates manually (in which units)? "-r 200" (please see below) doesn't
    >show any effect.
    Refresh rate measured in seconds.
    In "Smart" mode rate increased if user do nothing, and maximal rate is 32 seconds. So, if rate is too fast it is possible just
    to wait a bit ))
    Bug with "-r <number> will be fixed in v1.3.

    Also You can try to run anyremote with an additional "-http" commandline parameter and DID NOT specify rate in anyremote2html

     
  • Ingo Lages
    Ingo Lages
    2010-07-21

    Thanks for help!

    Is it possible to ask for the password whenever I connect to
    anyremote? Please note: I use anyremote2html.

    The reason is: If once logged in everyone else has also access to the html-site. Only the first user is requested to enter a password.

     
  • Mike
    Mike
    2010-07-23

    Yes, this can be a good enhancement. I'm going to think about that.

     
  • Ingo Lages
    Ingo Lages
    2010-07-25

    The command "Set(list,select,$(Index));" doesn't work. Exec(echo "Index=$(Index)\n"); returns the selected index eg 13. But it wasn't selected in the list.

    Please note: I use anyremote2html.

     
  • Mike
    Mike
    2010-08-24

    The issue with Set(list,select,$(Index)) will be fixed in upcoming v1.4

     
  • Mike
    Mike
    2010-08-24

    >The reason is: If once logged in everyone else has also access to the html-site.
    >Only the first user is requested to enter a password.
    This issue will be fixed in upcoming v1.4

     
  • Ingo Lages
    Ingo Lages
    2010-09-01

    Fine, thank you very much for the update! In anyremote2html 1.4 it works!