Ankündigung

Einklappen

Serverwartung 21.2.



Am 21.2. im Laufe des späten Abends wird eine Serverwartung durchgeführt. Das Forum ist dadurch für gut zwei Stunden nicht erreichbar.
Es wird eine Wartungsseite geschaltet.

Mehr anzeigen
Weniger anzeigen

item auf entfertem smarthome.py über UDP setzen

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    item auf entfertem smarthome.py über UDP setzen

    Ich bekomme es nicht hin, ein item auf einem entferten Smarthome.py über nw_udp_send zu setzen. Es geht im interaktiven Modus mit:
    PHP-Code:
    sh.nw.udp('192.168.XXXX',2727,'item|WMZ0.Energie|1234'
    wenn ich das nun in das Item einbauen will mit:
    PHP-Code:
    nw_udp_send 192.168.XXXX:2727=item|WMZ0.Energie|itemvalue  # sends an UDP packet with 'command: ' and the current item value as payload
    nw yes 
    erscheint im Log:

    PHP-Code:
    2015-05-02 19:06:53,607 ERROR    Update_WMZ   Item WMZ0.Energieproblem running <bound method Network.update_item of <plugins.network.Network object at 0x1cc4050>>: 'list' object has no attribute 'partition' -- item.py:__update:377
    Traceback 
    (most recent call last):
      
    File "/usr/smarthome/lib/item.py"line 375in __update
        method
    (selfcallersourcedest)
      
    File "/usr/smarthome/plugins/network/__init__.py"line 287in update_item
        addr
    __message item.conf['nw_udp_send'].partition('=')
    AttributeError'list' object has no attribute 'partition' 
    mein Item auf dem sendenen:

    PHP-Code:
    [WMZ0]
    [[
    Energie]]
    type num
    visu_acl 
    rw
    knx_dpt 
    9
    sqlite 
    yes
    enforce_updates 
    true
    nw_udp_send 
    192.168.XXXXX:2727=item|WMZ0.Energie|itemvalue  # sends an UDP packet with 'command: ' and the current item value as payload
    nw yes 
    config:
    PHP-Code:
    [nw]
        
    class_name Network
        class_path 
    plugins.network
        port 
    2727
        tcp 
    yes
        udp 
    yes 

    #2
    Hallo Marco,

    das geht momentan leider nicht. Der Configparse stolpert an dieser Stelle über das nw_udp_send.

    Vllt. finde ich demnächst mal Zeit das zu fixen.

    Bis bald

    Marcus

    Kommentar


      #3
      Hallo Marcus,

      danke für Deine Rückmeldung, dann mache ich es einfach über eine Logik.

      Kommentar

      Lädt...
      X