NEW_LOOP_PACKET is the data from the hardware - and depending on the hardware may be either for all the sensors or just some - different hardware works in different ways. NEW_ARCHIVE_RECORD will be the average data values for all sensors received during the archive period (often 5 minutes). The archive records will then be stored into he database (SQLite or MySQL) for use by the reporting engine.
What do you mean by 'spare data'? perhaps NEW_ARCHIVE_RECORD contains the data you are looking for rather than NEW_LOOP_RECORD. On Thursday, 28 July 2016 13:32:43 UTC+3, DCS wrote: > 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] > <javascript:>>: > >> 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] <javascript:>. >> 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.
