[weewx-user] Re: Problem with units

2022-02-15 Thread kludo
Hi Gary,

this was the solution for my unit problem. Thanks for your help, also for 
the hint about using the extensions.py

Many greetings
Udo

gjr80 schrieb am Montag, 14. Februar 2022 um 21:48:48 UTC+1:

> I see now there have been some changes have been introduced in WeeWX 
> v4.6.x to how default labelling and formatting of observation types is 
> determined and it appears that group_energy/watt_hour may have fallen 
> through the cracks. I think we can work around the issue in your case by 
> adding some additional lines to user/extensions.py:
>
> weewx.units.default_unit_format_dict['watt_hour'] = '%.1f'
> weewx.units.default_unit_label_dict['watt_hour'] = u' Wh' 
>
> Again you will need to restart WeeWX for the changes to take effect and 
> hopefully the first report cycle should add you missing units/formatting.
>
> Gary
>
> On Tuesday, 15 February 2022 at 04:18:53 UTC+10 udo.kl...@gmail.com wrote:
>
>> Hi Gary, unfortunately your tip did not work. "signal1" still has no 
>> unit. Before the update it still did. 
>>
>> gjr80 schrieb am Montag, 14. Februar 2022 um 01:58:29 UTC+1:
>>
>>> Making changes to units.py  is a poor approach to dealing with problems 
>>> and should be avoided, at best your changes will not survive a WeeWX 
>>> upgrade; at worst your changes could unknowingly cause problems elsewhere 
>>> with WeeWX.
>>>
>>> If you wish to assign an observation type to a unit group this is best 
>>> done through the user/extensions.py file. user/extensions.py is 
>>> intended for users to add code that is to be run during the WeeWX startup 
>>> and allows user changes to the WeeWX environment to be made in a safe 
>>> manner. Files in the user directory are protected during a WeeWX upgrade 
>>> and will not be overwritten. I suggest you revert your changes to 
>>> units.py and try adding the following to user/extensions.py (untested):
>>>
>>> import weewx.units
>>> weewx.units.obs_group_dict['signal1'] = 'group_energy'
>>>
>>> Save extensions.py and restart WeeWX. Does that fix your problem?
>>>
>>> Gary
>>> On Monday, 14 February 2022 at 01:14:14 UTC+10 udo.kl...@gmail.com 
>>> wrote:
>>>
 Hello all,

 I have updated this weekend to WeeWX version 4.6.2. Actually everything 
 works as usual, but in my photovoltaic data no units are displayed 
 anymore. 
 I have changed the assignment in the units.py as follows "signal1" : 
 "group_energy", but without success.

 Who knows advice?

>>>

-- 
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/edeb2070-8000-4991-a387-9773a10bad4bn%40googlegroups.com.


[weewx-user] Re: Problem with units

2022-02-14 Thread kludo
Hi Gary, unfortunately your tip did not work. "signal1" still has no unit. 
Before the update it still did. 

gjr80 schrieb am Montag, 14. Februar 2022 um 01:58:29 UTC+1:

> Making changes to units.py  is a poor approach to dealing with problems 
> and should be avoided, at best your changes will not survive a WeeWX 
> upgrade; at worst your changes could unknowingly cause problems elsewhere 
> with WeeWX.
>
> If you wish to assign an observation type to a unit group this is best 
> done through the user/extensions.py file. user/extensions.py is intended 
> for users to add code that is to be run during the WeeWX startup and allows 
> user changes to the WeeWX environment to be made in a safe manner. Files in 
> the user directory are protected during a WeeWX upgrade and will not be 
> overwritten. I suggest you revert your changes to units.py and try adding 
> the following to user/extensions.py (untested):
>
> import weewx.units
> weewx.units.obs_group_dict['signal1'] = 'group_energy'
>
> Save extensions.py and restart WeeWX. Does that fix your problem?
>
> Gary
> On Monday, 14 February 2022 at 01:14:14 UTC+10 udo.kl...@gmail.com wrote:
>
>> Hello all,
>>
>> I have updated this weekend to WeeWX version 4.6.2. Actually everything 
>> works as usual, but in my photovoltaic data no units are displayed anymore. 
>> I have changed the assignment in the units.py as follows "signal1" : 
>> "group_energy", but without success.
>>
>> Who knows advice?
>>
>

-- 
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/124154c5-6111-4f77-b1e5-136f572e1c94n%40googlegroups.com.


