[weewx-user] Re: Autostart WeeWX with systemd

2017-08-23 Thread vk3anz
Sorry - I didn't mean to make the 'N' a capital but I'm not sure if it 
matters.
Susan

On Thursday, August 24, 2017 at 12:32:56 PM UTC+10, vk3...@gmail.com wrote:
>
> If you are trying to use the network to send to WeatherUnderground, then 
> you may need to wait for it to start as well.
>
> Something like:
>
> Requires=Network-online.target
> After=Network-online.target
>
> if I remember correctly.
>
> Susan
>

-- 
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: Autostart WeeWX with systemd

2017-08-23 Thread vk3anz
If you are trying to use the network to send to WeatherUnderground, then 
you may need to wait for it to start as well.

Something like:

Requires=Network-online.target
After=Network-online.target

if I remember correctly.

Susan

-- 
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: NOAA Dropdown not populating

2017-08-23 Thread Mauro De Lauretis
It is only because I copied it to Windows
from my raspberry. The file name is the original one. How can I paste you the 
log file?

-- 
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: Weewx and Meteotemplate

2017-08-23 Thread Marty Thompson
Sent from my S5 with fat fumbs

Well that explains it
IBM ran our online Census here in Australia last year
The website crashed for 3 days

-- 
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: Weewx and Meteotemplate

2017-08-23 Thread Thomas Keffer
The Weather Underground is owned by The Weather Company, which, in turn, is
owned by IBM. Your penny would not have done very well over the last year.
:-)

-tk

On Tue, Aug 22, 2017 at 5:20 PM, Luc Heijst  wrote:

> Hi Marty,
> I tried to convince a year ago a meteorologist and the ceo at WU that they
> had to solve the problems of their data aquisition, but it seemed to be to
> deaf ears.
> I wouldn't gamble one single penny on their stock market nowadays.
> Cheers, Luc
>
> --
> 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.
>

-- 
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: NOAA monthly and yearly summaries, is possible generate PLOT ?

2017-08-23 Thread Tomáš Filo
So I did it as suggested. I created bash script to generate all historical
plots by executing wee_reports with different parameters. For this purpose
I created two skins for generating year and month plots. And two weewx.conf
files for this specific purpose. Maybe it will be usefullfor someone. So
here is link: https://github.com/tfilo/weewx-bootstrap-theme I will add
some commites tommorow to fix some little problems.

If you want to see it in action here is page live:
http://meteorajecketeplice.ddns.net but it is only in Slovak language so
can be confusing for others.

Thanks again for sugestions.

On Aug 21, 2017 11:49, "Tomáš Filo"  wrote:

Thank you, I didn't realize that this is possible :) I will go to look at
wee_reports parameters and I will do this that way.

S pozdravom Tomáš Filo
tfil...@gmail.com

2017-08-21 11:46 GMT+02:00 Andrew Milner :

> Just run wee_reports manually, specifying the date to be used for
> 'current', to generate the required historic monthly and/or yearly plots,
> and then combine with the cron approach to avoid having to manually create
> them again in the future - and work on the selection/display options
> instead!!
>
>
>
> On Monday, 21 August 2017 12:35:40 UTC+3, Tomáš Filo wrote:
>
>> Thanks for answer, this method with cron sounds great but unfortunately I
>> have data since mid of 2014 and I will somehow need to regenerate this
>> plots too. But I will try. I did myself some version of plots in html NOAA
>> reports some time ago. I used this kind of code:
>>
>> var
>> minTemp = [
>> #set $sep = ''
>> #for $day in $month.days
>> ${sep}[$day.dateTime.raw, $day.outTemp.min.raw]
>> #set $sep = ','
>> #end for
>> ],
>> maxTemp = [
>> #set $sep = ''
>> #for $day in $month.days
>>${sep}[$day.dateTime.raw, $day.outTemp.max.raw]
>> #set $sep = ','
>> #end for
>> ]
>>
>> to get values in expected interval into javascript array and then I could
>> plot it with js library. But It looks differend from plots generated by
>> weewx and is not so accurate so I wanted to make it looks same. So I was
>> hopping there is some way to generate plots for all months in history.
>>
>>
>>
>> S pozdravom Tomáš Filo
>> tfi...@gmail.com
>>
>> 2017-08-21 11:21 GMT+02:00 Andrew Milner :
>>
>>> 1.  If you have a cron task to copy/rename the monthly plots once per
>>> month then you will build up a collection of monthly plots
>>> 2.  If you have a cron task to copy/rename the yearly plots once per
>>> year then you will build up a collection of yearly plots
>>> 3.  If you try and plot many years worth of data in a single plot the
>>> chances are that it will be a meaningless graph lacking detail and likely
>>> to be missing highs and lows
>>> 4.  You can create something similar to the NOAA selection button to
>>> display the appropriate plots - you will need the user to select month or
>>> year and reading type to be displayed.
>>>
>>> But yes, it can be done, I guess - have fun!!
>>>
>>>
>>> On Monday, 21 August 2017 12:13:03 UTC+3, Tomáš Filo wrote:
>>>
 ‎I want to create plots/graphs for every month in same way like there
 are plots for last 30 days. So as you can see plot for last 30 days and for
 last year, you can see plots for every month in history and for every year
 in history too.

