Re: [weewx-user] Re: Problem with database weewx.sdb

2018-12-12 Thread gjr80
Hi,

Judging by the extensive log extract it seems that something has caused a 
problem with your logger and weeWX appears stuck trying to get the 
2018-12-07 01:20:00 GMT record from the logger. However, that record is 
older than the most recent record in your database and hence no records are 
downloaded. I suggest you dump your loggers memory then clear the console 
memory using wee_device. To do this:

1. stop weeWX
2. dump your loggers memory 
 
using the wee_device utility with the --dump action (doing this gives us 
the best chance of capturing any archive records that are stored in the 
logger but not in your database before we clear the console memory)'
3. clear the console memory 
 using 
wee_device with the --clear-memory action
4. start weeWX
5. monitor the log to ensure that archive records are being downloaded and 
saved to database every 5 minutes.

There were some earlier issues in your log with weeWX being unable to 
obtain loop packets from your console. This could have some contention 
between competing processes or your serial prt but it seems to have gone 
away in the later log. We will give it the benefit of the doubt for the 
time being.

The log also indicates that the console time has been substantially 
different to the RPi on a few occasions, weeWX will adjust the console time 
but this could be an indication of some temporal issues with your RPi or 
perhaps the console.

Gary

On Thursday, 13 December 2018 07:49:38 UTC+10, Heriberto Ochoa wrote:
>
>
>
> On Tue, Dec 11, 2018 at 8:37 PM Andrew Milner  > wrote:
>
>> If you posted the log it may help us to be able to help you.
>>
>>
>>
>> On Wednesday, 12 December 2018 04:07:52 UTC+2, h.o...@sistemasa3.com 
>> wrote:
>>>
>>> The station is Davis Vantage Pro 2, and the sistem is Raspbian 
>>>
>>> On Tuesday, December 11, 2018 at 6:56:29 PM UTC-7, h.o...@sistemasa3.com 
>>> wrote:

 I have a problem with the database, never save the information in it, 
 is there any way to set the save time? or verify what is the problem?

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx-user+...@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: One instance to two databases

2018-12-12 Thread gjr80
Was thinking about this myself this morning. With weeWX-WD we implemented a 
separate (local) database by creating our own WdArchive service which uses 
a different binding and schema. There is probably no reason why a similar 
approach could not be taken and a service implemented based on StdArchive 
that uses a different binding but the same schema. Certainly something 
weeWX cannot do out of the box, it would require knowledge of weeWX 
workings and a bit of python to make it work. 

Can't really think of a reason why you would take this approach though; way 
too complex and I would expect somewhat fragile. SQL replication as 
suggested by Pat would be far easier and more robust I expect.

Gary

On Thursday, 13 December 2018 11:07:32 UTC+10, Pat wrote:
>
> No, weewx doesn't do that. 
>
> You could setup MySQL replication and have the MySQL server handle that 
> though. 
>
> On Wednesday, December 12, 2018 at 5:53:30 PM UTC-5, Rodrigo Scuissiato 
> wrote:
>>
>> Is it possible to have one instance of weewx running and recording to two 
>> databases?
>> One mysql local and one remote?
>
>

-- 
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: Belchertown Skin 0.8.1 released - Suggestion

2018-12-12 Thread Pat
haha, nope, maybe an early bed time

