Re: [weewx-user] Re: Belchertown About Page WeeWx Variables

2019-02-22 Thread Colin Larsen
I'm pretty sure my (very basic) about.inc file is about the same as yours.
I've added consBatteryVoltage which works fine too. If you follow what Gary
has mentioned I'm sure a clue will turn up to help us help you :)

Welcome to the 41South weather site. This site uses a WeatherDuino Arduino
weather station




Station hardware: WeatherDuino emulating a $station.hardware

Transmitter battery voltage: $current.consBatteryVoltage

Server uptime: $station.os_uptime

WeeWX uptime: $station.uptime

WeeWX version: $station.version

Belchertown Skin Version: $belchertown_version




On Sat, Feb 23, 2019 at 8:48 PM gjr80  wrote:

> It's nothing to do with PHP - there is no PHP in the Belchertown extension
> nor does WeeWX/Cheetah use it, simply put a #include will cause Cheetah
> to appropriately display any search list entries it encounters. If it is
> not and it is displaying the tags as literal text it is because the tags
> concerned don't exist in the search list being used. Colin's success would
> indicate the issue is not with the Belchertown skin but rather a missing
> file or config setting. You may get some clues by running with debug=1 and
> looking at the log during report generation. It would certainly pay to look
> at the contents of the relevant Belchertown skin directories to verify
> everything is where it should be.
>
> Gary
>
> On Saturday, 23 February 2019 16:29:27 UTC+10, tor...@torrin.org wrote:
>>
>> Yes, clearly, and the variables would not show up on the about page as G
>> Hammer show unless there was actually an about.inc.  Mine works fine, but I
>> am not passing any variables into it.  I suspect there is a PHP wrapper
>> that is needed  - are you using your about.inc to display variables?  If
>> so, could you please post it up?
>>
>> On Saturday, February 23, 2019 at 12:09:22 AM UTC-6, Colin Larsen wrote:
>>>
>>> You need to remove the .example off the end so it is just about.inc
>>>
>>> On Sat, 23 Feb 2019, 19:07 ,  wrote:
>>>
 Yup, and I drop those variables in there and they do not render
 either.  (I just tried it).   I do not think the about.inc.example supports
 dropping variables into it as it seems to be straight html.

 On Friday, February 22, 2019 at 11:18:54 PM UTC-6, Colin Larsen wrote:
>
> Hmm, not quite sure what you are doing different to me, but if you
> edit the file as per instructions it certainly works. Can you confirm that
> your file is just called about.inc and it resides in the skins/Belchertown
> directory?
>
> On Sat, Feb 23, 2019 at 5:33 PM  wrote:
>
>> All answers are correct, yet if you put those variables into
>> about.inc, the do not work.  I am wondering if you need to have the page
>> PHP like.  Maybe Pat can post the source for his?
>>
>> On Friday, February 22, 2019 at 10:15:13 PM UTC-6, Colin Larsen wrote:
>>>
>>> Creating About Page and Records Page
>>>
>>> The About Page and Records Page offer some areas for custom HTML to
>>> be run. To create or edit these pages, go to the skins/Belchertown 
>>> folder.
>>> These files should not be overwritten during skin upgrdades, but it's
>>> always best to have a backup just in case!
>>>
>>>- Create (or edit) the skins/Belchertown/about.inc and
>>>skins/Belchertown/records.inc files with your text editor, such
>>>as Notepad or Nano.
>>>   - These files take full HTML, so you can get fancy if you
>>>   want.
>>>   - You can view, and use the sample file about.inc.example
>>>   
>>> 
>>>and records.inc.example
>>>   
>>> .
>>>   Just rename to remove the .example, edit and you should be
>>>   good to go.
>>>- Wait for an archive interval for the pages to be generated.
>>>
>>>
>>> On Sat, Feb 23, 2019 at 5:13 PM Colin Larsen 
>>> wrote:
>>>
 You should just edit the Inc file, about.inc

 On Sat, 23 Feb 2019, 17:04 Andrew Milner, 
 wrote:

> which file did you edit??  looks as though you perhaps changed the
> .html file instead of the .html.tmpl file
>
>
>
>
>
>
> On Saturday, 23 February 2019 04:54:28 UTC+2, G Hammer wrote:
>>
>> I'd like to include some WeeWX variables in the About page, but
>> when I use the HTML sample I get the variable names as output.
>>
>> This:
>> 
>> Station hardware: $station.hardware
>> Server uptime: $station.os_uptime
>> WeeWX uptime: $station.uptime
>> WeeWX version: $station.version
>> Belchertown Skin Version: 

Re: [weewx-user] I need help viewing the archive of Davis vantage vue + RPi3 + weewx user

2019-02-22 Thread gjr80
Hi,

On Saturday, 23 February 2019 14:35:53 UTC+10, Mohamed Al-Sabri wrote:Ouh 
> OK now I understand the interval thing! 
> How do I know that I’m running two instances? I’m not sure how to kill one 
> of them or which one I kill in order to get the data. 
>

This part of your log extract shows two different processes (1393 and 1338) 
trying to communicate with you station, it happens if you start WeeWX again 
with stopping it first or doing a restart:

Feb 22 20:45:10 raspberrypi weewx[1393]: engine: Starting up weewx version 
3.9.1
Feb 22 20:45:10 raspberrypi weewx[1393]: vantage: Gentle wake up of console 
successful
Feb 22 20:45:10 raspberrypi weewx[1393]: manager: Daily summary version is 
2.0
Feb 22 20:45:10 raspberrypi weewx[1393]: manager: Daily summary version is 
2.0
Feb 22 20:45:10 raspberrypi weewx[1393]: engine: Clock error is -0.09 
seconds (positive is fast)
Feb 22 20:45:10 raspberrypi weewx[1393]: vantage: Getting archive packets 
since 2017-01-24 04:00:00 +04 (1485216000)
Feb 22 20:45:10 raspberrypi weewx[1393]: vantage: Gentle wake up of console 
successful
Feb 22 20:45:10 raspberrypi weewx[1393]: vantage: Retrieving 138 page(s); 
starting index= 0
Feb 22 20:45:10 raspberrypi weewx[1393]: vantage: DMPAFT complete: page 
timestamp 2017-01-23 12:00:00 +04 (1485158400) less than final timestamp 
2017-01-24 04:00:00 +04 (1485216000)
Feb 22 20:45:10 raspberrypi weewx[1393]: vantage: Catch up complete.
Feb 22 20:45:10 raspberrypi weewx[1393]: engine: Starting main packet loop.
Feb 22 20:45:10 raspberrypi weewx[1393]: vantage: Gentle wake up of console 
successful
Feb 22 20:45:10 raspberrypi weewx[1393]: vantage: Requesting 200 LOOP 
packets.
Feb 22 20:45:10 raspberrypi weewx[1393]: vantage: Gentle wake up of console 
successful
Feb 22 20:46:00 raspberrypi weewx[1338]: engine: retrying...
Feb 22 20:46:00 raspberrypi weewx[1338]: engine: Using configuration file /
home/weewx/weewx.conf
Feb 22 20:46:00 raspberrypi weewx[1338]: engine: Debug is 1
Feb 22 20:46:00 raspberrypi weewx[1338]: engine: Initializing engine
Feb 22 20:46:00 raspberrypi weewx[1338]: engine: Loading station type 
Vantage (weewx.drivers.vantage)
Feb 22 20:46:00 raspberrypi weewx[1338]: vantage: Driver version is 3.1.1
Feb 22 20:46:00 raspberrypi weewx[1338]: vantage: Opened up serial port /dev
/ttyUSB0; baud 19200; timeout 4.00
Feb 22 20:46:00 raspberrypi weewx[1338]: vantage: Gentle wake up of console 
successful
Feb 22 20:46:04 raspberrypi weewx[1393]: vantage: LOOP try #1; error: 
Expected to read 99 chars; got 2 instead
Feb 22 20:46:04 raspberrypi weewx[1393]: vantage: Requesting 200 LOOP 
packets.
Feb 22 20:46:04 raspberrypi weewx[1393]: vantage: Gentle wake up of console 
successful
Feb 22 20:46:04 raspberrypi weewx[1338]: vantage: No  received from 
console
Feb 22 20:46:04 raspberrypi weewx[1338]: vantage: _determine_hardware; retry 
#0
Feb 22 20:46:04 raspberrypi weewx[1338]: vantage: Hardware type is 76
Feb 22 20:46:04 raspberrypi weewx[1338]: vantage: No  received from 
console

To kill one of them use:

$ sudo kill -9 PID

where PID is the process ID, in this case 1338 or 1393. I would kill the 
latter one 1393.

You also have a few other issues. Whilst WeeWX is clearly communicating 
with your console it seems to have regular problems in obtaining loop 
packets from your console:

Feb 22 20:21:34 raspberrypi weewx[711]: vantage: LOOP try #2; error: 
Expected to read 99 chars; got 0 instead
Feb 22 20:21:34 raspberrypi weewx[711]: vantage: Requesting 200 LOOP packets
.
Feb 22 20:21:34 raspberrypi weewx[711]: vantage: Rude wake up of console 
successful
Feb 22 20:21:38 raspberrypi dhcpcd[514]: wlan0: no IPv6 Routers available
Feb 22 20:21:38 raspberrypi weewx[711]: vantage: LOOP try #3; error: 
Expected to read 99 chars; got 0 instead
Feb 22 20:21:38 raspberrypi weewx[711]: vantage: Requesting 200 LOOP packets
.
Feb 22 20:21:38 raspberrypi weewx[711]: vantage: Rude wake up of console 
successful

It may be these errors are due to the undervoltage issue you have or maybe 
it it something else. I would make sure you deal with the undervoltage 
issue though. I owudl also make sure your logger is properly seated in the 
back of the console.

As you are aware you also have an archive period mismatch, that in itself 
does not cause a problem as in your case WeeWX will default to hardware 
archive interval (30 minutes). If you wish to retain a 30 minute archive 
interval then you might want to change archive_interval under [StdArchive] 
in weewx.conf to 1800, if nothing else it silences that warning. Of course 
if you do want a 5 minute archive interval then you need to set the archive 
interval in the console either through the panel buttons or with wee_device. 
If using wee_device you need to stop WeeWX first (all instances in your 
case) - only one program can communicate with the console at once.

As changing the archive interval on the console or with wee_device will 
clear the logger you might like to use wee_device 

Re: [weewx-user] Re: Belchertown About Page WeeWx Variables

2019-02-22 Thread torrin
Yes, clearly, and the variables would not show up on the about page as G 
Hammer show unless there was actually an about.inc.  Mine works fine, but I 
am not passing any variables into it.  I suspect there is a PHP wrapper 
that is needed  - are you using your about.inc to display variables?  If 
so, could you please post it up?

On Saturday, February 23, 2019 at 12:09:22 AM UTC-6, Colin Larsen wrote:
>
> You need to remove the .example off the end so it is just about.inc
>
> On Sat, 23 Feb 2019, 19:07 , > wrote:
>
>> Yup, and I drop those variables in there and they do not render either.  
>> (I just tried it).   I do not think the about.inc.example supports dropping 
>> variables into it as it seems to be straight html.
>>
>> On Friday, February 22, 2019 at 11:18:54 PM UTC-6, Colin Larsen wrote:
>>>
>>> Hmm, not quite sure what you are doing different to me, but if you edit 
>>> the file as per instructions it certainly works. Can you confirm that your 
>>> file is just called about.inc and it resides in the skins/Belchertown 
>>> directory?
>>>
>>> On Sat, Feb 23, 2019 at 5:33 PM  wrote:
>>>
 All answers are correct, yet if you put those variables into about.inc, 
 the do not work.  I am wondering if you need to have the page PHP like.  
 Maybe Pat can post the source for his?

 On Friday, February 22, 2019 at 10:15:13 PM UTC-6, Colin Larsen wrote:
