[weewx-user] Re: Niculskin - Date and time Formatting.

2017-01-21 Thread gjr80
You did stop/start or reload weewx after making changes to weewx.conf? Not 
required for changes to skin.conf but is required for weewx.conf changes.

Gary

On Sunday, 22 January 2017 00:56:30 UTC+10, John Rye wrote:
>
>
>
> On Sunday, 22 January 2017 01:08:11 UTC+13, Darryn Capes-Davis wrote:
>>
>> John,
>>
>> > What locale is your server? 
>>
>
> [lists@amd64 ~]$ locale
> LANG=en_NZ.UTF-8
> LC_CTYPE="en_NZ.UTF-8"
> LC_NUMERIC="en_NZ.UTF-8"
> LC_TIME="en_NZ.UTF-8"
> LC_COLLATE="en_NZ.UTF-8"
> LC_MONETARY="en_NZ.UTF-8"
> LC_MESSAGES="en_NZ.UTF-8"
> LC_PAPER="en_NZ.UTF-8"
> LC_NAME="en_NZ.UTF-8"
> LC_ADDRESS="en_NZ.UTF-8"
> LC_TELEPHONE="en_NZ.UTF-8"
> LC_MEASUREMENT="en_NZ.UTF-8"
> LC_IDENTIFICATION="en_NZ.UTF-8"
> LC_ALL=
> [lists@amd64 ~]$ 
>
>   So physically in New Zealand as is the server.
>  
>
>> > I ask as the only way you would be getting the display on your site 
>> would be from the format string "%x %X" on a US locale server. 
>>
>
>  Agreed. However I have altered all the time format strings in weewx.conf 
> in line with what is shown in 
> http://weewx.com/docs/customizing.htm#Units_TimeFormats. I don't see any 
> point in going further and custominsing as per strftime - it shouldn't be 
> necessary
>
>>
>> > However I can't see how the format "%x %X" would be being used?
>>
>
> I'm beginning to wonder if its hard-coded in the javascript (/me shudders) 
> because I'm fairly sure I was able to alter the formatting in the Standard 
> skin.
>
> Cheers
>
> John in NZ
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


RE: [weewx-user] Re: Niculskin - Date and time Formatting.

2017-01-21 Thread Carlingford Weather
John,

A thought. Are you using wee_reports external or just allowing weewx to 
generate the reports per archive interval?

Darryn

From: gjr80
Sent: Sunday, 22 January 2017 2:12 PM
To: weewx-user
Subject: [weewx-user] Re: Niculskin - Date and time Formatting.

John,

I was intrigued as niculskin is not that complex and in its index.html.tmpl 
template it just uses plain $current.dateTime (line 39) to display 'Last 
updated'. So it should be respecting the standard date/time formats in 
niculskin/skin.conf (there are no overrides in weewx.conf - unless the user had 
some there before the niculskin install). Still intrigued I fired up a debain 
VM running weewx/simulator and installed niculskin using wee_extension. I don't 
know whether you encountered any runtime errors after install but I had to (1) 
manually install the skins/niculskin/RSS directory and (2) edit 
niculskin/skin.conf and under [niculskinLabels] [[conditions]] I had to change 
extra_1_temp_humidity to extra1_temp_humidity and extra_2_temp_humidity to 
extra2_temp_humidity. None of these should affect date-time formats though.

When run out of the box (with the aforementioned changes and language =  in 
niculskin/skin.conf) the 'Last updated' line in index.html was (sorry VM is not 
publicly accessible):

 Last updated 22/01/17 12:50:00

When I make the following change to /niculskin/skin.conf:

[Units]
[[TimeFormats]]
current = %d %b %Y

I get:

 Last updated 22-Jan-2017 12:40

As it should be. Not that it matters but my locale is coming up AU:

LANG=en_AU.UTF-8
LANGUAGE=en_AU:en
LC_CTYPE="en_AU.UTF-8"
LC_NUMERIC="en_AU.UTF-8"
LC_TIME="en_AU.UTF-8"
LC_COLLATE="en_AU.UTF-8"
LC_MONETARY="en_AU.UTF-8"
LC_MESSAGES="en_AU.UTF-8"
LC_PAPER="en_AU.UTF-8"
LC_NAME="en_AU.UTF-8"
LC_ADDRESS="en_AU.UTF-8"
LC_TELEPHONE="en_AU.UTF-8"
LC_MEASUREMENT="en_AU.UTF-8"
LC_IDENTIFICATION="en_AU.UTF-8"
LC_ALL=

Seems to me that everything is working as it should, I cannot find fault with 
niculskin. Personally I don't like making the change skin = niculskin under 
[StdReport] [[StandardReport]] in weewwx.conf as the [[StandardReport]] will 
tend to lead some people to skins/Standard/skin.conf (rather than 
skins/niculskin/skin.conf) if they want to change something like a date or time 
format but again that is just an ease of use issue and would not change the 
date-time format.

