[weewx-user] Re: TE923 owners: do your rain reports match your hardware console?

2020-06-20 Thread Timothy Witham
Thanks for the input Gary,

Another confirmation:

I counted 167 bucket tips in my database for the month of May while the 
memory display on the console shows 4.64 inches.  1/36*167=4.6389, 
exactly matching the console!

Tom has merged my pull request #575 so those of use with conversions will 
need to remove those when the new driver (0.41.1) makes it or our machines 
in a future upgrade.

Thanks Tom!

-- 
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/2681f046-3379-495d-b37c-7f4ab038ac81o%40googlegroups.com.


Re: [weewx-user] Wunderground doesn't accept my data

2020-06-20 Thread Tom Keffer
Normally, if you give the wrong API key, you get a 401 error. You are
getting a 403 error, which implies that the key may be right, but you do
not have authorization to access the data. Are you sure you have the right
station?

Also, double check the API key. You can find it here
. Does it match what you have
in weewx.conf?

-tk

On Sat, Jun 20, 2020 at 5:39 PM David Barto  wrote:

> I’ve got a new Station KCAPOWAY177
>
> I’ve got an API key  and a ‘key’ <8 alpha numeric key>
> and my password to log into the site.
>
> No matter which of the 3 I choose for my password, the response to
> wunderfixer is always the same.
>
> $ ./bin/wunderfixer --test --config=$(pwd)/weewx.conf
> --station=KCAPOWAY177 —password= --verbose
> Using configuration file /Users/Shared/weewx/weewx.conf.
> Using database binding 'wx_binding', which is bound to database
> 'archive_sqlite'
> Weather Underground Station:   KCAPOWAY177
> Date to check: 2020-06-20
> Number of archive records: 1055
> Unable to open Weather Underground station KCAPOWAY177  or  HTTP Error
> 403: Forbidden
> Could not get Weather Underground data. Exiting.
>
>
> Any idea of where to go now?
>
> David
>
> --
> 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/4DA82895-538B-4EC3-9D85-4E148E4CFB29%40kdbarto.org
> 
> .
>

-- 
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/CAPq0zEAE940H%3DAuHD30LC_Zx2oC1Myv041LbRGGv5hVshaxWQg%40mail.gmail.com.


[weewx-user] Wunderground doesn't accept my data

2020-06-20 Thread David Barto
I’ve got a new Station KCAPOWAY177

I’ve got an API key  and a ‘key’ <8 alpha numeric key> and my 
password to log into the site.

No matter which of the 3 I choose for my password, the response to wunderfixer 
is always the same.

$ ./bin/wunderfixer --test --config=$(pwd)/weewx.conf --station=KCAPOWAY177 
—password= --verbose
Using configuration file /Users/Shared/weewx/weewx.conf.
Using database binding 'wx_binding', which is bound to database 'archive_sqlite'
Weather Underground Station:   KCAPOWAY177
Date to check: 2020-06-20
Number of archive records: 1055
Unable to open Weather Underground station KCAPOWAY177  or  HTTP Error 403: 
Forbidden
Could not get Weather Underground data. Exiting.


Any idea of where to go now?

David

-- 
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/4DA82895-538B-4EC3-9D85-4E148E4CFB29%40kdbarto.org.


Re: [weewx-user] Wlink driver not compatible with Python3?

2020-06-20 Thread Tom Keffer
Yes. It looks like this driver has not been ported to Python 3. You would
have to use Python 2.

On Sat, Jun 20, 2020 at 10:49 AM Maarten van der Hoeven 
wrote:

> Hi,
>
> I tried to connect to weatherlink.com, and used the wlink driver (
> https://github.com/weewx/weewx/wiki/wlink). I am running the latest weewx
> 4.1.1, Python3.
>
> I got this error. Does this mean the driver is not ready for Python3? I
> did some digging, httplib is not available, and should be replaced by
> http.client.
>
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:   engine
> = weewx.engine.StdEngine(config_dict)
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__: File
> "/usr/share/weewx/weewx/engine.py", line 69, in __init__
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__: 
> self.setupStation(config_dict)
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__: File
> "/usr/share/weewx/weewx/engine.py", line 92, in setupStation
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__: 
> __import__(driver)
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__: File
> "/usr/share/weewx/user/wlink.py", line 181
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__: 
> httplib.BadStatusLine, httplib.IncompleteRead), e:
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:
> ^
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__: 
> SyntaxError: invalid syntax
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:   Exiting.
>
> --
> 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/d6c7448f-7389-4f78-8fa8-0cd7a2a32004o%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/CAPq0zECoTppHbO_qB4qj9pFXkv9%3DF3KCVwVYfs77_wGN_--COA%40mail.gmail.com.


[weewx-user] Re: Upgrading from 3.8.0 prior to going to xubuntu 20.04

2020-06-20 Thread Iain Simpson

I'm having to double (or triple)  check but I think it's just the 'conky 
skin and the .conf file that might need to be reconstituted.
As long as I can keep the database running.

It looks that the best way to update is via the .deb file
and do my homework first.

Thanks for comments.

On Saturday, June 20, 2020 at 7:50:10 PM UTC+1, vince wrote:
>
> On Friday, June 19, 2020 at 5:42:09 AM UTC-7, Iain Simpson wrote:
>>
>> I am wondering whether this is the wisest route or whether to 
>> a. use the '.deb' file and rebuild my customisation.
>>
>>
> What customization are you referring to ?
> Skins ?
> Code ?
> Or just your weewx.conf edits ?
>
>

-- 
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/f1618962-a18c-4406-bbb2-7c72763d08a9o%40googlegroups.com.


Re: [weewx-user] Suggestions on best way to upgrade to 4.1.1

2020-06-20 Thread Tom Keffer
There seems to be an issue with using owfs with Python 3 under buster. See
this thread:
https://groups.google.com/d/msg/weewx-user/ntrwrTl1xew/37u0_b7nAgAJ

-tk

On Fri, Jun 19, 2020 at 10:30 AM michael form  wrote:

> I have Weewx 3.92 running on a Raspberry  Pi3 using One-Wire sensors for
> all measurements via a USB to 1-Wire interface (DS9490). The Pi is running
> Buster and I installed Weewx using the Debian installation package.
> Everything is now working fine and I want to tempt fate by upgrading to
> Weewx 4.1.1 (and Python 3).
>
> What is the easiest and most reliable way to do this? Do I just install
> Weewx again on the same Pi using the procedure for an initial install of
> the Debian package? Will it keep the database and conf files or do I have
> to save them and put them back when done? Do I need to do anything with
> OWFS to work with Python 3? Should I follow the procedure in installation
> guide:
>
> Tell your system to trust weewx.com:
>
> wget -qO - http://weewx.com/keys.html | sudo apt-key add -
>
> For Debian10 and later, use python3:
>
> wget -qO - http://weewx.com/apt/weewx-python3.list | sudo tee 
> /etc/apt/sources.list.d/weewx.list
>
>
> Basically, how best to upgrade without losing the old data and keeping
> things working?
>
> Thanks for any guidance.
>
> Michael
>
> --
> 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/ff7326d5-d1cf-4523-b963-eb9104dc1e0fo%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/CAPq0zEAsJvWhUMzpBFPrAj6nTEh5U-bWdBX1iRo9DLJZiEF%3DwA%40mail.gmail.com.


Re: [weewx-user] Re: Installation/configuration issues (WeeWx on a Raspberry Pi4)

2020-06-20 Thread Garry A Lockyer
Did you get webpages with the Simulator?  Any errors in says log?

Regards,

Garry Lockyer
C: +1.250.689.0686
E: ga...@lockyer.ca


