[weewx-user] web page not updating under 3.9.1

2019-03-23 Thread Orv Beach
With this line in index.html.tmpl:



my main weewx page (vers 3.9.1 running on Raspbian Stretch), Standard skin, 
updated just fine.

After migrating to version 3.9.1 running under Debian Stretch, with that 
same line in /etc/weewx/skins/Standard/index.html.tmpl the main page no 
longer updates every 300 seconds, nor does the page source show that line 
as it used to.  It's still the Standard skin, but it no longer looks like 
it did under Raspbian.

Any suggestions?

Thanks.


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


Re: [weewx-user] unsupported locale setting

2019-03-23 Thread Thomas Keffer
I suspect one of your "LC" settings is missing. Run the command "locale"
(without the -a flag). You should see something like:
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Having said this, Pat, if you're listening, two issues:

   1. The Belchertown skins sets a default encoding by reloading sys, then
   making use of the otherwise hidden function sys.setdefaultencoding().
   This is a hack, and won't work under Python 3. Instead, you need to read
   byte strings in and explicitly decode them (instead of relying on a default
   encoding).
   2. The line locale.setlocale(locale.LC_ALL, "") should not be necessary.
   This is already done in user/extensions.py.

-tk





On Sat, Mar 23, 2019 at 11:00 AM G400  wrote:

> reportengine: Caught unrecoverable exception in generator
> 'weewx.cheetahgenerator.CheetahGenerator'
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   unsupported
> locale setting
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   Traceback
> (most recent call last):
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: File
> "/home/weewx/bin/weewx/reportengine.py", line 204, in run
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: 
> obj.start()
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: File
> "/home/weewx/bin/weewx/reportengine.py", line 300, in start
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   self.run()
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: File
> "/home/weewx/bin/weewx/cheetahgenerator.py", line 157, in run
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: 
> self.initExtensions(gen_dict[section_name])
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: File
> "/home/weewx/bin/weewx/cheetahgenerator.py", line 199, in initExtensions
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   class_ =
> weeutil.weeutil._get_object(x)
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: File
> "/home/weewx/bin/weeutil/weeutil.py", line 1130, in _get_object
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   mod =
> __import__(module)
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: File
> "/home/weewx/bin/user/belchertown.py", line 26, in 
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: 
> locale.setlocale(locale.LC_ALL, "")
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: File
> "/usr/lib/python2.7/locale.py", line 581, in setlocale
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   return
> _setlocale(category, locale)
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   Error:
> unsupported locale setting
> Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   Generator
> terminated
>
> My locale settings are as follows:
> locale -a
> C
> C.UTF-8
> en_US.utf8
> POSIX
>
> Content of /etc/default/locale
> #  File generated by update-locale
> LANG=en_US.UTF-8
>
> What else do I need to check to fix this error?
>
> --
> 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] weewx-purpleair

2019-03-23 Thread parallelsys
Thanks to all for a reply!

I still cant get it running. I am new to weewx and I cant seem to know were 
to enter the values and or which.
Can somebody post an example for the template format that they use to plot 
and the corresponding skin.conf modification?

Thanks!

Note: It is logging data because the db file keeps growing :)

