Re: [weewx-user] Weewx and twitter

2022-04-04 Thread Andrey Mihaylov
 I have made some progress, but  now Ascii encoding issue appears.

how this could be fixed?

thanks,


Apr  4 12:35:41 neo-rp1 weewx[7933] ERROR weewx.restx: Twitter: Unexpected
exception of type 
Apr  4 12:35:42 neo-rp1 weewx[7933] DEBUG weewx.cheetahgenerator: Using
search list ['weewx.cheetahgenerator.Almanac',
'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current',
'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo',
'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.JSONHelpers',
u'user.forecast.ForecastVariables']
Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: *** Traceback (most
recent call last):
Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***   File
"/usr/share/weewx/weewx/restx.py", line 381, in run_loop
Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***
 self.process_record(_record, dbmanager)
Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***   File
"/usr/share/weewx/user/twitter.py", line 322, in process_record
Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: *** (ntries,
self.max_tries, e))
Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in
position 172: ordinal not in range(128)
Apr  4 12:35:42 neo-rp1 weewx[7933] CRITICAL weewx.restx: Twitter: Thread
terminating. Reason: 'ascii' codec can't encode character u'\u2019' in
position 172: ordinal not in range(128)


На пт, 1.04.2022 г. в 15:19 ч. Andrey Mihaylov 
написа:

> Hello Guys,
>
> all day im trying to make my weather station to report data to twitter but
> without success. Something is wrong with the credentials and really don't
> know what.  I created APP at developer.twitter.com, OAuth 1.0a is set
> with permissions Read and write, callback uri is http://localhost, access
> token and Secret are added into weewx.conf, but still same error in the log
> .
>
>  ERROR weewx.restx: Twitter: Failed to publish record 2022-04-01 14:55:00
> EEST (1648814100): Authorization failed: Twitter API returned a 401
> (Unauthorized), Invalid or expired token.
>
> [[Twitter]]
>
> oauth_token_secret = Access Secret
>
> oauth_token = Access Token
>
> app_key_secret = API Key
>
> app_key = API Secret
>
> what can be wrong ?
>
> Thanks,
>
> A,
>
>
>
> [image: Twitter Developers.png]
>
>
> --
> 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/00340311-9214-44e2-b58d-fb7cee0b8675n%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/CAObD2BTMOHA5LfTgrf%3DOOr9_OnLg134VRCVMnuTQ9m6brV_obg%40mail.gmail.com.


Re: [weewx-user] Weewx and twitter

2022-04-04 Thread Tom Keffer
Hello,

A couple questions:

What version of the twitter uploader are you using? You want v0.15.

What version of Python are you using?


On Mon, Apr 4, 2022 at 2:47 AM Andrey Mihaylov 
wrote:

>  I have made some progress, but  now Ascii encoding issue appears.
>
> how this could be fixed?
>
> thanks,
>
>
> Apr  4 12:35:41 neo-rp1 weewx[7933] ERROR weewx.restx: Twitter: Unexpected
> exception of type 
> Apr  4 12:35:42 neo-rp1 weewx[7933] DEBUG weewx.cheetahgenerator: Using
> search list ['weewx.cheetahgenerator.Almanac',
> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current',
> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo',
> 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.JSONHelpers',
> u'user.forecast.ForecastVariables']
> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: *** Traceback (most
> recent call last):
> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***   File
> "/usr/share/weewx/weewx/restx.py", line 381, in run_loop
> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***
>  self.process_record(_record, dbmanager)
> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***   File
> "/usr/share/weewx/user/twitter.py", line 322, in process_record
> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: *** (ntries,
> self.max_tries, e))
> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***
> UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in
> position 172: ordinal not in range(128)
> Apr  4 12:35:42 neo-rp1 weewx[7933] CRITICAL weewx.restx: Twitter: Thread
> terminating. Reason: 'ascii' codec can't encode character u'\u2019' in
> position 172: ordinal not in range(128)
>
>
> На пт, 1.04.2022 г. в 15:19 ч. Andrey Mihaylov <
> andrey.mihaylo...@gmail.com> написа:
>
>> Hello Guys,
>>
>> all day im trying to make my weather station to report data to twitter
>> but without success. Something is wrong with the credentials and really
>> don't know what.  I created APP at developer.twitter.com, OAuth 1.0a is
>> set with permissions Read and write, callback uri is http://localhost,
>> access token and Secret are added into weewx.conf, but still same error in
>> the log .
>>
>>  ERROR weewx.restx: Twitter: Failed to publish record 2022-04-01 14:55:00
>> EEST (1648814100): Authorization failed: Twitter API returned a 401
>> (Unauthorized), Invalid or expired token.
>>
>> [[Twitter]]
>>
>> oauth_token_secret = Access Secret
>>
>> oauth_token = Access Token
>>
>> app_key_secret = API Key
>>
>> app_key = API Secret
>>
>> what can be wrong ?
>>
>> Thanks,
>>
>> A,
>>
>>
>>
>> [image: Twitter Developers.png]
>>
>>
>> --
>> 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/00340311-9214-44e2-b58d-fb7cee0b8675n%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/CAObD2BTMOHA5LfTgrf%3DOOr9_OnLg134VRCVMnuTQ9m6brV_obg%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/CAPq0zEBOOiENn6zBidVcvmorWWD8CijMa04dfzgP7%3DBMvQT0BA%40mail.gmail.com.


[weewx-user] Opening a SQLite session on my Rasp Pi 4 to look around in the WeeWx database

2022-04-04 Thread DR
I have been looking for some way to open a command line or browser 
driven version of SQLite to snoop around inside the WeeWx database just 
to become more familiar with the layout.  I'm not trying to correct any 
errors (I am not that worried about the way I use WeeWx mainly to 
capture the day and generate graphs which get posted to my web server), 
but just want to look around.  Using the latest WeeWx install on a Rasp 
400 to play and start to try to customize a bit.



I have, obviously SQLite3 on the system, running or I don't think that 
WeeWx would function.  I have found the directory where the database 
exists based on the documentation in the User Guide.  I can't find any 
documentation as to how to trigger SQLite so I can uses command lines, 
and while there  are a few things for Linux that say they allow you to 
open a browser like window to look at the database, once I download 
them, I don't find where they are installed or how to trigger them to 
open up.  I assume from the screen shots of them that there is a way to 
change directories until I get to the WeeWx database, but  can't even 
try doing that.



Oh, once I get to be able to do this, do I have to shut down WeeWx while 
I look around, or can WeeWx continue to access the SQLite database at 
the same time to keep updating it when it needs to?  Or is there a 
collision and it will require a restart of WeeWx to pickup again once 
I'm done peeking inside?


Dale


--
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/6791f34e-ce65-d411-a7f0-511f58e02c26%40gmail.com.


Re: [weewx-user] Weewx and twitter

2022-04-04 Thread Andrey Mihaylov
Hello,

