I'm not very into python programming.... I found NEW_LOOP_PACKET but seems working with all data within an array 'packet'. What I need is to get spare data (temp, wind, etc) before composing the packet...where file I have to look at? Then I will use other python library to send the data via modbus tcp (pymodbus)... Thank you. David.
2016-06-30 14:29 GMT+02:00 mwall <[email protected]>: > On Thursday, June 30, 2016 at 7:55:30 AM UTC-4, DCS wrote: >> >> Anyone tried to send recevied data from driver to other IP device via TCP >> or UDP commands or MODBUS? >> Which core component has to be modified to do this? >> Greetings. >> > > you probably want a service, bound to either NEW_LOOP_PACKET (if you want > the observations as soon as they come off the hardware) or > NEW_ARCHIVE_RECORD (if you want the observations every archive interval). > > for tcp/udp simply derive from the restful service base class. implement > one or two methods and you're done. see any one of the uploaders on the > weewx wiki for working examples. > > for modbus, you could derive from restful then override all the > tcp/ip-specific stuff. that gets you the threading for free. or just > write your own equivalent of what the restful base class and associated > thread do. > > m > > -- > You received this message because you are subscribed to a topic in the > Google Groups "weewx-user" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/weewx-user/tNes7-H_xOE/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