On Wednesday, December 12, 2018 at 8:00:05 PM UTC-5, Colin Larsen wrote:
>
> Quick, more coffee!  :D
>
> On Thu, 13 Dec 2018, 13:56 Pat  wrote:
>
>> Wow, I'm having a hard time replying clearly tonight. 
>>
>> Find this. It should say "false". 
>>
>> navigator: {
>>  enabled: false
>>  },
>>
>>
>> and set it to true :)
>>
>>
>> On Wednesday, December 12, 2018 at 7:54:51 PM UTC-5, Pat wrote:
>>>
>>> The skin actually uses HighStock 
>>> 
>>>  but 
>>> has the timeline disabled. Feel free to enable it in your setup :)
>>>
>>> To do so, edit the skins/Belchertown/js/highcharts-dayplots.js and 
>>> weekplot, monthplot and yearplot.js files. 
>>>
>>> Then search for 
>>>
>>>
>>> navigator: {
>>> enabled: true
>>> },
>>>
>>> and set to true for the plots you want it enabled for. You may have to 
>>> do this for multiple plots depending on how you want to customize it.
>>>
>>> Save and restart weewx. Wait for an archive interval and refresh the 
>>> page. 
>>>
>>> See attached image for an example. 
>>>
>>> On Tuesday, December 11, 2018 at 11:38:07 PM UTC-5, WILWetter25 wrote:

 The Akin use Highcharts currently.
 In the link I posted you will See a example for HighStock. The 
 difference between Highcharts and HighStock: In HighStock you can choose a 
 Date, time. 
>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx-user+...@googlegroups.com .
>> 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: One instance to two databases

2018-12-12 Thread Pat
No, weewx doesn't do that. 

You could setup MySQL replication and have the MySQL server handle that 
though. 

On Wednesday, December 12, 2018 at 5:53:30 PM UTC-5, Rodrigo Scuissiato 
wrote:
>
> Is it possible to have one instance of weewx running and recording to two 
> databases?
> One mysql local and one remote?

-- 
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: One more option for Build Your Own enthusiasts

2018-12-12 Thread Pat
This looks like a great kit! I have the start of a DIY kit that I look at 
every now and then but haven't done anything with it. I bought a Davis VP2+ 
instead :) 

This makes me think about picking up the kit to tinker around with

On Tuesday, December 11, 2018 at 10:53:25 PM UTC-5, Louis De Lange wrote:
>
> I recently came across a really excellent solution for putting together 
> your own weather station on the cheap with high quality sensors - and most 
> importantly a very useful weather HAT to use with a Raspberry PI to connect 
> all the sensors.
>
> It comes complete with a 4 part step by step tutorial to assemble the 
> whole station, and basic code to upload the data to and online service - 
> see link below:
>
> https://www.bc-robotics.com/tutorials/raspberry-pi-weather-station-part-1/
>
> I completed my own installation based on the instructions in the tutorial 
> and my station running on weewx is active at the link below
>
> http://peachlandweather.ca/mystation/
>
> For the outdoor portion I used a Raspberry Pi Zero W, with the weather 
> HAT.  Weewx is running indoors in a FreeBSD jail, using a stock Interceptor 
> driver.  I modified the basic upload code provided in the tutorial quite 
> extensively to generate upload loops that matched the Observer URLs 
> supported by the Interceptor driver, and also to produce derived 
> observations not included in the original code.
>
> The upload code is attached for anyone who might be interested in trying 
> to assemble their own.
>
> I   tested the results from using the station against my Vantage Pro 2 and 
> so far it seems to be pretty close - for less than 20% of the cost of a 
> Vantage Pro.
>

-- 
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: Belchertown Skin 0.8.1 released - Suggestion

2018-12-12 Thread Colin Larsen
Quick, more coffee!  :D

On Thu, 13 Dec 2018, 13:56 Pat  Wow, I'm having a hard time replying clearly tonight.
>
> Find this. It should say "false".
>
> navigator: {
>  enabled: false
>  },
>
>
> and set it to true :)
>
>
> On Wednesday, December 12, 2018 at 7:54:51 PM UTC-5, Pat wrote:
>>
>> The skin actually uses HighStock
>> 
>>  but
>> has the timeline disabled. Feel free to enable it in your setup :)
>>
>> To do so, edit the skins/Belchertown/js/highcharts-dayplots.js and
>> weekplot, monthplot and yearplot.js files.
>>
>> Then search for
>>
>>
>> navigator: {
>> enabled: true
>> },
>>
>> and set to true for the plots you want it enabled for. You may have to do
>> this for multiple plots depending on how you want to customize it.
>>
>> Save and restart weewx. Wait for an archive interval and refresh the
>> page.
>>
>> See attached image for an example.
>>
>> On Tuesday, December 11, 2018 at 11:38:07 PM UTC-5, WILWetter25 wrote:
>>>
>>> The Akin use Highcharts currently.
>>> In the link I posted you will See a example for HighStock. The
>>> difference between Highcharts and HighStock: In HighStock you can choose a
>>> Date, time.
>>
>> --
> 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.


[weewx-user] Re: Belchertown Skin 0.8.1 released - Suggestion

2018-12-12 Thread Pat
Wow, I'm having a hard time replying clearly tonight. 

Find this. It should say "false". 

navigator: {
 enabled: false
 },


and set it to true :)


On Wednesday, December 12, 2018 at 7:54:51 PM UTC-5, Pat wrote:
>
> The skin actually uses HighStock 
> 
>  but 
> has the timeline disabled. Feel free to enable it in your setup :)
>
> To do so, edit the skins/Belchertown/js/highcharts-dayplots.js and 
> weekplot, monthplot and yearplot.js files. 
>
> Then search for 
>
>
> navigator: {
> enabled: true
> },
>
> and set to true for the plots you want it enabled for. You may have to do 
> this for multiple plots depending on how you want to customize it.
>
> Save and restart weewx. Wait for an archive interval and refresh the page. 
>
> See attached image for an example. 
>
> On Tuesday, December 11, 2018 at 11:38:07 PM UTC-5, WILWetter25 wrote:
>>
>> The Akin use Highcharts currently.
>> In the link I posted you will See a example for HighStock. The difference 
>> between Highcharts and HighStock: In HighStock you can choose a Date, time. 
>
>

-- 
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: Belchertown Skin 0.8.1 released - Suggestion

2018-12-12 Thread Pat
The skin actually uses HighStock 

 but 
has the timeline disabled. Feel free to enable it in your setup :)

To do so, edit the skins/Belchertown/js/highcharts-dayplots.js and 
weekplot, monthplot and yearplot.js files. 

Then search for 


navigator: {
enabled: true
},

and set to true for the plots you want it enabled for. You may have to do 
this for multiple plots depending on how you want to customize it.

Save and restart weewx. Wait for an archive interval and refresh the page. 

See attached image for an example. 

On Tuesday, December 11, 2018 at 11:38:07 PM UTC-5, WILWetter25 wrote:
>
> The Akin use Highcharts currently.
> In the link I posted you will See a example for HighStock. The difference 
> between Highcharts and HighStock: In HighStock you can choose a Date, time. 

-- 
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: Belchertown Skin 0.8.1 released - Suggestion

2018-12-12 Thread Pat
The skin actually uses HighStock 

 
but has the timeline disabled. Feel free to enable it in your setup :)

On Tuesday, December 11, 2018 at 11:38:07 PM UTC-5, WILWetter25 wrote:
>
> The Akin use Highcharts currently.
> In the link I posted you will See a example for HighStock. The difference 
> between Highcharts and HighStock: In HighStock you can choose a Date, time. 

-- 
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: Weewx on OSX High Sierra (10.13.6), newbie

2018-12-12 Thread Tom Buckler


bump Anyone? ... Can this run on OS X?

-- 
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] One instance to two databases

2018-12-12 Thread Rodrigo Scuissiato
Is it possible to have one instance of weewx running and recording to two 
databases?
One mysql local and one remote?

-- 
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: table archive_day_barometer already exists

2018-12-12 Thread kutzenco
Dave,

That sounds like a great feature addition. I'd appreciate you sharing a 
copy of the script with me after you write it. In my implementation, the 
rsync "skin" gives me an offline copy of the database each night (or more 
or less often) and I can set a scheduled job to run your script against the 
offline copy automatically. If if finds that the database is corrupted, I 
can go back to an earlier database snapshot created by the Synology 
software. I like it!
phil

On Wednesday, December 12, 2018 at 4:16:43 PM UTC-5, Dave Harper wrote:
>
> Phil,
>
> One of the things I will be implementing in my new backup strategy is a 
> check to make sure the database isn't corrupted.  This can be done using 
> command line parameters to sqlite3.  When run manually, it looks something 
> like:
> pi@Weather:~ $ sqlite3 weewx.sdb 'pragma integrity_check'
> ok
> pi@Weather:~ $
> I will be including this in a new Python script which will send me an 
> email if it detects corruption.  Otherwise, it will archive that database 
> as "known good".  This should give me an early warning if something goes 
> wrong.  
>
> Dave
>   
>
> On Wednesday, December 12, 2018 at 10:36:09 AM UTC-6, kutz...@gmail.com 
> wrote:
>>
>> In the meantime, I can increase the time between rsync copies, as my 
>> Davis console should buffer about  a week's worth of archive data. That 
>> would give me more time to react to any database corruption.
>>
>> phil
>>
>>

-- 
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: table archive_day_barometer already exists

2018-12-12 Thread Dave Harper
Phil,

One of the things I will be implementing in my new backup strategy is a 
check to make sure the database isn't corrupted.  This can be done using 
command line parameters to sqlite3.  When run manually, it looks something 
like:
pi@Weather:~ $ sqlite3 weewx.sdb 'pragma integrity_check'
ok
pi@Weather:~ $
I will be including this in a new Python script which will send me an email 
if it detects corruption.  Otherwise, it will archive that database as 
"known good".  This should give me an early warning if something goes 
wrong.  

Dave
  

On Wednesday, December 12, 2018 at 10:36:09 AM UTC-6, kutz...@gmail.com 
wrote:
>
> In the meantime, I can increase the time between rsync copies, as my Davis 
> console should buffer about  a week's worth of archive data. That would 
> give me more time to react to any database corruption.
>
> phil
>
>

-- 
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: (Off Topic?) How does weewx tell systemctl it is running

2018-12-12 Thread vince
On Wednesday, December 12, 2018 at 1:03:02 AM UTC-8, mwall wrote:
>
>  (systemd is *supposed* to be just an init system, but it continues to 
> extend beyond that, much like a virus or poorly designed/implemented 
> software)
>
>
>
Let it go man, the sysV init and anybody-but-systemd camps lost that war 
years ago..
(although yes, it is sure a Borg, much like NetworkManager is becoming)

-- 
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: One more option for Build Your Own enthusiasts

2018-12-12 Thread Colin Larsen
Yeah the BME280 is usually very accurate in my experience. There is no
reason for this station not to perform as good as any other. The only
initial item I would add would be outdoor humidity, rather than indoor or
as well as. The DS18 temp sensor is an oldy but a goody but an SHT31 or
similar would be better I think. Although you may need I2C bus extenders to
take that outside.

I'm using a WeatherDuino kit which is Arduino based but really easy to get
up and going and very flexible. It also includes options for solar and UV
which I wanted


Cheers
Colin

On Thu, 13 Dec 2018, 08:45 Louis De Lange 
>
> On Wednesday, 12 December 2018 08:24:48 UTC-8, P Simmons wrote:
>
>
>> Please define "pretty close".
>> Thanks!
>>
>
> Check it out for yourself on the website below.
>
> The only thing that is slightly off is the humidity and this is due to the
> mounting of the sensor in a box that allows the temperature inside the box
> to be about 2 - 3 Celsius higher than the true outdoor temp.  When I take
> the lid off the box and expose the sensor to the proper outdoor
> temperature, the humidity reading is within 1% of the Vantage reading, with
> no calibration.  I have a new Stevenson screen on order to improve the
> sensor location, so that should fix the humidity issue.  I could fix it
> through calibration but I prefer to do it properly.
>
> Reference Weather Station - Vantage Pro 2
> www.peachlandweather.ca
>
> New homebrew station
> www.peachlandweather.ca/mystation
>
> --
> 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.


[weewx-user] Re: (Off Topic?) How does weewx tell systemctl it is running

2018-12-12 Thread vince
On Tuesday, December 11, 2018 at 1:19:53 AM UTC-8, vk3...@gmail.com wrote:

> Does anyone know what weewx does when in the main packet loop that tells 
> systemctl that the service is running in the 'genLoopPackets' area that it 
> does not do in the 'genStartuprecords' space?
>
>
>
Try a little googling for the messages you mentioned, with 'weewx' and any 
process IDs omitted from your query

   - google for => "systemd[1]: holdoff time over, scheduling restart."
   - google for => "systemd[1] Supervising process which is not our child. 
   We'll most likely not notice when it exits."



-- 
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: One more option for Build Your Own enthusiasts

2018-12-12 Thread Louis De Lange


On Wednesday, 12 December 2018 08:24:48 UTC-8, P Simmons wrote:
 

> Please define "pretty close".
> Thanks!
>
 
Check it out for yourself on the website below.  

The only thing that is slightly off is the humidity and this is due to the 
mounting of the sensor in a box that allows the temperature inside the box 
to be about 2 - 3 Celsius higher than the true outdoor temp.  When I take 
the lid off the box and expose the sensor to the proper outdoor 
temperature, the humidity reading is within 1% of the Vantage reading, with 
no calibration.  I have a new Stevenson screen on order to improve the 
sensor location, so that should fix the humidity issue.  I could fix it 
through calibration but I prefer to do it properly.

Reference Weather Station - Vantage Pro 2
www.peachlandweather.ca 

New homebrew station
www.peachlandweather.ca/mystation

-- 
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: table archive_day_barometer already exists

2018-12-12 Thread kutzenco
What I do is outlined in the weewx wiki here: 
https://github.com/weewx/weewx/wiki/Using-the-RSYNC-skin-as-a-backup-solution

I added the following to weewx.conf:













*[[RSYNCSQL]]# This backs up the sqlite databases to Diskstation 
skin = RsyncHTML_ROOT = /home/weewx/archive
server = 10.0.10.225user = weewxpath = 
/volume1/homes/weewx/archive_backup# every night at 
midnight, run this reportreport_timing = @daily
delete = 0*

The nice thing is that the backup is run synchronously within weewx 
ensuring the database is not being written to during the copy. From here - 
on my Synology NAS - I can set up a cron-driven backup script as you do, or 
utilize a purpose-written backup program like Duplicity. 

I haven't done that last part yet, so I need to catch any corruption within 
24 hours or my copy is overwritten by the corrupted database file. But, I 
plan to implement a backup that gives me multiple snapshots to choose from 
if I need to do a restore. I'm pretty sure Synology has a couple of backup 
packages that I could use.

In the meantime, I can increase the time between rsync copies, as my Davis 
console should buffer about  a week's worth of archive data. That would 
give me more time to react to any database corruption.

phil


On Wednesday, December 12, 2018 at 2:34:24 AM UTC-5, Dave Harper wrote:
>
> Gary,
>
> The backup strategy I use is a Python script I wrote that is started by 
> cron every night.  I had read that there could be a problem if the database 
> is copied while it's being updated.  The database is updated once a minute 
> by weeWX so the script monitors the mtime of the weewx.sdb file, waits for 
> the timestamp to change then waits about 15 seconds more before copying it 
> to a subdirectory off my home directory.  I also copy the /etc/weewx 
> directory into the same backup subdirectory and then the script calls 
> Duplicity to do the actual backup.  Duplicity works by starting with a full 
> backup the first time around and then doing incrementals from then on.  A 
> restore starts with the original full backup and then applies all 
> incremental changes to get to the target restore date.  To keep a restore 
> process within reason, I only do a month of incrementals and on the first 
> of each month the script creates a new monthly directory on the NAS.  This 
> strategy has seemed to work well over the past year or so and looking into 
> why it failed this time around will be one of the top priorities for 
> tomorrow.
>
> Dave
>

-- 
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: One more option for Build Your Own enthusiasts

2018-12-12 Thread P Simmons


On Tuesday, December 11, 2018 at 9:53:25 PM UTC-6, Louis De Lange wrote:
>
> I recently came across a really excellent solution for putting together 
> your own weather station on the cheap with high quality sensors - and most 
> importantly a very useful weather HAT to use with a Raspberry PI to connect 
> all the sensors.
>
> It comes complete with a 4 part step by step tutorial to assemble the 
> whole station, and basic code to upload the data to and online service - 
> see link below:
>
> https://www.bc-robotics.com/tutorials/raspberry-pi-weather-station-part-1/
>
> I completed my own installation based on the instructions in the tutorial 
> and my station running on weewx is active at the link below
>
> http://peachlandweather.ca/mystation/
>
> For the outdoor portion I used a Raspberry Pi Zero W, with the weather 
> HAT.  Weewx is running indoors in a FreeBSD jail, using a stock Interceptor 
> driver.  I modified the basic upload code provided in the tutorial quite 
> extensively to generate upload loops that matched the Observer URLs 
> supported by the Interceptor driver, and also to produce derived 
> observations not included in the original code.
>
> The upload code is attached for anyone who might be interested in trying 
> to assemble their own.
>
> I   tested the results from using the station against my Vantage Pro 2 and 
> so far it seems to be pretty close - for less than 20% of the cost of a 
> Vantage Pro.
>

Please define "pretty close".
Thanks!

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


[weewx-user] Re: (Off Topic?) How does weewx tell systemctl it is running

2018-12-12 Thread tomnykds
BTW, if there's nothing useful in /var/log/messages (or where ever you log 
weewx), try journalctl (that's a cmd).  It dumps systemd's log.
googling that message does imply that weewx crashed, so also check the log 
for weewx's pid before and after you see that.

Chris

-- 
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: (Off Topic?) How does weewx tell systemctl it is running

2018-12-12 Thread mwall


On Tuesday, December 11, 2018 at 4:19:53 AM UTC-5, vk3anz wrote:
>
>
> Does anyone know what weewx does when in the main packet loop that tells 
> systemctl that the service is running in the 'genLoopPackets' area that it 
> does not do in the 'genStartuprecords' space?
>

weewx does not know or care about systemd.  nor should it.  (systemd is 
*supposed* to be just an init system, but it continues to extend beyond 
that, much like a virus or poorly designed/implemented software)

could you verify that weewx is actually running continuously through these 
episodes?

it is possible that you are experiencing the same sudden-cessation-of-weewx 
that was reported in this thread:

https://groups.google.com/forum/#!topic/weewx-user/oSN_aT6MA-4

and systemd is simply starting a new weewx process since it noticed that 
the original process is now dead.

this message:

Dec 11 20:02:08 weather systemd[1]: Stopping weewx weather system...

might be misleading - systemd is probably not, in fact, stopping weewx.  it 
is probably just cleaning up whatever it uses to keep track of the weewxd 
process.

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.


[weewx-user] Re: table archive_day_barometer already exists

2018-12-12 Thread gjr80
Good stuff, seems well thought out. Hope you find the issue.

Gary

On Wednesday, 12 December 2018 17:34:24 UTC+10, Dave Harper wrote:
>
> Gary,
>
> The backup strategy I use is a Python script I wrote that is started by 
> cron every night.  I had read that there could be a problem if the database 
> is copied while it's being updated.  The database is updated once a minute 
> by weeWX so the script monitors the mtime of the weewx.sdb file, waits for 
> the timestamp to change then waits about 15 seconds more before copying it 
> to a subdirectory off my home directory.  I also copy the /etc/weewx 
> directory into the same backup subdirectory and then the script calls 
> Duplicity to do the actual backup.  Duplicity works by starting with a full 
> backup the first time around and then doing incrementals from then on.  A 
> restore starts with the original full backup and then applies all 
> incremental changes to get to the target restore date.  To keep a restore 
> process within reason, I only do a month of incrementals and on the first 
> of each month the script creates a new monthly directory on the NAS.  This 
> strategy has seemed to work well over the past year or so and looking into 
> why it failed this time around will be one of the top priorities for 
> tomorrow.
>
> Dave
>

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