Twitter uploader is twython==3.7.0
on Python 2.7.





На пн, 4.04.2022 г. в 15:28 ч. Tom Keffer  написа:

> Hello,
>
> A couple questions:
>
> What version of the twitter uploader are you using? You want v0.15.
>
> What version of Python are you using?
>
>
> On Mon, Apr 4, 2022 at 2:47 AM Andrey Mihaylov <
> andrey.mihaylo...@gmail.com> wrote:
>
>>  I have made some progress, but  now Ascii encoding issue appears.
>>
>> how this could be fixed?
>>
>> thanks,
>>
>>
>> Apr  4 12:35:41 neo-rp1 weewx[7933] ERROR weewx.restx: Twitter:
>> Unexpected exception of type 
>> Apr  4 12:35:42 neo-rp1 weewx[7933] DEBUG weewx.cheetahgenerator: Using
>> search list ['weewx.cheetahgenerator.Almanac',
>> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current',
>> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo',
>> 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.JSONHelpers',
>> u'user.forecast.ForecastVariables']
>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: *** Traceback
>> (most recent call last):
>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***   File
>> "/usr/share/weewx/weewx/restx.py", line 381, in run_loop
>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***
>>  self.process_record(_record, dbmanager)
>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***   File
>> "/usr/share/weewx/user/twitter.py", line 322, in process_record
>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: *** (ntries,
>> self.max_tries, e))
>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***
>> UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in
>> position 172: ordinal not in range(128)
>> Apr  4 12:35:42 neo-rp1 weewx[7933] CRITICAL weewx.restx: Twitter: Thread
>> terminating. Reason: 'ascii' codec can't encode character u'\u2019' in
>> position 172: ordinal not in range(128)
>>
>>
>> На пт, 1.04.2022 г. в 15:19 ч. Andrey Mihaylov <
>> andrey.mihaylo...@gmail.com> написа:
>>
>>> Hello Guys,
>>>
>>> all day im trying to make my weather station to report data to twitter
>>> but without success. Something is wrong with the credentials and really
>>> don't know what.  I created APP at developer.twitter.com, OAuth 1.0a is
>>> set with permissions Read and write, callback uri is http://localhost,
>>> access token and Secret are added into weewx.conf, but still same error in
>>> the log .
>>>
>>>  ERROR weewx.restx: Twitter: Failed to publish record 2022-04-01
>>> 14:55:00 EEST (1648814100): Authorization failed: Twitter API returned a
>>> 401 (Unauthorized), Invalid or expired token.
>>>
>>> [[Twitter]]
>>>
>>> oauth_token_secret = Access Secret
>>>
>>> oauth_token = Access Token
>>>
>>> app_key_secret = API Key
>>>
>>> app_key = API Secret
>>>
>>> what can be wrong ?
>>>
>>> Thanks,
>>>
>>> A,
>>>
>>>
>>>
>>> [image: Twitter Developers.png]
>>>
>>>
>>> --
>>> 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/00340311-9214-44e2-b58d-fb7cee0b8675n%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/CAObD2BTMOHA5LfTgrf%3DOOr9_OnLg134VRCVMnuTQ9m6brV_obg%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/CAPq0zEBOOiENn6zBidVcvmorWWD8CijMa04dfzgP7%3DBMvQT0BA%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/CAObD2BT4br%2BtbsfBXAXKRiiK3E4tcXZs%3DHSV-nLNBjMvtNiHVA%40mail.gmail.com.


Re: [weewx-user] Opening a SQLite session on my Rasp Pi 4 to look around in the WeeWx database

2022-04-04 Thread 'John Kline' via weewx-user
You can browse without shutting down weewx.  Just pass sqlite3 the location of 
your weewx database (for me, that’s in /home/weewx/archive).

$ sqlite3 /home/weewx/archive/weewx.sdb 
SQLite version 3.34.1 2021-01-20 14:10:07
Enter ".help" for usage hints.
sqlite> select dateTime, outTemp from archive order by dateTime desc limit 1;
1649078100|48.6

> On Apr 4, 2022, at 6:04 AM, DR  wrote:
> 
> I have been looking for some way to open a command line or browser driven 
> version of SQLite to snoop around inside the WeeWx database just to become 
> more familiar with the layout.  I'm not trying to correct any errors (I am 
> not that worried about the way I use WeeWx mainly to capture the day and 
> generate graphs which get posted to my web server), but just want to look 
> around.  Using the latest WeeWx install on a Rasp 400 to play and start to 
> try to customize a bit.
> 
> 
> I have, obviously SQLite3 on the system, running or I don't think that WeeWx 
> would function.  I have found the directory where the database exists based 
> on the documentation in the User Guide.  I can't find any documentation as to 
> how to trigger SQLite so I can uses command lines, and while there  are a few 
> things for Linux that say they allow you to open a browser like window to 
> look at the database, once I download them, I don't find where they are 
> installed or how to trigger them to open up.  I assume from the screen shots 
> of them that there is a way to change directories until I get to the WeeWx 
> database, but  can't even try doing that.
> 
> 
> Oh, once I get to be able to do this, do I have to shut down WeeWx while I 
> look around, or can WeeWx continue to access the SQLite database at the same 
> time to keep updating it when it needs to?  Or is there a collision and it 
> will require a restart of WeeWx to pickup again once I'm done peeking inside?
> 
> Dale
> 
> 
> -- 
> 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/6791f34e-ce65-d411-a7f0-511f58e02c26%40gmail.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/3FEE78FC-DEFF-429D-A57A-FA71A5B04CB3%40johnkline.com.


Re: [weewx-user] Opening a SQLite session on my Rasp Pi 4 to look around in the WeeWx database

2022-04-04 Thread Greg Troxel

And, in addition to the advice you just got:

  Make a backup of the database before you start.

  If you just want to look, instead of running sqlite3 on the database,
  copy the file to a different place and look at the copy.  If you
  aren't skilled in SQL, you might damage the database by typing some
  command that modifies it.  It is normal in places with real data to
  have a prohibition on direct SQL database access except by the
  database admin, more or less.   Getting SQL commands right is 100x
  harder than starting sqlite3 on a 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/rmiv8vpyn44.fsf%40s1.lexort.com.


signature.asc
Description: PGP signature


Re: [weewx-user] Weewx and twitter

2022-04-04 Thread Tom Keffer
Sorry. What we need is the version of the twitter uploader. Look in file
bin/user/twitter.py for a line that looks something like

VERSION = "0.15"

If it's a lesser version, the first thing I'd try is upgrading to V0.15

-tk


On Mon, Apr 4, 2022 at 6:11 AM Andrey Mihaylov 
wrote:

> Hello,
>
> Twitter uploader is twython==3.7.0
> on Python 2.7.
>
>
>
>
>
> На пн, 4.04.2022 г. в 15:28 ч. Tom Keffer  написа:
>
>> Hello,
>>
>> A couple questions:
>>
>> What version of the twitter uploader are you using? You want v0.15.
>>
>> What version of Python are you using?
>>
>>
>> On Mon, Apr 4, 2022 at 2:47 AM Andrey Mihaylov <
>> andrey.mihaylo...@gmail.com> wrote:
>>
>>>  I have made some progress, but  now Ascii encoding issue appears.
>>>
>>> how this could be fixed?
>>>
>>> thanks,
>>>
>>>
>>> Apr  4 12:35:41 neo-rp1 weewx[7933] ERROR weewx.restx: Twitter:
>>> Unexpected exception of type 
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] DEBUG weewx.cheetahgenerator: Using
>>> search list ['weewx.cheetahgenerator.Almanac',
>>> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current',
>>> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo',
>>> 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.JSONHelpers',
>>> u'user.forecast.ForecastVariables']
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: *** Traceback
>>> (most recent call last):
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***   File
>>> "/usr/share/weewx/weewx/restx.py", line 381, in run_loop
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***
>>>  self.process_record(_record, dbmanager)
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***   File
>>> "/usr/share/weewx/user/twitter.py", line 322, in process_record
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: *** (ntries,
>>> self.max_tries, e))
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***
>>> UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in
>>> position 172: ordinal not in range(128)
>>> Apr  4 12:35:42 neo-rp1 weewx[7933] CRITICAL weewx.restx: Twitter:
>>> Thread terminating. Reason: 'ascii' codec can't encode character u'\u2019'
>>> in position 172: ordinal not in range(128)
>>>
>>>
>>> На пт, 1.04.2022 г. в 15:19 ч. Andrey Mihaylov <
>>> andrey.mihaylo...@gmail.com> написа:
>>>
 Hello Guys,

 all day im trying to make my weather station to report data to twitter
 but without success. Something is wrong with the credentials and really
 don't know what.  I created APP at developer.twitter.com, OAuth 1.0a
 is set with permissions Read and write, callback uri is
 http://localhost, access token and Secret are added into weewx.conf,
 but still same error in the log .

  ERROR weewx.restx: Twitter: Failed to publish record 2022-04-01
 14:55:00 EEST (1648814100): Authorization failed: Twitter API returned a
 401 (Unauthorized), Invalid or expired token.

 [[Twitter]]

 oauth_token_secret = Access Secret

 oauth_token = Access Token

 app_key_secret = API Key

 app_key = API Secret

 what can be wrong ?

 Thanks,

 A,



 [image: Twitter Developers.png]


 --
 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/00340311-9214-44e2-b58d-fb7cee0b8675n%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/CAObD2BTMOHA5LfTgrf%3DOOr9_OnLg134VRCVMnuTQ9m6brV_obg%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/CAPq0zEBOOiENn6zBidVcvmorWWD8CijMa04dfzgP7%3DBMvQT0BA%40mail.gmail.com
>> 
>> .
>>
> --
> You

Re: [weewx-user] Opening a SQLite session on my Rasp Pi 4 to look around in the WeeWx database

2022-04-04 Thread Chuck Rhode
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 4 Apr 2022 08:04:06 -0500
DR  wrote:

> I have been looking for some way to open a command line or browser 
> driven version of SQLite to snoop around inside the WeeWx database
> just to become more familiar with the layout.

The thing you want is *sqlitebrowser*.  Install it.  Then, just type
that at the command prompt.  Alternatively, you can start it as a 
Gnome application by searching for "DB Browser."  Try F)ile O)open
Database Read Only.  You're shooting for the WeeWX "Archive" folder.
To see the *.sdb file, you'll need to toggle to the "All Files" filter
on the "Choose Database File" dialog.


- -- 
.. Be Seeing You,
.. Chuck Rhode, Sheboygan, WI, USA
.. Weather:  http://LacusVeris.com/WX
.. 38° — Wind SSE 12 mph — Sky overcast. Mist.

-BEGIN PGP SIGNATURE-

iF0EARECAB0WIQT+MY/5I/LMPSswTbVg2/xipKOWUgUCYkr8AAAKCRBg2/xipKOW
UqW/AJ4lcQFlVz7Nho+pc+MOFvUct4Sf2wCcD/bljSptW50d66AfmUsx3cj491w=
=F4PK
-END PGP SIGNATURE-

-- 
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/20220404090904.6a0ad7d6%40wealthy.


Re: [weewx-user] Re: Problem with moving to a new server

2022-04-04 Thread vince
The result from ~$ PYTHONPATH=/usr/share/weewx python3 
/usr/share/weewx/user/interceptor.py  --device=observer --port=80:
Traceback (most recent call last):
  File "/usr/share/weewx/user/interceptor.py", line 2661, in 
device = InterceptorDriver.DEVICE_TYPES.get(options.device_type)(
  File "/usr/share/weewx/user/interceptor.py", line 1284, in __init__
super(Observer, self).__init__(
  File "/usr/share/weewx/user/interceptor.py", line 429, in __init__
self._server = Consumer.TCPServer(address, port, handler)
  File "/usr/share/weewx/user/interceptor.py", line 584, in __init__
TCPServer.__init__(self, (address, int(port)), handler)
  File "/usr/lib/python3.8/socketserver.py", line 452, in __init__
self.server_bind()
  File "/usr/lib/python3.8/socketserver.py", line 466, in server_bind
self.socket.bind(self.server_address)
PermissionError: [Errno 13] Permission denied

==> try prefacing your command with 'sudo' and see if that helps any...


-- 
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/d874d2f8-775f-4057-9076-7f0eb8fb5d28n%40googlegroups.com.


Re: [weewx-user] Opening a SQLite session on my Rasp Pi 4 to look around in the WeeWx database

2022-04-04 Thread DR
Thank you for the replies.  I will try the various alternatives to see 
which works best for me right now.


Learning is sometimes difficult when your brain is stuck in windows 
land!  When things are put in paths when loaded, and where things are  
stored in Debian is still a learning curve for me.  I have a notebook by 
my keyboard.  Again thanks for this group's patience and help.   Dale



On 4/4/2022 9:09 AM, Chuck Rhode wrote:

On Mon, 4 Apr 2022 08:04:06 -0500
DR  wrote:

> I have been looking for some way to open a command line or browser
> driven version of SQLite to snoop around inside the WeeWx database
> just to become more familiar with the layout.

The thing you want is *sqlitebrowser*.  Install it.  Then, just type
that at the command prompt.  Alternatively, you can start it as a
Gnome application by searching for "DB Browser."  Try F)ile O)open
Database Read Only.  You're shooting for the WeeWX "Archive" folder.
To see the *.sdb file, you'll need to toggle to the "All Files" filter
on the "Choose Database File" dialog.



>

--
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/d0c6e54d-f343-18bf-03e3-69ad9136c50e%40gmail.com.


Re: [weewx-user] Weewx and twitter