I'll give it some more thought but I am tending to think it is something 
peculiar to your install.

Gary

On Sunday, 22 January 2017 01:27:06 UTC+10, John Rye wrote:


On Sunday, 22 January 2017 03:56:30 UTC+13, John Rye wrote:


And replying to self ...

Reverted to Standard skin ... Guess what?  Dates are in dd/mm/yy format

The "problem" does not seem to lay with Weewx  but with underlaying code in the 
Nico's skin somehow ignoring or overriding weewx.conf.

A pity because I really like that skin ...

John in NZ


--
You received this message because you are subscribed to a topic in the Google 
Groups "weewx-user" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/weewx-user/lOgABRVqDcs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Niculskin - Date and time Formatting.

2017-01-21 Thread gjr80
John,

I was intrigued as niculskin is not that complex and in its index.html.tmpl 
template it just uses plain $current.dateTime (line 39) to display 'Last 
updated'. So it should be respecting the standard date/time formats in 
niculskin/skin.conf (there are no overrides in weewx.conf - unless the user 
had some there before the niculskin install). Still intrigued I fired up a 
debain VM running weewx/simulator and installed niculskin using 
wee_extension. I don't know whether you encountered any runtime errors 
after install but I had to (1) manually install the skins/niculskin/RSS 
directory and (2) edit niculskin/skin.conf and under [niculskinLabels] 
[[conditions]] I had to change extra_1_temp_humidity to extra1_temp_humidity 
and extra_2_temp_humidity to extra2_temp_humidity. None of these should 
affect date-time formats though.

When run out of the box (with the aforementioned changes and language =  in 
niculskin/skin.conf) the 'Last updated' line in index.html was (sorry VM is 
not publicly accessible):

 Last updated 22/01/17 12:50:00

When I make the following change to /niculskin/skin.conf:

[Units]
[[TimeFormats]]
current = %d %b %Y

I get:

 Last updated 22-Jan-2017 12:40

As it should be. Not that it matters but my locale is coming up AU:

LANG=en_AU.UTF-8
LANGUAGE=en_AU:en
LC_CTYPE="en_AU.UTF-8"
LC_NUMERIC="en_AU.UTF-8"
LC_TIME="en_AU.UTF-8"
LC_COLLATE="en_AU.UTF-8"
LC_MONETARY="en_AU.UTF-8"
LC_MESSAGES="en_AU.UTF-8"
LC_PAPER="en_AU.UTF-8"
LC_NAME="en_AU.UTF-8"
LC_ADDRESS="en_AU.UTF-8"
LC_TELEPHONE="en_AU.UTF-8"
LC_MEASUREMENT="en_AU.UTF-8"
LC_IDENTIFICATION="en_AU.UTF-8"
LC_ALL=

Seems to me that everything is working as it should, I cannot find fault 
with niculskin. Personally I don't like making the change skin = niculskin 
under [StdReport] [[StandardReport]] in weewwx.conf as the 
[[StandardReport]] will tend to lead some people to skins/Standard/skin.conf 
(rather than skins/niculskin/skin.conf) if they want to change something 
like a date or time format but again that is just an ease of use issue and 
would not change the date-time format.

I'll give it some more thought but I am tending to think it is something 
peculiar to your install.

Gary

On Sunday, 22 January 2017 01:27:06 UTC+10, John Rye wrote:
>
>
>
> On Sunday, 22 January 2017 03:56:30 UTC+13, John Rye wrote:
>>
>>
>>
>> And replying to self ...
>>
>
> Reverted to Standard skin ... Guess what?  Dates are in dd/mm/yy format
>
> The "problem" does not seem to lay with Weewx  but with underlaying code 
> in the Nico's skin somehow ignoring or overriding weewx.conf.
>
> A pity because I really like that skin ...
>
> John in NZ
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Spike detection - any willing testers

2017-01-21 Thread Carlingford Weather
Sorry, ignore my previous. Too early in the morning and I was mixing up posts.

The link was my direct email address, weather at carlingfordweather dot sydney.

Get Outlook for iOS


From: weewx-user@googlegroups.com  on behalf of 
Steve2Q 
Sent: Sunday, January 22, 2017 3:20:48 AM
To: weewx-user
Subject: Re: [weewx-user] Re: Spike detection - any willing testers


Darryn> Hello;  I would like to (possibly) be a tester for the spike detector, 
but the link you put in your first message is broken/incorrect.

Steve


--
You received this message because you are subscribed to a topic in the Google 
Groups "weewx-user" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/weewx-user/p6iGhRUxxa4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Integration with AREDN mesh network

