mwall, thanks for the scenario draft. The only question remains, if the Asus WL500GP V2 with OpenWRT will work with TFA USB receiver. Hopely yes. :) Will try it hopely soon.
2018-01-11 14:18 GMT+01:00 mwall <[email protected]>: > > > On Thursday, January 11, 2018 at 8:03:32 AM UTC-5, Jindřich Štěpán wrote: >> >> Thank you guys for the answers. From PLC perspective, I can read data in >> several ways. Considering use of openwrt with USB, the simplest for me >> would be to use only minimal part of weewx as I understand it is whole >> system. Would it be possible somehow to use only driver for TFA USB >> receiver and build around some code to store data on router, or maybe send >> over TCP/IP? Looking for minimum configuration. :) But maybe just >> installing the whole weewx would be easier.... ? :) Is weewx capable to >> send data over TCP/IP or better serve as TCP/IP server I can query this way >> for data? Thank you. >> > > you must also consider how the hardware behaves. although it is possible > to start weewx, read some data, stop weewx, then repeat, this is not an > efficient or reliable way to use weewx with the klimalogg hardware. it is > better to keep weewx running continuously, communicating with the > klimalogg. then periodically have weewx either emit one or more files with > the data or upload directly using MQTT or HTTP(S). > > regarding the last part of your question, you can use either a push or > pull configuration. imho, having weewx push will be the easier and more > reliable approach. > > push: weewx is http client and does a PUT/POST/GET to push data to a server > > pull: weewx runs a web server and responds with data to GET requests > > push implementation is easy: > 1) install weewx on the openwrt system > 2) install the klimalogg extension > 3) disable all of the weewx reports > 4) disable local data retention if you do not have space on the openwrt > 5) install an http uploader > job done! > > for (4), it is best if you let weewx keep a local database (especially > given how it interacts with the klimalogg logger). so put a usb stick in > the openwrt system to keep the local database. its not that big. and it > sounds like you want that anyway. > > for (5), use an existing extension if the protocol you need has already > been implemented. > > if no one has written a weewx extension with the protocol for your system, > then write one! it will be about 50-100 lines of python, there are plenty > of examples, you can derive from an existing class so you don't have to > write a bunch of new code, and if you post in the weewx-developer list > you'll get plenty of help! > > 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/O1ogABfGETA/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.