2022-04-04 Thread Andrey Mihaylov
yes,  the version is 0.15


На пн, 4.04.2022 г. в 17:00 ч. Tom Keffer  написа:

> Sorry. What we need is the version of the twitter uploader. Look in file
> bin/user/twitter.py for a line that looks something like
>
> VERSION = "0.15"
>
> If it's a lesser version, the first thing I'd try is upgrading to V0.15
>
> -tk
>
>
> On Mon, Apr 4, 2022 at 6:11 AM Andrey Mihaylov <
> andrey.mihaylo...@gmail.com> wrote:
>
>> Hello,
>>
>> Twitter uploader is twython==3.7.0
>> on Python 2.7.
>>
>>
>>
>>
>>
>> На пн, 4.04.2022 г. в 15:28 ч. Tom Keffer  написа:
>>
>>> Hello,
>>>
>>> A couple questions:
>>>
>>> What version of the twitter uploader are you using? You want v0.15.
>>>
>>> What version of Python are you using?
>>>
>>>
>>> On Mon, Apr 4, 2022 at 2:47 AM Andrey Mihaylov <
>>> andrey.mihaylo...@gmail.com> wrote:
>>>
  I have made some progress, but  now Ascii encoding issue appears.

 how this could be fixed?

 thanks,


 Apr  4 12:35:41 neo-rp1 weewx[7933] ERROR weewx.restx: Twitter:
 Unexpected exception of type 
 Apr  4 12:35:42 neo-rp1 weewx[7933] DEBUG weewx.cheetahgenerator: Using
 search list ['weewx.cheetahgenerator.Almanac',
 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current',
 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo',
 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.JSONHelpers',
 u'user.forecast.ForecastVariables']
 Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: *** Traceback
 (most recent call last):
 Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***   File
 "/usr/share/weewx/weewx/restx.py", line 381, in run_loop
 Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***
  self.process_record(_record, dbmanager)
 Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***   File
 "/usr/share/weewx/user/twitter.py", line 322, in process_record
 Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: *** (ntries,
 self.max_tries, e))
 Apr  4 12:35:42 neo-rp1 weewx[7933] ERROR weewx.restx: ***
 UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in
 position 172: ordinal not in range(128)
 Apr  4 12:35:42 neo-rp1 weewx[7933] CRITICAL weewx.restx: Twitter:
 Thread terminating. Reason: 'ascii' codec can't encode character u'\u2019'
 in position 172: ordinal not in range(128)


 На пт, 1.04.2022 г. в 15:19 ч. Andrey Mihaylov <
 andrey.mihaylo...@gmail.com> написа:

> Hello Guys,
>
> all day im trying to make my weather station to report data to twitter
> but without success. Something is wrong with the credentials and really
> don't know what.  I created APP at developer.twitter.com, OAuth 1.0a
> is set with permissions Read and write, callback uri is
> http://localhost, access token and Secret are added into weewx.conf,
> but still same error in the log .
>
>  ERROR weewx.restx: Twitter: Failed to publish record 2022-04-01
> 14:55:00 EEST (1648814100): Authorization failed: Twitter API returned a
> 401 (Unauthorized), Invalid or expired token.
>
> [[Twitter]]
>
> oauth_token_secret = Access Secret
>
> oauth_token = Access Token
>
> app_key_secret = API Key
>
> app_key = API Secret
>
> what can be wrong ?
>
> Thanks,
>
> A,
>
>
>
> [image: Twitter Developers.png]
>
>
> --
> 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/00340311-9214-44e2-b58d-fb7cee0b8675n%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/CAObD2BTMOHA5LfTgrf%3DOOr9_OnLg134VRCVMnuTQ9m6brV_obg%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-

Re: [weewx-user] Re: Problem with moving to a new server

2022-04-04 Thread I L
With sudo the last line is changed to:

OSError: [Errno 98] Address already in use

This is what happens also on the working server.


Virusfritt.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Den mån 4 apr. 2022 kl 17:00 skrev vince :