>
> Creating About Page and Records Page
>
> The About Page and Records Page offer some areas for custom HTML to be 
> run. To create or edit these pages, go to the skins/Belchertown folder. 
> These files should not be overwritten during skin upgrdades, but it's 
> always best to have a backup just in case!
>
>- Create (or edit) the skins/Belchertown/about.inc and 
>skins/Belchertown/records.inc files with your text editor, such as 
>Notepad or Nano.
>   - These files take full HTML, so you can get fancy if you want.
>   - You can view, and use the sample file about.inc.example 
>   
> 
>and records.inc.example 
>   
> .
>  
>   Just rename to remove the .example, edit and you should be good 
>   to go.
>- Wait for an archive interval for the pages to be generated.
>
>
> On Sat, Feb 23, 2019 at 5:13 PM Colin Larsen  
> wrote:
>
>> You should just edit the Inc file, about.inc
>>
>> On Sat, 23 Feb 2019, 17:04 Andrew Milner,  
>> wrote:
>>
>>> which file did you edit??  looks as though you perhaps changed the 
>>> .html file instead of the .html.tmpl file
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Saturday, 23 February 2019 04:54:28 UTC+2, G Hammer wrote:

 I'd like to include some WeeWX variables in the About page, but 
 when I use the HTML sample I get the variable names as output.

 This:
 
 Station hardware: $station.hardware
 Server uptime: $station.os_uptime
 WeeWX uptime: $station.uptime
 WeeWX version: $station.version
 Belchertown Skin Version: $belchertown_version
 
   

 Results in this:


- Station hardware: $station.hardware
- Server uptime: $station.os_uptime
- WeeWX uptime: $station.uptime
- WeeWX version: $station.version
- Belchertown Skin Version: $belchertown_version

 As long as I'm on the topic, is there a list of inbuilt variables?

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

Re: [weewx-user] Re: Belchertown About Page WeeWx Variables

2019-02-22 Thread Colin Larsen
You need to remove the .example off the end so it is just about.inc

On Sat, 23 Feb 2019, 19:07 ,  wrote:

> Yup, and I drop those variables in there and they do not render either.
> (I just tried it).   I do not think the about.inc.example supports dropping
> variables into it as it seems to be straight html.
>
> On Friday, February 22, 2019 at 11:18:54 PM UTC-6, Colin Larsen wrote:
>>
>> Hmm, not quite sure what you are doing different to me, but if you edit
>> the file as per instructions it certainly works. Can you confirm that your
>> file is just called about.inc and it resides in the skins/Belchertown
>> directory?
>>
>> On Sat, Feb 23, 2019 at 5:33 PM  wrote:
>>
>>> All answers are correct, yet if you put those variables into about.inc,
>>> the do not work.  I am wondering if you need to have the page PHP like.
>>> Maybe Pat can post the source for his?
>>>
>>> On Friday, February 22, 2019 at 10:15:13 PM UTC-6, Colin Larsen wrote:

 Creating About Page and Records Page

 The About Page and Records Page offer some areas for custom HTML to be
 run. To create or edit these pages, go to the skins/Belchertown folder.
 These files should not be overwritten during skin upgrdades, but it's
 always best to have a backup just in case!

- Create (or edit) the skins/Belchertown/about.inc and
skins/Belchertown/records.inc files with your text editor, such as
Notepad or Nano.
   - These files take full HTML, so you can get fancy if you want.
   - You can view, and use the sample file about.inc.example
   
 
and records.inc.example
   
 .
   Just rename to remove the .example, edit and you should be good
   to go.
- Wait for an archive interval for the pages to be generated.


 On Sat, Feb 23, 2019 at 5:13 PM Colin Larsen 
 wrote:

> You should just edit the Inc file, about.inc
>
> On Sat, 23 Feb 2019, 17:04 Andrew Milner, 
> wrote:
>
>> which file did you edit??  looks as though you perhaps changed the
>> .html file instead of the .html.tmpl file
>>
>>
>>
>>
>>
>>
>> On Saturday, 23 February 2019 04:54:28 UTC+2, G Hammer wrote:
>>>
>>> I'd like to include some WeeWX variables in the About page, but when
>>> I use the HTML sample I get the variable names as output.
>>>
>>> This:
>>> 
>>> Station hardware: $station.hardware
>>> Server uptime: $station.os_uptime
>>> WeeWX uptime: $station.uptime
>>> WeeWX version: $station.version
>>> Belchertown Skin Version: $belchertown_version
>>> 
>>>
>>>
>>> Results in this:
>>>
>>>
>>>- Station hardware: $station.hardware
>>>- Server uptime: $station.os_uptime
>>>- WeeWX uptime: $station.uptime
>>>- WeeWX version: $station.version
>>>- Belchertown Skin Version: $belchertown_version
>>>
>>> As long as I'm on the topic, is there a list of inbuilt variables?
>>>
>>> --
>> 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+...@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.
>

-- 
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 About Page WeeWx Variables

2019-02-22 Thread torrin
Yup, and I drop those variables in there and they do not render either.  (I 
just tried it).   I do not think the about.inc.example supports dropping 
variables into it as it seems to be straight html.

On Friday, February 22, 2019 at 11:18:54 PM UTC-6, Colin Larsen wrote:
>
> Hmm, not quite sure what you are doing different to me, but if you edit 
> the file as per instructions it certainly works. Can you confirm that your 
> file is just called about.inc and it resides in the skins/Belchertown 
> directory?
>
> On Sat, Feb 23, 2019 at 5:33 PM > wrote:
>
>> All answers are correct, yet if you put those variables into about.inc, 
>> the do not work.  I am wondering if you need to have the page PHP like.  
>> Maybe Pat can post the source for his?
>>
>> On Friday, February 22, 2019 at 10:15:13 PM UTC-6, Colin Larsen wrote:
>>>
>>> Creating About Page and Records Page
>>>
>>> The About Page and Records Page offer some areas for custom HTML to be 
>>> run. To create or edit these pages, go to the skins/Belchertown folder. 
>>> These files should not be overwritten during skin upgrdades, but it's 
>>> always best to have a backup just in case!
>>>
>>>- Create (or edit) the skins/Belchertown/about.inc and 
>>>skins/Belchertown/records.inc files with your text editor, such as 
>>>Notepad or Nano.
>>>   - These files take full HTML, so you can get fancy if you want.
>>>   - You can view, and use the sample file about.inc.example 
>>>   
>>> 
>>>and records.inc.example 
>>>   
>>> .
>>>  
>>>   Just rename to remove the .example, edit and you should be good 
>>>   to go.
>>>- Wait for an archive interval for the pages to be generated.
>>>
>>>
>>> On Sat, Feb 23, 2019 at 5:13 PM Colin Larsen  
>>> wrote:
>>>
 You should just edit the Inc file, about.inc

 On Sat, 23 Feb 2019, 17:04 Andrew Milner,  
 wrote:

> which file did you edit??  looks as though you perhaps changed the 
> .html file instead of the .html.tmpl file
>
>
>
>
>
>
> On Saturday, 23 February 2019 04:54:28 UTC+2, G Hammer wrote:
>>
>> I'd like to include some WeeWX variables in the About page, but when 
>> I use the HTML sample I get the variable names as output.
>>
>> This:
>> 
>> Station hardware: $station.hardware
>> Server uptime: $station.os_uptime
>> WeeWX uptime: $station.uptime
>> WeeWX version: $station.version
>> Belchertown Skin Version: $belchertown_version
>> 
>>   
>>
>> Results in this:
>>
>>
>>- Station hardware: $station.hardware
>>- Server uptime: $station.os_uptime
>>- WeeWX uptime: $station.uptime
>>- WeeWX version: $station.version
>>- Belchertown Skin Version: $belchertown_version
>>
>> As long as I'm on the topic, is there a list of inbuilt variables?
>>
>> -- 
> 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+...@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: Belchertown About Page WeeWx Variables

2019-02-22 Thread Colin Larsen
Hmm, not quite sure what you are doing different to me, but if you edit the
file as per instructions it certainly works. Can you confirm that your file
is just called about.inc and it resides in the skins/Belchertown directory?

On Sat, Feb 23, 2019 at 5:33 PM  wrote:

> All answers are correct, yet if you put those variables into about.inc,
> the do not work.  I am wondering if you need to have the page PHP like.
> Maybe Pat can post the source for his?
>
> On Friday, February 22, 2019 at 10:15:13 PM UTC-6, Colin Larsen wrote:
>>
>> Creating About Page and Records Page
>>
>> The About Page and Records Page offer some areas for custom HTML to be
>> run. To create or edit these pages, go to the skins/Belchertown folder.
>> These files should not be overwritten during skin upgrdades, but it's
>> always best to have a backup just in case!
>>
>>- Create (or edit) the skins/Belchertown/about.inc and
>>skins/Belchertown/records.inc files with your text editor, such as
>>Notepad or Nano.
>>   - These files take full HTML, so you can get fancy if you want.
>>   - You can view, and use the sample file about.inc.example
>>   
>> 
>>and records.inc.example
>>   
>> .
>>   Just rename to remove the .example, edit and you should be good to
>>   go.
>>- Wait for an archive interval for the pages to be generated.
>>
>>
>> On Sat, Feb 23, 2019 at 5:13 PM Colin Larsen  wrote:
>>
>>> You should just edit the Inc file, about.inc
>>>
>>> On Sat, 23 Feb 2019, 17:04 Andrew Milner,  wrote:
>>>
 which file did you edit??  looks as though you perhaps changed the
 .html file instead of the .html.tmpl file






 On Saturday, 23 February 2019 04:54:28 UTC+2, G Hammer wrote:
>
> I'd like to include some WeeWX variables in the About page, but when I
> use the HTML sample I get the variable names as output.
>
> This:
> 
> Station hardware: $station.hardware
> Server uptime: $station.os_uptime
> WeeWX uptime: $station.uptime
> WeeWX version: $station.version
> Belchertown Skin Version: $belchertown_version
> 
>
>
> Results in this:
>
>
>- Station hardware: $station.hardware
>- Server uptime: $station.os_uptime
>- WeeWX uptime: $station.uptime
>- WeeWX version: $station.version
>- Belchertown Skin Version: $belchertown_version
>
> As long as I'm on the topic, is there a list of inbuilt variables?
>
> --
 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.
>

-- 
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] I need help viewing the archive of Davis vantage vue + RPi3 + weewx user

2019-02-22 Thread Mohamed Al-Sabri
Ouh OK now I understand the interval thing!
How do I know that I’m running two instances? I’m not sure how to kill one of 
them or which one I kill in order to get the data.


Mohamed,

-- 
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 About Page WeeWx Variables

2019-02-22 Thread torrin
All answers are correct, yet if you put those variables into about.inc, the 
do not work.  I am wondering if you need to have the page PHP like.  Maybe 
Pat can post the source for his?

On Friday, February 22, 2019 at 10:15:13 PM UTC-6, Colin Larsen wrote:
>
> Creating About Page and Records Page
>
> The About Page and Records Page offer some areas for custom HTML to be 
> run. To create or edit these pages, go to the skins/Belchertown folder. 
> These files should not be overwritten during skin upgrdades, but it's 
> always best to have a backup just in case!
>
>- Create (or edit) the skins/Belchertown/about.inc and 
>skins/Belchertown/records.inc files with your text editor, such as 
>Notepad or Nano.
>   - These files take full HTML, so you can get fancy if you want.
>   - You can view, and use the sample file about.inc.example 
>   
> 
>and records.inc.example 
>   
> .
>  
>   Just rename to remove the .example, edit and you should be good to 
>   go.
>- Wait for an archive interval for the pages to be generated.
>
>
> On Sat, Feb 23, 2019 at 5:13 PM Colin Larsen  > wrote:
>
>> You should just edit the Inc file, about.inc
>>
>> On Sat, 23 Feb 2019, 17:04 Andrew Milner, > > wrote:
>>
>>> which file did you edit??  looks as though you perhaps changed the .html 
>>> file instead of the .html.tmpl file
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Saturday, 23 February 2019 04:54:28 UTC+2, G Hammer wrote:

 I'd like to include some WeeWX variables in the About page, but when I 
 use the HTML sample I get the variable names as output.

 This:
 
 Station hardware: $station.hardware
 Server uptime: $station.os_uptime
 WeeWX uptime: $station.uptime
 WeeWX version: $station.version
 Belchertown Skin Version: $belchertown_version
 
   

 Results in this:


- Station hardware: $station.hardware
- Server uptime: $station.os_uptime
- WeeWX uptime: $station.uptime
- WeeWX version: $station.version
- Belchertown Skin Version: $belchertown_version

 As long as I'm on the topic, is there a list of inbuilt variables?

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


Re: [weewx-user] Re: Belchertown About Page WeeWx Variables

2019-02-22 Thread Colin Larsen
Creating About Page and Records Page