2017-01-21 Thread Jerry Simonowits
Thank you, for the help, seems like a clean install of Pi followed by a 
clean weewx install (and some changes from the doc in how to install) 
worked.
Thanks for your help.

Jerry KB2GCG


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: engine: Unable to load driver: (5, 'Input/output error')

2017-01-21 Thread mwall
On Saturday, January 21, 2017 at 06:59:54 AM UTC-5, Kevin Bosworth wrote:
>
> Here is what I got.
>
> Traceback (most recent call last):
>   File "weewx/drivers/ws23xx.py", line 2117, in 
> with WS23xx(port) as s:
>   File "weewx/drivers/ws23xx.py", line 648, in __init__
> self.serial_port = LinuxSerialPort(port)
>   File "weewx/drivers/ws23xx.py", line 908, in __init__
> self.orig_settings = tty.tcgetattr(self.serial_port)
> termios.error: (5, 'Input/output error') 

 
 

> ok... So my serial port got changed in BIOS. So I tried this.
> setserial -g /dev/ttyS[0123456789]
> /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
> /dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
> /dev/ttyS2: No such device
> /dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
> /dev/ttyS4, UART: unknown, Port: 0x, IRQ: 0
> /dev/ttyS5, UART: unknown, Port: 0x, IRQ: 0
> /dev/ttyS6, UART: unknown, Port: 0x, IRQ: 0
> /dev/ttyS7, UART: unknown, Port: 0x, IRQ: 0
> /dev/ttyS8, UART: unknown, Port: 0x, IRQ: 0
> /dev/ttyS9, UART: unknown, Port: 0x, IRQ: 0
>
> Now I know it is on COM1 or TTYS0. I then ran the command you gave me with 
> the following.
> sudo PYTHONPATH=. python weewx/drivers/ws23xx.py --port /dev/ttyS0 
> --readings
> {'rt': 556.0, 'wc': -2.4, 'cn': 15, 'oh': 85.0, 'it': 22.8, 'ih': 42.0, 
> 'pa': 837.4, 'dp': -4.6, 'ot': -2.4, 'rh': 0.0, 'wind': (0.0, 225.0, 0, 0)}
>
> So I guess it is working. But nothing in the WWW Directory. When I use 
> "sudo /etc/init.d/weewx start" I get ,
> * Starting weewx weather system weewx   [ 
> OK ]
>
> So now what I guess is my next question. :)
>
> Thanks, Kevin



what is the archive interval for the station?  factory default for ws23xx 
is 30 minutes, so you probably just need to wait.  or change the interval.

http://weewx.com/docs/usersguide.htm#archive_interval

m

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Spike detection - any willing testers

2017-01-21 Thread Carlingford Weather
Andrew,

(1. Cache last record. )
2. For current record observations, if an observation is above a delta from the 
last then change it to None, same as what MinMax does.
3. Cache the current record, updating any spike observation values with values 
from the previous cache record. This allows multiple spike record values to be 
detected.

Darryn


_
From: Andrew Milner 
>
Sent: Saturday, January 21, 2017 11:23 pm
Subject: [weewx-user] Re: Spike detection - any willing testers
To: weewx-user >


What is the theory behind the changes, and how do the changes impact the 
various measurements and differ from the original??

On Saturday, 21 January 2017 14:11:30 UTC+2, Darryn Capes-Davis wrote:
Hi All,

I have modified the SqtQC service so it can do spike detection. I am after 
anyone who is having regular annoying spikes to be a tester. If you have spikes 
and would like to test changed qc.py code then please let me know. Code written 
on v 3.6.2 base. Direct email to 
weather@carlingfordweather.sydney
 best.

Regards

Darryn

--
You received this message because you are subscribed to a topic in the Google 
Groups "weewx-user" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/weewx-user/p6iGhRUxxa4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Spike detection - any willing testers

2017-01-21 Thread Andrew Milner
What is the theory behind the changes, and how do the changes impact the 
various measurements and differ from the original??

On Saturday, 21 January 2017 14:11:30 UTC+2, Darryn Capes-Davis wrote:
>
> Hi All,
>
> I have modified the SqtQC service so it can do spike detection. I am after 
> anyone who is having regular annoying spikes to be a tester. If you have 
> spikes and would like to test changed qc.py code then please let me know. 
> Code written on v 3.6.2 base. Direct email to 
> weather@carlingfordweather.sydney best.
>
> Regards
>
> Darryn
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Niculskin - Date and time Formatting.

2017-01-21 Thread Darryn Capes-Davis
John,

What locale is your server? I ask as the only way you would be getting the 
display on your site would be from the format string "%x %X" on a US locale 
server. 

However I can't see how the format "%x %X" would be being used?