On Saturday, March 23, 2019 at 12:13:24 PM UTC-5, Michael Pfeuffer wrote:
>
> I got mine working by setting it hostname to the IP address.  
>
> --Mike
> On 3/23/2019 9:36 AM, parallelsys wrote:
>
> Team, 
>
> There is very little documentation on how to get this plugin to run.
>
> I follow the steps on the github.
>
> I installed the requirements than the plugin.
>
> My questions... Do i change the hostname to my purpleair hostname?
>
> I added 
>
> [[[daypurpleair]]]
> data_binding = purpleair_binding
> pm2_5_cf_1
>
> To my skin.conf (Seasonal)
>
> I check the logs and see:
>
> Mar 23 09:35:17 weewx weewx[28626]: manager: Added record 2019-03-23 
> 09:35:18 CDT (1553351718) to database 'purpleair.sdb'
> Mar 23 09:35:17 weewx weewx[28626]: manager: Added record 2019-03-23 
> 09:35:18 CDT (1553351718) to daily summary in 'purpleair.sdb'
> Mar 23 09:35:17 weewx weewx[28626]: manager: Added record 2019-03-23 
> 09:35:00 CDT (1553351700) to database 'weewx.sdb'
> Mar 23 09:35:17 weewx weewx[28626]: manager: Added record 2019-03-23 
> 09:35:00 CDT (1553351700) to daily summary in 'weewx.sdb'
> Mar 23 09:35:17 weewx weewx[28626]: cheetahgenerator: Generated 8 files 
> for report SeasonsReport in 0.14 seconds
> Mar 23 09:35:17 weewx weewx[28626]: restx: EmonCMS: Published record 
> 2019-03-23 09:35:00 CDT (1553351700)
> Mar 23 09:35:18 weewx weewx[28626]: imagegenerator: Generated 14 images 
> for SeasonsReport in 0.15 seconds
> Mar 23 09:35:18 weewx weewx[28626]: copygenerator: copied 0 files to 
> /var/www/html/weewx
>
>
> and I cant see any purpleair data under my page.
> Am I missing any steps?
>
> Thanks!
> -- 
> You received this message because you are subscribed to the Google Groups 
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to weewx-user+...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>

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


[weewx-user] Re: Add additional rain gauge via second data source

2019-03-23 Thread engolling
Hi Gary,
I checked the emulation of the WeatherDuino in the code and from my point 
of view it seems to be implemented as in the protocol description.
Nevertheless it might differ in any behaviour which is not exactly defined 
in the description.

It's very hard for me to understand the python code of the vantage driver 
since I am not familiar with the language.
I estimate that the vantage driver make the weewx engine to save an archive 
record each time it gets one from the hardware.
According to my observations und the upper preconditions it seems that 
archive records are received in the same frequency as the LOOP packets.
This would mean that the vantage driver polls with a DMPAFT command each 
view seconds.
Do you have any knowledge about this matter and do you know how it should 
work correctly?

To get this issue solved I think it would be necessary to get a serial 
sniffer in place to be able to see the communications between both devices.
Can I simply add some logs in the source of the vantage driver, like I did 
in my data service? 

Regards,
engolling