[weewx-user] Problem with units

2022-02-13 Thread kludo
Hello all,

I have updated this weekend to WeeWX version 4.6.2. Actually everything 
works as usual, but in my photovoltaic data no units are displayed anymore. 
I have changed the assignment in the units.py as follows "signal1" : 
"group_energy", but without success.

Who knows advice?

-- 
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/ca405826-75ac-43f7-b3a1-8f810e25c065n%40googlegroups.com.


[weewx-user] Re: WeeWX and pv?

2022-01-23 Thread kludo
Thank you very much for your support. I have solved the problem over the 
weekend by writing an according Python program. Now I have the current 
values and also the past values in my database.

Peter Fletcher schrieb am Donnerstag, 20. Januar 2022 um 15:33:19 UTC+1:

> To expand slightly on Tom's response to the second half of your query, 
> wee_import is designed to import *complete archive records* (or, at 
> least, as complete as the source device produces) from an external source 
> into the weewx database. It is not intended to update selected fields *in 
> existing records*, which is what you want to do, nor can it be used to do 
> so. Depending on your comfort with SQL and/or Python programming, you will 
> need either to use the sqlite3 app directly to update the records or follow 
> one of his suggested strategies.
>
> On Thursday, January 20, 2022 at 2:50:07 AM UTC-5 udo.kl...@gmail.com 
> wrote:
>
>> Since I only want to display a few PV data, I decided to use the two 
>> database fields "signal1" and "signal2" as storage location for the output 
>> data of my two inverters.
>> In principle, this also works, but I do not receive totalized yield data. 
>> This means that at the end of the day, I can display the history, but not 
>> the daily output.
>>
>> Another issue is the subsequent import of the stored data into the WeeWX 
>> database. I wanted, to have the year 2022 complete, to transfer the data 
>> saved as csv to the WeeWX database afterwards using wee_import. 
>>
>> I have prepared the csv accordingly and assigned "signal1" and "signal2" 
>> to the group group_energy in the units.py file. If I start the import with 
>> the parameter "--dry-run" everything is fine. Without "--dry-run" the 
>> process also runs without errors, but the data is not included in the 
>> database due to a UNIQUE problem.
>>
>> However, I would like to add the PV values to the respective existing 
>> data record and not create a new data record. Is there no way to keep the 
>> existing record and only save the additional values?
>>
>> I am very thankful for any tip
>> kludo schrieb am Sonntag, 9. Januar 2022 um 16:22:25 UTC+1:
>>
>>> Thank you for the answers, I will have to look into the subject more 
>>> intensively. My PV system is already very old and there is no support from 
>>> the manufacturer, but I can tap the harvest data via serial interface. 
>>> Let's see which solution brings me the faster success.
>>>
>>> kk44...@gmail.com schrieb am Freitag, 7. Januar 2022 um 15:56:14 UTC+1:
>>>
>>>> There is no general solution to include PV values in WeeWX. As far as I 
>>>> know, an extension is available for one single german manufacturer, only.
>>>>
>>>> Peter Fletcher schrieb am Freitag, 7. Januar 2022 um 15:11:26 UTC+1:
>>>>
>>>>> You have at least two options. One is to keep your detailed solar 
>>>>> records separately and pull the data items you want to display into 
>>>>> either 
>>>>> new fields or 'spare' fields in the weewx database. The other, of course, 
>>>>> is to add all the fields you need to the weewx database. AFAIK, there is 
>>>>> no 
>>>>> ready-made 'package' that does this.
>>>>>
>>>>> I don't incorporate my solar data in weewx, because I created a 
>>>>> separate application that records all the data locally before I got into 
>>>>> weather, and my solar provider has an excellent web-based App which 
>>>>> displays the real-time data. I do, however, use the first approach to 
>>>>> combine some of the data from my ecobee thermostat with weewx's weather 
>>>>> data for display. Assuming that you have some degree of comfort with 
>>>>> database design and Python programming, the weewx documentation will help 
>>>>> you greatly with either approach, but you will also be able to get useful 
>>>>> help and advice about implementation details here.
>>>>>
>>>>> On Friday, January 7, 2022 at 5:05:13 AM UTC-5 udo.kl...@gmail.com 
>>>>> wrote:
>>>>>
>>>>>> I have installed WeeWX in the last few weeks and have come to know 
>>>>>> and appreciate the software.
>>>>>>
>>>>>> But now i would like to add the solar yield of my pv system to the 
>>>>>> weewx database as well. Unfortunately, I have not found any suitable 
>>>>>> database fields for this. Do I have to adapt the database schema for 
>>>>>> this? 
>>>>>> Is there possibly already a ready-made solution for this?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>

