Re: [weewx-user] Sunshine Time

2019-07-22 Thread Andrew Milner
what does $day.sunshine_hours.sum give you (without raw, and without trying 
to convert to hours and minutes - if an error then what error??  Is the 
value the approximate minutes of sunlight you would expect for the day??

can you post the template that you are using please.




On Tuesday, 23 July 2019 08:17:24 UTC+3, Stefan wrote:
>
> Here the error message
>
> [image: Unbenannt.JPG]
>
>
> Am Montag, 22. Juli 2019 22:51:21 UTC+2 schrieb gjr80:
>>
>> Just to get the obvious question out of the way first; you did use 
>> $day.sunshine_hours.sum didn’t you (as opposed to day.sunshine_hours.sum), 
>> the ‘$’ matters? Might help to post a copy of the actual template code 
>> used, you would be surprised how often transcription or spelling errors are 
>> made and not noticed. 
>>
>> If you did use the ‘$’, did you follow the instructions you linked 
>> earlier in their entirety; in particular steps 3 and 4 to add 
>> sunshine_hours to your database schema? 
>>
>> Gary 
>>
>>
>>
>> current will give you the amount of sunshine hours in the last archive 
>> period. Based on the code linked it will be either the archive period or 
>> zero, depending on whether the threshold was reached. That’s a bit like 
>> $current.rain, the rainfall in the last archive period, not really what 
>> most folks want. I suspect you really want to use an aggregate in there, if 
>> you have followed the linked instructions then something like 
>> $day.sunshine_hours.sum will give you today’s total sunshine hours. 
>>
>> If you use $day.sunshine_hours.sum.raw you will get the number of 
>> seconds, eg 5 hours would show 18000. Have a read of the Customization 
>> Guide (http://weewx.com/docs/customizing.htm#Tags) and learn about tags, 
>> their formatting and unit conversion and you should be able to do most of 
>> what you want. 
>>
>> Gary
>
>

-- 
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/ef62939c-d87d-4688-82df-87749296b728%40googlegroups.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan
Here the error message

[image: Unbenannt.JPG]


Am Montag, 22. Juli 2019 22:51:21 UTC+2 schrieb gjr80:
>
> Just to get the obvious question out of the way first; you did use 
> $day.sunshine_hours.sum didn’t you (as opposed to day.sunshine_hours.sum), 
> the ‘$’ matters? Might help to post a copy of the actual template code 
> used, you would be surprised how often transcription or spelling errors are 
> made and not noticed. 
>
> If you did use the ‘$’, did you follow the instructions you linked earlier 
> in their entirety; in particular steps 3 and 4 to add sunshine_hours to 
> your database schema? 
>
> Gary 
>
>
>
> current will give you the amount of sunshine hours in the last archive 
> period. Based on the code linked it will be either the archive period or 
> zero, depending on whether the threshold was reached. That’s a bit like 
> $current.rain, the rainfall in the last archive period, not really what 
> most folks want. I suspect you really want to use an aggregate in there, if 
> you have followed the linked instructions then something like 
> $day.sunshine_hours.sum will give you today’s total sunshine hours. 
>
> If you use $day.sunshine_hours.sum.raw you will get the number of seconds, 
> eg 5 hours would show 18000. Have a read of the Customization Guide (
> http://weewx.com/docs/customizing.htm#Tags) and learn about tags, their 
> formatting and unit conversion and you should be able to do most of what 
> you want. 
>
> Gary

-- 
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/d1260f22-97c4-41a7-a3a1-8164045f0308%40googlegroups.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
Good morning Gary.
Thank you for your help. Here is the code:


#set hours = int($current.sunshine_hours.raw)
#set minutes = int(($current.sunshine_hours.raw - $hours)*60 + 0.5)


 

That works with the current. But now I need the daylight sunshine.
If I take day, then I get an error message when processing.

Am Montag, 22. Juli 2019 22:51:21 UTC+2 schrieb gjr80:
>
> Just to get the obvious question out of the way first; you did use 
> $day.sunshine_hours.sum didn’t you (as opposed to day.sunshine_hours.sum), 
> the ‘$’ matters? Might help to post a copy of the actual template code 
> used, you would be surprised how often transcription or spelling errors are 
> made and not noticed. 
>
> If you did use the ‘$’, did you follow the instructions you linked earlier 
> in their entirety; in particular steps 3 and 4 to add sunshine_hours to 
> your database schema? 
>
> Gary 
>
>
>
> current will give you the amount of sunshine hours in the last archive 
> period. Based on the code linked it will be either the archive period or 
> zero, depending on whether the threshold was reached. That’s a bit like 
> $current.rain, the rainfall in the last archive period, not really what 
> most folks want. I suspect you really want to use an aggregate in there, if 
> you have followed the linked instructions then something like 
> $day.sunshine_hours.sum will give you today’s total sunshine hours. 
>
> If you use $day.sunshine_hours.sum.raw you will get the number of seconds, 
> eg 5 hours would show 18000. Have a read of the Customization Guide (
> http://weewx.com/docs/customizing.htm#Tags) and learn about tags, their 
> formatting and unit conversion and you should be able to do most of what 
> you want. 
>
> Gary

-- 
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/f21b507d-0f9c-4e17-86d3-d51872a0c39f%40googlegroups.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread gjr80
Just to get the obvious question out of the way first; you did use 
$day.sunshine_hours.sum didn’t you (as opposed to day.sunshine_hours.sum), the 
‘$’ matters? Might help to post a copy of the actual template code used, you 
would be surprised how often transcription or spelling errors are made and not 
noticed.

If you did use the ‘$’, did you follow the instructions you linked earlier in 
their entirety; in particular steps 3 and 4 to add sunshine_hours to your 
database schema?

Gary



current will give you the amount of sunshine hours in the last archive period. 
Based on the code linked it will be either the archive period or zero, 
depending on whether the threshold was reached. That’s a bit like 
$current.rain, the rainfall in the last archive period, not really what most 
folks want. I suspect you really want to use an aggregate in there, if you have 
followed the linked instructions then something like $day.sunshine_hours.sum 
will give you today’s total sunshine hours.

If you use $day.sunshine_hours.sum.raw you will get the number of seconds, eg 5 
hours would show 18000. Have a read of the Customization Guide 
(http://weewx.com/docs/customizing.htm#Tags) and learn about tags, their 
formatting and unit conversion and you should be able to do most of what you 
want.

Gary

-- 
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/38bdcfd1-2acf-4d73-b3dc-5bef94f4ce26%40googlegroups.com.


[weewx-user] Re: AS3935 database issue

2019-07-22 Thread Mikael Fredriksson


And use it like this for example in a web page:
>
>
Lightning strikes 
today$day.lightning_strikes.sum
Distance (Last 
strike)$year.avg_distance.last$year.avg_distance.lasttime

Will result in:

Lightning strikes (<40km)
Lightning strikes today 0 
Distance (Last strike) 20 km 2019-07-21 19:50:00

-- 
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/35749eed-99b8-4117-ac09-d5890f98251e%40googlegroups.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
"day.sunshine_hours.sum" does not work. An error message appears that the 
day does not exist


Am Montag, 22. Juli 2019 19:43:27 UTC+2 schrieb Andrew Milner:
>
> sorry - it should have been day.sunshine_hours.sum I think
>
>
>
> On Monday, 22 July 2019 20:07:46 UTC+3, Stefan Schnidrig wrote:
>>
>> @Thomas
>>
>> It works
>>
>> 
>> 
>> 
>> 
>> 
>> 
>>
>>
>> Now it would be great if you had the day, not 24 hours. Then you would 
>> always have the daily value.
>>
>> Thanks!
>>
>>
>> Am Montag, 22. Juli 2019 17:39:08 UTC+2 schrieb Thomas Keffer:
>>>
>>> You could do something like this (NOT TESTED):
>>>
>>> #set hours = int($current.sunshine_hours.raw)
>>> #set minutes = int(($current.sunshine_hours.raw - $hours)*60 + 0.5)
>>> 
>>>
>>>
>>> -tk
>>>
>>> On Mon, Jul 22, 2019 at 6:54 AM Stefan Schnidrig  
>>> wrote:
>>>
 Hello.

 I would like to have the sunshine hours for the current day. Format in 
 hours and minutes.

 Thanks

 Am Montag, 22. Juli 2019 15:46:42 UTC+2 schrieb Andrew Milner:
>
> From the output you provided I read that as saying .08 hours of 
> sunshine today - does that correspond with reality??
>
> What output are you wanting??  I read the extension install 
> instructions and what you have posted seems to correspond with what I 
> would 
> expect.  What exactly are you wanting??  Perhaps you should contact the 
> creator of the extension!!
>
>
>
> On Monday, 22 July 2019 16:13:55 UTC+3, Stefan Schnidrig wrote:
>>
>> Now it looks like this. I think that's not true yet?
>> [image: Unbenannt.JPG]
>>
>> Thanks for watching
>>
>> Am Montag, 22. Juli 2019 14:56:03 UTC+2 schrieb Thomas Keffer:
>>>
>>> If you just want the raw number, use the "raw" suffix:
>>>
>>> $current.sunshine_hours.raw
>>>
>>>
>>> -tk
>>>
>>> On Mon, Jul 22, 2019 at 5:48 AM Stefan Schnidrig <
>>> sschn...@bluewin.ch> wrote:
>>>
 Hello Thomas.
 Thanks for your message. No. I would like to use the solar sensor 
 to display the sunshine time. But I want that in numbers, so I can 
 put it in my xml.

 Thank you

 Am Montag, 22. Juli 2019 13:47:39 UTC+2 schrieb Thomas Keffer:
>
> I'm not sure what you mean by "show this value in numbers." Do you 
> mean formatting the value as "4:15 h", versus "4.25"?
>
> -tk
>
> On Mon, Jul 22, 2019 at 2:50 AM Stefan Schnidrig <
> sschn...@bluewin.ch> wrote:
>
>> Hello everybody.
>>
>> I have found this link (
>> https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py)
>>  
>> where is described how to display the sunshine time. Now I would 
>> like to show this value in numbers (eg 4:15 h). Is that possible?
>>
>> Thank you
>>
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/5dfbcab1-9b7a-4b0c-9048-8a9add486ce9%40googlegroups.com
  
 
 .

>>> -- 
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/06eb2e2b-bc53-4bc1-8e67-515a2094cdf6%40googlegroups.com
  
 
 .

>>>

-- 
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 

Re: [weewx-user] Sunshine Time

2019-07-22 Thread Andrew Milner
sorry - it should have been day.sunshine_hours.sum I think



On Monday, 22 July 2019 20:07:46 UTC+3, Stefan Schnidrig wrote:
>
> @Thomas
>
> It works
>
> 
> 
> 
> 
> 
> 
>
>
> Now it would be great if you had the day, not 24 hours. Then you would always 
> have the daily value.
>
> Thanks!
>
>
> Am Montag, 22. Juli 2019 17:39:08 UTC+2 schrieb Thomas Keffer:
>>
>> You could do something like this (NOT TESTED):
>>
>> #set hours = int($current.sunshine_hours.raw)
>> #set minutes = int(($current.sunshine_hours.raw - $hours)*60 + 0.5)
>> 
>>
>>
>> -tk
>>
>> On Mon, Jul 22, 2019 at 6:54 AM Stefan Schnidrig  
>> wrote:
>>
>>> Hello.
>>>
>>> I would like to have the sunshine hours for the current day. Format in 
>>> hours and minutes.
>>>
>>> Thanks
>>>
>>> Am Montag, 22. Juli 2019 15:46:42 UTC+2 schrieb Andrew Milner:

 From the output you provided I read that as saying .08 hours of 
 sunshine today - does that correspond with reality??

 What output are you wanting??  I read the extension install 
 instructions and what you have posted seems to correspond with what I 
 would 
 expect.  What exactly are you wanting??  Perhaps you should contact the 
 creator of the extension!!



 On Monday, 22 July 2019 16:13:55 UTC+3, Stefan Schnidrig wrote:
>
> Now it looks like this. I think that's not true yet?
> [image: Unbenannt.JPG]
>
> Thanks for watching
>
> Am Montag, 22. Juli 2019 14:56:03 UTC+2 schrieb Thomas Keffer:
>>
>> If you just want the raw number, use the "raw" suffix:
>>
>> $current.sunshine_hours.raw
>>
>>
>> -tk
>>
>> On Mon, Jul 22, 2019 at 5:48 AM Stefan Schnidrig  
>> wrote:
>>
>>> Hello Thomas.
>>> Thanks for your message. No. I would like to use the solar sensor 
>>> to display the sunshine time. But I want that in numbers, so I can 
>>> put it in my xml.
>>>
>>> Thank you
>>>
>>> Am Montag, 22. Juli 2019 13:47:39 UTC+2 schrieb Thomas Keffer:

 I'm not sure what you mean by "show this value in numbers." Do you 
 mean formatting the value as "4:15 h", versus "4.25"?

 -tk

 On Mon, Jul 22, 2019 at 2:50 AM Stefan Schnidrig <
 sschn...@bluewin.ch> wrote:

> Hello everybody.
>
> I have found this link (
> https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py)
>  
> where is described how to display the sunshine time. Now I would 
> like to show this value in numbers (eg 4:15 h). Is that possible?
>
> Thank you
>
>
> -- 
> 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...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com
>  
> 
> .
>
 -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/5dfbcab1-9b7a-4b0c-9048-8a9add486ce9%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/06eb2e2b-bc53-4bc1-8e67-515a2094cdf6%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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/d40e3a81-5ae6-4c26-9c39-97dd5ffaf10d%40googlegroups.com.


[weewx-user] Re: AS3935 database issue

2019-07-22 Thread Mikael Fredriksson
Well, as I'm rather new to this I don't feel really confident writing a 
description, but I'll try the best I can!

1. First I got the CJMCU as3935 chip soldered and hooked up to my RPi3B+, 
connections as follows:
VCC -> 3.3V
GND -> GND
SCL -> PIN 5
MOSI -> PIN 3
SI -> 3.3V
A0 -> 3.3V
A1 -> 3.3V
Connected with a breadborad.

2. In terminal, run "sudo i2cdetect -y 1" to see if the chip is connected, it 
should show 0x03.

3.Now install 
http://lancet.mit.edu/mwall/projects/weather/releases/weewx-as3935-0.6.tgz 
following the instructions.
 (I did install another one also but I assume this one is the right one)

4. Open /usr/share/weewx/user/extensions.py in a text editor and add these 
lines at the bottom of the file:
  
  import schemas.wview
  schema_with_lightning_strikes = schemas.wview.schema + [('avg_distance', 
'REAL'), ('lightning_strikes', 'REAL')]
  import weewx.units
  weewx.units.obs_group_dict['avg_distance'] = 'group_distance'
  weewx.units.obs_group_dict['lightning_strikes'] = 'group_count'
  weewx.units.default_unit_format_dict['count'] = '%.0f'
  weewx.units.default_unit_label_dict['count'] = ''


5. My settings in weewx.conf: 

[AS3935]
bus = 1
indoors = false # set to True if indoors
noise_floor = 0
calibration = 6
pin = 17
address = 3
binding = archive

Under [Databindings]
[[wx_binding]]

Add this:   schema = user.extensions.schema_with_lightning_strikes
And put a # in front of schema = schemas.wview.schema (guess this replace the 
schema to use the new one.)

6. Stop WeeWX.
7. Make a backup of the weewx database file. Located under: /var/lib/weewx
8.Run sudo wee_database weewx.conf --reconfigure - You will need to specify the 
full path to weewx.conf (e.g. /home/weewx/weewx.conf or /etc/weewx/weewx.conf)
9. Replace the old database file with the new one.
10. Run sudo wee_database --rebuild-daily
11. Restart WeeWX.

(To add the new observation type I followed: 
https://github.com/poblabs/weewx-belchertown/wiki/Adding-a-new-observation-type-to-the-WeeWX-database)

I think this is how I got running, with alot of help from Gary(gjr80)
And maybe this isn't the correct way to make a description, but now it's done!

Please feel free to make any corrections to my descriptions, I'm might have got 
somethings wrong and maybe forgot some step :)
And remember to backup your database file and maybe your weewx setup before 
doing any changes!

Let me know if there are some questions and I'll see if I remember something 
leftout!

//Mikael

-- 
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/51a2815a-c7c8-41c9-8134-ae8c3c5a6048%40googlegroups.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
@Thomas

It works









Now it would be great if you had the day, not 24 hours. Then you would always 
have the daily value.

Thanks!


Am Montag, 22. Juli 2019 17:39:08 UTC+2 schrieb Thomas Keffer:
>
> You could do something like this (NOT TESTED):
>
> #set hours = int($current.sunshine_hours.raw)
> #set minutes = int(($current.sunshine_hours.raw - $hours)*60 + 0.5)
> 
>
>
> -tk
>
> On Mon, Jul 22, 2019 at 6:54 AM Stefan Schnidrig  > wrote:
>
>> Hello.
>>
>> I would like to have the sunshine hours for the current day. Format in 
>> hours and minutes.
>>
>> Thanks
>>
>> Am Montag, 22. Juli 2019 15:46:42 UTC+2 schrieb Andrew Milner:
>>>
>>> From the output you provided I read that as saying .08 hours of sunshine 
>>> today - does that correspond with reality??
>>>
>>> What output are you wanting??  I read the extension install instructions 
>>> and what you have posted seems to correspond with what I would expect.  
>>> What exactly are you wanting??  Perhaps you should contact the creator of 
>>> the extension!!
>>>
>>>
>>>
>>> On Monday, 22 July 2019 16:13:55 UTC+3, Stefan Schnidrig wrote:

 Now it looks like this. I think that's not true yet?
 [image: Unbenannt.JPG]

 Thanks for watching

 Am Montag, 22. Juli 2019 14:56:03 UTC+2 schrieb Thomas Keffer:
>
> If you just want the raw number, use the "raw" suffix:
>
> $current.sunshine_hours.raw
>
>
> -tk
>
> On Mon, Jul 22, 2019 at 5:48 AM Stefan Schnidrig  
> wrote:
>
>> Hello Thomas.
>> Thanks for your message. No. I would like to use the solar sensor to 
>> display the sunshine time. But I want that in numbers, so I can put 
>> it in my xml.
>>
>> Thank you
>>
>> Am Montag, 22. Juli 2019 13:47:39 UTC+2 schrieb Thomas Keffer:
>>>
>>> I'm not sure what you mean by "show this value in numbers." Do you 
>>> mean formatting the value as "4:15 h", versus "4.25"?
>>>
>>> -tk
>>>
>>> On Mon, Jul 22, 2019 at 2:50 AM Stefan Schnidrig <
>>> sschn...@bluewin.ch> wrote:
>>>
 Hello everybody.

 I have found this link (
 https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py)
  
 where is described how to display the sunshine time. Now I would 
 like to show this value in numbers (eg 4:15 h). Is that possible?

 Thank you


 -- 
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com
  
 
 .

>>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/5dfbcab1-9b7a-4b0c-9048-8a9add486ce9%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/06eb2e2b-bc53-4bc1-8e67-515a2094cdf6%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/06fe2591-dbe3-4eb5-9650-1e63834e685a%40googlegroups.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig


Hello

@Andrew

If I enter day.sunshine_hours.raw, then I get an error message.

@Thomas
Excuse the stupid question, but where should I paste? In my xml that will not 
work?

Thanks for your inputs



Am Montag, 22. Juli 2019 17:39:08 UTC+2 schrieb Thomas Keffer:
>
> You could do something like this (NOT TESTED):
>
> #set hours = int($current.sunshine_hours.raw)
> #set minutes = int(($current.sunshine_hours.raw - $hours)*60 + 0.5)
> 
>
>
> -tk
>
> On Mon, Jul 22, 2019 at 6:54 AM Stefan Schnidrig  > wrote:
>
>> Hello.
>>
>> I would like to have the sunshine hours for the current day. Format in 
>> hours and minutes.
>>
>> Thanks
>>
>> Am Montag, 22. Juli 2019 15:46:42 UTC+2 schrieb Andrew Milner:
>>>
>>> From the output you provided I read that as saying .08 hours of sunshine 
>>> today - does that correspond with reality??
>>>
>>> What output are you wanting??  I read the extension install instructions 
>>> and what you have posted seems to correspond with what I would expect.  
>>> What exactly are you wanting??  Perhaps you should contact the creator of 
>>> the extension!!
>>>
>>>
>>>
>>> On Monday, 22 July 2019 16:13:55 UTC+3, Stefan Schnidrig wrote:

 Now it looks like this. I think that's not true yet?
 [image: Unbenannt.JPG]

 Thanks for watching

 Am Montag, 22. Juli 2019 14:56:03 UTC+2 schrieb Thomas Keffer:
>
> If you just want the raw number, use the "raw" suffix:
>
> $current.sunshine_hours.raw
>
>
> -tk
>
> On Mon, Jul 22, 2019 at 5:48 AM Stefan Schnidrig  
> wrote:
>
>> Hello Thomas.
>> Thanks for your message. No. I would like to use the solar sensor to 
>> display the sunshine time. But I want that in numbers, so I can put 
>> it in my xml.
>>
>> Thank you
>>
>> Am Montag, 22. Juli 2019 13:47:39 UTC+2 schrieb Thomas Keffer:
>>>
>>> I'm not sure what you mean by "show this value in numbers." Do you 
>>> mean formatting the value as "4:15 h", versus "4.25"?
>>>
>>> -tk
>>>
>>> On Mon, Jul 22, 2019 at 2:50 AM Stefan Schnidrig <
>>> sschn...@bluewin.ch> wrote:
>>>
 Hello everybody.

 I have found this link (
 https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py)
  
 where is described how to display the sunshine time. Now I would 
 like to show this value in numbers (eg 4:15 h). Is that possible?

 Thank you


 -- 
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com
  
 
 .

>>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/5dfbcab1-9b7a-4b0c-9048-8a9add486ce9%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/06eb2e2b-bc53-4bc1-8e67-515a2094cdf6%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/dd0dc74c-5599-4539-abd3-28871ccf73e0%40googlegroups.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread Andrew Milner
Tom - I think sunshine_hours is a schema extension which is set to archive 
interval if the interval radiation in the interval exceeds a configurable 
threshold and so is regarded as being sunny, so I think one would need to 
do a sum to get the day's total before doing your formatting calculation 
into hrs and minutes.


On Monday, 22 July 2019 18:39:08 UTC+3, Thomas Keffer wrote:
>
> You could do something like this (NOT TESTED):
>
> #set hours = int($current.sunshine_hours.raw)
> #set minutes = int(($current.sunshine_hours.raw - $hours)*60 + 0.5)
> 
>
>
> -tk
>
> On Mon, Jul 22, 2019 at 6:54 AM Stefan Schnidrig  > wrote:
>
>> Hello.
>>
>> I would like to have the sunshine hours for the current day. Format in 
>> hours and minutes.
>>
>> Thanks
>>
>> Am Montag, 22. Juli 2019 15:46:42 UTC+2 schrieb Andrew Milner:
>>>
>>> From the output you provided I read that as saying .08 hours of sunshine 
>>> today - does that correspond with reality??
>>>
>>> What output are you wanting??  I read the extension install instructions 
>>> and what you have posted seems to correspond with what I would expect.  
>>> What exactly are you wanting??  Perhaps you should contact the creator of 
>>> the extension!!
>>>
>>>
>>>
>>> On Monday, 22 July 2019 16:13:55 UTC+3, Stefan Schnidrig wrote:

 Now it looks like this. I think that's not true yet?
 [image: Unbenannt.JPG]

 Thanks for watching

 Am Montag, 22. Juli 2019 14:56:03 UTC+2 schrieb Thomas Keffer:
>
> If you just want the raw number, use the "raw" suffix:
>
> $current.sunshine_hours.raw
>
>
> -tk
>
> On Mon, Jul 22, 2019 at 5:48 AM Stefan Schnidrig  
> wrote:
>
>> Hello Thomas.
>> Thanks for your message. No. I would like to use the solar sensor to 
>> display the sunshine time. But I want that in numbers, so I can put 
>> it in my xml.
>>
>> Thank you
>>
>> Am Montag, 22. Juli 2019 13:47:39 UTC+2 schrieb Thomas Keffer:
>>>
>>> I'm not sure what you mean by "show this value in numbers." Do you 
>>> mean formatting the value as "4:15 h", versus "4.25"?
>>>
>>> -tk
>>>
>>> On Mon, Jul 22, 2019 at 2:50 AM Stefan Schnidrig <
>>> sschn...@bluewin.ch> wrote:
>>>
 Hello everybody.

 I have found this link (
 https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py)
  
 where is described how to display the sunshine time. Now I would 
 like to show this value in numbers (eg 4:15 h). Is that possible?

 Thank you


 -- 
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com
  
 
 .

>>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/5dfbcab1-9b7a-4b0c-9048-8a9add486ce9%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/06eb2e2b-bc53-4bc1-8e67-515a2094cdf6%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/0719c923-3277-4d8a-a68d-95059785d364%40googlegroups.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread Thomas Keffer
You could do something like this (NOT TESTED):

#set hours = int($current.sunshine_hours.raw)
#set minutes = int(($current.sunshine_hours.raw - $hours)*60 + 0.5)



-tk

On Mon, Jul 22, 2019 at 6:54 AM Stefan Schnidrig 
wrote:

> Hello.
>
> I would like to have the sunshine hours for the current day. Format in
> hours and minutes.
>
> Thanks
>
> Am Montag, 22. Juli 2019 15:46:42 UTC+2 schrieb Andrew Milner:
>>
>> From the output you provided I read that as saying .08 hours of sunshine
>> today - does that correspond with reality??
>>
>> What output are you wanting??  I read the extension install instructions
>> and what you have posted seems to correspond with what I would expect.
>> What exactly are you wanting??  Perhaps you should contact the creator of
>> the extension!!
>>
>>
>>
>> On Monday, 22 July 2019 16:13:55 UTC+3, Stefan Schnidrig wrote:
>>>
>>> Now it looks like this. I think that's not true yet?
>>> [image: Unbenannt.JPG]
>>>
>>> Thanks for watching
>>>
>>> Am Montag, 22. Juli 2019 14:56:03 UTC+2 schrieb Thomas Keffer:

 If you just want the raw number, use the "raw" suffix:

 $current.sunshine_hours.raw


 -tk

 On Mon, Jul 22, 2019 at 5:48 AM Stefan Schnidrig 
 wrote:

> Hello Thomas.
> Thanks for your message. No. I would like to use the solar sensor to
> display the sunshine time. But I want that in numbers, so I can put
> it in my xml.
>
> Thank you
>
> Am Montag, 22. Juli 2019 13:47:39 UTC+2 schrieb Thomas Keffer:
>>
>> I'm not sure what you mean by "show this value in numbers." Do you
>> mean formatting the value as "4:15 h", versus "4.25"?
>>
>> -tk
>>
>> On Mon, Jul 22, 2019 at 2:50 AM Stefan Schnidrig 
>> wrote:
>>
>>> Hello everybody.
>>>
>>> I have found this link (
>>> https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py)
>>> where is described how to display the sunshine time. Now I would
>>> like to show this value in numbers (eg 4:15 h). Is that possible?
>>>
>>> Thank you
>>>
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/5dfbcab1-9b7a-4b0c-9048-8a9add486ce9%40googlegroups.com
> 
> .
>
 --
> 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/06eb2e2b-bc53-4bc1-8e67-515a2094cdf6%40googlegroups.com
> 
> .
>

-- 
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/CAPq0zED-bFnYiYu2dNxhVrq5gGQU5zrVAwfpEbBriS4-95uS_A%40mail.gmail.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread Andrew Milner
what does day.sunshine_hours.raw give you instead of 
current.sunshine_hours.raw ???

On Monday, 22 July 2019 16:54:54 UTC+3, Stefan Schnidrig wrote:
>
> Hello.
>
> I would like to have the sunshine hours for the current day. Format in 
> hours and minutes.
>
> Thanks
>
> Am Montag, 22. Juli 2019 15:46:42 UTC+2 schrieb Andrew Milner:
>>
>> From the output you provided I read that as saying .08 hours of sunshine 
>> today - does that correspond with reality??
>>
>> What output are you wanting??  I read the extension install instructions 
>> and what you have posted seems to correspond with what I would expect.  
>> What exactly are you wanting??  Perhaps you should contact the creator of 
>> the extension!!
>>
>>
>>
>> On Monday, 22 July 2019 16:13:55 UTC+3, Stefan Schnidrig wrote:
>>>
>>> Now it looks like this. I think that's not true yet?
>>> [image: Unbenannt.JPG]
>>>
>>> Thanks for watching
>>>
>>> Am Montag, 22. Juli 2019 14:56:03 UTC+2 schrieb Thomas Keffer:

 If you just want the raw number, use the "raw" suffix:

 $current.sunshine_hours.raw


 -tk

 On Mon, Jul 22, 2019 at 5:48 AM Stefan Schnidrig  
 wrote:

> Hello Thomas.
> Thanks for your message. No. I would like to use the solar sensor to 
> display the sunshine time. But I want that in numbers, so I can put 
> it in my xml.
>
> Thank you
>
> Am Montag, 22. Juli 2019 13:47:39 UTC+2 schrieb Thomas Keffer:
>>
>> I'm not sure what you mean by "show this value in numbers." Do you 
>> mean formatting the value as "4:15 h", versus "4.25"?
>>
>> -tk
>>
>> On Mon, Jul 22, 2019 at 2:50 AM Stefan Schnidrig  
>> wrote:
>>
>>> Hello everybody.
>>>
>>> I have found this link (
>>> https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py)
>>>  
>>> where is described how to display the sunshine time. Now I would 
>>> like to show this value in numbers (eg 4:15 h). Is that possible?
>>>
>>> Thank you
>>>
>>>
>>> -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
> 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...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/5dfbcab1-9b7a-4b0c-9048-8a9add486ce9%40googlegroups.com
>  
> 
> .
>


-- 
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/b9bbe9cb-fd1e-4df8-8f1b-9f4d233d0833%40googlegroups.com.


[weewx-user] Re: CWOP and APRS

2019-07-22 Thread Charles Adams
Well it helps when you edit the correct file.  I put everything in the 
weewx.conf file and it up and running.  I am now on findU. Wow thanks 
everyone for all your help!  This is a great form we great people.  
I never received a derogatory post no matter how basic a question I posted.
Thanks again Randy NT8N 

On Monday, July 22, 2019 at 8:02:12 AM UTC-4, gjr80 wrote:
>
> weewx.conf.mmddHHMMSS is a backup of weewx.conf made when an install 
> happened at mmddHHMMSS(the installer always backs up weewx.conf 
> irrespective of what you tell the installer to do/use). weewx.conf should 
> be the post install config file, whether it is based on your existing 
> pre-install/upgrade weewx.conf or the package weewx.conf depends on what 
> options you chose during the install/upgrade.
>
> The easiest way to tell what is going on is to look at the log. 
> Unfortunately the log extract you provided was truncated so we could not 
> see the startup. Go back to the log and read through from when you started 
> WeeWX. The log will tell you exactly what weewx.conf was used and that is 
> the file you must update.
>
> Gary
>
>

-- 
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/37beab32-1df0-4ebe-be9b-c481e4026388%40googlegroups.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
Hello.

I would like to have the sunshine hours for the current day. Format in 
hours and minutes.

Thanks

Am Montag, 22. Juli 2019 15:46:42 UTC+2 schrieb Andrew Milner:
>
> From the output you provided I read that as saying .08 hours of sunshine 
> today - does that correspond with reality??
>
> What output are you wanting??  I read the extension install instructions 
> and what you have posted seems to correspond with what I would expect.  
> What exactly are you wanting??  Perhaps you should contact the creator of 
> the extension!!
>
>
>
> On Monday, 22 July 2019 16:13:55 UTC+3, Stefan Schnidrig wrote:
>>
>> Now it looks like this. I think that's not true yet?
>> [image: Unbenannt.JPG]
>>
>> Thanks for watching
>>
>> Am Montag, 22. Juli 2019 14:56:03 UTC+2 schrieb Thomas Keffer:
>>>
>>> If you just want the raw number, use the "raw" suffix:
>>>
>>> $current.sunshine_hours.raw
>>>
>>>
>>> -tk
>>>
>>> On Mon, Jul 22, 2019 at 5:48 AM Stefan Schnidrig  
>>> wrote:
>>>
 Hello Thomas.
 Thanks for your message. No. I would like to use the solar sensor to 
 display the sunshine time. But I want that in numbers, so I can put it 
 in my xml.

 Thank you

 Am Montag, 22. Juli 2019 13:47:39 UTC+2 schrieb Thomas Keffer:
>
> I'm not sure what you mean by "show this value in numbers." Do you 
> mean formatting the value as "4:15 h", versus "4.25"?
>
> -tk
>
> On Mon, Jul 22, 2019 at 2:50 AM Stefan Schnidrig  
> wrote:
>
>> Hello everybody.
>>
>> I have found this link (
>> https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py)
>>  
>> where is described how to display the sunshine time. Now I would 
>> like to show this value in numbers (eg 4:15 h). Is that possible?
>>
>> Thank you
>>
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/5dfbcab1-9b7a-4b0c-9048-8a9add486ce9%40googlegroups.com
  
 
 .

>>>

-- 
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/06eb2e2b-bc53-4bc1-8e67-515a2094cdf6%40googlegroups.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread Andrew Milner
>From the output you provided I read that as saying .08 hours of sunshine 
today - does that correspond with reality??

What output are you wanting??  I read the extension install instructions 
and what you have posted seems to correspond with what I would expect.  
What exactly are you wanting??  Perhaps you should contact the creator of 
the extension!!



On Monday, 22 July 2019 16:13:55 UTC+3, Stefan Schnidrig wrote:
>
> Now it looks like this. I think that's not true yet?
> [image: Unbenannt.JPG]
>
> Thanks for watching
>
> Am Montag, 22. Juli 2019 14:56:03 UTC+2 schrieb Thomas Keffer:
>>
>> If you just want the raw number, use the "raw" suffix:
>>
>> $current.sunshine_hours.raw
>>
>>
>> -tk
>>
>> On Mon, Jul 22, 2019 at 5:48 AM Stefan Schnidrig  
>> wrote:
>>
>>> Hello Thomas.
>>> Thanks for your message. No. I would like to use the solar sensor to 
>>> display the sunshine time. But I want that in numbers, so I can put it 
>>> in my xml.
>>>
>>> Thank you
>>>
>>> Am Montag, 22. Juli 2019 13:47:39 UTC+2 schrieb Thomas Keffer:

 I'm not sure what you mean by "show this value in numbers." Do you mean 
 formatting the value as "4:15 h", versus "4.25"?

 -tk

 On Mon, Jul 22, 2019 at 2:50 AM Stefan Schnidrig  
 wrote:

> Hello everybody.
>
> I have found this link (
> https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py)
>  
> where is described how to display the sunshine time. Now I would like 
> to show this value in numbers (eg 4:15 h). Is that possible?
>
> Thank you
>
>
> -- 
> 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...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com
>  
> 
> .
>
 -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/5dfbcab1-9b7a-4b0c-9048-8a9add486ce9%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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/aea64a35-bca2-4f0a-afd9-777f473a65c0%40googlegroups.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
Now it looks like this. I think that's not true yet?
[image: Unbenannt.JPG]

Thanks for watching

Am Montag, 22. Juli 2019 14:56:03 UTC+2 schrieb Thomas Keffer:
>
> If you just want the raw number, use the "raw" suffix:
>
> $current.sunshine_hours.raw
>
>
> -tk
>
> On Mon, Jul 22, 2019 at 5:48 AM Stefan Schnidrig  > wrote:
>
>> Hello Thomas.
>> Thanks for your message. No. I would like to use the solar sensor to 
>> display the sunshine time. But I want that in numbers, so I can put it 
>> in my xml.
>>
>> Thank you
>>
>> Am Montag, 22. Juli 2019 13:47:39 UTC+2 schrieb Thomas Keffer:
>>>
>>> I'm not sure what you mean by "show this value in numbers." Do you mean 
>>> formatting the value as "4:15 h", versus "4.25"?
>>>
>>> -tk
>>>
>>> On Mon, Jul 22, 2019 at 2:50 AM Stefan Schnidrig  
>>> wrote:
>>>
 Hello everybody.

 I have found this link (
 https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py)
  
 where is described how to display the sunshine time. Now I would like 
 to show this value in numbers (eg 4:15 h). Is that possible?

 Thank you


 -- 
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com
  
 
 .

>>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/5dfbcab1-9b7a-4b0c-9048-8a9add486ce9%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/8e34c513-dc40-4cd8-860b-08497a283d14%40googlegroups.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
So about?
[image: Unbenannt.JPG]

Thanks



Am Montag, 22. Juli 2019 14:56:03 UTC+2 schrieb Thomas Keffer:
>
> If you just want the raw number, use the "raw" suffix:
>
> $current.sunshine_hours.raw
>
>
> -tk
>
> On Mon, Jul 22, 2019 at 5:48 AM Stefan Schnidrig  > wrote:
>
>> Hello Thomas.
>> Thanks for your message. No. I would like to use the solar sensor to 
>> display the sunshine time. But I want that in numbers, so I can put it 
>> in my xml.
>>
>> Thank you
>>
>> Am Montag, 22. Juli 2019 13:47:39 UTC+2 schrieb Thomas Keffer:
>>>
>>> I'm not sure what you mean by "show this value in numbers." Do you mean 
>>> formatting the value as "4:15 h", versus "4.25"?
>>>
>>> -tk
>>>
>>> On Mon, Jul 22, 2019 at 2:50 AM Stefan Schnidrig  
>>> wrote:
>>>
 Hello everybody.

 I have found this link (
 https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py)
  
 where is described how to display the sunshine time. Now I would like 
 to show this value in numbers (eg 4:15 h). Is that possible?

 Thank you


 -- 
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com
  
 
 .

>>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/5dfbcab1-9b7a-4b0c-9048-8a9add486ce9%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/9077ff71-addf-4ec5-b404-ed965f86e8fd%40googlegroups.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread Thomas Keffer
If you just want the raw number, use the "raw" suffix:

$current.sunshine_hours.raw


-tk

On Mon, Jul 22, 2019 at 5:48 AM Stefan Schnidrig 
wrote:

> Hello Thomas.
> Thanks for your message. No. I would like to use the solar sensor to
> display the sunshine time. But I want that in numbers, so I can put it in
> my xml.
>
> Thank you
>
> Am Montag, 22. Juli 2019 13:47:39 UTC+2 schrieb Thomas Keffer:
>>
>> I'm not sure what you mean by "show this value in numbers." Do you mean
>> formatting the value as "4:15 h", versus "4.25"?
>>
>> -tk
>>
>> On Mon, Jul 22, 2019 at 2:50 AM Stefan Schnidrig 
>> wrote:
>>
>>> Hello everybody.
>>>
>>> I have found this link (
>>> https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py)
>>> where is described how to display the sunshine time. Now I would like
>>> to show this value in numbers (eg 4:15 h). Is that possible?
>>>
>>> Thank you
>>>
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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/5dfbcab1-9b7a-4b0c-9048-8a9add486ce9%40googlegroups.com
> 
> .
>

-- 
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/CAPq0zEB-2t7ZZhJcLy1HxUHFuayzck%3DPSkSt7nwsFF8oYBq0mw%40mail.gmail.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
Hello Thomas.
Thanks for your message. No. I would like to use the solar sensor to 
display the sunshine time. But I want that in numbers, so I can put it in 
my xml.

Thank you

Am Montag, 22. Juli 2019 13:47:39 UTC+2 schrieb Thomas Keffer:
>
> I'm not sure what you mean by "show this value in numbers." Do you mean 
> formatting the value as "4:15 h", versus "4.25"?
>
> -tk
>
> On Mon, Jul 22, 2019 at 2:50 AM Stefan Schnidrig  > wrote:
>
>> Hello everybody.
>>
>> I have found this link (
>> https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py)
>>  
>> where is described how to display the sunshine time. Now I would like to 
>> show this value in numbers (eg 4:15 h). Is that possible?
>>
>> Thank you
>>
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/5dfbcab1-9b7a-4b0c-9048-8a9add486ce9%40googlegroups.com.


[weewx-user] Re: CWOP and APRS

2019-07-22 Thread gjr80
weewx.conf.mmddHHMMSS is a backup of weewx.conf made when an install 
happened at mmddHHMMSS(the installer always backs up weewx.conf 
irrespective of what you tell the installer to do/use). weewx.conf should be 
the post install config file, whether it is based on your existing 
pre-install/upgrade weewx.conf or the package weewx.conf depends on what 
options you chose during the install/upgrade.

The easiest way to tell what is going on is to look at the log. Unfortunately 
the log extract you provided was truncated so we could not see the startup. Go 
back to the log and read through from when you started WeeWX. The log will tell 
you exactly what weewx.conf was used and that is the file you must update.

Gary

-- 
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/e5b71bce-00e9-42f8-a95a-66eabd02bf78%40googlegroups.com.


Re: [weewx-user] Sunshine Time

2019-07-22 Thread Thomas Keffer
I'm not sure what you mean by "show this value in numbers." Do you mean
formatting the value as "4:15 h", versus "4.25"?

-tk

On Mon, Jul 22, 2019 at 2:50 AM Stefan Schnidrig 
wrote:

> Hello everybody.
>
> I have found this link (
> https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py)
> where is described how to display the sunshine time. Now I would like to
> show this value in numbers (eg 4:15 h). Is that possible?
>
> Thank you
>
>
> --
> 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/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com
> 
> .
>

-- 
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/CAPq0zEC1KioXqNwbnFJsWqYDvnm4uVqNFdzhd9UToVk4YwS5Xw%40mail.gmail.com.


[weewx-user] Sunshine Time

2019-07-22 Thread Stefan Schnidrig
Hello everybody.

I have found this link 
(https://github.com/brewster76/util-archer/blob/master/user/radiationhours.py) 
where is described how to display the sunshine time. Now I would like to 
show this value in numbers (eg 4:15 h). Is that possible?

Thank you


-- 
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/e4b49519-f227-4cfa-9151-7a3aafccc813%40googlegroups.com.


[weewx-user] Re: Customised logwatch

2019-07-22 Thread Rick M0LEP
I think I was confusing logwatch and logcheck; logcheck has directories 
for various categories of messages including "ignore" of which I make 
much use, while logwatch has scripts it runs for each service, which 
means it can do rather more with the messages, but makes it a bit less 
easily tailored...

On Mon 22 Jul Andrew Milner wrote:
> that was my problem Rick - having to edit the weewx logwatch script to not 
> include the weewx extensions - raw, historygenerator and for some reason 
> ftpgenerator (not sure where that one came from anyway!!), so that my daily 
> weewx logwatch file from the weewx standard package is not filled with 
> these additional weewx messages.  Or are you saying that I should prevent 
> the additional messages going into the log in the first place??  No, I want 
> the log to be complete so they need to be in there I just dont want 
> logwatch spitting them out again!!

-- 
73, Rick, M0LEP

-- 
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/6ac0.5d35825e.336da.m0lep%40hewett.org.


[weewx-user] Re: Customised logwatch

2019-07-22 Thread Andrew Milner
that was my problem Rick - having to edit the weewx logwatch script to not 
include the weewx extensions - raw, historygenerator and for some reason 
ftpgenerator (not sure where that one came from anyway!!), so that my daily 
weewx logwatch file from the weewx standard package is not filled with 
these additional weewx messages.  Or are you saying that I should prevent 
the additional messages going into the log in the first place??  No, I want 
the log to be complete so they need to be in there I just dont want 
logwatch spitting them out again!!


On Monday, 22 July 2019 09:56:36 UTC+3, Rick Hewett wrote:
>
> On Mon 22 Jul Andrew Milner wrote: 
> > Is there a better way of handling this?? 
>
> I don't edit logwatch filters that come with packages unless absolutely 
> necessary, but put my own additional filters into a different file in 
> the appropriate directory (typically with a name prefixed with local- to 
> make them easy to find). That way they don't get clobbered by an 
> upgrade, though they may need editing if a new version formats its 
> messages differently... 
>
> -- 
> 73, Rick, M0LEP 
>
>

-- 
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/ad7ec4b1-7e72-48c4-816f-b48297e26606%40googlegroups.com.


[weewx-user] Re: Customised logwatch

2019-07-22 Thread Rick M0LEP
On Mon 22 Jul Andrew Milner wrote:
> Is there a better way of handling this??

I don't edit logwatch filters that come with packages unless absolutely 
necessary, but put my own additional filters into a different file in 
the appropriate directory (typically with a name prefixed with local- to 
make them easy to find). That way they don't get clobbered by an 
upgrade, though they may need editing if a new version formats its 
messages differently...

-- 
73, Rick, M0LEP

-- 
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/539b.5d355e21.b35cc.m0lep%40hewett.org.