The About Page and Records Page offer some areas for custom HTML to be run.
To create or edit these pages, go to the skins/Belchertown folder. These
files should not be overwritten during skin upgrdades, but it's always best
to have a backup just in case!

   - Create (or edit) the skins/Belchertown/about.inc and
   skins/Belchertown/records.inc files with your text editor, such as
   Notepad or Nano.
  - These files take full HTML, so you can get fancy if you want.
  - You can view, and use the sample file about.inc.example
  

   and records.inc.example
  
.
  Just rename to remove the .example, edit and you should be good to go.
   - Wait for an archive interval for the pages to be generated.


On Sat, Feb 23, 2019 at 5:13 PM Colin Larsen  wrote:

> You should just edit the Inc file, about.inc
>
> On Sat, 23 Feb 2019, 17:04 Andrew Milner, 
> wrote:
>
>> which file did you edit??  looks as though you perhaps changed the .html
>> file instead of the .html.tmpl file
>>
>>
>>
>>
>>
>>
>> On Saturday, 23 February 2019 04:54:28 UTC+2, G Hammer wrote:
>>>
>>> I'd like to include some WeeWX variables in the About page, but when I
>>> use the HTML sample I get the variable names as output.
>>>
>>> This:
>>> 
>>> Station hardware: $station.hardware
>>> Server uptime: $station.os_uptime
>>> WeeWX uptime: $station.uptime
>>> WeeWX version: $station.version
>>> Belchertown Skin Version: $belchertown_version
>>> 
>>>
>>>
>>> Results in this:
>>>
>>>
>>>- Station hardware: $station.hardware
>>>- Server uptime: $station.os_uptime
>>>- WeeWX uptime: $station.uptime
>>>- WeeWX version: $station.version
>>>- Belchertown Skin Version: $belchertown_version
>>>
>>> As long as I'm on the topic, is there a list of inbuilt variables?
>>>
>>> --
>> 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: Belchertown About Page WeeWx Variables

2019-02-22 Thread Colin Larsen
You should just edit the Inc file, about.inc

On Sat, 23 Feb 2019, 17:04 Andrew Milner, 
wrote:

> which file did you edit??  looks as though you perhaps changed the .html
> file instead of the .html.tmpl file
>
>
>
>
>
>
> On Saturday, 23 February 2019 04:54:28 UTC+2, G Hammer wrote:
>>
>> I'd like to include some WeeWX variables in the About page, but when I
>> use the HTML sample I get the variable names as output.
>>
>> This:
>> 
>> Station hardware: $station.hardware
>> Server uptime: $station.os_uptime
>> WeeWX uptime: $station.uptime
>> WeeWX version: $station.version
>> Belchertown Skin Version: $belchertown_version
>> 
>>
>>
>> Results in this:
>>
>>
>>- Station hardware: $station.hardware
>>- Server uptime: $station.os_uptime
>>- WeeWX uptime: $station.uptime
>>- WeeWX version: $station.version
>>- Belchertown Skin Version: $belchertown_version
>>
>> As long as I'm on the topic, is there a list of inbuilt variables?
>>
>> --
> 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] Muliple bindings woes

2019-02-22 Thread gjr80
OK, there probably is a way to make it work with this socket based 
authentication but it's beyond my skill level. You might want to do a bit of 
googling re setting a MariaDB root password. Would get into my notes and see 
what I can find but unfortunately I have been summoned to go out just now.

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


[weewx-user] Re: Belchertown About Page WeeWx Variables

2019-02-22 Thread Andrew Milner
which file did you edit??  looks as though you perhaps changed the .html 
file instead of the .html.tmpl file






On Saturday, 23 February 2019 04:54:28 UTC+2, G Hammer wrote:
>
> I'd like to include some WeeWX variables in the About page, but when I use 
> the HTML sample I get the variable names as output.
>
> This:
> 
> Station hardware: $station.hardware
> Server uptime: $station.os_uptime
> WeeWX uptime: $station.uptime
> WeeWX version: $station.version
> Belchertown Skin Version: $belchertown_version
> 
>   
>
> Results in this:
>
>
>- Station hardware: $station.hardware
>- Server uptime: $station.os_uptime
>- WeeWX uptime: $station.uptime
>- WeeWX version: $station.version
>- Belchertown Skin Version: $belchertown_version
>
> As long as I'm on the topic, is there a list of inbuilt variables?
>
>

-- 
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] Muliple bindings woes

2019-02-22 Thread Dave Webb KB1PVH
Gary,

 Yes it is a MariaDB.

Dave-KB1PVH


Sent from my Galaxy S9

On Fri, Feb 22, 2019, 10:55 PM gjr80  wrote:

> This wouldn't be a MariaDB install would it? My understanding is that when
> MariaDB replaced MySQL in Debian based distros it now uses Unix socket
> based authentication and no MariaDB root password is created/used on new
> installs. Whilst allegedly more secure I still go through and disable it
> and set a MariaDB root password (using mysql_secure_installation I think).
>
> 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.
> 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] Muliple bindings woes

2019-02-22 Thread gjr80
This wouldn't be a MariaDB install would it? My understanding is that when 
MariaDB replaced MySQL in Debian based distros it now uses Unix socket based 
authentication and no MariaDB root password is created/used on new installs. 
Whilst allegedly more secure I still go through and disable it and set a 
MariaDB root password (using mysql_secure_installation I think).

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


Re: [weewx-user] Muliple bindings woes

2019-02-22 Thread Dave Webb KB1PVH
I'm done with it for tonight. I'll give it hell tomorrow, hopefully.

Dave-KB1PVH


Sent from my Galaxy S9

On Fri, Feb 22, 2019, 9:59 PM vince  wrote:

> On Friday, February 22, 2019 at 6:35:49 PM UTC-8, Dave Webb wrote:
>>
>>  I don't know what the password is when it asks for it and I was never
>> asked to choose one when installing mysql on the Pi running mysql either.
>>
>>
> ok - but at least you have it down to a mysql user+password issue, that
> helps a lot.
> see if https://www.raspberrypi.org/forums/viewtopic.php?t=72076 helps any
>
> or maybe
> https://support.rackspace.com/how-to/mysql-resetting-a-lost-mysql-root-password/
>
>
> I searched google for "lost admin password mysql pi" just as a point of
> reference.
>
> --
> 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] Muliple bindings woes

2019-02-22 Thread Thomas Keffer
Every user has a password.

For example, in  section* Configuring MySQL
* in the User's
Guide it shows you how to set up a local user.

mysql> CREATE USER 'weewx'@'localhost' IDENTIFIED BY 'weewx';
mysql> GRANT select, update, create, delete, insert, drop ON weewx.*
TO weewx@localhost;


In this example, the password was set by the "IDENTIFIED BY" clause.

You'll want to do something similar, except you want to set the host to
something other than 'localhost'.

-tk

On Fri, Feb 22, 2019 at 6:35 PM Dave Webb KB1PVH  wrote:

> Tom,
>
>  I don't know what the password is when it asks for it and I was never
> asked to choose one when installing mysql on the Pi running mysql either.
>
> Dave-KB1PVH
>
>
> Sent from my Galaxy S9
>
> On Fri, Feb 22, 2019, 8:53 PM Thomas Keffer  wrote:
>
>> As I said, this is a lot easier to debug using the client app 'mysql',
>> than using WeeWX.
>>
>> -tk
>>
>> On Fri, Feb 22, 2019 at 5:51 PM Dave Webb KB1PVH 
>> wrote:
>>
>>> So I just did a stop + start of mysql and now have this error. Looks
>>> like I have the wrong password but can't figure out where it's coming from
>>> or how to change.
>>>
>>> Feb 22 20:40:22 odroid weewx[26350]: cheetahgenerator:  Ignoring
>>> template /home/weewx/skins/Standard/index.html.tmpl
>>> Feb 22 20:40:22 odroid weewx[26350]: cheetahgenerator:  Reason:
>>> (1045, "Access denied for user 'weewx'@'odroid.fios-router.home' (usi
>>>  ng password: YES)")
>>> Feb 22 20:40:22 odroid weewx[26350]:   Traceback (most recent call
>>> last):
>>> Feb 22 20:40:22 odroid weewx[26350]: File
>>> "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
>>> Feb 22 20:40:22 odroid weewx[26350]:   print >> _file,
>>> compiled_template
>>> Feb 22 20:40:22 odroid weewx[26350]: File
>>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in
>>> __str__
>>> Feb 22 20:40:22 odroid weewx[26350]:   rc = getattr(self,
>>> mainMethName)()
>>> Feb 22 20:40:22 odroid weewx[26350]: File
>>> "cheetah__home_weewx_skins_Standard_index_html_tmpl_1550886019_7_59410.py",
>>> line 975, i   n respond
>>> Feb 22 20:40:22 odroid weewx[26350]: File
>>> "cheetah__home_weewx_skins_Standard_index_html_tmpl_1550886019_7_59410.py",
>>> line 98, in__errorCatcher5
>>> Feb 22 20:40:22 odroid weewx[26350]: File "", line 1, in
>>> 
>>> Feb 22 20:40:22 odroid weewx[26350]: File
>>> "/home/weewx/bin/weewx/tags.py", line 369, in latest
>>> Feb 22 20:40:22 odroid weewx[26350]:   manager =
>>> self.db_lookup(data_binding)
>>> Feb 22 20:40:22 odroid weewx[26350]: File
>>> "/home/weewx/bin/weewx/manager.py", line 870, in db_lookup
>>> Feb 22 20:40:22 odroid weewx[26350]:   return
>>> self.get_manager(data_binding)
>>> Feb 22 20:40:22 odroid weewx[26350]: File
>>> "/home/weewx/bin/weewx/manager.py", line 857, in get_manager
>>> Feb 22 20:40:22 odroid weewx[26350]: 
>>> self.manager_cache[data_binding] = open_manager(manager_dict, initialize)
>>> Feb 22 20:40:22 odroid weewx[26350]: File
>>> "/home/weewx/bin/weewx/manager.py", line 1009, in open_manager
>>> Feb 22 20:40:22 odroid weewx[26350]: 
>>> manager_dict['table_name'])
>>> Feb 22 20:40:22 odroid weewx[26350]: File
>>> "/home/weewx/bin/weewx/manager.py", line 101, in open
>>> Feb 22 20:40:22 odroid weewx[26350]:   connection =
>>> weedb.connect(database_dict)
>>> Feb 22 20:40:22 odroid weewx[26350]: File
>>> "/home/weewx/bin/weedb/__init__.py", line 89, in connect
>>> Feb 22 20:40:22 odroid weewx[26350]:   return
>>> driver_mod.connect(**db_dict)
>>> Feb 22 20:40:22 odroid weewx[26350]: File
>>> "/home/weewx/bin/weedb/mysql.py", line 57, in connect
>>> Feb 22 20:40:22 odroid weewx[26350]: 
>>> database_name=database_name, engine=engine, autocommit=autocommit, **kwargs)
>>> Feb 22 20:40:22 odroid weewx[26350]: File
>>> "/home/weewx/bin/weedb/mysql.py", line 48, in guarded_fn
>>> Feb 22 20:40:22 odroid weewx[26350]:   raise klass(e)
>>> Feb 22 20:40:22 odroid weewx[26350]:   BadPasswordError: (1045,
>>> "Access denied for user 'weewx'@'odroid.fios-router.home' (using pass
>>>  word: YES)")
>>> Feb 22 20:40:22 odroid weewx[26350]: cheetahgenerator: Generated 16
>>> files for report BigReport in 2.02 seconds
>>> Feb 22 20:40:24 odroid weewx[26350]: imagegenerator: Generated 11 images
>>> for BigReport in 1.60 seconds
>>> Feb 22 20:40:24 odroid weewx[26350]: copygenerator: copied 0 files to
>>> /home/weewx/public_html/big
>>>
>>>
>>> On Fri, Feb 22, 2019 at 8:04 PM Dave Webb KB1PVH 
>>> wrote:
>>>
 Vince,

  I didn't stop and start mysql after making changes, I'll try that
 along with the other points you mentioned. I'll probably revisit this 

[weewx-user] Belchertown About Page WeeWx Variables

2019-02-22 Thread G Hammer
I'd like to include some WeeWX variables in the About page, but when I use 
the HTML sample I get the variable names as output.

This:

