[weewx-user] vantage driver cannot import "weeutil" in version 4.8.0

2022-04-28 Thread Saverio Guzzo
Hey community, I have tried updating weewx to version 4.8.0 and the vantage driver is not able to import weeutil. I am getting the error: "ModuleNotFoundError: No module named 'weeutil' ". I haven't changed the way I run the program: I still use the command ["python3", "-m", "weewx.drivers.van

Re: [weewx-user] How can I use the VantageConfigurator class?

2022-03-31 Thread Saverio Guzzo
BucketType(). > > But, changing the configuration for the bucket size is very rare. If you > don't want to use wee_device to do it, then you can do it through your > console. > > On Wed, Mar 30, 2022 at 8:10 AM Saverio Guzzo wrote: > >> Hi community, >

[weewx-user] How can I use the VantageConfigurator class?

2022-03-30 Thread Saverio Guzzo
Hi community, I'm wondering what is the best way to use the class "VantageConfigurator", defined in the driver/vantage.py. In particular, I'm interested in knowing what I should do in case I'd like to run the method "VantageConfigurator.setBucketType()". In my code, I have defined an object "va

Re: [weewx-user] changing to metric system when using driver as a standalone program

2022-03-24 Thread Saverio Guzzo
wx/weewx/commit/a55892e1d5cd41167d7eff9635f5a1750ad2a850> > . > > You can either patch your copy of weewx/units.py, or download a fresh one > <https://raw.githubusercontent.com/weewx/weewx/a55892e1d5cd41167d7eff9635f5a1750ad2a850/bin/weewx/units.py> > . > > On Wed, Mar 23, 2022 at 1:04 AM Saverio Guzzo

Re: [weewx-user] changing to metric system when using driver as a standalone program

2022-03-23 Thread Saverio Guzzo
Hi Tom, Using the function *weewx.units.to_METRICWX *is working well for all the fields but *highOutTemp*, which keeps still being reported in Fahrenheit. Would you have any ideas on the reason for this? Thanks again! Saverio On Wednesday, 23 February 2022 at 13:23:00 UTC+1 Saverio Guzzo wrote

Re: [weewx-user] Re: VatnagePro driver: what is the best way to get archiveRecords every minute?

2022-03-12 Thread Saverio Guzzo
Regardless of the errors. Do you think that my code is acceptable to get archive data every minute? Thanks, Saverio On Saturday, 12 March 2022 at 19:30:55 UTC+1 Saverio Guzzo wrote: > Thanks for you answer Vince. > True, the message is clear! However, the file > "/usr/local

Re: [weewx-user] Re: VatnagePro driver: what is the best way to get archiveRecords every minute?

2022-03-12 Thread Saverio Guzzo
oesn't appear to have the > logging stuff built into it at the location python expects. > > Poke around in a shell to see what's in there with something like "docker > run --rm -it yourimagename bash" > > > On Saturday, March 12, 2022 at 9:41:38 AM UTC-8 Sa

Re: [weewx-user] Re: VatnagePro driver: what is the best way to get archiveRecords every minute?

2022-03-12 Thread Saverio Guzzo
ker in a cloud instance if the nodes are not on the same > network. > > That way you will get the full archive record published from each station. > You would just need to focus on consuming the published data from the > broker. At least all the data will be in a single place. > > Ju

[weewx-user] Re: VatnagePro driver: what is the best way to get archiveRecords every minute?

2022-03-12 Thread Saverio Guzzo
s/sha256-30dc1cfee0d09004a70c3663aaae763df6ac6c2167d2e8cd9cbb929312ebe960?context=explore> On Saturday, 12 March 2022 at 11:17:13 UTC+1 Saverio Guzzo wrote: > Hey community, > > I have a fleet of Davis weather stations connected to as many > RaspberryPis, on which I am running the vantage drivers as a standalone > program on

[weewx-user] Re: VatnagePro driver: what is the best way to get archiveRecords every minute?

2022-03-12 Thread Saverio Guzzo
ertools/more.py", line 5, in from concurrent.futures import ThreadPoolExecutor File "/usr/local/lib/python3.8/concurrent/futures/__init__.py", line 8, in from concurrent.futures._base import (FIRST_COMPLETED, File "/usr/local/lib/python3.8/concurrent/fut

[weewx-user] VatnagePro driver: what is the best way to get archiveRecords every minute?

2022-03-12 Thread Saverio Guzzo
Hey community, I have a fleet of Davis weather stations connected to as many RaspberryPis, on which I am running the vantage drivers as a standalone program on docker container, deployed using Balena . I'd like my program to send data every minute to a REST API and I

Re: [weewx-user] changing to metric system when using driver as a standalone program

2022-02-23 Thread Saverio Guzzo
ing to get. > > One thing you can do is take advantage of one of the functions in > units.py. Try this: > > import weewx.units > for packet in vantage.genDavisArchiveRecords(since_ts): > new_packet = weewx.units.to_METRICWX(packet) > print(new_packet) > >

[weewx-user] changing to metric system when using driver as a standalone program

2022-02-21 Thread Saverio Guzzo
Hello community! I'm using the vantage's driver as a standalone program and I'm wondering if there is an way to convert the measurements to the metric system. I tried to edit the entry "*unit_system*" of the file " *weewx-x.y.z/weewx.conf*" to 'metric', but when running the following piece of c

Re: [weewx-user] best way for running a driver program as standalone

2022-02-21 Thread Saverio Guzzo
P.S. I was trying with "python3 setup.py install" and pip but it was not a success in both cases. On Monday, 21 February 2022 at 14:21:35 UTC Saverio Guzzo wrote: > Brilliant! This works :) thank you so much Tom > > On Saturday, 19 February 2022 at 12:51:16 UTC tke...@gmail

Re: [weewx-user] best way for running a driver program as standalone

2022-02-21 Thread Saverio Guzzo
ndSpeed': 1.0, 'windSpeed10': > 3.0, 'windDir': 202.0, 'outHumidity': 80.0, 'rainRate': 0.0, 'UV': 0.0, > 'radiation': 0.0, 'stormRain': 0.0, 'dayRain': 0.0, 'monthRain': 0.2, > 'yearR

[weewx-user] best way for running a driver program as standalone

2022-02-17 Thread Saverio Guzzo
Hello community, this is my first post here! :) I am interested in running the vantage's driver program as standalone, in order to integrate it in my application. Could you please give me some suggestions on how to achieve that? I am struggling already at installing the requirements I tried