[weewx-user] Accessing Database From Service Extension

2024-04-21 Thread carter.hu...@gmail.com
I have PM 2.5 data being feed into WeeWx via a custom service extension. 
What I want to do is calculate the air quality index (AQI) based on the 
PM2.5 data. The EPA references the correct way of doing this as using the 
24-hour average PM2.5.

So my question is, is there a way for an extension to access the weewx 
database a pull the average value of a variable over the last 24 hours?

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/03f80a01-a1ab-4ee7-9ae1-244312a74115n%40googlegroups.com.


Re: [weewx-user] Specific Report Generation Periods

2023-08-28 Thread carter.hu...@gmail.com
Never mind I figured it out. Thanks for the help!

[CheetahGenerator]

# Add since.py module
search_list_extensions = user.since.Since 

On Monday, August 28, 2023 at 12:15:52 PM UTC-7 carter.hu...@gmail.com 
wrote:

> Thanks. How do I install the since.py module into weewx?
>
> On Sunday, August 27, 2023 at 3:25:20 AM UTC-7 John Smith wrote:
>
>> $since($hour=9,$today=False).rain.sum.formatted
>>
>> On Sun, 27 Aug 2023 at 03:45, carter.hu...@gmail.com <
>> carter.hu...@gmail.com> wrote:
>>
>>> Yup, that is what I'm looking for. Can $since($hour=7) be used since the 
>>> previous day though?
>>>
>>> On Friday, August 25, 2023 at 4:31:41 PM UTC-7 Tom Keffer wrote:
>>>
>>>> Is this what you're thinking? https://github.com/weewx/weewx/issues/91
>>>>
>>>> On Fri, Aug 25, 2023 at 9:58 AM carter.hu...@gmail.com <
>>>> carter.hu...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I'm wondering if there is a way to have a report have a specific end 
>>>>> time. For example, I'd like to create a 24 hour data summary ending at 7 
>>>>> am 
>>>>> LT each day, rather than each day from midnight to midnight.
>>>>>
>>>>> I figured using a span and setting a specific report generation time 
>>>>> would work, but that wouldn't back-fill any missing reports.
>>>>>
>>>>> Any ideas?
>>>>>
>>>>> -- 
>>>>> 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 weewx-user+...@googlegroups.com.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/weewx-user/a5be1096-8846-46d5-8694-378c3f2dbd79n%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/weewx-user/a5be1096-8846-46d5-8694-378c3f2dbd79n%40googlegroups.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> -- 
>>> 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 weewx-user+...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/bd0d1761-8c7a-433d-b4cb-ab6f9a97bdb4n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/weewx-user/bd0d1761-8c7a-433d-b4cb-ab6f9a97bdb4n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b677691d-7d8b-416e-a97f-4a7b3189e0b6n%40googlegroups.com.


Re: [weewx-user] Specific Report Generation Periods

2023-08-28 Thread carter.hu...@gmail.com
Thanks. How do I install the since.py module into weewx?

On Sunday, August 27, 2023 at 3:25:20 AM UTC-7 John Smith wrote:

> $since($hour=9,$today=False).rain.sum.formatted
>
> On Sun, 27 Aug 2023 at 03:45, carter.hu...@gmail.com <
> carter.hu...@gmail.com> wrote:
>
>> Yup, that is what I'm looking for. Can $since($hour=7) be used since the 
>> previous day though?
>>
>> On Friday, August 25, 2023 at 4:31:41 PM UTC-7 Tom Keffer wrote:
>>
>>> Is this what you're thinking? https://github.com/weewx/weewx/issues/91
>>>
>>> On Fri, Aug 25, 2023 at 9:58 AM carter.hu...@gmail.com <
>>> carter.hu...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm wondering if there is a way to have a report have a specific end 
>>>> time. For example, I'd like to create a 24 hour data summary ending at 7 
>>>> am 
>>>> LT each day, rather than each day from midnight to midnight.
>>>>
>>>> I figured using a span and setting a specific report generation time 
>>>> would work, but that wouldn't back-fill any missing reports.
>>>>
>>>> Any ideas?
>>>>
>>>> -- 
>>>> 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 weewx-user+...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/weewx-user/a5be1096-8846-46d5-8694-378c3f2dbd79n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/weewx-user/a5be1096-8846-46d5-8694-378c3f2dbd79n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> -- 
>> 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 weewx-user+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/bd0d1761-8c7a-433d-b4cb-ab6f9a97bdb4n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/bd0d1761-8c7a-433d-b4cb-ab6f9a97bdb4n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/22fbcfc8-fbd4-46c4-b880-afe0c72e3819n%40googlegroups.com.


Re: [weewx-user] Specific Report Generation Periods

2023-08-26 Thread carter.hu...@gmail.com
Yup, that is what I'm looking for. Can $since($hour=7) be used since the 
previous day though?

On Friday, August 25, 2023 at 4:31:41 PM UTC-7 Tom Keffer wrote:

> Is this what you're thinking? https://github.com/weewx/weewx/issues/91
>
> On Fri, Aug 25, 2023 at 9:58 AM carter.hu...@gmail.com <
> carter.hu...@gmail.com> wrote:
>
>> Hi,
>>
>> I'm wondering if there is a way to have a report have a specific end 
>> time. For example, I'd like to create a 24 hour data summary ending at 7 am 
>> LT each day, rather than each day from midnight to midnight.
>>
>> I figured using a span and setting a specific report generation time 
>> would work, but that wouldn't back-fill any missing reports.
>>
>> Any ideas?
>>
>> -- 
>> 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 weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/a5be1096-8846-46d5-8694-378c3f2dbd79n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/a5be1096-8846-46d5-8694-378c3f2dbd79n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/bd0d1761-8c7a-433d-b4cb-ab6f9a97bdb4n%40googlegroups.com.


[weewx-user] Specific Report Generation Periods

2023-08-25 Thread carter.hu...@gmail.com
Hi,

I'm wondering if there is a way to have a report have a specific end time. 
For example, I'd like to create a 24 hour data summary ending at 7 am LT 
each day, rather than each day from midnight to midnight.

I figured using a span and setting a specific report generation time would 
work, but that wouldn't back-fill any missing reports.

Any ideas?

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a5be1096-8846-46d5-8694-378c3f2dbd79n%40googlegroups.com.


[weewx-user] Re: weewx.WeeWxIOError: Unable to read hardware type

2021-07-14 Thread carter.hu...@gmail.com

Yeah no issues with it picking up data from the sensors

On Wednesday, July 14, 2021 at 3:21:10 PM UTC-7 vince wrote:

> Does the console recognize your Vue sensors ok ?
>
> On Wednesday, July 14, 2021 at 11:38:48 AM UTC-7 carter.hu...@gmail.com 
> wrote:
>
>> So I switched out my console for my Davis Vantage Vue because the old one 
>> had the signal fail. Now with the new one WeeWx doesn’t seem to recognize 
>> the hardware.
>>
>> ./EW5321/bin/wee_device --info
>> Using configuration file /home/pi/EW5321/weewx.conf
>> Using Vantage driver version 3.2.1 (weewx.drivers.vantage)Traceback (most 
>> recent call last):
>>   File "./EW5321/bin/wee_device", line 78, in 
>> main()
>>   File "./EW5321/bin/wee_device", line 74, in main
>> device.configure(config_dict)
>>   File "/home/pi/EW5321/bin/weewx/drivers/__init__.py", line 67, in 
>> configure
>> self.do_options(options, parser, config_dict, not options.noprompt)
>>   File "/home/pi/EW5321/bin/weewx/drivers/vantage.py", line 2056, in 
>> do_options
>> station = Vantage(**config_dict[DRIVER_NAME])
>>   File "/home/pi/EW5321/bin/weewx/drivers/vantage.py", line 515, in 
>> __init__
>> self._setup()
>>   File "/home/pi/EW5321/bin/weewx/drivers/vantage.py", line 1321, in 
>> _setup
>> self.hardware_type = self._determine_hardware()
>>   File "/home/pi/EW5321/bin/weewx/drivers/vantage.py", line 1312, in 
>> _determine_hardware
>> raise weewx.WeeWxIOError("Unable to read hardware type")
>> weewx.WeeWxIOError: Unable to read hardware type
>>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/7d4e9fd4-c365-4583-9f3c-863e57be67c4n%40googlegroups.com.


[weewx-user] weewx.WeeWxIOError: Unable to read hardware type

2021-07-14 Thread carter.hu...@gmail.com
So I switched out my console for my Davis Vantage Vue because the old one 
had the signal fail. Now with the new one WeeWx doesn’t seem to recognize 
the hardware.

./EW5321/bin/wee_device --info
Using configuration file /home/pi/EW5321/weewx.conf
Using Vantage driver version 3.2.1 (weewx.drivers.vantage)Traceback (most 
recent call last):
  File "./EW5321/bin/wee_device", line 78, in 
main()
  File "./EW5321/bin/wee_device", line 74, in main
device.configure(config_dict)
  File "/home/pi/EW5321/bin/weewx/drivers/__init__.py", line 67, in 
configure
self.do_options(options, parser, config_dict, not options.noprompt)
  File "/home/pi/EW5321/bin/weewx/drivers/vantage.py", line 2056, in 
do_options
station = Vantage(**config_dict[DRIVER_NAME])
  File "/home/pi/EW5321/bin/weewx/drivers/vantage.py", line 515, in __init__
self._setup()
  File "/home/pi/EW5321/bin/weewx/drivers/vantage.py", line 1321, in _setup
self.hardware_type = self._determine_hardware()
  File "/home/pi/EW5321/bin/weewx/drivers/vantage.py", line 1312, in 
_determine_hardware
raise weewx.WeeWxIOError("Unable to read hardware type")
weewx.WeeWxIOError: Unable to read hardware type

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/32497340-5ae6-477b-8645-4403b54afab5n%40googlegroups.com.


[weewx-user] Daemon Not Starting

2020-12-17 Thread carter.hu...@gmail.com
Hi,

So I recently had to re-install WeeWx on my Raspberry Pi and setting it up 
using the setup.py, I’m able to run it via sudo ./bin/weewxd but when I 
setup the daemon nothing seems to happen. I’m used to get console output 
saying it started and seeing it in the log but there’s absolutely nothing.

Any ideas?

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/908e2301-76f9-4e51-a15f-5e340d9ab69cn%40googlegroups.com.