-- 
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/97d84500-2145-4c8b-9caa-28d6f87a20f2n%40googlegroups.com.


[weewx-user] Re: WeeWX and pv?

2022-01-19 Thread kludo
 

Since I only want to display a few PV data, I decided to use the two 
database fields "signal1" and "signal2" as storage location for the output 
data of my two inverters.
In principle, this also works, but I do not receive totalized yield data. 
This means that at the end of the day, I can display the history, but not 
the daily output.

Another issue is the subsequent import of the stored data into the WeeWX 
database. I wanted, to have the year 2022 complete, to transfer the data 
saved as csv to the WeeWX database afterwards using wee_import. 

I have prepared the csv accordingly and assigned "signal1" and "signal2" to 
the group group_energy in the units.py file. If I start the import with the 
parameter "--dry-run" everything is fine. Without "--dry-run" the process 
also runs without errors, but the data is not included in the database due 
to a UNIQUE problem.

However, I would like to add the PV values to the respective existing data 
record and not create a new data record. Is there no way to keep the 
existing record and only save the additional values?

I am very thankful for any tip
kludo schrieb am Sonntag, 9. Januar 2022 um 16:22:25 UTC+1:

> Thank you for the answers, I will have to look into the subject more 
> intensively. My PV system is already very old and there is no support from 
> the manufacturer, but I can tap the harvest data via serial interface. 
> Let's see which solution brings me the faster success.
>
> kk44...@gmail.com schrieb am Freitag, 7. Januar 2022 um 15:56:14 UTC+1:
>
>> There is no general solution to include PV values in WeeWX. As far as I 
>> know, an extension is available for one single german manufacturer, only.
>>
>> Peter Fletcher schrieb am Freitag, 7. Januar 2022 um 15:11:26 UTC+1:
>>
>>> You have at least two options. One is to keep your detailed solar 
>>> records separately and pull the data items you want to display into either 
>>> new fields or 'spare' fields in the weewx database. The other, of course, 
>>> is to add all the fields you need to the weewx database. AFAIK, there is no 
>>> ready-made 'package' that does this.
>>>
>>> I don't incorporate my solar data in weewx, because I created a separate 
>>> application that records all the data locally before I got into weather, 
>>> and my solar provider has an excellent web-based App which displays the 
>>> real-time data. I do, however, use the first approach to combine some of 
>>> the data from my ecobee thermostat with weewx's weather data for display. 
>>> Assuming that you have some degree of comfort with database design and 
>>> Python programming, the weewx documentation will help you greatly with 
>>> either approach, but you will also be able to get useful help and advice 
>>> about implementation details here.
>>>
>>> On Friday, January 7, 2022 at 5:05:13 AM UTC-5 udo.kl...@gmail.com 
>>> wrote:
>>>
>>>> I have installed WeeWX in the last few weeks and have come to know and 
>>>> appreciate the software.
>>>>
>>>> But now i would like to add the solar yield of my pv system to the 
>>>> weewx database as well. Unfortunately, I have not found any suitable 
>>>> database fields for this. Do I have to adapt the database schema for this? 
>>>> Is there possibly already a ready-made solution for this?
>>>>
>>>> Thanks
>>>>
>>>

-- 
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/53dfb00a-a463-48cc-9918-bdbad226fc48n%40googlegroups.com.


[weewx-user] Re: Problem with additional sensor [SDR]

2022-01-11 Thread kludo
Hi Gary, thank you very much for your support. With the new version 
everything works as desired.

Greetings Udo

gjr80 schrieb am Dienstag, 11. Januar 2022 um 03:22:15 UTC+1:

> It seems there could be a typo in the SDR driver file for the 
> InFactoryTHPacket parser. Could you rename your existing SDR driver file 
> (/usr/share/weewx/user/sdr.py) 
> to say sdr_orig.py. Then download and save the attached sdr.py to the 
> /usr/share/weewx/user 
> directory.  Restart WeeWX and see how that goes, if it works let us know, 
> if you still have issues can you provide another log extract.
>
> Gary
>
> On Tuesday, 11 January 2022 at 02:45:48 UTC+10 udo.kl...@gmail.com wrote:
>
>> Sorry, was my mistake, here the logfile.
>>
>> Udo
>>
>> gjr80 schrieb am Sonntag, 9. Januar 2022 um 20:59:25 UTC+1:
>>
>>> Impossible to provide any meaningful help without seeing the log: 
>>> https://github.com/weewx/weewx/wiki/Help!-Posting-to-weewx-user#the-system-log
>>>
>>> Gary
>>>
>>> On Monday, 10 January 2022 at 01:14:25 UTC+10 udo.kl...@gmail.com wrote:
>>>
 I have recently successfully set up my weather station with WeeWX. Now 
 I wanted to add more temperature sensors and thought this would be very 
 easy. However, I seem to have a thinking error or I am doing something 
 wrong.

 From the syslog I can see that the two additional sensors are detected 
 and transmit values. But unfortunately these values are not stored in the 
 WeeWX database! 

 Who can help me with this problem?

>>>

-- 
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/6e0e2f76-4d0d-4ea2-9340-a0da65ea079fn%40googlegroups.com.


[weewx-user] Re: Problem with additional sensor [SDR]

2022-01-10 Thread kludo
Sorry, was my mistake, here the logfile.

Udo

gjr80 schrieb am Sonntag, 9. Januar 2022 um 20:59:25 UTC+1:

> Impossible to provide any meaningful help without seeing the log: 
> https://github.com/weewx/weewx/wiki/Help!-Posting-to-weewx-user#the-system-log
>
> Gary
>
> On Monday, 10 January 2022 at 01:14:25 UTC+10 udo.kl...@gmail.com wrote:
>
>> I have recently successfully set up my weather station with WeeWX. Now I 
>> wanted to add more temperature sensors and thought this would be very easy. 
>> However, I seem to have a thinking error or I am doing something wrong.
>>
>> From the syslog I can see that the two additional sensors are detected 
>> and transmit values. But unfortunately these values are not stored in the 
>> WeeWX database! 
>>
>> Who can help me with this problem?
>>
>

-- 
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/58fea329-a33f-455b-9da9-bdff0db5c777n%40googlegroups.com.


mylog
Description: Binary data


[weewx-user] Re: WeeWX and pv?

2022-01-09 Thread kludo
Thank you for the answers, I will have to look into the subject more 
intensively. My PV system is already very old and there is no support from 
the manufacturer, but I can tap the harvest data via serial interface. 
Let's see which solution brings me the faster success.

kk44...@gmail.com schrieb am Freitag, 7. Januar 2022 um 15:56:14 UTC+1:

> There is no general solution to include PV values in WeeWX. As far as I 
> know, an extension is available for one single german manufacturer, only.
>
> Peter Fletcher schrieb am Freitag, 7. Januar 2022 um 15:11:26 UTC+1:
>
>> You have at least two options. One is to keep your detailed solar records 
>> separately and pull the data items you want to display into either new 
>> fields or 'spare' fields in the weewx database. The other, of course, is to 
>> add all the fields you need to the weewx database. AFAIK, there is no 
>> ready-made 'package' that does this.
>>
>> I don't incorporate my solar data in weewx, because I created a separate 
>> application that records all the data locally before I got into weather, 
>> and my solar provider has an excellent web-based App which displays the 
>> real-time data. I do, however, use the first approach to combine some of 
>> the data from my ecobee thermostat with weewx's weather data for display. 
>> Assuming that you have some degree of comfort with database design and 
>> Python programming, the weewx documentation will help you greatly with 
>> either approach, but you will also be able to get useful help and advice 
>> about implementation details here.
>>
>> On Friday, January 7, 2022 at 5:05:13 AM UTC-5 udo.kl...@gmail.com wrote:
>>
>>> I have installed WeeWX in the last few weeks and have come to know and 
>>> appreciate the software.
>>>
>>> But now i would like to add the solar yield of my pv system to the weewx 
>>> database as well. Unfortunately, I have not found any suitable database 
>>> fields for this. Do I have to adapt the database schema for this? Is there 
>>> possibly already a ready-made solution for this?
>>>
>>> Thanks
>>>
>>

-- 
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/01f30d11-db8f-4db8-9d93-32a90aea9f97n%40googlegroups.com.


[weewx-user] Problem with additional sensor [SDR]