> The result from ~$ PYTHONPATH=/usr/share/weewx python3
> /usr/share/weewx/user/interceptor.py  --device=observer --port=80:
> Traceback (most recent call last):
>   File "/usr/share/weewx/user/interceptor.py", line 2661, in 
> device = InterceptorDriver.DEVICE_TYPES.get(options.device_type)(
>   File "/usr/share/weewx/user/interceptor.py", line 1284, in __init__
> super(Observer, self).__init__(
>   File "/usr/share/weewx/user/interceptor.py", line 429, in __init__
> self._server = Consumer.TCPServer(address, port, handler)
>   File "/usr/share/weewx/user/interceptor.py", line 584, in __init__
> TCPServer.__init__(self, (address, int(port)), handler)
>   File "/usr/lib/python3.8/socketserver.py", line 452, in __init__
> self.server_bind()
>   File "/usr/lib/python3.8/socketserver.py", line 466, in server_bind
> self.socket.bind(self.server_address)
> PermissionError: [Errno 13] Permission denied
>
> ==> try prefacing your command with 'sudo' and see if that helps any...
>
>
> --
> 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/d874d2f8-775f-4057-9076-7f0eb8fb5d28n%40googlegroups.com
> 
> .
>


-- 
--
Ingemar Lekteus
Älgstigen 2
178 52  EKERÖ

E-post: ingemar.lekt...@gmail.com
Mobil: 0704-71 33 30

-- 
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/CALhjqznQpsowy%2B8%3DxdC8KerNinhFn2fSreE1KRarCDga_HKXXQ%40mail.gmail.com.


Re: [weewx-user] Re: Problem with moving to a new server

2022-04-04 Thread Francesco
Yeah, you should try with sudo, but first you have to stop the weewx 
service. If it's stopped and you have the "Address already in use" 
exception, then there is something else running on port 80 

Il giorno lunedì 4 aprile 2022 alle 19:30:15 UTC+2 IL ha scritto:

> With sudo the last line is changed to:
>
> OSError: [Errno 98] Address already in use
>
> This is what happens also on the working server.
>
>
> 
>  Virusfritt. 
> www.avast.com 
> 
>  
> <#m_-4330114923121798979_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> Den mån 4 apr. 2022 kl 17:00 skrev vince :
>
>> The result from ~$ PYTHONPATH=/usr/share/weewx python3 
>> /usr/share/weewx/user/interceptor.py  --device=observer --port=80:
>> Traceback (most recent call last):
>>   File "/usr/share/weewx/user/interceptor.py", line 2661, in 
>> device = InterceptorDriver.DEVICE_TYPES.get(options.device_type)(
>>   File "/usr/share/weewx/user/interceptor.py", line 1284, in __init__
>> super(Observer, self).__init__(
>>   File "/usr/share/weewx/user/interceptor.py", line 429, in __init__
>> self._server = Consumer.TCPServer(address, port, handler)
>>   File "/usr/share/weewx/user/interceptor.py", line 584, in __init__
>> TCPServer.__init__(self, (address, int(port)), handler)
>>   File "/usr/lib/python3.8/socketserver.py", line 452, in __init__
>> self.server_bind()
>>   File "/usr/lib/python3.8/socketserver.py", line 466, in server_bind
>> self.socket.bind(self.server_address)
>> PermissionError: [Errno 13] Permission denied
>>
>> ==> try prefacing your command with 'sudo' and see if that helps any...
>>
>>
>> -- 
>> 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.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/d874d2f8-775f-4057-9076-7f0eb8fb5d28n%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> --
> Ingemar Lekteus
> Älgstigen 2
> 178 52  EKERÖ
>
> E-post: ingemar...@gmail.com
> Mobil: 0704-71 33 30
>

-- 
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/f1e883ec-f083-4be6-8581-ecf882f629c4n%40googlegroups.com.


Re: [weewx-user] Re: Problem with moving to a new server

2022-04-04 Thread I L
I missed that. Now I get:

mapped packet: {'dateTime': 1649098956, 'usUnits': 16}

from the new server (when it is enabled in the weather console).

On the working server it looks like this:

mapped packet: {'usUnits': 1, 'inTemp': 68.7, 'pressure': 28.651,
'windGust': 1.1, 'inHumidity': 32.0, 'dateTime': 1649098792, 'windDir':
8.0, 'rain': None, 'windSpeed': 0.7, 'radiation': 0.0, 'barometer': 28.807,
'windchill': 32.7, 'outTemp': 32.7, 'UV': 0.0, 'dewpoint': 31.8,
'outHumidity': 96.0}


Den mån 4 apr. 2022 kl 18:28 skrev Francesco :

> Yeah, you should try with sudo, but first you have to stop the weewx
> service. If it's stopped and you have the "Address already in use"
> exception, then there is something else running on port 80
>
> Il giorno lunedì 4 aprile 2022 alle 19:30:15 UTC+2 IL ha scritto:
>
>> With sudo the last line is changed to:
>>
>> OSError: [Errno 98] Address already in use
>>
>> This is what happens also on the working server.
>>
>>
>> 
>>  Virusfritt.
>> www.avast.com
>> 
>> <#m_7781062328472423483_m_911730526383832960_m_-4330114923121798979_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>> Den mån 4 apr. 2022 kl 17:00 skrev vince :
>>
>>> The result from ~$ PYTHONPATH=/usr/share/weewx python3
>>> /usr/share/weewx/user/interceptor.py  --device=observer --port=80:
>>> Traceback (most recent call last):
>>>   File "/usr/share/weewx/user/interceptor.py", line 2661, in 
>>> device = InterceptorDriver.DEVICE_TYPES.get(options.device_type)(
>>>   File "/usr/share/weewx/user/interceptor.py", line 1284, in __init__
>>> super(Observer, self).__init__(
>>>   File "/usr/share/weewx/user/interceptor.py", line 429, in __init__
>>> self._server = Consumer.TCPServer(address, port, handler)
>>>   File "/usr/share/weewx/user/interceptor.py", line 584, in __init__
>>> TCPServer.__init__(self, (address, int(port)), handler)
>>>   File "/usr/lib/python3.8/socketserver.py", line 452, in __init__
>>> self.server_bind()
>>>   File "/usr/lib/python3.8/socketserver.py", line 466, in server_bind
>>> self.socket.bind(self.server_address)
>>> PermissionError: [Errno 13] Permission denied
>>>
>>> ==> try prefacing your command with 'sudo' and see if that helps any...
>>>
>>>
>>> --
>>> 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.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/d874d2f8-775f-4057-9076-7f0eb8fb5d28n%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>> --
>> Ingemar Lekteus
>> Älgstigen 2
>> 178 52  EKERÖ
>>
>> E-post: ingemar...@gmail.com
>> Mobil: 0704-71 33 30
>>
> --
> 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/f1e883ec-f083-4be6-8581-ecf882f629c4n%40googlegroups.com
> 
> .
>


-- 
--
Ingemar Lekteus
Älgstigen 2
178 52  EKERÖ

E-post: ingemar.lekt...@gmail.com
Mobil: 0704-71 33 30

-- 
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/CALhjqzmsPyaktcDsh7-EP%2B4mBvq7e8oxBXA9cJ7zgr0B6pkHxA%40mail.gmail.com.


Re: [weewx-user] Re: Problem with moving to a new server

2022-04-04 Thread Francesco
Well, it seems that the interceptor on the new installation is not 
mapping/decoding correctly the packets received from the weather console. 
It's the interceptor.py (it should be located in /usr/share/weewx/user/) 
you're using on the new installation the same of the old one (or are you  
using some modded interceptor.py) ? You could try to copy the 
interceptor.py from the old installation overwriting (after backing it up) 
the one in the new installation and check if it's working running again sudo 
PYTHONPATH=/usr/share/weewx python3 /usr/share/weewx/user/interceptor.py 
 --device=observer --port=80 --debug (to see also the raw packets). I would 
also try to run  PYTHONPATH=/usr/share/weewx python3 
/usr/share/weewx/user/interceptor.py  --device=ecowitt-client --port=80 
Il giorno lunedì 4 aprile 2022 alle 21:12:24 UTC+2 IL ha scritto:

> I missed that. Now I get:
>
> mapped packet: {'dateTime': 1649098956, 'usUnits': 16}
>
> from the new server (when it is enabled in the weather console).
>
> On the working server it looks like this:
>
> mapped packet: {'usUnits': 1, 'inTemp': 68.7, 'pressure': 28.651, 
> 'windGust': 1.1, 'inHumidity': 32.0, 'dateTime': 1649098792, 'windDir': 
> 8.0, 'rain': None, 'windSpeed': 0.7, 'radiation': 0.0, 'barometer': 28.807, 
> 'windchill': 32.7, 'outTemp': 32.7, 'UV': 0.0, 'dewpoint': 31.8, 
> 'outHumidity': 96.0}
>
>
> Den mån 4 apr. 2022 kl 18:28 skrev Francesco :
>
>> Yeah, you should try with sudo, but first you have to stop the weewx 
>> service. If it's stopped and you have the "Address already in use" 
>> exception, then there is something else running on port 80 
>>
>> Il giorno lunedì 4 aprile 2022 alle 19:30:15 UTC+2 IL ha scritto:
>>
>>> With sudo the last line is changed to:
>>>
>>> OSError: [Errno 98] Address already in use
>>>
>>> This is what happens also on the working server.
>>>
>>>
>>> 
>>>  Virusfritt. 
>>> www.avast.com 
>>> 
>>>  
>>> <#m_-3479274306117625716_m_7781062328472423483_m_911730526383832960_m_-4330114923121798979_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>
>>> Den mån 4 apr. 2022 kl 17:00 skrev vince :
>>>
 The result from ~$ PYTHONPATH=/usr/share/weewx python3 
 /usr/share/weewx/user/interceptor.py  --device=observer --port=80:
 Traceback (most recent call last):
   File "/usr/share/weewx/user/interceptor.py", line 2661, in 
 device = InterceptorDriver.DEVICE_TYPES.get(options.device_type)(
   File "/usr/share/weewx/user/interceptor.py", line 1284, in __init__
 super(Observer, self).__init__(
   File "/usr/share/weewx/user/interceptor.py", line 429, in __init__
 self._server = Consumer.TCPServer(address, port, handler)
   File "/usr/share/weewx/user/interceptor.py", line 584, in __init__
 TCPServer.__init__(self, (address, int(port)), handler)
   File "/usr/lib/python3.8/socketserver.py", line 452, in __init__
 self.server_bind()
   File "/usr/lib/python3.8/socketserver.py", line 466, in server_bind
 self.socket.bind(self.server_address)
 PermissionError: [Errno 13] Permission denied

 ==> try prefacing your command with 'sudo' and see if that helps any...


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

>>> To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/d874d2f8-775f-4057-9076-7f0eb8fb5d28n%40googlegroups.com
  
 
 .

>>>
>>>
>>> -- 
>>> --
>>> Ingemar Lekteus
>>> Älgstigen 2
>>> 178 52  EKERÖ
>>>
>>> E-post: ingemar...@gmail.com
>>> Mobil: 0704-71 33 30
>>>
>> -- 
>> 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.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/f1e883ec-f083-4be6-8581-ecf882f629c4n%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> --
> Ingemar Lekteus
> Älgstigen 2
> 178 52  EKERÖ
>
> E-post: ingemar...@gmail.com
> Mobil: 0704-71 33 30
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this gro

Re: [weewx-user] Re: Problem with moving to a new server

2022-04-04 Thread Francesco
 Well, it seems that the interceptor on the new installation is not 
mapping/decoding correctly the packets received from the weather console. 
Is the interceptor.py (it should be located in /usr/share/weewx/user/) 
you're using on the new installation the same of the old one (or are you  
using some modded interceptor.py) ? You could try to copy the 
interceptor.py from the old installation overwriting (after backing it up) 
the one in the new installation and check if it's working running again sudo 
PYTHONPATH=/usr/share/weewx python3 /usr/share/weewx/user/interceptor.py 
 --device=observer --port=80 --debug (to see also the raw packets). I would 
also try to run  PYTHONPATH=/usr/share/weewx python3 
/usr/share/weewx/user/interceptor.py  --device=ecowitt-client --port=80 

Il giorno lunedì 4 aprile 2022 alle 21:12:24 UTC+2 IL ha scritto:

> I missed that. Now I get:
>
> mapped packet: {'dateTime': 1649098956, 'usUnits': 16}
>
> from the new server (when it is enabled in the weather console).
>
> On the working server it looks like this:
>
> mapped packet: {'usUnits': 1, 'inTemp': 68.7, 'pressure': 28.651, 
> 'windGust': 1.1, 'inHumidity': 32.0, 'dateTime': 1649098792, 'windDir': 
> 8.0, 'rain': None, 'windSpeed': 0.7, 'radiation': 0.0, 'barometer': 28.807, 
> 'windchill': 32.7, 'outTemp': 32.7, 'UV': 0.0, 'dewpoint': 31.8, 
> 'outHumidity': 96.0}
>
>
> Den mån 4 apr. 2022 kl 18:28 skrev Francesco :
>
>> Yeah, you should try with sudo, but first you have to stop the weewx 
>> service. If it's stopped and you have the "Address already in use" 
>> exception, then there is something else running on port 80 
>>
>> Il giorno lunedì 4 aprile 2022 alle 19:30:15 UTC+2 IL ha scritto:
>>
>>> With sudo the last line is changed to:
>>>
>>> OSError: [Errno 98] Address already in use
>>>
>>> This is what happens also on the working server.
>>>
>>>
>>> 
>>>  Virusfritt. 
>>> www.avast.com 
>>> 
>>>  
>>> <#m_1325972347744203537_m_7781062328472423483_m_911730526383832960_m_-4330114923121798979_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>
>>> Den mån 4 apr. 2022 kl 17:00 skrev vince :
>>>
 The result from ~$ PYTHONPATH=/usr/share/weewx python3 
 /usr/share/weewx/user/interceptor.py  --device=observer --port=80:
 Traceback (most recent call last):
   File "/usr/share/weewx/user/interceptor.py", line 2661, in 
 device = InterceptorDriver.DEVICE_TYPES.get(options.device_type)(
   File "/usr/share/weewx/user/interceptor.py", line 1284, in __init__
 super(Observer, self).__init__(
   File "/usr/share/weewx/user/interceptor.py", line 429, in __init__
 self._server = Consumer.TCPServer(address, port, handler)
   File "/usr/share/weewx/user/interceptor.py", line 584, in __init__
 TCPServer.__init__(self, (address, int(port)), handler)
   File "/usr/lib/python3.8/socketserver.py", line 452, in __init__
 self.server_bind()
   File "/usr/lib/python3.8/socketserver.py", line 466, in server_bind
 self.socket.bind(self.server_address)
 PermissionError: [Errno 13] Permission denied

 ==> try prefacing your command with 'sudo' and see if that helps any...


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

>>> To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/d874d2f8-775f-4057-9076-7f0eb8fb5d28n%40googlegroups.com
  
 
 .

>>>
>>>
>>> -- 
>>> --
>>> Ingemar Lekteus
>>> Älgstigen 2
>>> 178 52  EKERÖ
>>>
>>> E-post: ingemar...@gmail.com
>>> Mobil: 0704-71 33 30
>>>
>> -- 
>> 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.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/f1e883ec-f083-4be6-8581-ecf882f629c4n%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> --
> Ingemar Lekteus
> Älgstigen 2
> 178 52  EKERÖ
>
> E-post: ingemar...@gmail.com
> Mobil: 0704-71 33 30
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this grou

Re: [weewx-user] Opening a SQLite session on my Rasp Pi 4 to look around in the WeeWx database

2022-04-04 Thread Chuck Rhode
On Mon, 4 Apr 2022 08:04:06 -0500
DR  wrote:

> I have been looking for some way to open a command line or browser 
> driven version of SQLite to snoop around inside the WeeWx database
> just to become more familiar with the layout.  

The thing you want is *sqlitebrowser*.  Install it.  Then, just type
that at the command prompt.  Alternatively, you can start it as a 
Gnome application by searching for "DB Browser."  Try F)ile O)open
Database Read Only.  You're shooting for the WeeWX "Archive" folder.
To see the *.sdb file, you'll need to toggle to the "All Files" filter
on the "Choose Database File" dialog.

-- 
.. Be Seeing You,
.. Chuck Rhode, Sheboygan, WI, USA
.. Weather:  http://LacusVeris.com/WX
.. 43° — Wind WNW 16 mph — Sky overcast.

-- 
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/20220404160831.54b755d1%40wealthy.


[weewx-user] GW1000 driver not reading data from a GW1100/GW2000 console/hub with an Ecowitt WS90 connected

2022-04-04 Thread 'Rainer Lang' via weewx-user

Hi Gary,

I have weewx 4.5.1 with a GW1000 driver 0.4.2 connected to a GW2000 with 
a WS90 and a WH40 rain gauge attached.
The GW2000 and the GW1100 consoles support since firmware 2.1.2 two rain 
gauges being connected in parallel and they show the data of both rain 
gauges (if both connected to the console) synoptically in the WS View 
Plus app or in their WebUI (and on the ecowitt.net dashboard).
When both rain sensors, the traditional WH40 and the haptic ("piezo") 
WS90, are connected weewx via the GW1000 driver only picks up the WH40 data.

If only the WS90 is connected, weewx doesn't pick up anything for rain.
See below the output from the GW1000 driver - no rain contained.
It looks as if the new WS90 array with its haptic/piezo rain gauge 
hasn't been considered yet in the GW1000 driver 0.4.2 coding.
The WS90 data is obviously received from the GW1000 API as the WS View 
Plus app receives it using the same API.


When can the WS90 rain data or maybe even both raingauges connected to a 
GW1100 or GW2000 be received and processed by weewx via an ipdated 
GW1000 driver ?


By the way, the custom server http post from the consoles contains five 
extra variables for the WS90 rain data, like erain_piezo, hrain_piezo, 
drain_piezo, mrain_piezo and yrain_piezo (for event, hour, day, month, 
year) in addition to the classic eventrainin, hourlyrainin, dailyrainin, 
monthlyrainin and yearlyrainin variables (or observations if you prefer 
that term) when both rain gauges are connected and the piezo only if 
only a WS90 is connected.


cheers
Rainer

2022-04-04 22:57:44 CEST (1649105864): UV: 0, co2: 735, co2_24h_avg: 
807, dateTime: 1649105864, daymaxwind: 13.7,
extraHumid1: 67, extraHumid17: 41, extraHumid2: 64, extraHumid3: 67, 
extraHumid4: 70, extraHumid6: 47, extraHumid7: 66, extraTemp1: 5.6,
extraTemp17: 20.1, extraTemp2: 6.4, extraTemp3: 5.7, extraTemp4: 5.7, 
extraTemp5: -12.9, extraTemp6: 6.3, extraTemp7: 4.7,
inHumidity: 42, inTemp: 19.0, leak2: 0, lightning_distance: 17, 
lightning_last_det_time: 1645806203,
lightning_strike_count: None, lightningcount: 0, luminosity: 0.0, 
outHumidity: 65, outTemp: 5.7,
pm10: 27.6, pm10_24h_avg: 20.1, pm2_5: 28.0, pm2_51_24h_avg: 23.3, 
pm2_52: 15.0, pm2_52_24h_avg: 20.5, pm2_55: 27.0, pm2_55_24h_avg: 19.6,
pressure: 983.1, relbarometer: 1012.2, soilMoist1: 7, soilMoist2: 16, 
soilMoist3: 27, soilMoist4: 19, usUnits: 17, uvradiation: 0.0,
wh31_ch1_batt: 0, wh31_ch1_sig: 4, wh31_ch2_batt: 0, wh31_ch2_sig: 4, 
wh31_ch3_batt: 0, wh31_ch3_sig: 4,
wh31_ch4_batt: 0, wh31_ch4_sig: 4, wh31_ch5_batt: 0, wh31_ch5_sig: 4, 
wh31_ch6_batt: 0, wh31_ch6_sig: 4, wh31_ch7_batt: 0, wh31_ch7_sig: 4, 
wh41_ch1_batt: 3, wh41_ch1_sig: 4, wh41_ch2_batt: 5, wh41_ch2_sig: 4, 
wh45_batt: 6, wh45_sig: 4,
wh51_ch1_batt: 1, wh51_ch1_sig: 4, wh51_ch2_batt: 0, wh51_ch2_sig: 4, 
wh51_ch3_batt: 0, wh51_ch3_sig: 4, wh51_ch4_batt: 0, wh51_ch4_sig: 4, 
wh51_ch5_batt: None, wh51_ch5_sig: 0, wh55_ch2_batt: 4, wh55_ch2_sig: 4, 
wh57_batt: 3, wh57_sig: 4,

windDir: 353, windGust: 2.8, windSpeed: 1.9

2022-04-04 22:57:54 CEST (1649105874): UV: 0, co2: 735, co2_24h_avg: 
807, dateTime: 1649105874, daymaxwind: 13.7,
extraHumid1: 67, extraHumid17: 41, extraHumid2: 64, extraHumid3: 67, 
extraHumid4: 70, extraHumid6: 47, extraHumid7: 66, extraTemp1: 5.6,
extraTemp17: 20.1, extraTemp2: 6.4, extraTemp3: 5.7, extraTemp4: 5.7, 
extraTemp5: -12.9, extraTemp6: 6.3, extraTemp7: 4.7,
inHumidity: 42, inTemp: 19.0, leak2: 0, lightning_distance: 17, 
lightning_last_det_time: 1645806203,
lightning_strike_count: 0, lightningcount: 0, luminosity: 0.0, 
outHumidity: 65, outTemp: 5.7,
pm10: 27.6, pm10_24h_avg: 20.1, pm2_5: 28.0, pm2_51_24h_avg: 23.3, 
pm2_52: 15.0, pm2_52_24h_avg: 20.5, pm2_55: 27.0, pm2_55_24h_avg: 19.6,
pressure: 983.1, relbarometer: 1012.2, soilMoist1: 7, soilMoist2: 16, 
soilMoist3: 27, soilMoist4: 19, usUnits: 17, uvradiation: 0.0,
wh31_ch1_batt: 0, wh31_ch1_sig: 4, wh31_ch2_batt: 0, wh31_ch2_sig: 4, 
wh31_ch3_batt: 0, wh31_ch3_sig: 4,
wh31_ch4_batt: 0, wh31_ch4_sig: 4, wh31_ch5_batt: 0, wh31_ch5_sig: 4, 
wh31_ch6_batt: 0, wh31_ch6_sig: 4, wh31_ch7_batt: 0, wh31_ch7_sig: 4, 
wh41_ch1_batt: 3, wh41_ch1_sig: 4, wh41_ch2_batt: 5, wh41_ch2_sig: 4, 
wh45_batt: 6, wh45_sig: 4,
wh51_ch1_batt: 1, wh51_ch1_sig: 4, wh51_ch2_batt: 0, wh51_ch2_sig: 4, 
wh51_ch3_batt: 0, wh51_ch3_sig: 4, wh51_ch4_batt: 0, wh51_ch4_sig: 4, 
wh51_ch5_batt: None, wh51_ch5_sig: 0, wh55_ch2_batt: 4, wh55_ch2_sig: 4, 
wh57_batt: 3, wh57_sig: 4,

windDir: 338, windGust: 2.8, windSpeed: 1.9

--
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/4e009ca4-596e-5e30-d3b1-43fba750755b%40gmail.com.


[weewx-user] Re: GW1000 driver not reading data from a GW1100/GW2000 console/hub with an Ecowitt WS90 connected

2022-04-04 Thread gjr80
Rainer,

Yes I have been following the wxforum posts re the GW2000 and rain gauges. 
The current driver release (v0.4.2) does not support any WS90 specific rain 
fields, in fact the current Ecowitt API release, v1.6.3, whilst containing 
reference to the WS90 (also referred to as the WH90) provides no detail 
what WS90 rain data is provided in what bytes of the relevant API 
response(s). I don't expect this will be too much of a hindrance though 
provided Ecowitt sticks to the same data formats as used for previous rain 
gauges. As an aside WS90 battery state data is documented in the API so it 
should be easy to implement. However, there is nothing in the API 
control/config functions to indicate any support for the WS90 
config/calibration so those aspects of the driver, although seldom used, 
may take longer or more effort to implement. I appreciate the additional 
WS90 data available via the various Ecowitt apps and the additional fields 
in the Ecowitt format messages; however, that only tells us the data is 
available not how to access it via the API.

My Wittboy is in transit, I expect things to clear up once it arrives and I 
have a chance to get it online with the driver.

Gary
On Tuesday, 5 April 2022 at 07:26:24 UTC+10 lang@googlemail.com wrote:

> Hi Gary,
>
> I have weewx 4.5.1 with a GW1000 driver 0.4.2 connected to a GW2000 with a 
> WS90 and a WH40 rain gauge attached.
> The GW2000 and the GW1100 consoles support since firmware 2.1.2 two rain 
> gauges being connected in parallel and they show the data of both rain 
> gauges (if both connected to the console) synoptically in the WS View Plus 
> app or in their WebUI (and on the ecowitt.net dashboard). 
> When both rain sensors, the traditional WH40 and the haptic ("piezo") 
> WS90, are connected weewx via the GW1000 driver only picks up the WH40 data.
> If only the WS90 is connected, weewx doesn't pick up anything for rain. 
> See below the output from the GW1000 driver - no rain contained.
> It looks as if the new WS90 array with its haptic/piezo rain gauge hasn't 
> been considered yet in the GW1000 driver 0.4.2 coding.
> The WS90 data is obviously received from the GW1000 API as the WS View 
> Plus app receives it using the same API.
>
> When can the WS90 rain data or maybe even both raingauges connected to a 
> GW1100 or GW2000 be received and processed by weewx via an ipdated GW1000 
> driver ?
>
> By the way, the custom server http post from the consoles contains five 
> extra variables for the WS90 rain data, like erain_piezo, hrain_piezo, 
> drain_piezo, mrain_piezo and yrain_piezo (for event, hour, day, month, 
> year) in addition to the classic eventrainin, hourlyrainin, dailyrainin, 
> monthlyrainin and yearlyrainin variables (or observations if you prefer 
> that term) when both rain gauges are connected and the piezo only if only a 
> WS90 is connected.
>
> cheers
> Rainer
>
> 2022-04-04 22:57:44 CEST (1649105864): UV: 0, co2: 735, co2_24h_avg: 807, 
> dateTime: 1649105864, daymaxwind: 13.7, 
> extraHumid1: 67, extraHumid17: 41, extraHumid2: 64, extraHumid3: 67, 
> extraHumid4: 70, extraHumid6: 47, extraHumid7: 66, extraTemp1: 5.6, 
> extraTemp17: 20.1, extraTemp2: 6.4, extraTemp3: 5.7, extraTemp4: 5.7, 
> extraTemp5: -12.9, extraTemp6: 6.3, extraTemp7: 4.7, 
> inHumidity: 42, inTemp: 19.0, leak2: 0, lightning_distance: 17, 
> lightning_last_det_time: 1645806203, 
> lightning_strike_count: None, lightningcount: 0, luminosity: 0.0, 
> outHumidity: 65, outTemp: 5.7, 
> pm10: 27.6, pm10_24h_avg: 20.1, pm2_5: 28.0, pm2_51_24h_avg: 23.3, pm2_52: 
> 15.0, pm2_52_24h_avg: 20.5, pm2_55: 27.0, pm2_55_24h_avg: 19.6, 
> pressure: 983.1, relbarometer: 1012.2, soilMoist1: 7, soilMoist2: 16, 
> soilMoist3: 27, soilMoist4: 19, usUnits: 17, uvradiation: 0.0, 
> wh31_ch1_batt: 0, wh31_ch1_sig: 4, wh31_ch2_batt: 0, wh31_ch2_sig: 4, 
> wh31_ch3_batt: 0, wh31_ch3_sig: 4, 
> wh31_ch4_batt: 0, wh31_ch4_sig: 4, wh31_ch5_batt: 0, wh31_ch5_sig: 4, 
> wh31_ch6_batt: 0, wh31_ch6_sig: 4, wh31_ch7_batt: 0, wh31_ch7_sig: 4, 
> wh41_ch1_batt: 3, wh41_ch1_sig: 4, wh41_ch2_batt: 5, wh41_ch2_sig: 4, 
> wh45_batt: 6, wh45_sig: 4, 
> wh51_ch1_batt: 1, wh51_ch1_sig: 4, wh51_ch2_batt: 0, wh51_ch2_sig: 4, 
> wh51_ch3_batt: 0, wh51_ch3_sig: 4, wh51_ch4_batt: 0, wh51_ch4_sig: 4, 
> wh51_ch5_batt: None, wh51_ch5_sig: 0, wh55_ch2_batt: 4, wh55_ch2_sig: 4, 
> wh57_batt: 3, wh57_sig: 4, 
> windDir: 353, windGust: 2.8, windSpeed: 1.9
>
> 2022-04-04 22:57:54 CEST (1649105874): UV: 0, co2: 735, co2_24h_avg: 807, 
> dateTime: 1649105874, daymaxwind: 13.7, 
> extraHumid1: 67, extraHumid17: 41, extraHumid2: 64, extraHumid3: 67, 
> extraHumid4: 70, extraHumid6: 47, extraHumid7: 66, extraTemp1: 5.6, 
> extraTemp17: 20.1, extraTemp2: 6.4, extraTemp3: 5.7, extraTemp4: 5.7, 
> extraTemp5: -12.9, extraTemp6: 6.3, extraTemp7: 4.7, 
> inHumidity: 42, inTemp: 19.0, leak2: 0, lightning_distance: 17, 
> lightning_last_det_time: 1645806203, 
> lightning_strike_count: 0, lightningcount: