[weewx-user] Re: Can i grab loop data in a shell script

2019-08-01 Thread Robin
Good morning Pat,

Location /var/www/weewx/temperature.txt

The template for Cheetah generator to produce the file has a single line 

$current.outTemp.string

That's it.

On Thursday, 1 August 2019 15:31:27 UTC+3, Pat wrote:
>
> Robin, 
>
> Some questions
>
> > from a txt file generated using cheetah generator
>
> Where is this file located? What text is inside this file? Is it just the 
> temperature or is it a full sentence?
>
>
> On Wednesday, July 31, 2019 at 3:16:03 PM UTC-4, Robin wrote:
>>
>> I did think about running the script after weewx updates, but the ease of 
>> saving the image to the web page folder so it gets uploaded using rsync was 
>> too appealing.
>>
>> I am not a programmer and my Linux knowledge is at the 'just enough to 
>> survive' (most of the time) level.
>>
>> I have had a look at the wiki and now realise that this is way beyond my 
>> current skill level.
>>
>> Thank you, Gary and RobbH for your tips. I have a lot of learning to do 
>> before I can take this on.
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/66305add-4b71-4edf-8567-f23e79bae55e%40googlegroups.com.


[weewx-user] Re: WS-1001 connection to Raspberry PI for Weewx

2019-08-01 Thread Susan Mackay
The broadcast mask needs to match the way your subnet is defined. You 
originally had the subnet responding to the bottom octet of the IP address 
only but then expanded it to the bottom 2 octets. Therefore the broadcast 
message would have only gone to a small part of your expanded network.
Having said that, you also said the WS-1001 was at 192.168.0.197 and that 
should have responded to the original broadcast address, but I readily 
admit that I only have a rudimentary understanding of these things and 
there could well be some 'magic' that is applied in the router to block 
broadcast messages that don't fly match the network mask.
Anyway - I'm glad it is all back and working for you.
Susan

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/92b72e44-a2c3-4fb9-967b-d5ea53593c2f%40googlegroups.com.


[weewx-user] Re: Can i grab loop data in a shell script

2019-08-01 Thread RobbH
Robin, I just wanted to add that I can't speak for anyone else, but I know 
that I, also, have a lot of learning to do every time I start a project. 
This has been a great help to me when I'm working on Bash shell scripts:

http://www.tldp.org/LDP/abs/html/


On Wednesday, July 31, 2019 at 3:16:03 PM UTC-4, Robin wrote:
>
> I did think about running the script after weewx updates, but the ease of 
> saving the image to the web page folder so it gets uploaded using rsync was 
> too appealing.
>
> I am not a programmer and my Linux knowledge is at the 'just enough to 
> survive' (most of the time) level.
>
> I have had a look at the wiki and now realise that this is way beyond my 
> current skill level.
>
> Thank you, Gary and RobbH for your tips. I have a lot of learning to do 
> before I can take this on.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/9a4086df-ff43-41d1-8fd3-d97dfbecb531%40googlegroups.com.


Re: [weewx-user] special character support

2019-08-01 Thread Thomas Keffer
Check for an #encoding directive at the top of your template. For example,
index.html.tmpl in the Standard template uses:

#errorCatcher Echo
##
## Specifying an encoding of UTF-8 is usually safe:
#encoding UTF-8
##


  
## This choice should match the #encoding directive above



-tk

On Wed, Jul 31, 2019 at 2:27 AM peter  wrote:

> If I want to use special (non-English) characters like čžš, I get the
> following error:
> Jul 31 08:21:16 weather weewx[22398]: cheetahgenerator: Generate failed
> with exception ''
> Jul 31 08:21:16 weather weewx[22398]: cheetahgenerator:  Ignoring
> template /etc/weewx/skins/neowx/index.php.tmpl
> Jul 31 08:21:16 weather weewx[22398]: cheetahgenerator:  Reason:
> 'ascii' codec can't decode byte 0xc4 in position 10547: ordinal not in
> range(128)
> Jul 31 08:21:16 weather weewx[22398]:   Traceback (most recent call
> last):
> Jul 31 08:21:16 weather weewx[22398]: File
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
> Jul 31 08:21:16 weather weewx[22398]:   filter=encoding,
> Jul 31 08:21:16 weather weewx[22398]: File
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1336, in
> __init__
> Jul 31 08:21:16 weather weewx[22398]:   self._compile(source,
> file, compilerSettings=compilerSettings)
> Jul 31 08:21:16 weather weewx[22398]: File
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1637, in
> _compile
> Jul 31 08:21:16 weather weewx[22398]: 
>  keepRefToGeneratedCode=True)
> Jul 31 08:21:16 weather weewx[22398]: File
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 772, in compile
> Jul 31 08:21:16 weather weewx[22398]:   settings=(compilerSettings
> or {}))
> Jul 31 08:21:16 weather weewx[22398]: File
> "/usr/lib/python2.7/dist-packages/Cheetah/Compiler.py", line 1708, in
> __init__
> Jul 31 08:21:16 weather weewx[22398]:   source = unicode(source)
> Jul 31 08:21:16 weather weewx[22398]:   UnicodeDecodeError: 'ascii'
> codec can't decode byte 0xc4 in position 10547: ordinal not in range(128)
>
> This only happens when I put these characters in the html/php template
> files. The weewx.conf or skin.conf use these characters for parameter
> definition and correctly include them into tags when the html file is being
> generated.
>
> I use standard weewx configuration, no modifications to engine.py etc. I
> checked and the utf-8 is defined in the html templates.
>
> I appreciate suggestions how to make this work.
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/954066dc-08fe-4bf0-b3dc-08604ef25064%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEA01bT2Xzq22w34ThSF%2BBgU3bYTaOa7MTvrXLn9UjAUpw%40mail.gmail.com.