2022-01-09 Thread kludo


I have recently successfully set up my weather station with WeeWX. Now I 
wanted to add more temperature sensors and thought this would be very easy. 
However, I seem to have a thinking error or I am doing something wrong.

>From the syslog I can see that the two additional sensors are detected and 
transmit values. But unfortunately these values are not stored in the WeeWX 
database! 

Who can help me with this problem?

-- 
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/9bd527eb-fffa-447d-9f3f-ec4a48e25ef9n%40googlegroups.com.
[SDR]
# This section is for the software-defined radio driver.

# The driver to use
driver = user.sdr

# Filepath for rtl_433
path = /usr/local/bin/

# Parameter for Bresser Weater Center 5in1
cmd = rtl_433 -d0 -f 868.300M -f 433.92M -H 80 -M utc -F json -R 172 -R 91

[[sensor_map]]
outTemp = temperature.337644948.Bresser6in1Packet  
outHumidity = humidity.337644948.Bresser6in1Packet
windDir = wind_dir.337644948.Bresser6in1Packet
windSpeed = wind_speed.337644948.Bresser6in1Packet
windGust = wind_gust.337644948.Bresser6in1Packet
rain_total = rain_total.337644948.Bresser6in1Packet
pressure = pressure.337644948.Bresser6in1Packet
inTemp = inTemp.337644948.Bresser6in1Packet
pm10_0 = pm10_0.337644948.Bresser6in1Packet
pm2_5 = pm2_5.337644948.Bresser6in1Packet
txBatteryStatus = battery.337644948.Bresser6in1Packet
# Collect data from two different InFactory sensors with channel=2 and 
channel=1
extraTemp1 = temperature.159.InFactoryTHPacket
extraTemp2 = temperature.198.InFactoryTHPacket
[[deltas]]
rain = rain_total


[weewx-user] WeeWX and pv?

2022-01-07 Thread kludo
 

I have installed WeeWX in the last few weeks and have come to know and 
appreciate the software.

But now i would like to add the solar yield of my pv system to the weewx 
database as well. Unfortunately, I have not found any suitable database 
fields for this. Do I have to adapt the database schema for this? Is there 
possibly already a ready-made solution for this?

Thanks

-- 
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/e2a5ba0d-2ef6-4c70-a5ff-0d4f200a8e4bn%40googlegroups.com.


[weewx-user] Re: Poll rtl-sdr and I2C together

2021-12-08 Thread kludo
Thanks for the support, I think I have understood the problem and found a 
solution. Of course the answers and the article "Davis VP2, SDR, BMP280" in 
this forum helped me.

tarob...@gmail.com schrieb am Dienstag, 7. Dezember 2021 um 18:21:42 UTC+1:

> Here's the guide I followed when adding the pressure/temp sensor to my 
> Raspberry Pi: https://github.com/bdwilson/acurite/blob/master/Pressure.md
>
>
> On Tuesday, December 7, 2021 at 3:17:49 AM UTC-5 udo.kl...@gmail.com 
> wrote:
>
>> Hello everyone, I have successfully set up my Bresser weather station 
>> using rtl_433 and rtl-sdr on a Raspberry Pi with WeeWX. So far everything 
>> works as desired. However, my weather station does not provide air 
>> pressure. 
>>
>> To collect this value and other data I bought a BMP280 sensor, which I 
>> want to query via I2C bus and WeeWX. Unfortunately, I lack the 
>> understanding of how I can integrate additional sensors in addition to my 
>> weather station, e.g. via I2C.
>>
>> It would be nice if someone could give me a hint. Thanks a lot
>>
>

-- 
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/593d55b2-8eba-4892-8520-782eb078c470n%40googlegroups.com.


[weewx-user] Poll rtl-sdr and I2C together

2021-12-07 Thread kludo
 

Hello everyone, I have successfully set up my Bresser weather station using 
rtl_433 and rtl-sdr on a Raspberry Pi with WeeWX. So far everything works 
as desired. However, my weather station does not provide air pressure. 

To collect this value and other data I bought a BMP280 sensor, which I want 
to query via I2C bus and WeeWX. Unfortunately, I lack the understanding of 
how I can integrate additional sensors in addition to my weather station, 
e.g. via I2C.

It would be nice if someone could give me a hint. Thanks a lot

-- 
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/49a1e93b-d3b1-49d4-8847-26ef14795efan%40googlegroups.com.