Am Freitag, 22. März 2019 00:48:49 UTC+1 schrieb gjr80:
>
> It seems that the WeatherDuino emulation of the Davis logger may still 
> have some issues. It's possible that the WeeWX vantage driver has some 
> issues but the driver is mature and has been in use for many years 
> communicating with actual Davis hardware without issue. One thing I have 
> noticed with some of the other PWS software packages is that they seem to 
> operate using the vantage loop packets only, whereas WeeWX has the option 
> of operating with loop packets only (record_generation=software) or a 
> combination of loop packets and hardware archive records (
> record_generation=hardware). That may explain why no one else sees this 
> issue. I am certain I have seen another WeeWX user who was using the 
> WeatherDuino as a Davis emulator and there were some clear issues with the 
> emulator. Unfortunately I cannot find that thread.
>
> You can obtain extra debug info in the log by setting debug=1 in 
> weewx.conf, though for the vantage driver I doubt this will give you too 
> much more information. The vantage driver does not have the debug 
> capabilities that some other driver have so that you can see individual 
> commands and responses. 
>
> Gary
>
> On Wednesday, 20 March 2019 08:26:33 UTC+10, engolling wrote:
>>
>> Hi Gary,
>>
>> I disabled my data service and the errors still were there. See the 
>> logfile in attachment.
>>
>> So I assumed that there is a problem with the vantage driver in 
>> combination with my hardware.
>> So I changed in weewx.conf to
>> # If possible, new archive records are downloaded from the station
>> # hardware. If the hardware does not support this, then new archive
>> # records will be generated in software.
>> # Set the following to "software" to force software record 
>> generation.
>> record_generation = software
>> this solves the problem with the logging errors.
>>
>> With the "unable to add records" problem solved I finished my data 
>> service - also in attachment - which seems to be working now :).
>>
>> Back to the issue with the archive records - I read in the customization 
>> guide, that in case of the record generation is set hardware, the archive 
>> records are directly genereted by the hardware. So I assume, that my 
>> hardware emitts an archive record to often.
>> As I have seen in the vantage protocol descriptin the archive data can be 
>> requested via the DMPAFT command and sending the timestamp of the last 
>> received archive record.
>> I think somewhere is a slight different behaviour between my WeatherDuino 
>> and an original Davis device - because the developper of the WeatherDuino 
>> says the emulation is compatible with the original Davis software and 
>> nearly each other weather software. I can confirm this.
>> Maybe it is necessary to use some kind of port sniffer to check the 
>> communication or do you know if there are additional debug outputs of the 
>> driver available.
>>
>> Best regards,
>> engolling
>>
>> Am Dienstag, 19. März 2019 00:57:16 UTC+1 schrieb gjr80:
>>>
>>> On Tuesday, 19 March 2019 07:57:06 UTC+10, engolling wrote:

 Hi Gary,
 thanks for your patience.

 This is not normal operation. Because something it triggering an 
> archive record to be saved every few seconds the NEW_ARCHIVE_RECORD event 
> is also triggered which causes your service to fire as well. The issue 
> here 
> is not your service but whatever is causing this archive record to be 
> written every few seconds. I suggest we step back a bit and get a clear 
> picture of how your system is configured and what it is running.
>

 I was wondering where these errors where coming from and I already 
 tried to get more information about it. I found somewhere a statement that 
 is not too bad and might happen if a very narrow saving interval is 

[weewx-user] unsupported locale setting

2019-03-23 Thread G400
reportengine: Caught unrecoverable exception in generator 
'weewx.cheetahgenerator.CheetahGenerator'
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   unsupported 
locale setting
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   Traceback 
(most recent call last):
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: File 
"/home/weewx/bin/weewx/reportengine.py", line 204, in run
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   obj.start()
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: File 
"/home/weewx/bin/weewx/reportengine.py", line 300, in start
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   self.run()
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: File 
"/home/weewx/bin/weewx/cheetahgenerator.py", line 157, in run
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   
self.initExtensions(gen_dict[section_name])
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: File 
"/home/weewx/bin/weewx/cheetahgenerator.py", line 199, in initExtensions
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   class_ = 
weeutil.weeutil._get_object(x)
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: File 
"/home/weewx/bin/weeutil/weeutil.py", line 1130, in _get_object
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   mod = 
__import__(module)
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: File 
"/home/weewx/bin/user/belchertown.py", line 26, in 
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   
locale.setlocale(locale.LC_ALL, "")
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]: File 
"/usr/lib/python2.7/locale.py", line 581, in setlocale
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   return 
_setlocale(category, locale)
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   Error: 
unsupported locale setting
Mar 23 18:54:54 aad-raspberry-01 weewx[10423]:   Generator 
terminated

My locale settings are as follows:
locale -a
C
C.UTF-8
en_US.utf8
POSIX

Content of /etc/default/locale
#  File generated by update-locale
LANG=en_US.UTF-8

What else do I need to check to fix this error?

-- 
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] weewx-purpleair

2019-03-23 Thread Michael Pfeuffer

I got mine working by setting it hostname to the IP address.

--Mike

On 3/23/2019 9:36 AM, parallelsys wrote:

Team,

There is very little documentation on how to get this plugin to run.

I follow the steps on the github.

I installed the requirements than the plugin.

My questions... Do i change the hostname to my purpleair hostname?