>>> --
>>> 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/to
>>> pic/weewx-user/eIsjC3K5o90/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> weewx-user+...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> 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/to
> pic/weewx-user/eIsjC3K5o90/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: Autostart WeeWX with systemd

2017-08-23 Thread vince


> How do I get "systemctl start weewx" to run automatically at boot up?
>
>
Adding to Andrew's "is your clock configured right" thinking

   - is ntp running ?   Do a 'ntpq -pn' and verify you're synched with the 
   upstream clock servers
   - if so, do a reboot (not powerdown/up) of your system and see if it 
   works. I'm guesing it will
   - then do a shutdown and pull the power for a few minutes and try it 
   again and see if it fails or works, to redo your power loss scenario

And please set debug=1 in weewx.conf and post the syslog from powerup to 
when weewx runs (or doesn't) in the last test...


-- 
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: Current Windspeed in Beaufort ? Bft?

2017-08-23 Thread WindnFog


I think I made a mistake on the cut and paste into the email and missed the 
$.  Glad it worked out for you.  


It was a quick and dirty coding example of one way to do it.  There may be 
better ways . . . 


-- 
- Paul VE1DX

--

Paul M Dunphy
Lake Echo, Nova Scotia

https://www.ve1dx.net  <--- Weather station



On Wednesday, August 23, 2017 at 10:11:08 AM UTC-3, David Hathaway wrote:
>
> Thank you.  Worked perfectly for me.  Since we are likely to be hit by a 
> tropical storm in the next day or two (I live in Houston, Texas), this will 
> be pretty interesting.
>
> On Tuesday, August 22, 2017 at 3:14:20 PM UTC-5, WindnFog wrote:
>>
>> If you want to avoid Java, I cobbled together some code based on gjr80's 
>> template and added it to /etc/weewx/skins/Standard/index.html.tmpl as 
>> follows:
>>
>> ##Calculate today's highest Beaufort based on wind speed in knots
>>   
>>   #if $varExists('day.windSpeed') and $day.windSpeed.max.raw is 
>> not None
>>   #if $unit.unit_type.windSpeed == 'mile_per_hour'
>>   #set $kts = $day.windSpeed.max.raw * 0.8689762
>>   #elif $unit.unit_type.windSpeed == 'km_per_hour'
>> #set $kts = $day.windSpeed.max.raw * 0.539956
>>   #elif $unit.unit_type.windSpeed == 'meter_per_second'
>> #set $kts = $day.windSpeed.max.raw * 1.943844
>>   #elif $unit.unit_type.windSpeed == 'knot'
>> #set $kts = $day.windSpeed.max.raw
>>   #else
>> #set $kts = 0
>>   #end if
>>   #if $kts < 1
>> #set $beaufort = 0
>> #set $word_beaufort = 'Calm'
>>   #elif $kts < 4
>> #set $beaufort = 1
>> #set $word_beaufort = 'Light air'
>>   #elif $kts < 7
>> #set $beaufort = 2
>> #set $word_beaufort = 'Light breeze'
>>   #elif $kts < 11
>> #set $beaufort = 3
>> #set $word_beaufort = 'Gentle breeze'
>>   #elif $kts < 17
>> #set $beaufort = 4
>> #set $word_beaufort = 'Moderate breeze'
>>   #elif $kts < 22
>> #set $beaufort = 5
>> #set $word_beaufort = 'Fresh breeze'
>>   #elif $kts < 28
>> #set $beaufort = 6
>> #set $word_beaufort = 'Strong breeze'
>>   #elif $kts < 34
>> #set $beaufort = 7
>> #set $word_beaufort = 'High wind'
>>   #elif $kts < 41
>> #set $beaufort = 8
>> #set $word_beaufort = 'Gale'
>>   #elif $kts < 48
>> #set $beaufort = 9
>> #set $word_beaufort = 'Strong gale'
>>   #elif $kts < 56
>> #set $beaufort = 10
>> #set $word_beaufort = 'Storm'
>>   #elif $kts < 64
>> #set $beaufort = 11
>> #set $word_beaufort = 'Violent storm'
>>   #else
>> #set $beaufort = 12
>> #set $word_beaufort = 'Hurricane'
>>   #end if
>>   #else
>> #set $beaufort = 'N/A'
>>   #end if
>>
>>  Put the above somewhere near the top, and then modify the Since Midnight 
>> table by adding a couple of lines in the High Wind row:
>>
>> 
>>   High Wind
>>   High Beaufort Scale
>> 
>> 
>>   $day.wind.max from $day.wind.gustdir at 
>> $day.wind.maxtime
>>   $beaufort or $word_beaufort at $day.wind.maxtime
>> 
>>
>> - Paul VE1DX
>>
>> https://www.ve1dx.net/ - private  - private 
>> 
>>
>>
>>
>>
>> On Sunday, March 16, 2014 at 12:50:02 PM UTC-3, Ronald Wildner wrote:
>>>
>>> Thanks !
>>>  With $current.windSpeed.raw and some Javascript  it was easy and fits 
>>> perfectly for me ! .raw was what I was looking for ;-)
>>>
>>>
>>> Am Sonntag, 16. März 2014 12:53:38 UTC+1 schrieb Andrew Milner:

 the simplest way would be to replace $current.windSpeed with something 
 like (($current.windSpeed.raw + 5) * 5) in the templates wherever needed I 
 would have thought.  More comolex to actually add the unit type to be 
 generally available, but possible - read the user manual for more details 
 on unit types  - under extensions I think, but could be ustomisation - not 
 sure which it comes under!!


 On 16 March 2014 11:12, Ronald Wildner  wrote:

> Thanks for the quick anwer ...
> I am pretty new to weewx ...
>  how can I now  add the calculated bft to my template ... (something 
> like $current.windSpeed.bft) ?
> Am Sonntag, 16. März 2014 09:08:27 UTC+1 schrieb Ronald Wildner:
>>
>> I am wondering if there is any hint to display current WindSpeed in 
>> Beaufort !
>> I used google and the search -function, but could not find anything 
>> adequate ;-)
>>
> -- 
> You received 

Re: [weewx-user] Re: Current Windspeed in Beaufort ? Bft?

2017-08-23 Thread David Hathaway
Thank you.  Worked perfectly for me.  Since we are likely to be hit by a 
tropical storm in the next day or two (I live in Houston, Texas), this will 
be pretty interesting.

On Tuesday, August 22, 2017 at 3:14:20 PM UTC-5, WindnFog wrote:
>
> If you want to avoid Java, I cobbled together some code based on gjr80's 
> template and added it to /etc/weewx/skins/Standard/index.html.tmpl as 
> follows:
>
> ##Calculate today's highest Beaufort based on wind speed in knots
>   
>   #if $varExists('day.windSpeed') and $day.windSpeed.max.raw is 
> not None
>   #if $unit.unit_type.windSpeed == 'mile_per_hour'
>   #set $kts = $day.windSpeed.max.raw * 0.8689762
>   #elif $unit.unit_type.windSpeed == 'km_per_hour'
> #set $kts = $day.windSpeed.max.raw * 0.539956
>   #elif $unit.unit_type.windSpeed == 'meter_per_second'
> #set $kts = $day.windSpeed.max.raw * 1.943844
>   #elif $unit.unit_type.windSpeed == 'knot'
> #set $kts = $day.windSpeed.max.raw
>   #else
> #set $kts = 0
>   #end if
>   #if $kts < 1
> #set $beaufort = 0
> #set $word_beaufort = 'Calm'
>   #elif $kts < 4
> #set $beaufort = 1
> #set $word_beaufort = 'Light air'
>   #elif $kts < 7
> #set $beaufort = 2
> #set $word_beaufort = 'Light breeze'
>   #elif $kts < 11
> #set $beaufort = 3
> #set $word_beaufort = 'Gentle breeze'
>   #elif $kts < 17
> #set $beaufort = 4
> #set $word_beaufort = 'Moderate breeze'
>   #elif $kts < 22
> #set $beaufort = 5
> #set $word_beaufort = 'Fresh breeze'
>   #elif $kts < 28
> #set $beaufort = 6
> #set $word_beaufort = 'Strong breeze'
>   #elif $kts < 34
> #set $beaufort = 7
> #set $word_beaufort = 'High wind'
>   #elif $kts < 41
> #set $beaufort = 8
> #set $word_beaufort = 'Gale'
>   #elif $kts < 48
> #set $beaufort = 9
> #set $word_beaufort = 'Strong gale'
>   #elif $kts < 56
> #set $beaufort = 10
> #set $word_beaufort = 'Storm'
>   #elif $kts < 64
> #set $beaufort = 11
> #set $word_beaufort = 'Violent storm'
>   #else
> #set $beaufort = 12
> #set $word_beaufort = 'Hurricane'
>   #end if
>   #else
> #set $beaufort = 'N/A'
>   #end if
>
>  Put the above somewhere near the top, and then modify the Since Midnight 
> table by adding a couple of lines in the High Wind row:
>
> 
>   High Wind
>   High Beaufort Scale
> 
> 
>   $day.wind.max from $day.wind.gustdir at $day.wind.maxtime
> 
>   $beaufort or $word_beaufort at $day.wind.maxtime
> 
>
> - Paul VE1DX
>
> https://www.ve1dx.net/
>
>
>
>
> On Sunday, March 16, 2014 at 12:50:02 PM UTC-3, Ronald Wildner wrote:
>>
>> Thanks !
>>  With $current.windSpeed.raw and some Javascript  it was easy and fits 
>> perfectly for me ! .raw was what I was looking for ;-)
>>
>>
>> Am Sonntag, 16. März 2014 12:53:38 UTC+1 schrieb Andrew Milner:
>>>
>>> the simplest way would be to replace $current.windSpeed with something 
>>> like (($current.windSpeed.raw + 5) * 5) in the templates wherever needed I 
>>> would have thought.  More comolex to actually add the unit type to be 
>>> generally available, but possible - read the user manual for more details 
>>> on unit types  - under extensions I think, but could be ustomisation - not 
>>> sure which it comes under!!
>>>
>>>
>>> On 16 March 2014 11:12, Ronald Wildner  wrote:
>>>
 Thanks for the quick anwer ...
 I am pretty new to weewx ...
  how can I now  add the calculated bft to my template ... (something 
 like $current.windSpeed.bft) ?
 Am Sonntag, 16. März 2014 09:08:27 UTC+1 schrieb Ronald Wildner:
>
> I am wondering if there is any hint to display current WindSpeed in 
> Beaufort !
> I used google and the search -function, but could not find anything 
> adequate ;-)
>
 -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups "Weewx user's group" group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/weewx-user/b7TqpYD9sxY/unsubscribe - 
 private 
 
  - private 
 .
 To unsubscribe from this group and all its topics, send an email to 
 weewx-user+...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>

-- 
You 

[weewx-user] Re: Autostart WeeWX with systemd

2017-08-23 Thread Andrew Milner
have you checked that a) weewx is not waiting for a valid time and b) the 
designated user has write access to required directories snd databases.

and finally c) what does the log say??

On Wednesday, 23 August 2017 13:35:06 UTC+3, Andrew Milner wrote:

> The wiki gives the instructions as:
>
> https://github.com/weewx/weewx/wiki/systemd
>
>
>
> On Wednesday, 23 August 2017 13:27:32 UTC+3, David Porter wrote:
>
>> I am attempting to use systemd on a Raspberry Pi 3 (Jessie) to autostart 
>> WeeWX. The goal being that WeeWX will automatically start up and start 
>> recording data and sending it to Wunderground after a reboot (e.g following 
>> a blackout).
>>
>> Here is my /etc/systemd/system/weewx.service file:
>>
>> # systemd configuration to run a single instance of weewx as a daemon
>>
>> [Unit]
>> Description=weewx weather system
>> Requires=time-sync.target
>> After=time-sync.target
>> RequiresMountsFor=/home
>>
>> [Service]
>> ExecStart=/usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid 
>> /etc/weewx/weewx.conf
>> ExecReload=/bin/kill -HUP $MAINPID
>> Type=simple
>> PIDFile=/var/run/weewx.pid
>> #User=weewx
>> #Group=weewx
>>
>> [Install]
>> WantedBy=multi-user.target
>>
>>
>> That .service file runs fine at start up. The terminal command "systemctl 
>> is-enabled weewx" returns "enabled". The terminal command "systemctl 
>> is-active weewx" returns "failed". That is, WeeWX has been enable, but is 
>> not active.
>>
>> I can then manually start WeeWX with "systemctl start weewx" and 
>> everything works fine. But I want to automate this manual step on the RPi 
>> boot up.
>>
>> How do I get "systemctl start weewx" to run automatically at boot up?
>>
>>

-- 
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: Autostart WeeWX with systemd

2017-08-23 Thread Andrew Milner
The wiki gives the instructions as:

https://github.com/weewx/weewx/wiki/systemd



On Wednesday, 23 August 2017 13:27:32 UTC+3, David Porter wrote:

> I am attempting to use systemd on a Raspberry Pi 3 (Jessie) to autostart 
> WeeWX. The goal being that WeeWX will automatically start up and start 
> recording data and sending it to Wunderground after a reboot (e.g following 
> a blackout).
>
> Here is my /etc/systemd/system/weewx.service file:
>
> # systemd configuration to run a single instance of weewx as a daemon
>
> [Unit]
> Description=weewx weather system
> Requires=time-sync.target
> After=time-sync.target
> RequiresMountsFor=/home
>
> [Service]
> ExecStart=/usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid 
> /etc/weewx/weewx.conf
> ExecReload=/bin/kill -HUP $MAINPID
> Type=simple
> PIDFile=/var/run/weewx.pid
> #User=weewx
> #Group=weewx
>
> [Install]
> WantedBy=multi-user.target
>
>
> That .service file runs fine at start up. The terminal command "systemctl 
> is-enabled weewx" returns "enabled". The terminal command "systemctl 
> is-active weewx" returns "failed". That is, WeeWX has been enable, but is 
> not active.
>
> I can then manually start WeeWX with "systemctl start weewx" and 
> everything works fine. But I want to automate this manual step on the RPi 
> boot up.
>
> How do I get "systemctl start weewx" to run automatically at boot up?
>
>

-- 
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] Autostart WeeWX with systemd

2017-08-23 Thread David Porter
I am attempting to use systemd on a Raspberry Pi 3 (Jessie) to autostart 
WeeWX. The goal being that WeeWX will automatically start up and start 
recording data and sending it to Wunderground after a reboot (e.g following 
a blackout).

Here is my /etc/systemd/system/weewx.service file:

# systemd configuration to run a single instance of weewx as a daemon

[Unit]
Description=weewx weather system
Requires=time-sync.target
After=time-sync.target
RequiresMountsFor=/home

[Service]
ExecStart=/usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid 
/etc/weewx/weewx.conf
ExecReload=/bin/kill -HUP $MAINPID
Type=simple
PIDFile=/var/run/weewx.pid
#User=weewx
#Group=weewx

[Install]
WantedBy=multi-user.target


That .service file runs fine at start up. The terminal command "systemctl 
is-enabled weewx" returns "enabled". The terminal command "systemctl 
is-active weewx" returns "failed". That is, WeeWX has been enable, but is 
not active.

I can then manually start WeeWX with "systemctl start weewx" and everything 
works fine. But I want to automate this manual step on the RPi boot up.

How do I get "systemctl start weewx" to run automatically at boot up?

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