Station hardware: $station.hardware
Server uptime: $station.os_uptime
WeeWX uptime: $station.uptime
WeeWX version: $station.version
Belchertown Skin Version: $belchertown_version

  

Results in this:


   - Station hardware: $station.hardware
   - Server uptime: $station.os_uptime
   - WeeWX uptime: $station.uptime
   - WeeWX version: $station.version
   - Belchertown Skin Version: $belchertown_version

As long as I'm on the topic, is there a list of inbuilt variables?

-- 
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] Muliple bindings woes

2019-02-22 Thread Dave Webb KB1PVH
Tom,

 I don't know what the password is when it asks for it and I was never
asked to choose one when installing mysql on the Pi running mysql either.

Dave-KB1PVH


Sent from my Galaxy S9

On Fri, Feb 22, 2019, 8:53 PM Thomas Keffer  wrote:

> As I said, this is a lot easier to debug using the client app 'mysql',
> than using WeeWX.
>
> -tk
>
> On Fri, Feb 22, 2019 at 5:51 PM Dave Webb KB1PVH  wrote:
>
>> So I just did a stop + start of mysql and now have this error. Looks like
>> I have the wrong password but can't figure out where it's coming from or
>> how to change.
>>
>> Feb 22 20:40:22 odroid weewx[26350]: cheetahgenerator:  Ignoring
>> template /home/weewx/skins/Standard/index.html.tmpl
>> Feb 22 20:40:22 odroid weewx[26350]: cheetahgenerator:  Reason:
>> (1045, "Access denied for user 'weewx'@'odroid.fios-router.home' (usi
>>ng password: YES)")
>> Feb 22 20:40:22 odroid weewx[26350]:   Traceback (most recent call
>> last):
>> Feb 22 20:40:22 odroid weewx[26350]: File
>> "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
>> Feb 22 20:40:22 odroid weewx[26350]:   print >> _file,
>> compiled_template
>> Feb 22 20:40:22 odroid weewx[26350]: File
>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in
>> __str__
>> Feb 22 20:40:22 odroid weewx[26350]:   rc = getattr(self,
>> mainMethName)()
>> Feb 22 20:40:22 odroid weewx[26350]: File
>> "cheetah__home_weewx_skins_Standard_index_html_tmpl_1550886019_7_59410.py",
>> line 975, i   n respond
>> Feb 22 20:40:22 odroid weewx[26350]: File
>> "cheetah__home_weewx_skins_Standard_index_html_tmpl_1550886019_7_59410.py",
>> line 98, in__errorCatcher5
>> Feb 22 20:40:22 odroid weewx[26350]: File "", line 1, in
>> 
>> Feb 22 20:40:22 odroid weewx[26350]: File
>> "/home/weewx/bin/weewx/tags.py", line 369, in latest
>> Feb 22 20:40:22 odroid weewx[26350]:   manager =
>> self.db_lookup(data_binding)
>> Feb 22 20:40:22 odroid weewx[26350]: File
>> "/home/weewx/bin/weewx/manager.py", line 870, in db_lookup
>> Feb 22 20:40:22 odroid weewx[26350]:   return
>> self.get_manager(data_binding)
>> Feb 22 20:40:22 odroid weewx[26350]: File
>> "/home/weewx/bin/weewx/manager.py", line 857, in get_manager
>> Feb 22 20:40:22 odroid weewx[26350]: 
>> self.manager_cache[data_binding] = open_manager(manager_dict, initialize)
>> Feb 22 20:40:22 odroid weewx[26350]: File
>> "/home/weewx/bin/weewx/manager.py", line 1009, in open_manager
>> Feb 22 20:40:22 odroid weewx[26350]:   manager_dict['table_name'])
>> Feb 22 20:40:22 odroid weewx[26350]: File
>> "/home/weewx/bin/weewx/manager.py", line 101, in open
>> Feb 22 20:40:22 odroid weewx[26350]:   connection =
>> weedb.connect(database_dict)
>> Feb 22 20:40:22 odroid weewx[26350]: File
>> "/home/weewx/bin/weedb/__init__.py", line 89, in connect
>> Feb 22 20:40:22 odroid weewx[26350]:   return
>> driver_mod.connect(**db_dict)
>> Feb 22 20:40:22 odroid weewx[26350]: File
>> "/home/weewx/bin/weedb/mysql.py", line 57, in connect
>> Feb 22 20:40:22 odroid weewx[26350]: 
>> database_name=database_name, engine=engine, autocommit=autocommit, **kwargs)
>> Feb 22 20:40:22 odroid weewx[26350]: File
>> "/home/weewx/bin/weedb/mysql.py", line 48, in guarded_fn
>> Feb 22 20:40:22 odroid weewx[26350]:   raise klass(e)
>> Feb 22 20:40:22 odroid weewx[26350]:   BadPasswordError: (1045,
>> "Access denied for user 'weewx'@'odroid.fios-router.home' (using pass
>>word: YES)")
>> Feb 22 20:40:22 odroid weewx[26350]: cheetahgenerator: Generated 16 files
>> for report BigReport in 2.02 seconds
>> Feb 22 20:40:24 odroid weewx[26350]: imagegenerator: Generated 11 images
>> for BigReport in 1.60 seconds
>> Feb 22 20:40:24 odroid weewx[26350]: copygenerator: copied 0 files to
>> /home/weewx/public_html/big
>>
>>
>> On Fri, Feb 22, 2019 at 8:04 PM Dave Webb KB1PVH 
>> wrote:
>>
>>> Vince,
>>>
>>>  I didn't stop and start mysql after making changes, I'll try that along
>>> with the other points you mentioned. I'll probably revisit this after a
>>> calming adult beverage...or two.
>>>
>>> Dave-KB1PVH
>>>
>>>
>>> Sent from my Galaxy S9
>>>
>>> On Fri, Feb 22, 2019, 7:55 PM vince  wrote:
>>>
 On Friday, February 22, 2019 at 4:40:02 PM UTC-8, Dave Webb wrote:
>
> Doing #2 didn't fix it, still getting same error. I'm going to abort
> mission until tomorrow or Sunday.
>
>
 A few thoughts:

- after you change the mysql config to listen to non-localhost
traffic, you probably need to start+stop mysql on the database server to
have it take effect
- you might be blocking incoming traffic with a packet filter on
your database server (ok, that one's more of a 

Re: [weewx-user] Muliple bindings woes

2019-02-22 Thread Thomas Keffer
As I said, this is a lot easier to debug using the client app 'mysql', than
using WeeWX.

-tk

On Fri, Feb 22, 2019 at 5:51 PM Dave Webb KB1PVH  wrote:

> So I just did a stop + start of mysql and now have this error. Looks like
> I have the wrong password but can't figure out where it's coming from or
> how to change.
>
> Feb 22 20:40:22 odroid weewx[26350]: cheetahgenerator:  Ignoring
> template /home/weewx/skins/Standard/index.html.tmpl
> Feb 22 20:40:22 odroid weewx[26350]: cheetahgenerator:  Reason: (1045,
> "Access denied for user 'weewx'@'odroid.fios-router.home' (usi
>ng password: YES)")
> Feb 22 20:40:22 odroid weewx[26350]:   Traceback (most recent call
> last):
> Feb 22 20:40:22 odroid weewx[26350]: File
> "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
> Feb 22 20:40:22 odroid weewx[26350]:   print >> _file,
> compiled_template
> Feb 22 20:40:22 odroid weewx[26350]: File
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in
> __str__
> Feb 22 20:40:22 odroid weewx[26350]:   rc = getattr(self,
> mainMethName)()
> Feb 22 20:40:22 odroid weewx[26350]: File
> "cheetah__home_weewx_skins_Standard_index_html_tmpl_1550886019_7_59410.py",
> line 975, i   n respond
> Feb 22 20:40:22 odroid weewx[26350]: File
> "cheetah__home_weewx_skins_Standard_index_html_tmpl_1550886019_7_59410.py",
> line 98, in__errorCatcher5
> Feb 22 20:40:22 odroid weewx[26350]: File "", line 1, in
> 
> Feb 22 20:40:22 odroid weewx[26350]: File
> "/home/weewx/bin/weewx/tags.py", line 369, in latest
> Feb 22 20:40:22 odroid weewx[26350]:   manager =
> self.db_lookup(data_binding)
> Feb 22 20:40:22 odroid weewx[26350]: File
> "/home/weewx/bin/weewx/manager.py", line 870, in db_lookup
> Feb 22 20:40:22 odroid weewx[26350]:   return
> self.get_manager(data_binding)
> Feb 22 20:40:22 odroid weewx[26350]: File
> "/home/weewx/bin/weewx/manager.py", line 857, in get_manager
> Feb 22 20:40:22 odroid weewx[26350]: 
> self.manager_cache[data_binding] = open_manager(manager_dict, initialize)
> Feb 22 20:40:22 odroid weewx[26350]: File
> "/home/weewx/bin/weewx/manager.py", line 1009, in open_manager
> Feb 22 20:40:22 odroid weewx[26350]:   manager_dict['table_name'])
> Feb 22 20:40:22 odroid weewx[26350]: File
> "/home/weewx/bin/weewx/manager.py", line 101, in open
> Feb 22 20:40:22 odroid weewx[26350]:   connection =
> weedb.connect(database_dict)
> Feb 22 20:40:22 odroid weewx[26350]: File
> "/home/weewx/bin/weedb/__init__.py", line 89, in connect
> Feb 22 20:40:22 odroid weewx[26350]:   return
> driver_mod.connect(**db_dict)
> Feb 22 20:40:22 odroid weewx[26350]: File
> "/home/weewx/bin/weedb/mysql.py", line 57, in connect
> Feb 22 20:40:22 odroid weewx[26350]: 
> database_name=database_name, engine=engine, autocommit=autocommit, **kwargs)
> Feb 22 20:40:22 odroid weewx[26350]: File
> "/home/weewx/bin/weedb/mysql.py", line 48, in guarded_fn
> Feb 22 20:40:22 odroid weewx[26350]:   raise klass(e)
> Feb 22 20:40:22 odroid weewx[26350]:   BadPasswordError: (1045,
> "Access denied for user 'weewx'@'odroid.fios-router.home' (using pass
>word: YES)")
> Feb 22 20:40:22 odroid weewx[26350]: cheetahgenerator: Generated 16 files
> for report BigReport in 2.02 seconds
> Feb 22 20:40:24 odroid weewx[26350]: imagegenerator: Generated 11 images
> for BigReport in 1.60 seconds
> Feb 22 20:40:24 odroid weewx[26350]: copygenerator: copied 0 files to
> /home/weewx/public_html/big
>
>
> On Fri, Feb 22, 2019 at 8:04 PM Dave Webb KB1PVH  wrote:
>
>> Vince,
>>
>>  I didn't stop and start mysql after making changes, I'll try that along
>> with the other points you mentioned. I'll probably revisit this after a
>> calming adult beverage...or two.
>>
>> Dave-KB1PVH
>>
>>
>> Sent from my Galaxy S9
>>
>> On Fri, Feb 22, 2019, 7:55 PM vince  wrote:
>>
>>> On Friday, February 22, 2019 at 4:40:02 PM UTC-8, Dave Webb wrote:

 Doing #2 didn't fix it, still getting same error. I'm going to abort
 mission until tomorrow or Sunday.


>>> A few thoughts:
>>>
>>>- after you change the mysql config to listen to non-localhost
>>>traffic, you probably need to start+stop mysql on the database server to
>>>have it take effect
>>>- you might be blocking incoming traffic with a packet filter on
>>>your database server (ok, that one's more of a stretch)
>>>- it could be DNS resolution on the weewx system as well.   Can the
>>>weewx system resolve the hostname 'sdr-pi' that you defined for the db
>>>server ?
>>>- and Tom's item3 is the acid test - can you connect from the weewx
>>>system via the shell directly, using the hostname/db/user/pass you 
>>> defined
>>>in weewx.conf ?

Re: [weewx-user] Muliple bindings woes

2019-02-22 Thread Dave Webb KB1PVH
So I just did a stop + start of mysql and now have this error. Looks like I
have the wrong password but can't figure out where it's coming from or how
to change.

Feb 22 20:40:22 odroid weewx[26350]: cheetahgenerator:  Ignoring
template /home/weewx/skins/Standard/index.html.tmpl
Feb 22 20:40:22 odroid weewx[26350]: cheetahgenerator:  Reason: (1045,
"Access denied for user 'weewx'@'odroid.fios-router.home' (usi
 ng password: YES)")
Feb 22 20:40:22 odroid weewx[26350]:   Traceback (most recent call
last):
Feb 22 20:40:22 odroid weewx[26350]: File
"/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Feb 22 20:40:22 odroid weewx[26350]:   print >> _file,
compiled_template
Feb 22 20:40:22 odroid weewx[26350]: File
"/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in
__str__
Feb 22 20:40:22 odroid weewx[26350]:   rc = getattr(self,
mainMethName)()
Feb 22 20:40:22 odroid weewx[26350]: File
"cheetah__home_weewx_skins_Standard_index_html_tmpl_1550886019_7_59410.py",
line 975, i   n respond
Feb 22 20:40:22 odroid weewx[26350]: File
"cheetah__home_weewx_skins_Standard_index_html_tmpl_1550886019_7_59410.py",
line 98, in__errorCatcher5
Feb 22 20:40:22 odroid weewx[26350]: File "", line 1, in

Feb 22 20:40:22 odroid weewx[26350]: File
"/home/weewx/bin/weewx/tags.py", line 369, in latest
Feb 22 20:40:22 odroid weewx[26350]:   manager =
self.db_lookup(data_binding)
Feb 22 20:40:22 odroid weewx[26350]: File
"/home/weewx/bin/weewx/manager.py", line 870, in db_lookup
Feb 22 20:40:22 odroid weewx[26350]:   return
self.get_manager(data_binding)
Feb 22 20:40:22 odroid weewx[26350]: File
"/home/weewx/bin/weewx/manager.py", line 857, in get_manager
Feb 22 20:40:22 odroid weewx[26350]: 
self.manager_cache[data_binding] = open_manager(manager_dict, initialize)
Feb 22 20:40:22 odroid weewx[26350]: File
"/home/weewx/bin/weewx/manager.py", line 1009, in open_manager
Feb 22 20:40:22 odroid weewx[26350]:   manager_dict['table_name'])
Feb 22 20:40:22 odroid weewx[26350]: File
"/home/weewx/bin/weewx/manager.py", line 101, in open
Feb 22 20:40:22 odroid weewx[26350]:   connection =
weedb.connect(database_dict)
Feb 22 20:40:22 odroid weewx[26350]: File
"/home/weewx/bin/weedb/__init__.py", line 89, in connect
Feb 22 20:40:22 odroid weewx[26350]:   return
driver_mod.connect(**db_dict)
Feb 22 20:40:22 odroid weewx[26350]: File
"/home/weewx/bin/weedb/mysql.py", line 57, in connect
Feb 22 20:40:22 odroid weewx[26350]:   database_name=database_name,
engine=engine, autocommit=autocommit, **kwargs)
Feb 22 20:40:22 odroid weewx[26350]: File
"/home/weewx/bin/weedb/mysql.py", line 48, in guarded_fn
Feb 22 20:40:22 odroid weewx[26350]:   raise klass(e)
Feb 22 20:40:22 odroid weewx[26350]:   BadPasswordError: (1045, "Access
denied for user 'weewx'@'odroid.fios-router.home' (using pass
 word: YES)")
Feb 22 20:40:22 odroid weewx[26350]: cheetahgenerator: Generated 16 files
for report BigReport in 2.02 seconds
Feb 22 20:40:24 odroid weewx[26350]: imagegenerator: Generated 11 images
for BigReport in 1.60 seconds
Feb 22 20:40:24 odroid weewx[26350]: copygenerator: copied 0 files to
/home/weewx/public_html/big


On Fri, Feb 22, 2019 at 8:04 PM Dave Webb KB1PVH  wrote:

> Vince,
>
>  I didn't stop and start mysql after making changes, I'll try that along
> with the other points you mentioned. I'll probably revisit this after a
> calming adult beverage...or two.
>
> Dave-KB1PVH
>
>
> Sent from my Galaxy S9
>
> On Fri, Feb 22, 2019, 7:55 PM vince  wrote:
>
>> On Friday, February 22, 2019 at 4:40:02 PM UTC-8, Dave Webb wrote:
>>>
>>> Doing #2 didn't fix it, still getting same error. I'm going to abort
>>> mission until tomorrow or Sunday.
>>>
>>>
>> A few thoughts:
>>
>>- after you change the mysql config to listen to non-localhost
>>traffic, you probably need to start+stop mysql on the database server to
>>have it take effect
>>- you might be blocking incoming traffic with a packet filter on your
>>database server (ok, that one's more of a stretch)
>>- it could be DNS resolution on the weewx system as well.   Can the
>>weewx system resolve the hostname 'sdr-pi' that you defined for the db
>>server ?
>>- and Tom's item3 is the acid test - can you connect from the weewx
>>system via the shell directly, using the hostname/db/user/pass you defined
>>in weewx.conf ?
>>
>>
>> --
>> 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 

Re: [weewx-user] Muliple bindings woes

2019-02-22 Thread Dave Webb KB1PVH
Vince,

 I didn't stop and start mysql after making changes, I'll try that along
with the other points you mentioned. I'll probably revisit this after a
calming adult beverage...or two.

Dave-KB1PVH


Sent from my Galaxy S9

On Fri, Feb 22, 2019, 7:55 PM vince  wrote:

> On Friday, February 22, 2019 at 4:40:02 PM UTC-8, Dave Webb wrote:
>>
>> Doing #2 didn't fix it, still getting same error. I'm going to abort
>> mission until tomorrow or Sunday.
>>
>>
> A few thoughts:
>
>- after you change the mysql config to listen to non-localhost
>traffic, you probably need to start+stop mysql on the database server to
>have it take effect
>- you might be blocking incoming traffic with a packet filter on your
>database server (ok, that one's more of a stretch)
>- it could be DNS resolution on the weewx system as well.   Can the
>weewx system resolve the hostname 'sdr-pi' that you defined for the db
>server ?
>- and Tom's item3 is the acid test - can you connect from the weewx
>system via the shell directly, using the hostname/db/user/pass you defined
>in weewx.conf ?
>
>
> --
> 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] Muliple bindings woes

2019-02-22 Thread vince
On Friday, February 22, 2019 at 4:40:02 PM UTC-8, Dave Webb wrote:
>
> Doing #2 didn't fix it, still getting same error. I'm going to abort 
> mission until tomorrow or Sunday. 
>
>
A few thoughts:

   - after you change the mysql config to listen to non-localhost traffic, 
   you probably need to start+stop mysql on the database server to have it 
   take effect
   - you might be blocking incoming traffic with a packet filter on your 
   database server (ok, that one's more of a stretch)
   - it could be DNS resolution on the weewx system as well.   Can the 
   weewx system resolve the hostname 'sdr-pi' that you defined for the db 
   server ?
   - and Tom's item3 is the acid test - can you connect from the weewx 
   system via the shell directly, using the hostname/db/user/pass you defined 
   in weewx.conf ?


-- 
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] Muliple bindings woes

2019-02-22 Thread Dave Webb KB1PVH
Doing #2 didn't fix it, still getting same error. I'm going to abort
mission until tomorrow or Sunday.

Dave-KB1PVH


Sent from my Galaxy S9

On Fri, Feb 22, 2019, 7:00 PM Dave Webb KB1PVH  wrote:

>  Tom,
>
>  I already did #1 so I'm thinking #2 is going to be the answer. I'll give
> it a go later and report back.
>
> Dave-KB1PVH
>
>
> Sent from my Galaxy S9
>
> On Fri, Feb 22, 2019, 6:55 PM Thomas Keffer  wrote:
>
>> Just to be clear: you are one computer, trying to access a MySQL database
>> located on another computer.
>>
>> Things to try:
>>
>> 1. Check that the MySQL host is allowing remote connections. By default,
>> MySQL allows only local ('localhost') connections. Find the option
>> bind-address among the myriad of MySQL configuration files and comment
>> it out. On my machine, this option is located in the file
>> /etc/mysql/mysql.conf.d/mysqld.cnf. So, you are changing this
>>
>> bind-address = 127.0.0.1
>>
>> to this
>>
>> # bind-address = 127.0.0.1
>>
>> 2. Remote users are not the same as local users. You will need to grant a
>> user accessing the server remotely explicit permission to do so. On the
>> MySQL host machine
>>
>> *mysql -u root -p*
>> mysql> *grant select, update, create, delete, insert on weewx.* to
>> weewx@odroid identified by 'weewx';*
>>
>> 3. Rather than debugging by using WeeWX, use the client program mysql.
>> From your client odroid, do this
>>
>> *mysql --host=sdr-pi --user=weewx -p*
>>
>> then run a few queries, such as
>>
>> mysql> *select dateTime, barometer from weewx.archive limit 5;*
>>
>> See if that helps.
>>
>> -tk
>>
>>
>> On Fri, Feb 22, 2019 at 12:51 PM Dave Webb KB1PVH 
>> wrote:
>>
>>> I'm trying to use multiple bindings on my Odroid with a Davis Vue to
>>> grab info from another Pi running SDR. I struggled to get the mysql
>>> database going on the sdr Pi, but did it. My problem now is the error below
>>> when I add
>>>
>>>  
>>> Barn Temperature>> $latest(data_binding='sdr_binding').
>>> extraTemp1
>>> 
>>>
>>> I know It's a simple permission problem but I can't manage to make it
>>> work after 2 hours of Googling and trial and error.
>>>
>>> Feb 22 15:20:19 odroid weewx[26288]: imagegenerator: Generated 11 images
>>> for StandardReport in 0.94 seconds
>>> Feb 22 15:20:19 odroid weewx[26288]: copygenerator: copied 0 files to
>>> /home/weewx/public_html
>>> Feb 22 15:20:21 odroid weewx[26288]: cheetahgenerator: Generate failed
>>> with exception ''
>>> Feb 22 15:20:21 odroid weewx[26288]: cheetahgenerator:  Ignoring
>>> template /home/weewx/skins/Standard/index.html.tmpl
>>> Feb 22 15:20:21 odroid weewx[26288]: cheetahgenerator:  Reason:
>>> (2003, "Can't connect to MySQL server on 'sdr-pi' (111)")
>>> Feb 22 15:20:21 odroid weewx[26288]:   Traceback (most recent call
>>> last):
>>> Feb 22 15:20:21 odroid weewx[26288]: File
>>> "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
>>> Feb 22 15:20:21 odroid weewx[26288]:   print >> _file,
>>> compiled_template
>>> Feb 22 15:20:21 odroid weewx[26288]: File
>>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in
>>> __str__
>>> Feb 22 15:20:21 odroid weewx[26288]:   rc = getattr(self,
>>> mainMethName)()
>>> Feb 22 15:20:21 odroid weewx[26288]: File
>>> "_home_weewx_skins_Standard_index_html_tmpl.py", line 975, in respond
>>> Feb 22 15:20:21 odroid weewx[26288]: File
>>> "_home_weewx_skins_Standard_index_html_tmpl.py", line 98, in __errorCatcher5
>>> Feb 22 15:20:21 odroid weewx[26288]: File "", line 1, in
>>> 
>>> Feb 22 15:20:21 odroid weewx[26288]: File
>>> "/home/weewx/bin/weewx/tags.py", line 369, in latest
>>> Feb 22 15:20:21 odroid weewx[26288]:   manager =
>>> self.db_lookup(data_binding)
>>> Feb 22 15:20:21 odroid weewx[26288]: File
>>> "/home/weewx/bin/weewx/manager.py", line 870, in db_lookup
>>> Feb 22 15:20:21 odroid weewx[26288]:   return
>>> self.get_manager(data_binding)
>>> Feb 22 15:20:21 odroid weewx[26288]: File
>>> "/home/weewx/bin/weewx/manager.py", line 857, in get_manager
>>> Feb 22 15:20:21 odroid weewx[26288]: 
>>> self.manager_cache[data_binding] = open_manager(manager_dict, initialize)
>>> Feb 22 15:20:21 odroid weewx[26288]: File
>>> "/home/weewx/bin/weewx/manager.py", line 1009, in open_manager
>>> Feb 22 15:20:21 odroid weewx[26288]: 
>>> manager_dict['table_name'])
>>> Feb 22 15:20:21 odroid weewx[26288]: File
>>> "/home/weewx/bin/weewx/manager.py", line 101, in open
>>> Feb 22 15:20:21 odroid weewx[26288]:   connection =
>>> weedb.connect(database_dict)
>>> Feb 22 15:20:21 odroid weewx[26288]: File
>>> "/home/weewx/bin/weedb/__init__.py", line 89, in connect
>>> Feb 22 15:20:21 odroid weewx[26288]:   return
>>> driver_mod.connect(**db_dict)
>>> Feb 22 15:20:21 odroid weewx[26288]: File
>>> "/home/weewx/bin/weedb/mysql.py", line 57, in connect
>>> Feb 22 15:20:21 odroid 

Re: [weewx-user] Muliple bindings woes

2019-02-22 Thread Dave Webb KB1PVH
 Tom,

 I already did #1 so I'm thinking #2 is going to be the answer. I'll give
it a go later and report back.

Dave-KB1PVH


Sent from my Galaxy S9

On Fri, Feb 22, 2019, 6:55 PM Thomas Keffer  wrote:

> Just to be clear: you are one computer, trying to access a MySQL database
> located on another computer.
>
> Things to try:
>
> 1. Check that the MySQL host is allowing remote connections. By default,
> MySQL allows only local ('localhost') connections. Find the option
> bind-address among the myriad of MySQL configuration files and comment it
> out. On my machine, this option is located in the file
> /etc/mysql/mysql.conf.d/mysqld.cnf. So, you are changing this
>
> bind-address = 127.0.0.1
>
> to this
>
> # bind-address = 127.0.0.1
>
> 2. Remote users are not the same as local users. You will need to grant a
> user accessing the server remotely explicit permission to do so. On the
> MySQL host machine
>
> *mysql -u root -p*
> mysql> *grant select, update, create, delete, insert on weewx.* to
> weewx@odroid identified by 'weewx';*
>
> 3. Rather than debugging by using WeeWX, use the client program mysql.
> From your client odroid, do this
>
> *mysql --host=sdr-pi --user=weewx -p*
>
> then run a few queries, such as
>
> mysql> *select dateTime, barometer from weewx.archive limit 5;*
>
> See if that helps.
>
> -tk
>
>
> On Fri, Feb 22, 2019 at 12:51 PM Dave Webb KB1PVH 
> wrote:
>
>> I'm trying to use multiple bindings on my Odroid with a Davis Vue to grab
>> info from another Pi running SDR. I struggled to get the mysql database
>> going on the sdr Pi, but did it. My problem now is the error below when I
>> add
>>
>>  
>> Barn Temperature> $latest(data_binding='sdr_binding').
>> extraTemp1
>> 
>>
>> I know It's a simple permission problem but I can't manage to make it
>> work after 2 hours of Googling and trial and error.
>>
>> Feb 22 15:20:19 odroid weewx[26288]: imagegenerator: Generated 11 images
>> for StandardReport in 0.94 seconds
>> Feb 22 15:20:19 odroid weewx[26288]: copygenerator: copied 0 files to
>> /home/weewx/public_html
>> Feb 22 15:20:21 odroid weewx[26288]: cheetahgenerator: Generate failed
>> with exception ''
>> Feb 22 15:20:21 odroid weewx[26288]: cheetahgenerator:  Ignoring
>> template /home/weewx/skins/Standard/index.html.tmpl
>> Feb 22 15:20:21 odroid weewx[26288]: cheetahgenerator:  Reason:
>> (2003, "Can't connect to MySQL server on 'sdr-pi' (111)")
>> Feb 22 15:20:21 odroid weewx[26288]:   Traceback (most recent call
>> last):
>> Feb 22 15:20:21 odroid weewx[26288]: File
>> "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
>> Feb 22 15:20:21 odroid weewx[26288]:   print >> _file,
>> compiled_template
>> Feb 22 15:20:21 odroid weewx[26288]: File
>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in
>> __str__
>> Feb 22 15:20:21 odroid weewx[26288]:   rc = getattr(self,
>> mainMethName)()
>> Feb 22 15:20:21 odroid weewx[26288]: File
>> "_home_weewx_skins_Standard_index_html_tmpl.py", line 975, in respond
>> Feb 22 15:20:21 odroid weewx[26288]: File
>> "_home_weewx_skins_Standard_index_html_tmpl.py", line 98, in __errorCatcher5
>> Feb 22 15:20:21 odroid weewx[26288]: File "", line 1, in
>> 
>> Feb 22 15:20:21 odroid weewx[26288]: File
>> "/home/weewx/bin/weewx/tags.py", line 369, in latest
>> Feb 22 15:20:21 odroid weewx[26288]:   manager =
>> self.db_lookup(data_binding)
>> Feb 22 15:20:21 odroid weewx[26288]: File
>> "/home/weewx/bin/weewx/manager.py", line 870, in db_lookup
>> Feb 22 15:20:21 odroid weewx[26288]:   return
>> self.get_manager(data_binding)
>> Feb 22 15:20:21 odroid weewx[26288]: File
>> "/home/weewx/bin/weewx/manager.py", line 857, in get_manager
>> Feb 22 15:20:21 odroid weewx[26288]: 
>> self.manager_cache[data_binding] = open_manager(manager_dict, initialize)
>> Feb 22 15:20:21 odroid weewx[26288]: File
>> "/home/weewx/bin/weewx/manager.py", line 1009, in open_manager
>> Feb 22 15:20:21 odroid weewx[26288]:   manager_dict['table_name'])
>> Feb 22 15:20:21 odroid weewx[26288]: File
>> "/home/weewx/bin/weewx/manager.py", line 101, in open
>> Feb 22 15:20:21 odroid weewx[26288]:   connection =
>> weedb.connect(database_dict)
>> Feb 22 15:20:21 odroid weewx[26288]: File
>> "/home/weewx/bin/weedb/__init__.py", line 89, in connect
>> Feb 22 15:20:21 odroid weewx[26288]:   return
>> driver_mod.connect(**db_dict)
>> Feb 22 15:20:21 odroid weewx[26288]: File
>> "/home/weewx/bin/weedb/mysql.py", line 57, in connect
>> Feb 22 15:20:21 odroid weewx[26288]: 
>> database_name=database_name, engine=engine, autocommit=autocommit, **kwargs)
>> Feb 22 15:20:21 odroid weewx[26288]: File
>> "/home/weewx/bin/weedb/mysql.py", line 48, in guarded_fn
>> Feb 22 15:20:21 odroid weewx[26288]:   raise klass(e)
>> Feb 22 15:20:21 odroid weewx[26288]:   