[weewx-user] Re: strange behavior with outtemp

2019-08-01 Thread Kike .Asekas
Thank you but It did not work for me. I did wee_database --drop-daily and 
rebuild-daily and now it works.
But i don't understand, I check archive_daily_outtemp and the max timestamp 
is from today at midnight(8-1-2109 0:00). Are the summaries not the ones on 
the daily tables?

El jueves, 1 de agosto de 2019, 22:12:23 (UTC+2), gjr80 escribió:
>
> Hi, 
>
> High/low data for days, weeks, months etc usually comes from the daily 
> summaries. If you modify the archive to remove/fix erroneous data you need 
> to rebuild the daily summaries using wee_database with the —rebuild-daily 
> option (http://weewx.com/docs/utilities.htm#Action_--rebuild-daily). In 
> your case I would rebuild just the day containing the erroneous data. 
>
> Gary

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/bc345ec6-879e-43ba-8ea5-6d7adc5f3df2%40googlegroups.com.


[weewx-user] Re: Radiation, maxSolarRad and ET/Evapotranspiration calculation - weewx/Belchertown skin

2019-08-01 Thread Xant

Works! More work than I thought, but there.

Thank you Andrew for pointing out.

Thanks Developers for software and database update scripts.

Thanks Pat for nice database/extensions walkthrough.

Best,
Xant

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/6efa0c29-82c0-4910-8bae-3264f472b941%40googlegroups.com.


[weewx-user] strange behavior with outtemp

2019-08-01 Thread gjr80
Hi,

High/low data for days, weeks, months etc usually comes from the daily 
summaries. If you modify the archive to remove/fix erroneous data you need to 
rebuild the daily summaries using wee_database with the —rebuild-daily option 
(http://weewx.com/docs/utilities.htm#Action_--rebuild-daily). In your case I 
would rebuild just the day containing the erroneous data.

Gary

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/50c33d5f-4076-4835-b832-3838302ed44a%40googlegroups.com.


[weewx-user] strange behavior with outtemp

2019-08-01 Thread Kike .Asekas
This morning I import data in the database with wee_import and put an 
incorrect data on the database. A temperature of 0.0ºC today. A peak 
appeared in the graph. I remove the bad data manually, it was a row only 
and restart weewx. In the following cycles the graph was correct but in hi 
lo still appearing 0.0 as a minimum temperature of the day. Delete all 
files in the web server and I waited for a new cycle and the minimum 
temperature was still 0.0. I check the database and there are no 0.0 
temperature today. I look at the file hilo.inc and the line is 
$archive[1].outTemp.min.format(add_label=False). 
I don't understand where that data comes from. In the database is not. 
What does it mean archive[1]?
Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/85609657-ec88-4698-8892-d0eb05e68ef4%40googlegroups.com.


[weewx-user] MQTT Mosquitto - my experience and advice to starters

2019-08-01 Thread Xant

It's hard to catch a fly... as somehow not simple to deal with Mosquitto 
(or is it?)

Thank Pat for howto to install own MQTT own server, but still defies me... 
everything seems correct, but no way yet to connect (and the usual learning 
curve and debugging hours...)

My experience and feedback is DON'T start with MQTT trying to install your 
own server at first (as I did), but start with any free public MQTT server, 
punch in you config, and connect in a few quick minutes.

First, I tried 'test.mosquitto.org', and it worked out-of-the-box. A few 
days ago, my weather web starting having no connection more hours 
debugging, trying to recollect what I changed what recently changed and 
reverse at no prevail. 

Later, as last resort, changed to 'broker.hivemq.com', and connect! (not 
sure if a problem with 'test.mosquitto.org', or on my side).

My MQTT weewx.conf:

[[MQTT]]
server_url = mqtt://broker.hivemq.com:1883/
topic = weather
unit_system = US
binding = loop
aggregation = aggregate

My Belchertown skin.conf:

# MQTT Websockets defaults
mqtt_websockets_enabled = 1
mqtt_websockets_host = broker.hivemq.com
mqtt_websockets_port = 8000
mqtt_websockets_ssl = 0
mqtt_websockets_topic = weather/loop
disconnect_live_website_visitor = 180


Later, if time, may try to play with local MQTT server again but just 
maybe...

Best,
Xant

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/9c0913ec-3704-478d-a3dd-6055f7c5c01f%40googlegroups.com.


[weewx-user] Re: special character support

2019-08-01 Thread gjr80
Forgot to add, there should be no sensitive info in the [StdReport] stanza or 
skin.conf but do check before posting.

Gary

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a00f985f-6c19-4804-bea6-c8376e98141a%40googlegroups.com.


[weewx-user] Re: special character support

2019-08-01 Thread gjr80
My mistake, too used to index.html.tmpl. The correct setting is of course the 
name of the template file being used. One more thought, there could be an 
override coming from weewx.conf. Could you post the [StdReport] stanza from 
weewx.conf as well as skin.conf from the neowx skin.

Gary

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/fb92c5eb-a321-4aa6-85d1-57f39ef3e350%40googlegroups.com.


[weewx-user] Re: Porting data from WVIEW

2019-08-01 Thread Andrew Milner
the simplest thing is to install sqlite3 

https://sqlite.org/cli.html

and give a command such as
sqlite3 fullpathtosdbfile

then
select * from archive order by dateTime desc limit 10;

should give you the last 10 entries


On Thursday, 1 August 2019 15:19:49 UTC+3, Richard Rosa wrote:
>
> What the manual says and what is available on my system don't quite jive. 
> The ONLY wview-archive.sdb that I can find was last updated 5 years ago.
>
> It has been running for the past 5 years WITHOUT generating this file. 
> Unless the file has been rendered invisible, it does NOT exist on my 
> current system.
>
> I would LOVE to try to extract the data from the existing SDB file, but as 
> I indicated,
> I do not know ANYTHING about SQL databases (or how to manipulate them). 
> If you can suggest the correct commands or operations, I will be more than 
> happy to give it a shot.
>
> BTW, I finished my script last night. Took about 10 seconds to create the 
> CSV file, and about 10 minutes to import everything. 
>
> So far, it looks like most of my info got imported. As expected, some 
> information (such as inside temp/console voltage/etc) is not there, but I 
> can live with that.
>
>
> Thanx.
>
>
> Richard Rosa
>
>
>
>
> On Wednesday, July 31, 2019 at 9:52:03 PM UTC-4, Andrew Milner wrote:
>>
>> I don't think you have an alternative, you have something different.
>>
>> From wview manual:
>> *Day history Table (wview-history.sdb)*
>>
>> *Overview*
>>
>> This table is generated internally by wview to avoid having to compute 
>> the daily summary records used for the yearly charts every time wview 
>> starts. This was not a time concern with the flat WLK files but became more 
>> costly when we started storing data in SQLite3. The external use or utility 
>> of this table is limited at best.
>>
>> *Regeneration*
>>
>> To regenerate the NOAA database:
>>
>> --
>>
>> I think you need to double check with wview, but the manual CLEARLY says 
>> the wview archive is wview-archive.sdb and that wview-history.sdb is an 
>> internal database used by wview for the yearly reports.
>>
>>
>>
>> On Thursday, 1 August 2019 01:45:27 UTC+3, vince wrote:
>>>
>>> On Wednesday, July 31, 2019 at 3:31:01 PM UTC-7, Richard Rosa wrote:

 It looks like I have an alternative:

   Thankfully, WVIEW saved a bunch of .txt files for every logged day 
 (almost 4k). Although I know very little about SQL databases, I am pretty 
 decent at converting text file formats to CSV files. 



>>> Still think a sqlite dump, a little editing, and a sqlite restore is the 
>>> right move here, but of course do what you think is right for you.
>>>
>>>  
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b2acdf61-00aa-4e7f-b199-22ec9fccdca2%40googlegroups.com.


[weewx-user] Re: Can i grab loop data in a shell script

2019-08-01 Thread Pat
Robin, 

Some questions

> from a txt file generated using cheetah generator

Where is this file located? What text is inside this file? Is it just the 
temperature or is it a full sentence?


On Wednesday, July 31, 2019 at 3:16:03 PM UTC-4, Robin wrote:
>
> I did think about running the script after weewx updates, but the ease of 
> saving the image to the web page folder so it gets uploaded using rsync was 
> too appealing.
>
> I am not a programmer and my Linux knowledge is at the 'just enough to 
> survive' (most of the time) level.
>
> I have had a look at the wiki and now realise that this is way beyond my 
> current skill level.
>
> Thank you, Gary and RobbH for your tips. I have a lot of learning to do 
> before I can take this on.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/dbbc9ca2-8ae1-4302-890e-7eeacd4b0041%40googlegroups.com.


[weewx-user] Re: Belchertown skin 1.0 released!

2019-08-01 Thread Pat
Yes you would need to add appTemp to your database

On Thursday, August 1, 2019 at 4:38:25 AM UTC-4, Pepe wrote:
>
> Hello Pat
> I am very happy with Belchertown skin and it works fine. Thank you for 
> your work; but something strange happens to me. If I put the apparent 
> temperature on the main page of the site, the records in their 
> corresponding section do not appear correctly. On the other hand, if I 
> remove the apparent temperature, the records reappear correctly (day, 
> month, time ...) I think this is due to my database that  does not include 
> this feature (appTemp) could it be the reason?
>
> Regards,
> Pepe
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/def95591-32d4-40d9-98d4-ff3d9d59778d%40googlegroups.com.


[weewx-user] Re: Porting data from WVIEW

2019-08-01 Thread Richard Rosa
What the manual says and what is available on my system don't quite jive. 
The ONLY wview-archive.sdb that I can find was last updated 5 years ago.

It has been running for the past 5 years WITHOUT generating this file. 
Unless the file has been rendered invisible, it does NOT exist on my 
current system.

I would LOVE to try to extract the data from the existing SDB file, but as 
I indicated,
I do not know ANYTHING about SQL databases (or how to manipulate them). 
If you can suggest the correct commands or operations, I will be more than 
happy to give it a shot.

BTW, I finished my script last night. Took about 10 seconds to create the 
CSV file, and about 10 minutes to import everything. 

So far, it looks like most of my info got imported. As expected, some 
information (such as inside temp/console voltage/etc) is not there, but I 
can live with that.


Thanx.


Richard Rosa




On Wednesday, July 31, 2019 at 9:52:03 PM UTC-4, Andrew Milner wrote:
>
> I don't think you have an alternative, you have something different.
>
> From wview manual:
> *Day history Table (wview-history.sdb)*
>
> *Overview*
>
> This table is generated internally by wview to avoid having to compute the 
> daily summary records used for the yearly charts every time wview starts. 
> This was not a time concern with the flat WLK files but became more costly 
> when we started storing data in SQLite3. The external use or utility of 
> this table is limited at best.
>
> *Regeneration*
>
> To regenerate the NOAA database:
>
> --
>
> I think you need to double check with wview, but the manual CLEARLY says 
> the wview archive is wview-archive.sdb and that wview-history.sdb is an 
> internal database used by wview for the yearly reports.
>
>
>
> On Thursday, 1 August 2019 01:45:27 UTC+3, vince wrote:
>>
>> On Wednesday, July 31, 2019 at 3:31:01 PM UTC-7, Richard Rosa wrote:
>>>
>>> It looks like I have an alternative:
>>>
>>>   Thankfully, WVIEW saved a bunch of .txt files for every logged day 
>>> (almost 4k). Although I know very little about SQL databases, I am pretty 
>>> decent at converting text file formats to CSV files. 
>>>
>>>
>>>
>> Still think a sqlite dump, a little editing, and a sqlite restore is the 
>> right move here, but of course do what you think is right for you.
>>
>>  
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b51a9975-5641-49b5-b845-fc7b48105574%40googlegroups.com.


[weewx-user] remote directory

2019-08-01 Thread mentero
Hi, 

I am changing the server running weewx due to a disaster with the old one, 
with a fresh (Debian) installation of the latest release. Also upgrading 
exfoliation skin.
 
I would like the files to be ftp'd to the remote /www directory as 
specified in weewx.conf (path = /www), instead of /www/exfoliation.

Any tip will be appreciated.

Miguel

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f9adbf45-0816-46a5-a414-4dbf3f268f94%40googlegroups.com.


[weewx-user] Re: Belchertown skin 1.0 released!

2019-08-01 Thread Pepe
Hello Pat
I am very happy with Belchertown skin and it works fine. Thank you for your 
work; but something strange happens to me. If I put the apparent 
temperature on the main page of the site, the records in their 
corresponding section do not appear correctly. On the other hand, if I 
remove the apparent temperature, the records reappear correctly (day, 
month, time ...) I think this is due to my database that  does not include 
this feature (appTemp) could it be the reason?

Regards,
Pepe

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/33ccd6eb-e275-4fcb-939e-3d21c6c82311%40googlegroups.com.