Darryn

On Saturday, January 21, 2017 at 8:24:08 PM UTC+11, John Rye wrote:

> Hi All,
>
> A while ago I installed Nico Gulen's Niculskin and overall I'm really
> happy with it. (http:/newall-wx.gen.nz)
>
> However ... (isn't there always one or two of these )
>
> However #1: How or where are the date and time displays actually
> configured? 
>
> It appears to me that the settings in both /etc/weewx/weewx.conf
> and /etc/weewx/skins/niculskin/skin.conf are being ignored. 
>
> This can be seen in the site where all dates are displayed in
> month-day-year format and and times in 12-hour format.
>
> I have attached both /etc/weewx/weewx.conf and niculskin/skin.conf.
>
> Cheers
>
> John in NZ
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Niculskin - Date and time Formatting.

2017-01-21 Thread John Rye
Hi All,

A while ago I installed Nico Gulen's Niculskin and overall I'm really
happy with it. (http:/newall-wx.gen.nz)

However ... (isn't there always one or two of these )

However #1: How or where are the date and time displays actually
configured? 

It appears to me that the settings in both /etc/weewx/weewx.conf
and /etc/weewx/skins/niculskin/skin.conf are being ignored. 

This can be seen in the site where all dates are displayed in
month-day-year format and and times in 12-hour format.

I have attached both /etc/weewx/weewx.conf and niculskin/skin.conf.

Cheers

John in NZ

-- 
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.
For more options, visit https://groups.google.com/d/optout.
###
# $Id: skin.conf 2749 2014-11-29 18:15:24Z tkeffer $  #
# Copyright (c) 2010 Tom Keffer    #
# SOFA SKIN (c) 2015 Sven Reifschneider #
# SOFA SKIN CONFIGURATION FILE#
###

[Extras]
# Template Extras

# Current radar animation 3 hour loop
##radar_img = 
http://niederschlagsradar.de/image.ashx?type=loop3stunde=-2=homepage=201511212239==0
# Current radar animation 24 hour loop
##radar_gif = 
http://niederschlagsradar.de/image.ashx?type=loop24stunde=-2=homepage=201511212242==0
# Hyperlink for radar
##radar_url = http://niederschlagsradar.de

# Lightning map and hyperlink
##lightning_map = http://images.blitzortung.org/Images/image_b_de.png
##lightning_url = http://www.lightningmaps.org/realtime?lang=de

# URL for another radar (for example full Europe, Frankfurt center)
##radar_url_alt = 
http://meteox.com/meteox-maps.aspx?a=1=7=50.1109221=8.68212670026
##radar_url_alt_text = "Meteox Europe Radar"

###

[Units]
# This section is for managing the selection and formatting of units.

[[Groups]]
# For each group of measurements, this section sets what units to
# use for it.
# NB: The unit is always in the singular. I.e., 'mile_per_hour',
# NOT 'miles_per_hour'
group_altitude = meter# Options are 'foot' or 
'meter'
group_degree_day   = degree_C_day # Options are 'degree_F_day' 
or 'degree_C_day'
group_direction= degree_compass
group_moisture = centibar
group_percent  = percent
group_pressure = hPa  # Options are 'inHg', 'mmHg', 
'mbar', or 'hPa'
group_radiation= watt_per_meter_squared
group_rain = mm   # Options are 'inch', 'cm', 
or 'mm'
group_rainrate = mm_per_hour  # Options are 
'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
group_speed= km_per_hour  # Options are 
'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
group_speed2   = km_per_hour2 # Options are 
'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
group_temperature  = degree_C # Options are 'degree_F' or 
'degree_C'
group_uv   = uv_index
group_volt = volt

# The following are used internally and should not be changed:
group_count= count
group_interval = minute
group_time = unix_epoch
group_elapsed  = second

[[StringFormats]]
# This section sets the string formatting for each type of unit.
centibar   = %.0f
cm = %.2f
cm_per_hour= %.2f
degree_C   = %.1f
degree_F   = %.1f
degree_compass = %.0f
foot   = %.0f
hPa= %.0f
hour   = %.1f
inHg   = %.3f
inch   = %.2f
inch_per_hour  = %.2f
km_per_hour= %.0f
km_per_hour2   = %.1f
knot   = %.0f
knot2  = %.1f
mbar   = %.0f
meter  = %.0f
meter_per_second   = %.1f
meter_per_second2  = %.1f
mile_per_hour  = %.0f
mile_per_hour2 = %.1f
mm = %.1f
mmHg   = %.1f
mm_per_hour= %.1f
percent= %.0f
second = %.0f
uv_index   = %.0f
volt   = %.1f
watt_per_meter_squared = %.0f
NONE   = "   N/A"

[[Labels]]