Re: [weewx-user] Muliple bindings woes

2019-02-22 Thread Thomas Keffer
Just to be clear: you are one computer, trying to access a MySQL database
located on another computer.

Things to try:

1. Check that the MySQL host is allowing remote connections. By default,
MySQL allows only local ('localhost') connections. Find the option
bind-address among the myriad of MySQL configuration files and comment it
out. On my machine, this option is located in the file
/etc/mysql/mysql.conf.d/mysqld.cnf. So, you are changing this

bind-address = 127.0.0.1

to this

# bind-address = 127.0.0.1

2. Remote users are not the same as local users. You will need to grant a
user accessing the server remotely explicit permission to do so. On the
MySQL host machine

*mysql -u root -p*
mysql> *grant select, update, create, delete, insert on weewx.* to
weewx@odroid identified by 'weewx';*

3. Rather than debugging by using WeeWX, use the client program mysql. From
your client odroid, do this

*mysql --host=sdr-pi --user=weewx -p*

then run a few queries, such as

mysql> *select dateTime, barometer from weewx.archive limit 5;*

See if that helps.

-tk


On Fri, Feb 22, 2019 at 12:51 PM Dave Webb KB1PVH  wrote:

> I'm trying to use multiple bindings on my Odroid with a Davis Vue to grab
> info from another Pi running SDR. I struggled to get the mysql database
> going on the sdr Pi, but did it. My problem now is the error below when I
> add
>
>  
> Barn Temperature $latest(data_binding='sdr_binding').
> extraTemp1
> 
>
> I know It's a simple permission problem but I can't manage to make it work
> after 2 hours of Googling and trial and error.
>
> Feb 22 15:20:19 odroid weewx[26288]: imagegenerator: Generated 11 images
> for StandardReport in 0.94 seconds
> Feb 22 15:20:19 odroid weewx[26288]: copygenerator: copied 0 files to
> /home/weewx/public_html
> Feb 22 15:20:21 odroid weewx[26288]: cheetahgenerator: Generate failed
> with exception ''
> Feb 22 15:20:21 odroid weewx[26288]: cheetahgenerator:  Ignoring
> template /home/weewx/skins/Standard/index.html.tmpl
> Feb 22 15:20:21 odroid weewx[26288]: cheetahgenerator:  Reason: (2003,
> "Can't connect to MySQL server on 'sdr-pi' (111)")
> Feb 22 15:20:21 odroid weewx[26288]:   Traceback (most recent call
> last):
> Feb 22 15:20:21 odroid weewx[26288]: File
> "/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
> Feb 22 15:20:21 odroid weewx[26288]:   print >> _file,
> compiled_template
> Feb 22 15:20:21 odroid weewx[26288]: File
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in
> __str__
> Feb 22 15:20:21 odroid weewx[26288]:   rc = getattr(self,
> mainMethName)()
> Feb 22 15:20:21 odroid weewx[26288]: File
> "_home_weewx_skins_Standard_index_html_tmpl.py", line 975, in respond
> Feb 22 15:20:21 odroid weewx[26288]: File
> "_home_weewx_skins_Standard_index_html_tmpl.py", line 98, in __errorCatcher5
> Feb 22 15:20:21 odroid weewx[26288]: File "", line 1, in
> 
> Feb 22 15:20:21 odroid weewx[26288]: File
> "/home/weewx/bin/weewx/tags.py", line 369, in latest
> Feb 22 15:20:21 odroid weewx[26288]:   manager =
> self.db_lookup(data_binding)
> Feb 22 15:20:21 odroid weewx[26288]: File
> "/home/weewx/bin/weewx/manager.py", line 870, in db_lookup
> Feb 22 15:20:21 odroid weewx[26288]:   return
> self.get_manager(data_binding)
> Feb 22 15:20:21 odroid weewx[26288]: File
> "/home/weewx/bin/weewx/manager.py", line 857, in get_manager
> Feb 22 15:20:21 odroid weewx[26288]: 
> self.manager_cache[data_binding] = open_manager(manager_dict, initialize)
> Feb 22 15:20:21 odroid weewx[26288]: File
> "/home/weewx/bin/weewx/manager.py", line 1009, in open_manager
> Feb 22 15:20:21 odroid weewx[26288]:   manager_dict['table_name'])
> Feb 22 15:20:21 odroid weewx[26288]: File
> "/home/weewx/bin/weewx/manager.py", line 101, in open
> Feb 22 15:20:21 odroid weewx[26288]:   connection =
> weedb.connect(database_dict)
> Feb 22 15:20:21 odroid weewx[26288]: File
> "/home/weewx/bin/weedb/__init__.py", line 89, in connect
> Feb 22 15:20:21 odroid weewx[26288]:   return
> driver_mod.connect(**db_dict)
> Feb 22 15:20:21 odroid weewx[26288]: File
> "/home/weewx/bin/weedb/mysql.py", line 57, in connect
> Feb 22 15:20:21 odroid weewx[26288]: 
> database_name=database_name, engine=engine, autocommit=autocommit, **kwargs)
> Feb 22 15:20:21 odroid weewx[26288]: File
> "/home/weewx/bin/weedb/mysql.py", line 48, in guarded_fn
> Feb 22 15:20:21 odroid weewx[26288]:   raise klass(e)
> Feb 22 15:20:21 odroid weewx[26288]:   CannotConnectError: (2003,
> "Can't connect to MySQL server on 'sdr-pi' (111)")
> Feb 22 15:20:21 odroid weewx[26288]: cheetahgenerator: Generated 16 files
> for report BigReport in 2.00 seconds
> Feb 22 15:20:23 odroid weewx[26288]: imagegenerator: Generated 11 images
> for BigReport in 1.54 seconds
>
>
> Dave
>
> --
> You received this message 

[weewx-user] Re: Confused about how to install Weewx-forecast

2019-02-22 Thread Topher Webb
Hi mate

Followed step 1,2,3,4 & 5

The only change was that 

[StdReport]
...
[[Seasons]]


Was in Weewx.conf as [[SeasonsReport]] and not [[Seasons]] so figured that 
wouldnt have a bearing on an output



On Saturday, 23 February 2019 05:23:59 UTC+10:30, mwall wrote:
>
>
>
> On Friday, February 22, 2019 at 8:06:55 AM UTC-5, Topher Webb wrote:
>>
>> Im stuck here. I want to use Forecast Compact for the output, but cant 
>> seem to work out where to go from here.
>>
>> If I go to my domain dot com/forecast I get a list of options for 
>> forecast outputs and domain dot com/forecast/compact.html gives me a 
>> working forecast. I just seem to display the forecast on my main page.
>>
>
> so the sample 'forecast' skin is working properly, but what do you see 
> your report's index.html?
>
> did you follow these instructions:
>
>
> https://github.com/weewx/weewx/wiki/forecasting#forecast-data-in-the-seasons-skin
>
> if you did something else, then please post your index.html.tmpl, 
> skin.conf, weewx.conf, and the resulting index.html
>
> 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] Muliple bindings woes

2019-02-22 Thread Dave Webb KB1PVH
I'm trying to use multiple bindings on my Odroid with a Davis Vue to grab
info from another Pi running SDR. I struggled to get the mysql database
going on the sdr Pi, but did it. My problem now is the error below when I
add

 
Barn Temperature$latest(data_binding='sdr_binding').
extraTemp1


I know It's a simple permission problem but I can't manage to make it work
after 2 hours of Googling and trial and error.

Feb 22 15:20:19 odroid weewx[26288]: imagegenerator: Generated 11 images
for StandardReport in 0.94 seconds
Feb 22 15:20:19 odroid weewx[26288]: copygenerator: copied 0 files to
/home/weewx/public_html
Feb 22 15:20:21 odroid weewx[26288]: cheetahgenerator: Generate failed with
exception ''
Feb 22 15:20:21 odroid weewx[26288]: cheetahgenerator:  Ignoring
template /home/weewx/skins/Standard/index.html.tmpl
Feb 22 15:20:21 odroid weewx[26288]: cheetahgenerator:  Reason: (2003,
"Can't connect to MySQL server on 'sdr-pi' (111)")
Feb 22 15:20:21 odroid weewx[26288]:   Traceback (most recent call
last):
Feb 22 15:20:21 odroid weewx[26288]: File
"/home/weewx/bin/weewx/cheetahgenerator.py", line 330, in generate
Feb 22 15:20:21 odroid weewx[26288]:   print >> _file,
compiled_template
Feb 22 15:20:21 odroid weewx[26288]: File
"/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in
__str__
Feb 22 15:20:21 odroid weewx[26288]:   rc = getattr(self,
mainMethName)()
Feb 22 15:20:21 odroid weewx[26288]: File
"_home_weewx_skins_Standard_index_html_tmpl.py", line 975, in respond
Feb 22 15:20:21 odroid weewx[26288]: File
"_home_weewx_skins_Standard_index_html_tmpl.py", line 98, in __errorCatcher5
Feb 22 15:20:21 odroid weewx[26288]: File "", line 1, in

Feb 22 15:20:21 odroid weewx[26288]: File
"/home/weewx/bin/weewx/tags.py", line 369, in latest
Feb 22 15:20:21 odroid weewx[26288]:   manager =
self.db_lookup(data_binding)
Feb 22 15:20:21 odroid weewx[26288]: File
"/home/weewx/bin/weewx/manager.py", line 870, in db_lookup
Feb 22 15:20:21 odroid weewx[26288]:   return
self.get_manager(data_binding)
Feb 22 15:20:21 odroid weewx[26288]: File
"/home/weewx/bin/weewx/manager.py", line 857, in get_manager
Feb 22 15:20:21 odroid weewx[26288]: 
self.manager_cache[data_binding] = open_manager(manager_dict, initialize)
Feb 22 15:20:21 odroid weewx[26288]: File
"/home/weewx/bin/weewx/manager.py", line 1009, in open_manager
Feb 22 15:20:21 odroid weewx[26288]:   manager_dict['table_name'])
Feb 22 15:20:21 odroid weewx[26288]: File
"/home/weewx/bin/weewx/manager.py", line 101, in open
Feb 22 15:20:21 odroid weewx[26288]:   connection =
weedb.connect(database_dict)
Feb 22 15:20:21 odroid weewx[26288]: File
"/home/weewx/bin/weedb/__init__.py", line 89, in connect
Feb 22 15:20:21 odroid weewx[26288]:   return
driver_mod.connect(**db_dict)
Feb 22 15:20:21 odroid weewx[26288]: File
"/home/weewx/bin/weedb/mysql.py", line 57, in connect
Feb 22 15:20:21 odroid weewx[26288]:   database_name=database_name,
engine=engine, autocommit=autocommit, **kwargs)
Feb 22 15:20:21 odroid weewx[26288]: File
"/home/weewx/bin/weedb/mysql.py", line 48, in guarded_fn
Feb 22 15:20:21 odroid weewx[26288]:   raise klass(e)
Feb 22 15:20:21 odroid weewx[26288]:   CannotConnectError: (2003,
"Can't connect to MySQL server on 'sdr-pi' (111)")
Feb 22 15:20:21 odroid weewx[26288]: cheetahgenerator: Generated 16 files
for report BigReport in 2.00 seconds
Feb 22 15:20:23 odroid weewx[26288]: imagegenerator: Generated 11 images
for BigReport in 1.54 seconds


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.


Re: [weewx-user] I need help viewing the archive of Davis vantage vue + RPi3 + weewx user

2019-02-22 Thread Thomas Keffer
1. You have two instances of WeeWX running. Kill one of them.
2. Your Vantage is set up for a 30 minute archive interval. You're not
going to see anything unless you wait at least that long.
3. If you want a shorter archive interval, use the wee_device
--set-interval=5 command. Yes, it will erase the memory of the logger, but
if you do step #1, it should safely be in your database.

-tk

On Fri, Feb 22, 2019 at 11:08 AM Mohamed Al-Sabri 
wrote:

>
> 2.  You need to set your vantage archive interval to the same as what you
>> have in weewx.conf - use wee_device to change the console
>>
>
>  I have used the following to fix the interval
>
> sudo wee_device --set-interval=5
>
>
> it would ask to erase the old data which I'm currently in need! is there
> any other way to do it without getting rid of the old data?
>
> *Note: in the weewx.conf is setting the intervals to 300 sec which is = 5
> min*
>
> please let me know if I misunderstood anything. I really appreciate it!
>
> Regards,
>
>
>> 2.6.0.0
>>
>>> 2.6.0.0
>>>
>> 2.6.0.0
>
> --
> 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] Error changing raspberry

2019-02-22 Thread Thomas Keffer
The bad data point has probably been there all along --- it's just that
WeeWX is a little more strict about it.

Try this on your database. *Boldface* is things you type.

# Change directory to where you database is located. Adjust as necessary
*cd /var/lib/weewx*
# Make a backup copy of your database:
*sudo cp weewx.sdb weewx.sdb.backup*
# Install sqlite3 if you have not already:
*sudo apt install sqlite3*
# Run it against the WeeWX database:
*sudo sqlite3 weewx.sdb*
# See how many bad records there are:
sqlite> *select count(dateTime) from archive where interval <= 0;*
# Get rid of them:
sqlite> *delete from archive where interval <= 0;*
sqlite> *.exit*

-tk

On Fri, Feb 22, 2019 at 10:06 AM Juan Antonio Mosquera <
juanantoniomosqu...@juanantoniomosquera.com> wrote:

> I'm changing the raspberry b + to raspberry 2.
>
> I have this problem when I do rebuild of weewx.sdb
>
> Feb 22 19:03:20 meteomontaos weewx [15992]: engine: Caught unrecoverable
> exception in engine:
> Feb 22 19:03:20 meteomontaos weewx [15992]:  Non-positive value for
> record field 'interval': -40
> Feb 22 19:03:20 meteomontaos weewx [15992]:  Traceback (most recent
> call last):
> Feb 22 19:03:20 meteomontaos weewx [15992]:  File
> "/usr/share/weewx/weewx/engine.py", line 884, in main
> Feb 22 19:03:20 meteomontaos weewx [15992]:  engine = engine_class
> (config_dict)
> Feb 22 19:03:20 meteomontaos weewx [15992]:  File
> "/usr/share/weewx/weewx/engine.py", line 78, in __init__
> Feb 22 19:03:20 meteomontaos weewx [15992]:  self.loadServices
> (config_dict)
> Feb 22 19:03:20 meteomontaos weewx [15992]:  File
> "/usr/share/weewx/weewx/engine.py", line 142, in loadServices
> Feb 22 19:03:20 meteomontaos weewx [15992]:  self.service_obj.append
> (weeutil.weeutil._get_object (svc) (self, config_dict))
> Feb 22 19:03:20 meteomontaos weewx [15992]:  File
> "/usr/share/weewx/weewx/engine.py", line 500, in __init__
> Feb 22 19:03:20 meteomontaos weewx [15992]:  self.setup_database
> (config_dict)
> Feb 22 19:03:20 meteomontaos weewx [15992]:  File
> "/usr/share/weewx/weewx/engine.py", line 617, in setup_database
> Feb 22 19:03:20 meteomontaos weewx [15992]:  _nrecs, _ndays =
> dbmanager.backfill_day_summary () # @UnusedVariable
> Feb 22 19:03:20 meteomontaos weewx [15992]:  File
> "/usr/share/weewx/weewx/manager.py", line 1469, in backfill_day_summary
> Feb 22 19:03:20 meteomontaos weewx [15992]:  weight =
> self._calc_weight (rec)
> Feb 22 19:03:20 meteomontaos weewx [15992]:  File
> "/usr/share/weewx/weewx/manager.py", line 1582, in _calc_weight
> Feb 22 19:03:20 meteomontaos weewx [15992]:  raise ValueError
> ("Non-positive value for record field 'interval':% s"% (record
> ['interval'],))
> Feb 22 19:03:20 meteomontaos weewx [15992]:  ValueError: Non-positive
> value for record field 'interval': -40
> Feb 22 19:03:20 meteomontaos weewx [15992]:  Exiting.
>
> help?
>
> --
> 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] I need help viewing the archive of Davis vantage vue + RPi3 + weewx user

2019-02-22 Thread Mohamed Al-Sabri


> 2.  You need to set your vantage archive interval to the same as what you 
> have in weewx.conf - use wee_device to change the console
>
>  

> sudo wee_device --set-interval=5
>
>
>
>
>
>  

> 2.6.0.0

>>> 2.6.0.0
>>
> 2.6.0.0

-- 
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: Confused about how to install Weewx-forecast

2019-02-22 Thread mwall


On Friday, February 22, 2019 at 8:06:55 AM UTC-5, Topher Webb wrote:
>
> Im stuck here. I want to use Forecast Compact for the output, but cant 
> seem to work out where to go from here.
>
> If I go to my domain dot com/forecast I get a list of options for forecast 
> outputs and domain dot com/forecast/compact.html gives me a working 
> forecast. I just seem to display the forecast on my main page.
>

so the sample 'forecast' skin is working properly, but what do you see your 
report's index.html?

did you follow these instructions:

https://github.com/weewx/weewx/wiki/forecasting#forecast-data-in-the-seasons-skin

if you did something else, then please post your index.html.tmpl, 
skin.conf, weewx.conf, and the resulting index.html

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: Acurite Sensor VN1TXCA2

2019-02-22 Thread rich T
Here is an SDR:

https://www.amazon.com/RTL-SDR-Blog-RTL2832U-Software-Telescopic/dp/B011HVUEME/ref=sr_1_3?crid=2H7PCYZIPLBJJ=sdr+rtl+dongle=1550860804=gateway=sdr%2Caps%2C417=8-3

On Friday, February 22, 2019 at 1:29:38 PM UTC-5, WJones wrote:

> The display/console does not come with it.   Since everyone is pretty sure 
> the frequency is 433, what exactly is the SDR for?
>
> The short term usage will be to use the Acurite sensors included with the 
> unit.  I hope to some day figure out how to add my own sensors from Amazon 
> and some Wemos Mini D1's to get my own data.
>
> On Friday, February 22, 2019 at 1:26:05 PM UTC-5, rich T wrote:
>>
>> The Acurite 5 in 1 is supported in Weewx in various ways. Are you getting 
>> a console with it? If not, you would me to go the SDR route; see 
>> https://github.com/weewx/weewx/wiki/sdr-rpi-recipe.  Additionally, you 
>> would need something like a BME280 for the pressure, since the Acurite 5 in 
>> 1 sensor does not include it.
>>
>>
>> On Friday, February 22, 2019 at 10:39:29 AM UTC-5, WJones wrote:
>>
>>> I have a chance to buy a used one of the sensors for the Acurite 5 in 1 
>>> weather stations.  I have used my Pi's for lots of previous projects and 
>>> using WeeWX looks like a fun one.
>>>
>>> Does anyone know if the following sensor is supported. 
>>>
>>> Thanks,
>>> WJones
>>>
>>> VN1TXCA2
>>>
>>

-- 
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: Acurite Sensor VN1TXCA2

2019-02-22 Thread mwall


On Friday, February 22, 2019 at 1:32:36 PM UTC-5, WJones wrote:
>
> I was looking into using one of these on a breadboard to get started.
>
>
> https://www.amazon.com/SMAKN%C2%AE-433Mhz-Transmitter-Receiver-Arduino/dp/B00M2CUALS/ref=sr_1_2?s=electronics=UTF8=1550860302=1-2=433MHz
>>
>>
>>>
it is much easier than that.  this configuration will work with the 5n1 
cluster:

https://github.com/weewx/weewx/wiki/sdr-rpi-recipe

then add a pressure sensor to the pi:

https://www.amazon.com/gp/product/B00UUS12PO/

or buy one of these:

https://www.amazon.com/gp/product/B07GX5VMHC/

and get data from it the using the same SDR dongle that you use to get data 
from the 5n1.

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: Acurite Sensor VN1TXCA2

2019-02-22 Thread WJones
I was looking into using one of these on a breadboard to get started.

https://www.amazon.com/SMAKN%C2%AE-433Mhz-Transmitter-Receiver-Arduino/dp/B00M2CUALS/ref=sr_1_2?s=electronics=UTF8=1550860302=1-2=433MHz



On Friday, February 22, 2019 at 1:26:05 PM UTC-5, rich T wrote:
>
> The Acurite 5 in 1 is supported in Weewx in various ways. Are you getting 
> a console with it? If not, you would me to go the SDR route; see 
> https://github.com/weewx/weewx/wiki/sdr-rpi-recipe.  Additionally, you 
> would need something like a BME280 for the pressure, since the Acurite 5 in 
> 1 sensor does not include it.
>
>
> On Friday, February 22, 2019 at 10:39:29 AM UTC-5, WJones wrote:
>
>> I have a chance to buy a used one of the sensors for the Acurite 5 in 1 
>> weather stations.  I have used my Pi's for lots of previous projects and 
>> using WeeWX looks like a fun one.
>>
>> Does anyone know if the following sensor is supported. 
>>
>> Thanks,
>> WJones
>>
>> VN1TXCA2
>>
>

-- 
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: Acurite Sensor VN1TXCA2

2019-02-22 Thread WJones
The display/console does not come with it.   Since everyone is pretty sure 
the frequency is 433, what exactly is the SDR for?

The short term usage will be to use the Acurite sensors included with the 
unit.  I hope to some day figure out how to add my own sensors from Amazon 
and some Wemos Mini D1's to get my own data.

On Friday, February 22, 2019 at 1:26:05 PM UTC-5, rich T wrote:
>
> The Acurite 5 in 1 is supported in Weewx in various ways. Are you getting 
> a console with it? If not, you would me to go the SDR route; see 
> https://github.com/weewx/weewx/wiki/sdr-rpi-recipe.  Additionally, you 
> would need something like a BME280 for the pressure, since the Acurite 5 in 
> 1 sensor does not include it.
>
>
> On Friday, February 22, 2019 at 10:39:29 AM UTC-5, WJones wrote:
>
>> I have a chance to buy a used one of the sensors for the Acurite 5 in 1 
>> weather stations.  I have used my Pi's for lots of previous projects and 
>> using WeeWX looks like a fun one.
>>
>> Does anyone know if the following sensor is supported. 
>>
>> Thanks,
>> WJones
>>
>> VN1TXCA2
>>
>

-- 
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: Acurite Sensor VN1TXCA2

2019-02-22 Thread rich T
The Acurite 5 in 1 is supported in Weewx in various ways. Are you getting a 
console with it? If not, you would me to go the SDR route; see 
https://github.com/weewx/weewx/wiki/sdr-rpi-recipe.  Additionally, you 
would need something like a BME280 for the pressure, since the Acurite 5 in 
1 sensor does not include it.


On Friday, February 22, 2019 at 10:39:29 AM UTC-5, WJones wrote:

> I have a chance to buy a used one of the sensors for the Acurite 5 in 1 
> weather stations.  I have used my Pi's for lots of previous projects and 
> using WeeWX looks like a fun one.
>
> Does anyone know if the following sensor is supported. 
>
> Thanks,
> WJones
>
> VN1TXCA2
>

-- 
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] I need help viewing the archive of Davis vantage vue + RPi3 + weewx user

2019-02-22 Thread Andrew Milner
1.  You need to sort out the cause of the undervoltage errors which are 
filling your log.
2.  You need to set your vantage archive interval to the same as what you 
have in weewx.conf - use wee_device to change the console
3.  Can you give a directory listing of /home/weewx/public_html please.  If 
there is a directory called seasons in public_html then the front page of 
the website will be in there.



On Friday, 22 February 2019 19:50:16 UTC+2, Mohamed Al-Sabri wrote:
>
> thanks Peter for the replay! yes now I do have a more clear idea of how do 
> the archiving thing work!
> but, still I can't get any use of it >,< What I'm able to do until now is 
> just displaying the current data.
>
> On Wednesday, February 20, 2019 at 6:17:35 PM UTC+4, Peter Fletcher wrote:
>>
>> I hope that you understand that the 'archive' can only go back as far as 
>> the current data stored in the logger when you first connected it to weewx. 
>> Even if you previously had it connected to Weatherlink, weewx has no way of 
>> accessing any older data. How far the logger's data goes back in time 
>> depends on the 'sample frequency' you last set. For a 5 minute sample 
>> frequency, the logger will save data for a bit over 5 days before the 
>> oldest data starts to be overwritten by new data. For higher and lower 
>> 'sample frequencies', the time will be correspondingly shorter or longer.
>>
>> On Wednesday, February 20, 2019 at 1:27:35 AM UTC-6, Mohamed Al-Sabri 
>> wrote:
>>>
>>> unfortunately, No I wasn't able to get the reports. what I'm trying is 
>>> to get the archive data into a file for data analysis. maybe the reports 
>>> contain some data! how can I get there?
>>>
>>> here is what I'm able to do til now! Just reading the current data! and 
>>> I would love to able to have it in any type of file (+ archive) in a file 
>>> to do some analysis using!
>>>
>>> I really appreciate it!
>>>
>>> 2.6.0.0
>>>
>> 2.6.0.0
>

-- 
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] Error changing raspberry

2019-02-22 Thread Juan Antonio Mosquera
I'm changing the raspberry b + to raspberry 2.

I have this problem when I do rebuild of weewx.sdb

Feb 22 19:03:20 meteomontaos weewx [15992]: engine: Caught unrecoverable 
exception in engine:
Feb 22 19:03:20 meteomontaos weewx [15992]:  Non-positive value for 
record field 'interval': -40
Feb 22 19:03:20 meteomontaos weewx [15992]:  Traceback (most recent 
call last):
Feb 22 19:03:20 meteomontaos weewx [15992]:  File 
"/usr/share/weewx/weewx/engine.py", line 884, in main
Feb 22 19:03:20 meteomontaos weewx [15992]:  engine = engine_class 
(config_dict)
Feb 22 19:03:20 meteomontaos weewx [15992]:  File 
"/usr/share/weewx/weewx/engine.py", line 78, in __init__
Feb 22 19:03:20 meteomontaos weewx [15992]:  self.loadServices 
(config_dict)
Feb 22 19:03:20 meteomontaos weewx [15992]:  File 
"/usr/share/weewx/weewx/engine.py", line 142, in loadServices
Feb 22 19:03:20 meteomontaos weewx [15992]:  self.service_obj.append 
(weeutil.weeutil._get_object (svc) (self, config_dict))
Feb 22 19:03:20 meteomontaos weewx [15992]:  File 
"/usr/share/weewx/weewx/engine.py", line 500, in __init__
Feb 22 19:03:20 meteomontaos weewx [15992]:  self.setup_database 
(config_dict)
Feb 22 19:03:20 meteomontaos weewx [15992]:  File 
"/usr/share/weewx/weewx/engine.py", line 617, in setup_database
Feb 22 19:03:20 meteomontaos weewx [15992]:  _nrecs, _ndays = 
dbmanager.backfill_day_summary () # @UnusedVariable
Feb 22 19:03:20 meteomontaos weewx [15992]:  File 
"/usr/share/weewx/weewx/manager.py", line 1469, in backfill_day_summary
Feb 22 19:03:20 meteomontaos weewx [15992]:  weight = self._calc_weight 
(rec)
Feb 22 19:03:20 meteomontaos weewx [15992]:  File 
"/usr/share/weewx/weewx/manager.py", line 1582, in _calc_weight
Feb 22 19:03:20 meteomontaos weewx [15992]:  raise ValueError 
("Non-positive value for record field 'interval':% s"% (record 
['interval'],))
Feb 22 19:03:20 meteomontaos weewx [15992]:  ValueError: Non-positive 
value for record field 'interval': -40
Feb 22 19:03:20 meteomontaos weewx [15992]:  Exiting.

help?

-- 
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] I need help viewing the archive of Davis vantage vue + RPi3 + weewx user

2019-02-22 Thread Mohamed Al-Sabri
thanks Peter for the replay! yes now I do have a more clear idea of how do 
the archiving thing work!
but, still I can't get any use of it >,< What I'm able to do until now is 
just displaying the current data.

On Wednesday, February 20, 2019 at 6:17:35 PM UTC+4, Peter Fletcher wrote:
>
> I hope that you understand that the 'archive' can only go back as far as 
> the current data stored in the logger when you first connected it to weewx. 
> Even if you previously had it connected to Weatherlink, weewx has no way of 
> accessing any older data. How far the logger's data goes back in time 
> depends on the 'sample frequency' you last set. For a 5 minute sample 
> frequency, the logger will save data for a bit over 5 days before the 
> oldest data starts to be overwritten by new data. For higher and lower 
> 'sample frequencies', the time will be correspondingly shorter or longer.
>
> On Wednesday, February 20, 2019 at 1:27:35 AM UTC-6, Mohamed Al-Sabri 
> wrote:
>>
>> unfortunately, No I wasn't able to get the reports. what I'm trying is to 
>> get the archive data into a file for data analysis. maybe the reports 
>> contain some data! how can I get there?
>>
>> here is what I'm able to do til now! Just reading the current data! and I 
>> would love to able to have it in any type of file (+ archive) in a file to 
>> do some analysis using!
>>
>> I really appreciate it!
>>
>> 2.6.0.0
>>
> 2.6.0.0

-- 
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] Acurite Sensor VN1TXCA2

2019-02-22 Thread WJones
I have a chance to buy a used one of the sensors for the Acurite 5 in 1 
weather stations.  I have used my Pi's for lots of previous projects and 
using WeeWX looks like a fun one.

Does anyone know if the following sensor is supported. 

Thanks,
WJones

VN1TXCA2

-- 
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: Confused about how to install Weewx-forecast

2019-02-22 Thread Topher Webb
Yet another n00b confused about the forecast extension. Sorry!

Working down the line of https://github.com/weewx/weewx/wiki/forecasting 
install instructions

I have downloaded the *.tgz file, I have ran the extension installer, 
edited weewx.conf with the API data.
Placed "CheetahGenerator" variable data into the standard skin.conf

Pasted html coding into index template, Extras and StdReport data into 
Skin.conf and Weewx.conf respectively.

Im stuck here. I want to use Forecast Compact for the output, but cant seem 
to work out where to go from here.

If I go to my domain dot com/forecast I get a list of options for forecast 
outputs and domain dot com/forecast/compact.html gives me a working 
forecast. I just seem to display the forecast on my main page. 

Im obviously missing something, and just cant seem to work out what. Can 
anyone point me to the correct spot? Its frustrating me just a wee bit :D


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