> On Jun 20, 2020, at 13:40, Stuart Beaumont  wrote:
> 
> Thanks Garry
> 
> I followed those steps with no joy. Then uninstalled and reinstalled. Same 
> result. 
> 
> Seems to me there is a driver issue. The interceptor driver with either 
> wu-client, observer or ecowitt as the device type doesn’t show any results. 
> 
> The weewx.sdb file is being updated so the connection is working. 
> 
> Anyone with any ideas on how to solve this one?
> 
> -- 
> 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/8f5538c7-5b53-4347-aa55-968ab01253dfo%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/B93A1E01-CF87-43DC-AD08-BC136A7CD142%40gmail.com.


RE: [weewx-user] Re: Installation/configuration issues (WeeWx on a Raspberry Pi4)

2020-06-20 Thread Stuart Beaumont
Thanks Garry

I followed those steps with no joy. Then uninstalled and reinstalled. Same 
result. 

Seems to me there is a driver issue. The interceptor driver with either 
wu-client, observer or ecowitt as the device type doesn’t show any results. 

The weewx.sdb file is being updated so the connection is working. 

Anyone with any ideas on how to solve this one?

-- 
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/8f5538c7-5b53-4347-aa55-968ab01253dfo%40googlegroups.com.


Re: [weewx-user] Unicode/UTF-8 characters no longer translating

2020-06-20 Thread Colin Larsen
Ah, that's brilliant, thanks Tom

Cheers
Colin

On Sun, 21 Jun 2020, 06:29 Tom Keffer,  wrote:

> It looks like you sorted this problem out yourself, but I thought I'd
> explain why your code was not working.
>
> Under Python 3, all strings are unicode. So, the line
>
> weewx.units.default_unit_label_dict['microgramm_per_meter_cubic']  = '
> \xce\xbcg/m\xc2\xb3'
>
>
> creates a unicode string with code points 32. 206, 188, 103, etc., which
> corresponds to characters 'μg/m³'. The key here is that your code
> is specifying *code points,* not UTF encodings.
>
> If you want to use UTF encodings, then you must decode them into unicode.
> So, it becomes:
>
> weewx.units.default_unit_label_dict['microgramm_per_meter_cubic']  = b'
> \xce\xbcg/m\xc2\xb3'.decode()
>
>
> The right hand side is now a *byte string*, which gets decoded into
> unicode.
>
> -tk
>
>
> On Wed, Jun 17, 2020 at 8:00 PM Colin Larsen 
> wrote:
>
>> Hi all
>>
>> As part of my installation I have FilePile grabbing some air quality
>> data. To get the proper unit formatting for micrograms per cubic meter I
>> use the units line below -
>>
>> weewx.units.default_unit_label_dict[*'microgramm_per_meter_cubic'*]  = *'
>> \xce\xbcg/m\xc2\xb3'*
>>
>> which was working fine until (I think) the update to either Weewx 4.0 or
>> Python 3. The output now looks like this ..
>>
>> CO2 level is 4904 ppm, AQM2.5 is 2.4 μg/m³, AQM10.0 is 2.8 μg/m³, Air
>> Quality Index is 10
>>
>> Any help appreciated
>>
>> Colin
>>
>> --
>> 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/CACjxfUubdgLPY1BaHv3Qe2p%3DkPteM4Ux76azcUpVLfDET117mA%40mail.gmail.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/CAPq0zEAHn9p%3DkBfP3UWF2Ue9Jp9QCb8DuZVV89veAJ4onzxrFQ%40mail.gmail.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/CACjxfUuLFw%2Bm4rCEPO3OgunZf3C-mxQrhvXjYs0QcsoFO3DBZg%40mail.gmail.com.


[weewx-user] Re: Belchertown no charts

2020-06-20 Thread Manfred Maier
Am Widget habe ich nichts geändert.

In der .htaccess Datei auf dem Webserver habe ich folgenden Code eingefügt:
# Extra Security Headers

Header set Feature-Policy "geolocation 'none'"


Bei manchen Browsers (leider nicht bei allen) unterdrückt dieser Code die 
Standort-Abfrage der Windy-Widgets.

Ich kann mir aber nicht vorstellen, dass dies der Grund dafür ist, dass bei 
Dir eine Fehlermeldung kommt und bei mir nicht.
Bekommst Du die gleiche Fehlermeldung, wenn Du auf andere Seiten mit dem 
Belchertown-Skin gehst?

Hast Du schon mal im Forum von Windy nachgelesen, ob das Problem bekannt 
ist?

geni08...@gmail.com schrieb am Samstag, 20. Juni 2020 um 17:04:32 UTC+2:

> Ich verwende Firefox 77.0.1 (64-Bit), die Fehlermeldung kommt aber nur von 
> meiner Seite, bei Deiner gibt es keine!
> Was ist bei Windy bei dir anders?
>
> Am Samstag, 20. Juni 2020 13:08:25 UTC+2 schrieb Manfred Maier:
>>
>> Das Widget von Meteoblue ist leider nach unten hin nicht responsive. 
>> Bisher ist Meteoblue aber die beste und schönste Vorhersage, die ich 
>> gefunden habe.
>> Sowohl DarkSky als auch Aeris liegen hier bei mir von den Vorhersagen her 
>> leider deutlich daneben.
>>
>> Die Fehlermeldung von Windy bekomme ich nicht. Welchen Browser (mit 
>> Version) verwendest Du?
>>  
>>
>> geni08...@gmail.com schrieb am Samstag, 20. Juni 2020 um 13:04:10 UTC+2:
>>
>>> Auf dem Handy wird aber abgeschnitten!
>>>
>>> warum kommt die Fehlermeldung von Windy
>>>
>>> Am Samstag, 20. Juni 2020 11:29:05 UTC+2 schrieb Manfred Maier:

 Responsive ist es bei mir auch nur in Grenzen.
 Es gibt eine minimale Breite, ab der das Widget dann abgeschnitten 
 wird. Nur nach oben hin skaliert es schön.

 geni08...@gmail.com schrieb am Samstag, 20. Juni 2020 um 10:21:01 
 UTC+2:

> @Manfred
> Der Eintrag gemäss deinen Angaben funktioniert aber nicht Responsiv, 
> irgendwie bekommt das iframe die benutzte breite nicht mit.
> Hast du eine Idee?
>
> Am Freitag, 19. Juni 2020 13:14:23 UTC+2 schrieb Manfred Maier:
>>
>> Ist bei mir in der index_hook_after_charts.inc drin.
>>
>>
>> 1) Datei (index_hook_after_charts.inc) im Belchertown-Verzeichnis 
>> anlegen
>> 2) den folgenden Code reinkopieren
>> 3) In der weewx.conf (Belchertown -Section) einschalten, dass der 
>> Index-Hook alle 300 Sekunden (oder auch weniger oft) neu geladen wird.
>> 4) Noch den iframe aus meinem Code für Deinen Standort anpassen (den 
>> Code gibt's auf Meteoblue unter Website-Widgets).
>>
>> 
>> 
>> 
>> https://www.meteoblue.com/de/wetter/widget/three/zorneding_deutschland_2803884?geoloc=fixed=1=0=7=CELSIUS=KILOMETER_PER_HOUR=image;
>>  
>>  frameborder="0" scrolling="YES" allowtransparency="true" 
>> sandbox="allow-same-origin allow-scripts allow-popups 
>> allow-popups-to-escape-sandbox" style="width: 100%; height: 525px; 
>> padding-left: 16px; padding-right: 16px">
>> 
>> 
>>
>>

-- 
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/51cb759a-0711-4e62-857a-8f36ce9a61afn%40googlegroups.com.


[weewx-user] Re: Upgrading from 3.8.0 prior to going to xubuntu 20.04

2020-06-20 Thread vince
On Friday, June 19, 2020 at 5:42:09 AM UTC-7, Iain Simpson wrote:
>
> I am wondering whether this is the wisest route or whether to 
> a. use the '.deb' file and rebuild my customisation.
>
>
What customization are you referring to ?
Skins ?
Code ?
Or just your weewx.conf edits ?

-- 
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/7ff988a5-c795-4b4e-b3b4-6f77369b0f84o%40googlegroups.com.


Re: [weewx-user] unrecognised magic number

2020-06-20 Thread Tom Keffer
>From this thread
:

try power cycling the console: unplug from usb, remove batteries, wait for
> 30 seconds, install batteries, plug in usb.  then start weewx.


On Fri, Jun 19, 2020 at 6:38 AM Raffaello Bonvino <
raffaello.bonv...@gmail.com> wrote:

> Hi all, I have a WH1080SE and I'm running weewx 3.9.2 on a raspberrypi. I
> just noticed that the fousb driver logs the following sentence:
>
> Jun 19 15:11:42 raspberrypi weewx[13403]: fousb: unrecognised magic number
> 3d3f
> Jun 19 15:11:42 raspberrypi weewx[13403]: fousb: synchronising to the
> weather station (quality=0)
> Jun 19 15:12:37 raspberrypi weewx[13403]: fousb: unstable read: blocks
> differ for ptr 0x000d80
>
>
>
> It complains about an unrecognised magic number, but is able to poll
> correctly the weather station. What's the matter with this error? 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/a74c8f00-9747-46e8-b047-4531897adb24o%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/CAPq0zEAEkkp_ioqydeyhKW6-iT2FxCd5mTxd2_hHFXJhx-%3D0Mw%40mail.gmail.com.


Re: [weewx-user] Upgrading from 3.8.0 prior to going to xubuntu 20.04

2020-06-20 Thread Tom Keffer
This would not be a wise move. If you started with a deb install, you
should stick with it. Changing to a setup.py install just by changing
setup.cfg will not work (there are other differences).

Alternatively, you could switch installation methods, but this would
require copying some files to their new place. Basically the reverse of the
wiki article *How to convert from setup.py install to debian install
*
.

On Fri, Jun 19, 2020 at 5:42 AM Iain Simpson 
wrote:

> In preparation to a move to latest xubuntu (20.04.1) from 18.04 I am
> looking to upgrade to the latest version of weewx.
>
> I am still running 3.8.0 and have made some additions (to interface with
> Conky).
> Reading the upgrade documentation I was going to go via the 'setup.py'
> route.
> Checking my current setup I am running from
> /usr/share/weewx
> /etc/weewx
> /var/lib/weekx (sqlite)
>
> The upgrade documentation says to change setup.cfg to 'previous
> installation' this presumably will be '/usr/share/weewx'
>
> I am wondering whether this is the wisest route or whether to
> a. use the '.deb' file and rebuild my customisation.
> b. stick with Python 2
>
> It's some years since I did the original weewx installation and a lot has
> been forgotten.
>
> Can anyone advise please.
>
> --
> 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/367f3f6a-4fc0-49bd-ba6a-9b7a5e8e30b8o%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/CAPq0zEBOFUkZFNMVw2SgdyC03pxoOKUgcPtqhjHebp5CtE6QBQ%40mail.gmail.com.


Re: [weewx-user] Unicode/UTF-8 characters no longer translating

2020-06-20 Thread Tom Keffer
It looks like you sorted this problem out yourself, but I thought I'd
explain why your code was not working.

Under Python 3, all strings are unicode. So, the line

weewx.units.default_unit_label_dict['microgramm_per_meter_cubic']  = '
\xce\xbcg/m\xc2\xb3'


creates a unicode string with code points 32. 206, 188, 103, etc., which
corresponds to characters 'μg/m³'. The key here is that your code
is specifying *code points,* not UTF encodings.

If you want to use UTF encodings, then you must decode them into unicode.
So, it becomes:

weewx.units.default_unit_label_dict['microgramm_per_meter_cubic']  = b'
\xce\xbcg/m\xc2\xb3'.decode()


The right hand side is now a *byte string*, which gets decoded into unicode.

-tk


On Wed, Jun 17, 2020 at 8:00 PM Colin Larsen  wrote:

> Hi all
>
> As part of my installation I have FilePile grabbing some air quality data.
> To get the proper unit formatting for micrograms per cubic meter I use the
> units line below -
>
> weewx.units.default_unit_label_dict[*'microgramm_per_meter_cubic'*]  = *'
> \xce\xbcg/m\xc2\xb3'*
>
> which was working fine until (I think) the update to either Weewx 4.0 or
> Python 3. The output now looks like this ..
>
> CO2 level is 4904 ppm, AQM2.5 is 2.4 μg/m³, AQM10.0 is 2.8 μg/m³, Air
> Quality Index is 10
>
> Any help appreciated
>
> Colin
>
> --
> 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/CACjxfUubdgLPY1BaHv3Qe2p%3DkPteM4Ux76azcUpVLfDET117mA%40mail.gmail.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/CAPq0zEAHn9p%3DkBfP3UWF2Ue9Jp9QCb8DuZVV89veAJ4onzxrFQ%40mail.gmail.com.


[weewx-user] Re: upload to wetter.com fails - python3

2020-06-20 Thread Roland Lang
Hi Tom,
thank you, this is working now!

Roland

-- 
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/98124c38-ad4a-4504-8aeb-62c9de037b64o%40googlegroups.com.


Re: [weewx-user] Re: move from old 3.9 (python2) machine to a new machine running 4.1.1 (python3) with mysql database from 3.9 to 4.1...?

2020-06-20 Thread 'Christian Peters' via weewx-user
Thank you, Graham and Cameron,

it took a long time but Graham was on the right track.

I check $trend.barometer with an #if condition. 
This gives N/A for $trend.barometer ...??? 
This works in P2 and 3.9.x but now not in P3 4.x.x?

Changing that to $trend($time_delta=3600).barometer gives a value!? 

What a nightmare to debug! :-P 

Regards,

Christian 

Am Samstag, 20. Juni 2020 14:36:40 UTC+2 schrieb Graham Eddy:
>
> suggest you look in index.html.tmpl for an expression of the form #if x > 
> y, where x could produce value None and y is an int.
> g-eddy
>
>
> On 20 Jun 2020, at 10:30 pm, Cameron D  > wrote:
>
> Hi Christian,
> That error has me lost. I use only a heavily modified Seasons skin, which 
> I migrated by merging my changes into the new skin folder.  I have trimmed 
> out all the references to data I do not have, mainly to make it easier to 
> follow, and perhaps get a tiny improvement in efficiency.
>
> I would suggest you enable only one skin, then check for it trying to use 
> parameters not in the database - mostly the uncommon ones are tested for 
> existence before trying to use them but maybe some aren't.
>
> If you are lucky somebody might come along who understands the issue - I 
> am just guessing.
>
> Cameron.
>
>
> On Saturday, 20 June 2020 19:15:45 UTC+10, Christian Peters wrote:
>>
>> Hi Caeron,
>>
>> damn...yestheat was obvious. It works now. Thank you very much
>>
>> But Python3 seems not as lazy as Python2, now I got this and weewx stops 
>> generating the webpage:
>>
>>  
>> Generate failed with exception ''
>> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:  
>> Ignoring template /etc/weewx/skins/Responsive/index.html.tmpl
>> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:  
>> Reason: '>' not supported between instances of 'NoneType' and 'int'
>> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:   
>> Traceback (most recent call last):
>> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator: 
>> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate
>> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:    
>>unicode_string = compiled_template.respond()
>> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator: 
>> File "_etc_weewx_skins_Responsive_index_html_tmpl.py", line 2284, in 
>> respond
>> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:   
>> TypeError: '>' not supported between instances of 'NoneType' and 'int'
>>
>>
>> I fear some value inside the database which was queried and I want to do 
>> a graph seems to contain 'no data' or 'NoneType'?
>> But the errer doen'st really help where it could happened...! :-P
>>
>> Let's see...
>>
>> Regards,
>>
>> Christian 
>>
>> Am Samstag, 20. Juni 2020 10:50:42 UTC+2 schrieb Cameron D:
>>>
>>> Hi Christian,
>>> sorry, I forgot the bit where you also need to rename your main schema 
>>> from "schema" to "table".
>>>
>>> Don't worry about adding columns just in case you might need them in 
>>> future - with mysql you can add them any time you need. It is rather more 
>>> flexible than sqlite about altering table definitions after they have been 
>>> created.
>>>
>>> Cameron.
>>>
>>
> -- 
> 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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/151b98d9-9805-4f3b-8654-7c506718bd36o%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/139957d3-712d-4247-8ac2-dda16dd3b2ddo%40googlegroups.com.


[weewx-user] Wlink driver not compatible with Python3?

2020-06-20 Thread Maarten van der Hoeven
Hi,

I tried to connect to weatherlink.com, and used the wlink driver 
(https://github.com/weewx/weewx/wiki/wlink). I am running the latest weewx 
4.1.1, Python3.

I got this error. Does this mean the driver is not ready for Python3? I did 
some digging, httplib is not available, and should be replaced by 
http.client. 

Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:   engine = 
weewx.engine.StdEngine(config_dict)
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 69, in __init__
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:   
self.setupStation(config_dict)
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 92, in setupStation
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:   
__import__(driver)
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__: File 
"/usr/share/weewx/user/wlink.py", line 181
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:   
httplib.BadStatusLine, httplib.IncompleteRead), e:
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__: 
^
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:   SyntaxError: 
invalid syntax
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:   Exiting.

-- 
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/d6c7448f-7389-4f78-8fa8-0cd7a2a32004o%40googlegroups.com.


[weewx-user] Re: Belchertown no charts

2020-06-20 Thread Geni 0815
Ich verwende Firefox 77.0.1 (64-Bit), die Fehlermeldung kommt aber nur von 
meiner Seite, bei Deiner gibt es keine!
Was ist bei Windy bei dir anders?

Am Samstag, 20. Juni 2020 13:08:25 UTC+2 schrieb Manfred Maier:
>
> Das Widget von Meteoblue ist leider nach unten hin nicht responsive. 
> Bisher ist Meteoblue aber die beste und schönste Vorhersage, die ich 
> gefunden habe.
> Sowohl DarkSky als auch Aeris liegen hier bei mir von den Vorhersagen her 
> leider deutlich daneben.
>
> Die Fehlermeldung von Windy bekomme ich nicht. Welchen Browser (mit 
> Version) verwendest Du?
>  
>
> geni08...@gmail.com schrieb am Samstag, 20. Juni 2020 um 13:04:10 UTC+2:
>
>> Auf dem Handy wird aber abgeschnitten!
>>
>> warum kommt die Fehlermeldung von Windy
>>
>> Am Samstag, 20. Juni 2020 11:29:05 UTC+2 schrieb Manfred Maier:
>>>
>>> Responsive ist es bei mir auch nur in Grenzen.
>>> Es gibt eine minimale Breite, ab der das Widget dann abgeschnitten wird. 
>>> Nur nach oben hin skaliert es schön.
>>>
>>> geni08...@gmail.com schrieb am Samstag, 20. Juni 2020 um 10:21:01 UTC+2:
>>>
 @Manfred
 Der Eintrag gemäss deinen Angaben funktioniert aber nicht Responsiv, 
 irgendwie bekommt das iframe die benutzte breite nicht mit.
 Hast du eine Idee?

 Am Freitag, 19. Juni 2020 13:14:23 UTC+2 schrieb Manfred Maier:
>
> Ist bei mir in der index_hook_after_charts.inc drin.
>
>
> 1) Datei (index_hook_after_charts.inc) im Belchertown-Verzeichnis 
> anlegen
> 2) den folgenden Code reinkopieren
> 3) In der weewx.conf (Belchertown -Section) einschalten, dass der 
> Index-Hook alle 300 Sekunden (oder auch weniger oft) neu geladen wird.
> 4) Noch den iframe aus meinem Code für Deinen Standort anpassen (den 
> Code gibt's auf Meteoblue unter Website-Widgets).
>
> 
> 
> 
> https://www.meteoblue.com/de/wetter/widget/three/zorneding_deutschland_2803884?geoloc=fixed=1=0=7=CELSIUS=KILOMETER_PER_HOUR=image;
>  
>  frameborder="0" scrolling="YES" allowtransparency="true" 
> sandbox="allow-same-origin allow-scripts allow-popups 
> allow-popups-to-escape-sandbox" style="width: 100%; height: 525px; 
> padding-left: 16px; padding-right: 16px">
> 
> 
>
>

-- 
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/d71d68da-2937-4243-be51-6d38cba4558bo%40googlegroups.com.


[weewx-user] Re: Weatherlink IP Discontinued... What are folks using now?

2020-06-20 Thread Maarten van der Hoeven
But -correct me if wrong- WLL is only supplying current records. There is 
not an archive available to pull previous records from. In other words, if 
for some reason WeeWX is not running for a day, and you fire it up again, 
you cannot retrieve the previous records anymore, as was the case with the 
IP-logger.

Unless, of course, a driver is available that retrieves the archived 
records directly from Weathlink.com (CumulusMX has implemented this). As 
far as I know, no such driver is available for weewx (am I right?).

Op zaterdag 20 juni 2020 15:42:54 UTC+2 schreef galfert:
>
> You could also ge the Davis WeatherLink Live and use that with WeeWX. 
> You need the WLL driver:
> https://github.com/jonotaegi/weewx-wll
>
> One nice thing about the WLL is that you can then also run other software 
> simultaneously on the same or different system as WeeWX. In case you also 
> wanted to check out Weather-Display or Cumulus MX for example. 
>

-- 
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/7b9e457f-e3fe-4294-9fc6-269f96f463c3o%40googlegroups.com.


[weewx-user] Re: Weatherlink IP Discontinued... What are folks using now?

2020-06-20 Thread galfert
You could also ge the Davis WeatherLink Live and use that with WeeWX. 
You need the WLL driver:
https://github.com/jonotaegi/weewx-wll

One nice thing about the WLL is that you can then also run other software 
simultaneously on the same or different system as WeeWX. In case you also 
wanted to check out Weather-Display or Cumulus MX for example. 

-- 
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/ba0b7ed4-7d58-4a5e-a483-8a5fcf5f721eo%40googlegroups.com.


[weewx-user] Re: move from old 3.9 (python2) machine to a new machine running 4.1.1 (python3) with mysql database from 3.9 to 4.1...?

2020-06-20 Thread Cameron D
One other possibility - I notice the developer of Responsive skin is still 
running 3.9.2.  Perhaps there is something about the skin that needs 
updating for Python 3.  

-- 
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/f12beb72-bba1-47e1-ba94-4f093ad8eaeco%40googlegroups.com.


Re: [weewx-user] Re: move from old 3.9 (python2) machine to a new machine running 4.1.1 (python3) with mysql database from 3.9 to 4.1...?

2020-06-20 Thread Graham Eddy
suggest you look in index.html.tmpl for an expression of the form #if x > y, 
where x could produce value None and y is an int.
g-eddy


> On 20 Jun 2020, at 10:30 pm, Cameron D  wrote:
> 
> Hi Christian,
> That error has me lost. I use only a heavily modified Seasons skin, which I 
> migrated by merging my changes into the new skin folder.  I have trimmed out 
> all the references to data I do not have, mainly to make it easier to follow, 
> and perhaps get a tiny improvement in efficiency.
> 
> I would suggest you enable only one skin, then check for it trying to use 
> parameters not in the database - mostly the uncommon ones are tested for 
> existence before trying to use them but maybe some aren't.
> 
> If you are lucky somebody might come along who understands the issue - I am 
> just guessing.
> 
> Cameron.
> 
> 
> On Saturday, 20 June 2020 19:15:45 UTC+10, Christian Peters wrote:
> Hi Caeron,
> 
> damn...yestheat was obvious. It works now. Thank you very much
> 
> But Python3 seems not as lazy as Python2, now I got this and weewx stops 
> generating the webpage:
> 
>  
> Generate failed with exception ''
> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:  
> Ignoring template /etc/weewx/skins/Responsive/index.html.tmpl
> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:  Reason: 
> '>' not supported between instances of 'NoneType' and 'int'
> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:   
> Traceback (most recent call last):
> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate
> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:   
> unicode_string = compiled_template.respond()
> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator: File 
> "_etc_weewx_skins_Responsive_index_html_tmpl.py", line 2284, in respond
> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:   
> TypeError: '>' not supported between instances of 'NoneType' and 'int'
> 
> 
> I fear some value inside the database which was queried and I want to do a 
> graph seems to contain 'no data' or 'NoneType'?
> But the errer doen'st really help where it could happened...! :-P
> 
> Let's see...
> 
> Regards,
> 
> Christian 
> 
> Am Samstag, 20. Juni 2020 10:50:42 UTC+2 schrieb Cameron D:
> Hi Christian,
> sorry, I forgot the bit where you also need to rename your main schema from 
> "schema" to "table".
> 
> Don't worry about adding columns just in case you might need them in future - 
> with mysql you can add them any time you need. It is rather more flexible 
> than sqlite about altering table definitions after they have been created.
> 
> Cameron.
> 
> -- 
> 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/151b98d9-9805-4f3b-8654-7c506718bd36o%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/895A1464-24A4-40F9-8B85-8DD356F59DF2%40gmail.com.


Re: [weewx-user] wee_config --reconfigure / weewx.conf / group_pressure

2020-06-20 Thread Tom Keffer
Right you are! Thanks, Joachim.

I've created issue #576  to
track.

-tk

On Sun, Jun 14, 2020 at 1:57 AM Joachim Puttkammer 
wrote:

> Hallo,
>
> I noticed that after a "sudo wee_config --reconfigure" in the weewx.conf
> the lines in the [[Defaults]] [[Units]] Groups
> group_pressure = hPa and group_speed = km_per_hour must always be
> overwritten to *mbar* or *meter_per_second*.
>
> Joachim
>
> --
> 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/6715cd14-806f-448c-a1e3-4e2cd54552b0o%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/CAPq0zECbetVT8uFzzOzaGb6RXSKtAGSut-TphDEo7onQaRRQ5w%40mail.gmail.com.


[weewx-user] Re: move from old 3.9 (python2) machine to a new machine running 4.1.1 (python3) with mysql database from 3.9 to 4.1...?

2020-06-20 Thread Cameron D
Hi Christian,
That error has me lost. I use only a heavily modified Seasons skin, which I 
migrated by merging my changes into the new skin folder.  I have trimmed 
out all the references to data I do not have, mainly to make it easier to 
follow, and perhaps get a tiny improvement in efficiency.

I would suggest you enable only one skin, then check for it trying to use 
parameters not in the database - mostly the uncommon ones are tested for 
existence before trying to use them but maybe some aren't.

If you are lucky somebody might come along who understands the issue - I am 
just guessing.

Cameron.


On Saturday, 20 June 2020 19:15:45 UTC+10, Christian Peters wrote:
>
> Hi Caeron,
>
> damn...yestheat was obvious. It works now. Thank you very much
>
> But Python3 seems not as lazy as Python2, now I got this and weewx stops 
> generating the webpage:
>
>  
> Generate failed with exception ''
> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:  
> Ignoring template /etc/weewx/skins/Responsive/index.html.tmpl
> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:  
> Reason: '>' not supported between instances of 'NoneType' and 'int'
> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:   
> Traceback (most recent call last):
> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator: 
> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate
> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:  
>  unicode_string = compiled_template.respond()
> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator: 
> File "_etc_weewx_skins_Responsive_index_html_tmpl.py", line 2284, in 
> respond
> Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:   
> TypeError: '>' not supported between instances of 'NoneType' and 'int'
>
>
> I fear some value inside the database which was queried and I want to do a 
> graph seems to contain 'no data' or 'NoneType'?
> But the errer doen'st really help where it could happened...! :-P
>
> Let's see...
>
> Regards,
>
> Christian 
>
> Am Samstag, 20. Juni 2020 10:50:42 UTC+2 schrieb Cameron D:
>>
>> Hi Christian,
>> sorry, I forgot the bit where you also need to rename your main schema 
>> from "schema" to "table".
>>
>> Don't worry about adding columns just in case you might need them in 
>> future - with mysql you can add them any time you need. It is rather more 
>> flexible than sqlite about altering table definitions after they have been 
>> created.
>>
>> Cameron.
>>
>

-- 
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/151b98d9-9805-4f3b-8654-7c506718bd36o%40googlegroups.com.


Re: [weewx-user] upload to wetter.com fails - python3

2020-06-20 Thread Tom Keffer
Roland,

Could you please replace the file user/wetter.py with this one, then try
again?

-tk

On Sun, Jun 14, 2020 at 3:11 AM Roland Lang  wrote:

> Hi,
> yesterday I updated my weewx installation from python2 to python3. The
> Upload to wetter.com fails now with following error (but weewx keeps on
> working):
>
> Jun 14 10:25:29 wetter python3[5775]: weewx[5775] ERROR weewx.restx:
> Wetter: Unexpected exception of type 
> Jun 14 10:25:29 wetter python3[5775]: weewx[5775] ERROR weewx.restx: ***
> Traceback (most recent call last):
> Jun 14 10:25:29 wetter python3[5775]: weewx[5775] ERROR weewx.restx: ***
>   File "/usr/share/weewx/weewx/restx.py", line 378, in run_loop
> Jun 14 10:25:29 wetter python3[5775]: weewx[5775] ERROR weewx.restx: ***
> self.process_record(_record, dbmanager)
> Jun 14 10:25:29 wetter python3[5775]: weewx[5775] ERROR weewx.restx: ***
>   File "/usr/share/weewx/weewx/restx.py", line 442, in process_record
> Jun 14 10:25:29 wetter python3[5775]: weewx[5775] ERROR weewx.restx: ***
> self.post_with_retries(_request, data)
> Jun 14 10:25:29 wetter python3[5775]: weewx[5775] ERROR weewx.restx: ***
>   File "/usr/share/weewx/weewx/restx.py", line 484, in post_with_retries
> Jun 14 10:25:29 wetter python3[5775]: weewx[5775] ERROR weewx.restx: ***
> self.check_response(_response)
> Jun 14 10:25:29 wetter python3[5775]: weewx[5775] ERROR weewx.restx: ***
>   File "/usr/share/weewx/user/wetter.py", line 143, in check_response
> Jun 14 10:25:29 wetter python3[5775]: weewx[5775] ERROR weewx.restx: ***
> if txt.find('"errorcode":"100"') != -1 or \
> Jun 14 10:25:29 wetter python3[5775]: weewx[5775] ERROR weewx.restx: ***
> TypeError: argument should be integer or bytes-like object, not 'str'
> Jun 14 10:25:29 wetter python3[5775]: weewx[5775] CRITICAL weewx.restx:
> Wetter: Thread terminating. Reason: argument should be integer or bytes-like
> object, not 'str'
>
> I got it working again by commenting out the whole if..else statement in
> wetter.py, as it is only a check for errors. But that's of course not the
> final solution :-)
> 140 def check_response(self, response):
> 141 """Override, and check for wetter errors."""
> 142 txt = response.read().lower()
> 143   # if txt.find('"errorcode":"100"') != -1 or \
> 144   #txt.find('"errorcode":"101"') != -1 or \
> 145   #txt.find('"errorcode":"102"') != -1:
> 146   # raise weewx.restx.BadLogin(txt)
> 147   # elif txt.find('"status":"error"') != -1:
> 148   # raise weewx.restx.FailedPost("Server returned '%s'" %
> txt)
>
> Can you please help me? I don't have a clue about python (yet).
>
> Regards,
> Roland
>
> --
> 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/137870dd-4d32-4288-9e27-2fcc0a6b26ado%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/CAPq0zEB580Qa2FFN93t-nihNEHjM%2BC7%2B6OsPGDX3GX%2B%3DpdzDWg%40mail.gmail.com.
# Copyright 2013-2020 Matthew Wall
"""
Upload data to wetter.com
  http://wetter.com

[StdRESTful]
[[Wetter]]
enable = true | false
username = STATION ID
password = STATION PASSWORD
"""

