Uploading icons does not work with Android

Help
Ian Smith
2011-11-02
2012-12-10
  • Ian Smith
    Ian Smith
    2011-11-02

    Now that I've got my Android client working via wifi, I'm back to exploring and bug hunting.

    The first thing I notice is that any config files that are supposed to upload icons just leave a space where the icons should be. This is true both for files that use the extra set of icons in (for my system) /usr/share/anyremote/cfg-data/Icons/ directories, and also for files that try to upload an icons with set(image,icon …)

    I have tried editing these config files, altering the path of the icons directories but nothing seems to work.

    Has anybody else experienced this?

    More importantly, any ideas on how to solve it? I noticed in the website, under $(CfgDir), it says: "In most cases it is /usr/share/anyremote/cfg-data. Actually it depends on -prefix value which was used at build time."

    Perhaps that's the problem, but I could not find any information about how to "override this by setting AR_CFGDIR environment value".

    Any help would be most appreciated.

     
  • Mike
    Mike
    2011-11-06

    Android client does not support icon uploading at the moment.

     
  • Ian Smith
    Ian Smith
    2011-11-06

    Thanks Mike - that clears that up.

     
  • Mike
    Mike
    2011-12-13

    Please try v0.9.6, it should support icon uploading

     
  • laurentppol
    laurentppol
    2012-08-12

    I have same problem. Android client shows (in "Manage Apps") "version 0", BUT I get errors server-side:

    [16:31:17] - DBG - getCommand for >(Connect)<
    [16:31:17] - INF - processOneCommand >image,icon,button_bulb_off1,button_bulb_off1.
    png< >no exec params< >1<
    [16:31:17] - DBG - substParams >image,icon,button_bulb_off1,button_bulb_off1.png<
    [16:31:17] - INF - Command: Set
    [16:31:17] - DBG - uploadPix >image,icon,button_bulb_off1,button_bulb_off1.png<
    [16:31:17] - ERR - can't get file size!
    

    I have made 1 icon, with all resolutions found in cfg/Icons directories, files are world-readable:

    [root@laurent-home Icons]# ls -l */butto*
    -rw-r--r-- 1 laurent laurent 5161 sie 12 16:08 128/button_bulb_off1.png
    -rw-r--r-- 1 laurent laurent  543 sie 12 16:28 16/button_bulb_off1.png
    -rw-r--r-- 1 laurent laurent 1018 sie 12 16:10 32/button_bulb_off1.png
    -rw-r--r-- 1 laurent laurent 1818 sie 12 16:28 48/button_bulb_off1.png
    -rw-r--r-- 1 laurent laurent 2299 sie 12 16:09 64/button_bulb_off1.png
    

    Made with GIMP 2.6.

    And my command-line:

    anyremote -s socket:5000 -f /usr/share/anyremote/cfg-data/Server-mode/edimax-usb.cfg -log -a
    

    It works, but with empty space instead of my icon.

    Config file:

    [Protocol]=Server
    (Init)=\
            Include($(CfgDir)/Utils/aliases-server.cfg);\
            Include($(CfgDir)/Utils/aliases-server-player.cfg);\
            Set(image,icon,button_bulb_off1,button_bulb_off1.png)
    %
    (Connect)=Set(image,icon,button_bulb_off1,button_bulb_off1.png);\
        Set(icons,TheTitle,\
        1,vol_down,2,button_bulb_off1,3,vol_up,4,rewind,9,next,\
        *,question,#,pause);\
        Set(status,Połączony);\
        Set(title,Edimax->USB->Relay);
    %
    1=Exec(ssh root@192.168.2.20 'echo "a" > /dev/ttyUSB0');
    2=Exec(ssh root@192.168.2.20 'echo "A" > /dev/ttyUSB0');
    %
    [End]
    

    Where is the problem, and how to trace/solve it?

     
  • laurentppol
    laurentppol
    2012-08-12

    This seems NOT related to Android client: I had 0.9.8, now downloaded 1.0.
    Problem with icons is the same. I can't even use icons from "additional icons set".

    BTW 1.0 client seems to work less reliably than 0.9.8, and with greater delays (even 5secs from keypress to device on USB reaction…)

     
  • laurentppol
    laurentppol
    2012-08-13

    Correction: delay (measured is secs) looks caused by ssh command,
    as replacing ssh … by echo "a" > /dev/remserialxx gives almost instant response.
    [so maybe I need to activate set2net on "target" router (with USB devices) and remserial on "controller" node.
    But (as of my knowledge) disadvantage is, that programs accessing remserial* must be run as ROOT :(…

     
  • Mike
    Mike
    2012-08-14

    It seems You use not the latest v6.0, right ? Are there any chance to upgrade ?