I added

[[[daypurpleair]]]
    data_binding = purpleair_binding
    pm2_5_cf_1

To my skin.conf (Seasonal)

I check the logs and see:

Mar 23 09:35:17 weewx weewx[28626]: manager: Added record 2019-03-23 
09:35:18 CDT (1553351718) to database 'purpleair.sdb'
Mar 23 09:35:17 weewx weewx[28626]: manager: Added record 2019-03-23 
09:35:18 CDT (1553351718) to daily summary in 'purpleair.sdb'
Mar 23 09:35:17 weewx weewx[28626]: manager: Added record 2019-03-23 
09:35:00 CDT (1553351700) to database 'weewx.sdb'
Mar 23 09:35:17 weewx weewx[28626]: manager: Added record 2019-03-23 
09:35:00 CDT (1553351700) to daily summary in 'weewx.sdb'
Mar 23 09:35:17 weewx weewx[28626]: cheetahgenerator: Generated 8 
files for report SeasonsReport in 0.14 seconds
Mar 23 09:35:17 weewx weewx[28626]: restx: EmonCMS: Published record 
2019-03-23 09:35:00 CDT (1553351700)
Mar 23 09:35:18 weewx weewx[28626]: imagegenerator: Generated 14 
images for SeasonsReport in 0.15 seconds
Mar 23 09:35:18 weewx weewx[28626]: copygenerator: copied 0 files to 
/var/www/html/weewx



and I cant see any purpleair data under my page.
Am I missing any steps?

Thanks!
--
You received this message because you are subscribed to the Google 
Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to weewx-user+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


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


[weewx-user] Re: weewx-purpleair

2019-03-23 Thread Andrew Milner
you need to say which value(s) you want to plot in the graph (would be the 
next line(s)) under pm2_5_cf_1 and you also need to make changes to 
any templates where you want value(s) to be shown.  Reread the wiki for 
details of tags to use in templates and values you can use in plots




On Saturday, 23 March 2019 16:36:37 UTC+2, parallelsys wrote:
>
> Team,
>
> There is very little documentation on how to get this plugin to run.
>
> I follow the steps on the github.
>
> I installed the requirements than the plugin.
>
> My questions... Do i change the hostname to my purpleair hostname?
>
> I added 
>
> [[[daypurpleair]]]
> data_binding = purpleair_binding
> pm2_5_cf_1
>
> To my skin.conf (Seasonal)
>
> I check the logs and see:
>
> Mar 23 09:35:17 weewx weewx[28626]: manager: Added record 2019-03-23 
> 09:35:18 CDT (1553351718) to database 'purpleair.sdb'
> Mar 23 09:35:17 weewx weewx[28626]: manager: Added record 2019-03-23 
> 09:35:18 CDT (1553351718) to daily summary in 'purpleair.sdb'
> Mar 23 09:35:17 weewx weewx[28626]: manager: Added record 2019-03-23 
> 09:35:00 CDT (1553351700) to database 'weewx.sdb'
> Mar 23 09:35:17 weewx weewx[28626]: manager: Added record 2019-03-23 
> 09:35:00 CDT (1553351700) to daily summary in 'weewx.sdb'
> Mar 23 09:35:17 weewx weewx[28626]: cheetahgenerator: Generated 8 files 
> for report SeasonsReport in 0.14 seconds
> Mar 23 09:35:17 weewx weewx[28626]: restx: EmonCMS: Published record 
> 2019-03-23 09:35:00 CDT (1553351700)
> Mar 23 09:35:18 weewx weewx[28626]: imagegenerator: Generated 14 images 
> for SeasonsReport in 0.15 seconds
> Mar 23 09:35:18 weewx weewx[28626]: copygenerator: copied 0 files to 
> /var/www/html/weewx
>
>
> and I cant see any purpleair data under my page.
> Am I missing any steps?
>
> Thanks!
>

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