try:
# Python 3
import queue
except ImportError:
import Queue as queue
import re
import sys
import time
try:
# Python 3
from urllib.parse import urlencode
except ImportError:
# Python 2
from urllib import urlencode

import weewx
import weewx.restx
import weewx.units

VERSION = "0.6"
API_VERSION = "5.0.2 - 2015/06/01"

if weewx.__version__ < "3":
raise weewx.UnsupportedFeature("weewx 3 is required, found %s" %
   weewx.__version__)

try:
# Test for new-style weewx logging by trying to import weeutil.logger
import weeutil.logger
import logging
log = logging.getLogger(__name__)

def logdbg(msg):
log.debug(msg)

def loginf(msg):
log.info(msg)

def logerr(msg):
log.error(msg)

except ImportError:
# Old-style weewx logging
import syslog

def logmsg(level, msg):
syslog.syslog(level, 'Wetter: %s' % msg)

def logdbg(msg):
logmsg(syslog.LOG_DEBUG, msg)

def loginf(msg):
logmsg(syslog.LOG_INFO, msg)

def logerr(msg):
logmsg(syslog.LOG_ERR, msg)


class 

[weewx-user] Re: Belchertown no charts

2020-06-20 Thread Manfred Maier
Das Widget von Meteoblue ist leider nach unten hin nicht responsive. Bisher 
ist Meteoblue aber die beste und schönste Vorhersage, die ich gefunden habe.
Sowohl DarkSky als auch Aeris liegen hier bei mir von den Vorhersagen her 
leider deutlich daneben.

Die Fehlermeldung von Windy bekomme ich nicht. Welchen Browser (mit 
Version) verwendest Du?
 

geni08...@gmail.com schrieb am Samstag, 20. Juni 2020 um 13:04:10 UTC+2:

> Auf dem Handy wird aber abgeschnitten!
>
> warum kommt die Fehlermeldung von Windy
>
> Am Samstag, 20. Juni 2020 11:29:05 UTC+2 schrieb Manfred Maier:
>>
>> Responsive ist es bei mir auch nur in Grenzen.
>> Es gibt eine minimale Breite, ab der das Widget dann abgeschnitten wird. 
>> Nur nach oben hin skaliert es schön.
>>
>> geni08...@gmail.com schrieb am Samstag, 20. Juni 2020 um 10:21:01 UTC+2:
>>
>>> @Manfred
>>> Der Eintrag gemäss deinen Angaben funktioniert aber nicht Responsiv, 
>>> irgendwie bekommt das iframe die benutzte breite nicht mit.
>>> Hast du eine Idee?
>>>
>>> Am Freitag, 19. Juni 2020 13:14:23 UTC+2 schrieb Manfred Maier:

 Ist bei mir in der index_hook_after_charts.inc drin.


 1) Datei (index_hook_after_charts.inc) im Belchertown-Verzeichnis 
 anlegen
 2) den folgenden Code reinkopieren
 3) In der weewx.conf (Belchertown -Section) einschalten, dass der 
 Index-Hook alle 300 Sekunden (oder auch weniger oft) neu geladen wird.
 4) Noch den iframe aus meinem Code für Deinen Standort anpassen (den 
 Code gibt's auf Meteoblue unter Website-Widgets).

 
 
 
 https://www.meteoblue.com/de/wetter/widget/three/zorneding_deutschland_2803884?geoloc=fixed=1=0=7=CELSIUS=KILOMETER_PER_HOUR=image;
  
  frameborder="0" scrolling="YES" allowtransparency="true" 
 sandbox="allow-same-origin allow-scripts allow-popups 
 allow-popups-to-escape-sandbox" style="width: 100%; height: 525px; 
 padding-left: 16px; padding-right: 16px">
 
 



-- 
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/f3be1436-c8c5-44b5-985e-5f64963a63d8n%40googlegroups.com.


[weewx-user] Wmr200: read_device() USB Error Reason:[Errno 110] Operation timed out

2020-06-20 Thread Alessandro
Hello all,
firstly thanks so much for your work!

As newbie, I'm having a problem running Weewx on Raspi 4 and Wmr200 as 
weather station.

I installed weewx 3 days ago, and already I have received the error 
(attached below) twice, that has blocked weewx.

I have solved rebooting the Raspi, but I hope there is a smarter solution. 
Now I have also changed the usb cable...


Some infomation:
Raspbian version:
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster

Weewx version:
Weewx version 4.1.1
Installed following http://www.weewx.com/docs/debian.htm

Thanks for any hints,
Alessandro

Jun 20 06:44:21 raspberrypi weewx[2902] DEBUG weewx.manager: Daily summary 
version is 2.0
Jun 20 06:44:22 raspberrypi weewx[2902] INFO weewx.cheetahgenerator: 
Generated 8 files for report SeasonsReport in 0.81 seconds
Jun 20 06:44:22 raspberrypi weewx[2902] DEBUG weewx.manager: Daily summary 
version is 2.0
Jun 20 06:44:22 raspberrypi weewx[2902] INFO weewx.imagegenerator: 
Generated 15 images for report SeasonsReport in 0.81 seconds
Jun 20 06:44:22 raspberrypi weewx[2902] INFO weewx.reportengine: Copied 0 
files to /var/www/html/weewx
Jun 20 06:44:22 raspberrypi weewx[2902] DEBUG weewx.reportengine: Report 
'SmartphoneReport' not enabled. Skipping.
Jun 20 06:44:22 raspberrypi weewx[2902] DEBUG weewx.reportengine: Report 
'MobileReport' not enabled. Skipping.
Jun 20 06:44:22 raspberrypi weewx[2902] DEBUG weewx.reportengine: Report 
'StandardReport' not enabled. Skipping.
Jun 20 06:44:22 raspberrypi weewx[2902] DEBUG weewx.reportengine: Report 
'FTP' not enabled. Skipping.
Jun 20 06:44:22 raspberrypi weewx[2902] DEBUG weewx.reportengine: Report 
'RSYNC' not enabled. Skipping.
Jun 20 06:44:30 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200:  
 Queuing live packet rx:7252 live_queue_len:1
Jun 20 06:44:31 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200: 
genLoop() Yielding live queued packet id:8050
Jun 20 06:44:36 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200:  
 Queuing live packet rx:7253 live_queue_len:1
Jun 20 06:44:37 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200: 
genLoop() Yielding live queued packet id:8051
Jun 20 06:44:38 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200:  
 adjust_rain rain_total:4.55 Rain.rain_total_last:4.55 rain_interval:0.00
Jun 20 06:44:38 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200:  
 Queuing live packet rx:7254 live_queue_len:1
Jun 20 06:44:39 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200: 
genLoop() Yielding live queued packet id:8052
Jun 20 06:44:39 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200:  
 Queuing live packet rx:7255 live_queue_len:1
Jun 20 06:44:40 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200: 
genLoop() Yielding live queued packet id:8053
Jun 20 06:44:49 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200:  
 Queuing live packet rx:7256 live_queue_len:1
Jun 20 06:44:50 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200: 
genLoop() Yielding live queued packet id:8054
Jun 20 06:44:50 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200:  
 Queuing live packet rx:7257 live_queue_len:1
Jun 20 06:44:51 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200: 
genLoop() Yielding live queued packet id:8055
Jun 20 06:44:57 raspberrypi weewx[2902] WARNING weewx.drivers.wmr200: Clock 
time unsynchronized
Jun 20 06:44:57 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200:  
 Queuing live packet rx:7258 live_queue_len:1
Jun 20 06:44:58 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200: 
genLoop() Yielding live queued packet id:8056
Jun 20 06:44:59 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200:  
 Queuing live packet rx:7259 live_queue_len:1
Jun 20 06:45:00 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200: 
genLoop() Yielding live queued packet id:8057
Jun 20 06:45:03 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200:  
 Queuing live packet rx:7260 live_queue_len:1
Jun 20 06:45:04 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200: 
genLoop() Yielding live queued packet id:8058
Jun 20 06:45:04 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200:  
 Queuing live packet rx:7261 live_queue_len:1
Jun 20 06:45:05 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200: 
genLoop() Yielding live queued packet id:8059
Jun 20 06:45:09 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200:  
 Queuing live packet rx:7262 live_queue_len:1
Jun 20 06:45:10 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200: 
genLoop() Yielding live queued packet id:8060
Jun 20 06:45:12 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200:  
 Acknowledged control packet rx:488
Jun 20 06:45:15 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200:  
 Queuing live packet rx:7263 live_queue_len:1
Jun 20 06:45:16 raspberrypi weewx[2902] DEBUG weewx.drivers.wmr200: 
genLoop() Yielding live queued packet id:8062 
Jun 20 06:45:16 raspberrypi weewx[2902] INFO weewx.manager: Added record 
2020-06-20 06:45:00 UTC (1592635500) 

[weewx-user] Re: Belchertown no charts

2020-06-20 Thread Geni 0815
Auf dem Handy wird aber abgeschnitten!

warum kommt die Fehlermeldung von Windy

Am Samstag, 20. Juni 2020 11:29:05 UTC+2 schrieb Manfred Maier:
>
> Responsive ist es bei mir auch nur in Grenzen.
> Es gibt eine minimale Breite, ab der das Widget dann abgeschnitten wird. 
> Nur nach oben hin skaliert es schön.
>
> geni08...@gmail.com schrieb am Samstag, 20. Juni 2020 um 10:21:01 UTC+2:
>
>> @Manfred
>> Der Eintrag gemäss deinen Angaben funktioniert aber nicht Responsiv, 
>> irgendwie bekommt das iframe die benutzte breite nicht mit.
>> Hast du eine Idee?
>>
>> Am Freitag, 19. Juni 2020 13:14:23 UTC+2 schrieb Manfred Maier:
>>>
>>> Ist bei mir in der index_hook_after_charts.inc drin.
>>>
>>>
>>> 1) Datei (index_hook_after_charts.inc) im Belchertown-Verzeichnis anlegen
>>> 2) den folgenden Code reinkopieren
>>> 3) In der weewx.conf (Belchertown -Section) einschalten, dass der 
>>> Index-Hook alle 300 Sekunden (oder auch weniger oft) neu geladen wird.
>>> 4) Noch den iframe aus meinem Code für Deinen Standort anpassen (den 
>>> Code gibt's auf Meteoblue unter Website-Widgets).
>>>
>>> 
>>> 
>>> 
>>> https://www.meteoblue.com/de/wetter/widget/three/zorneding_deutschland_2803884?geoloc=fixed=1=0=7=CELSIUS=KILOMETER_PER_HOUR=image;
>>>  
>>>  frameborder="0" scrolling="YES" allowtransparency="true" 
>>> sandbox="allow-same-origin allow-scripts allow-popups 
>>> allow-popups-to-escape-sandbox" style="width: 100%; height: 525px; 
>>> padding-left: 16px; padding-right: 16px">
>>> 
>>> 
>>>
>>>

-- 
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/9d46f376-fd3f-421f-8d5a-92efcfe278c6o%40googlegroups.com.


[weewx-user] Re: Belchertown no charts

2020-06-20 Thread Manfred Maier
Responsive ist es bei mir auch nur in Grenzen.
Es gibt eine minimale Breite, ab der das Widget dann abgeschnitten wird. 
Nur nach oben hin skaliert es schön.

geni08...@gmail.com schrieb am Samstag, 20. Juni 2020 um 10:21:01 UTC+2:

> @Manfred
> Der Eintrag gemäss deinen Angaben funktioniert aber nicht Responsiv, 
> irgendwie bekommt das iframe die benutzte breite nicht mit.
> Hast du eine Idee?
>
> Am Freitag, 19. Juni 2020 13:14:23 UTC+2 schrieb Manfred Maier:
>>
>> Ist bei mir in der index_hook_after_charts.inc drin.
>>
>>
>> 1) Datei (index_hook_after_charts.inc) im Belchertown-Verzeichnis anlegen
>> 2) den folgenden Code reinkopieren
>> 3) In der weewx.conf (Belchertown -Section) einschalten, dass der 
>> Index-Hook alle 300 Sekunden (oder auch weniger oft) neu geladen wird.
>> 4) Noch den iframe aus meinem Code für Deinen Standort anpassen (den Code 
>> gibt's auf Meteoblue unter Website-Widgets).
>>
>> 
>> 
>> 
>> https://www.meteoblue.com/de/wetter/widget/three/zorneding_deutschland_2803884?geoloc=fixed=1=0=7=CELSIUS=KILOMETER_PER_HOUR=image;
>>  
>>  frameborder="0" scrolling="YES" allowtransparency="true" 
>> sandbox="allow-same-origin allow-scripts allow-popups 
>> allow-popups-to-escape-sandbox" style="width: 100%; height: 525px; 
>> padding-left: 16px; padding-right: 16px">
>> 
>> 
>>
>>

-- 
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/85a7c0d1-2c91-4646-bfdf-5901bcc03320n%40googlegroups.com.


[weewx-user] Re: move from old 3.9 (python2) machine to a new machine running 4.1.1 (python3) with mysql database from 3.9 to 4.1...?

2020-06-20 Thread 'Christian Peters' via weewx-user
Hi Caeron,

damn...yestheat was obvious. It works now. Thank you very much

But Python3 seems not as lazy as Python2, now I got this and weewx stops 
generating the webpage:

 
Generate failed with exception ''
Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:  
Ignoring template /etc/weewx/skins/Responsive/index.html.tmpl
Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:  Reason
: '>' not supported between instances of 'NoneType' and 'int'
Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:   
Traceback (most recent call last):
Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator: 
File "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate
Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:  
 unicode_string = compiled_template.respond()
Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator: 
File "_etc_weewx_skins_Responsive_index_html_tmpl.py", line 2284, in respond
Jun 20 11:00:56 weewx weewx[25088] ERROR weewx.cheetahgenerator:   
TypeError: '>' not supported between instances of 'NoneType' and 'int'


I fear some value inside the database which was queried and I want to do a 
graph seems to contain 'no data' or 'NoneType'?
But the errer doen'st really help where it could happened...! :-P

Let's see...

Regards,

Christian 

Am Samstag, 20. Juni 2020 10:50:42 UTC+2 schrieb Cameron D:
>
> Hi Christian,
> sorry, I forgot the bit where you also need to rename your main schema 
> from "schema" to "table".
>
> Don't worry about adding columns just in case you might need them in 
> future - with mysql you can add them any time you need. It is rather more 
> flexible than sqlite about altering table definitions after they have been 
> created.
>
> Cameron.
>

-- 
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/98f95a84-01b3-44f0-9ace-52d74132a932o%40googlegroups.com.


[weewx-user] Re: move from old 3.9 (python2) machine to a new machine running 4.1.1 (python3) with mysql database from 3.9 to 4.1...?

2020-06-20 Thread Cameron D
Hi Christian,
sorry, I forgot the bit where you also need to rename your main schema from 
"schema" to "table".

Don't worry about adding columns just in case you might need them in future 
- with mysql you can add them any time you need. It is rather more flexible 
than sqlite about altering table definitions after they have been created.

Cameron.

-- 
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/35dbcdeb-3273-43e6-87c6-f6d6f9d83849o%40googlegroups.com.


[weewx-user] Re: move from old 3.9 (python2) machine to a new machine running 4.1.1 (python3) with mysql database from 3.9 to 4.1...?

2020-06-20 Thread 'Christian Peters' via weewx-user
Cameron,

this doesn't work. I copied my database to the new machine, made a new 
weewx database and replayed it. 
If I use the wview_extended.py from the 2.5.-3.9 weewx install, it seems to 
work.

If I add the new additional lines form the 4.0.0. at the end of the 
wview_extended.py file...

day_summaries = [(e[0], 'scalar') for e in table
 if e[0] not in ('dateTime', 'usUnits', 'interval')] + [(
'wind', 'VECTOR')]

schema = {
'table': table,
'day_summaries' : day_summaries
}



I got this error:


Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__: Caught unrecoverable 
exception:
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__:   name 
'table' is not defined
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__:   Traceback 
(most recent call last):
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__: File 
"/usr/share/weewx/weewxd", line 148, in main
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__:   engine 
= weewx.engine.StdEngine(config_dict)
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 75, in __init__
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__:   
self.loadServices(config_dict)
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__: File 
"/usr/share/weewx/weewx/engine.py", line 138, in loadServices
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__:   obj = 
weeutil.weeutil.get_object(svc)(self,config_dict)
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__: File 
"/usr/share/weewx/weewx/wxservices.py", line 81, in __init__
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__:   
engine.db_binder)
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__: File 
"/usr/share/weewx/weewx/wxservices.py", line 124, in __init__
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__:   
initialize=True)
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__: File 
"/usr/share/weewx/weewx/manager.py", line 529, in get_manager
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__:   
default_binding_dict=defaults)
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__: File 
"/usr/share/weewx/weewx/manager.py", line 660, in 
get_manager_dict_from_config
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__:   
manager_dict['schema'] = weeutil.weeutil.get_object(schema_name)
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__: File 
"/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__:   mod = 
__import__(module)
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__: File 
"/usr/share/weewx/schemas/wview_extended.py", line 84, in 
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__:   
day_summaries = [(e[0], 'scalar') for e in table
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__:   NameError: 
name 'table' is not defined
Jun 20 10:30:55 weewx weewx[24866] CRITICAL __main__:   Exiting.


The question is: should I just run 4.x with the old database and old 
scheme!? But then the new added fields are missing like 

'
cloudbase','REAL'),
 ('co',   'REAL'),
('co2',  'REAL'),


...which could be interesting in the future. 

So how to move the old database to a new one with old data and the new 
fields and new syntax?

Regards,

Christian 

Am Mittwoch, 17. Juni 2020 14:05:42 UTC+2 schrieb Cameron D:
>
> You do not need to change your database at all - but obviously back it up 
> first.
> I found all I had to do was add the bottom few lines (day_summaries) to my 
> custom schema file.
>

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


[weewx-user] Re: Belchertown no charts

2020-06-20 Thread Geni 0815
@Manfred
Der Eintrag gemäss deinen Angaben funktioniert aber nicht Responsiv, 
irgendwie bekommt das iframe die benutzte breite nicht mit.
Hast du eine Idee?

Am Freitag, 19. Juni 2020 13:14:23 UTC+2 schrieb Manfred Maier:
>
> Ist bei mir in der index_hook_after_charts.inc drin.
>
>
> 1) Datei (index_hook_after_charts.inc) im Belchertown-Verzeichnis anlegen
> 2) den folgenden Code reinkopieren
> 3) In der weewx.conf (Belchertown -Section) einschalten, dass der 
> Index-Hook alle 300 Sekunden (oder auch weniger oft) neu geladen wird.
> 4) Noch den iframe aus meinem Code für Deinen Standort anpassen (den Code 
> gibt's auf Meteoblue unter Website-Widgets).
>
> 
> 
> 
> https://www.meteoblue.com/de/wetter/widget/three/zorneding_deutschland_2803884?geoloc=fixed=1=0=7=CELSIUS=KILOMETER_PER_HOUR=image;
>  
>  frameborder="0" scrolling="YES" allowtransparency="true" 
> sandbox="allow-same-origin allow-scripts allow-popups 
> allow-popups-to-escape-sandbox" style="width: 100%; height: 525px; 
> padding-left: 16px; padding-right: 16px">
> 
> 
>
>

-- 
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/5d0d77db-4464-4102-91aa-432da7c53d12o%40googlegroups.com.


[weewx-user] Re: Belchertown no charts

2020-06-20 Thread Geni 0815
I changed the 2 lines and now it also works with de_CH local setting.
I also adjusted the gapSize because my interval is 10min.
So far it goes now, but I would have the time window of the last 24 hours 
in the day view and not a start at midnight.
Could I get the example of the rain?

Am Freitag, 19. Juni 2020 10:48:16 UTC+2 schrieb Geni 0815:
>
>
> What do I have to set where and how to get diagrams
>
> Regards
> Geni
>

-- 
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/2df82e90-759d-4ca0-b4fb-4f86df89abedo%40googlegroups.com.


[weewx-user] Problem with rtl_433

2020-06-20 Thread Sean Jahnig
Hi,

Has anyone experienced a problem with rtl_433 / rtl-sdr on a raspberry pi 
where the USB device becomes unreadable?

I have acurite 5-n-1 with sdr and a raspberry pi. Things have been working 
fine but all of a sudden the rtl_433 driver is not receiving packets so 
weewx is not receiving anything from it. And therefore nothing is being 
posted to windguru.

I added a # in front of  # cmd = sudo rtl_433 -M utc -F json and then did a 
sudo reboot. When the pi starts up i try run rtl_433 directly and it runs, 
but it doesn't see any sensors? Usually at this point i see the acurite 
sensor sending packets.

rtl_433 version 20.02-61-gf82c025 branch master at 202005272108 inputs file 
rtl_tcp RTL-SDR

Use -h for usage help and see https://triq.org/ for documentation.

Trying conf file at "rtl_433.conf"...

Trying conf file at "/home/pi/.config/rtl_433/rtl_433.conf"...

Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...

Trying conf file at "/etc/rtl_433/rtl_433.conf"...

Registered 125 out of 153 device decoding protocols [ 1-4 8 11-12 15-17 
19-21 23 25-26 29-36 38-60 63 67-71 73-100 102-105 108-116 119 121 124-128 
130-149 151-153 ]

Found Rafael Micro R820T tuner

Exact sample rate is: 25.000414 Hz

[R82XX] PLL not locked!

Sample rate set to 25 S/s.

Tuner gain set to Auto.

Tuned to 433.920MHz.

[From this point onwards, no packets are being received.]

The sensor has not been touched and i'm inclined to believe that it is 
still transmitting fine. I feel like there is something weird with the 
rtl-sdr driver so that is why i thought i would check if something has 
changed with the driver, or if anyone has had a similar problem before i 
start troubleshooting the hardware.

Thanks,
Sean.

-- 
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/5d621f01-57ec-4345-9254-84da76de7ee6o%40googlegroups.com.