How can I send webif message over telnet?

  • Anyone can help?
    I try in telnet with command:

    Code
    wget -O /dev/null -q http://localhost/web/message?text=My_Message&type=2&timeout=30


    but it won't display it on screen!
    When I type for example:

    Code
    wget -O /dev/null -q http://localhost:82/web/remotecontrol?command=108


    it work!
    What is the difference and why I cannot send webif message through telnet?



    </big></big>

  • you have to place the url between quotation marks, if you want to send a message


    Code
    wget -O /dev/null -q "http://localhost/web/message?text=My_Message&type=2&timeout=30"

    Gruß Fred

    Die Dreambox ist tot, es lebe die Dreambox

  • Is it imposible to send text with space?

    Code
    wget -O /dev/null -q "http://localhost/web/message?text=This is my message&type=2&timeout=30"

    Einmal editiert, zuletzt von easyyu ()

  • short:
    python /some/path/python.py (or *.pyo)


    extended example:

  • Thx for helping me..
    I try somthing like you suggest this before in simplest way as:
    Navigate to plugin directory.. then call python and insade pyton prompt type name of the plugin.
    But result is same as your script, it complain about modules that can not import.
    I mentioning that plugin is OK if I start it with remote control.
    What I want, is to simulate with some command same as I start it with remote control, but from telnet window.
    Here is the error from your script:

    Python
    root@dm800se:/# pyFile=/usr/lib/enigma2/python/Plugins/Extensions/EasyBouquetDownloader/plugin.pyo
    root@dm800se:/# [ -e "$pyFile" ] && [ `ps aux| grep -v grep| grep -c "/hostapd "` = 0 ] && python "$pyFile"
    Traceback (most recent call last):
      File "/usr/lib/enigma2/python/Plugins/Extensions/EasyBouquetDownloader/plugin.py", line 1, in <module>
        from Screens.Screen import Screen
    ImportError: No module named Screens.Screen
    root@dm800se:/#


    Plugin is very simple.
    It contain 4 row and every row execute some script.

    Einmal editiert, zuletzt von easyyu ()

  • haven't that opinion how to display something in GUI from self made *.py,
    *.sh scripts i start from Menu->Plugins->ScriptExecuter, there output will be same as in console



    by **/EasyBouquetDownloader/** i can guess you are searching solution how to update bouquet files,
    i will show my way:
    on my master box(dm8000) time at time i run manually
    /usr/script/ServicesE2_backup_userscript.sh
    it creates servicesE2_bc.tar.gz(services+bouquets) and servicesE2_bc.tar.gz_md5.txt(archive's md5)
    that files i place under some www


    and all slave boxes have
    /usr/script/MartiniChannelsListE2_download_userscript.sh
    it download&replace services&bouquets only if md5 control sum has been changed since last execute time


    content of sh files(second without www path)
    /usr/script/ServicesE2_backup_userscript.sh

    /usr/script/MartiniChannelsListE2_download_userscript.sh

  • Thx mate for scripts, but I made my own as E2 plugin and it work nice..
    I was just interested how to use telnet not just exacly for this one plugin, but some other command.
    The idea was to use telnet as remote control, and start manualy plugin as some script, but execute on dreambox with GUI.
    Anyone else with some idea?