Re: [weewx-user] Problem with extension install (SyntaxError: Non-ASCII character)

2021-02-25 Thread Christian Gruber
thx michael, works fine now :)

michael.s...@gmail.com schrieb am Dienstag, 23. Februar 2021 um 14:23:11 
UTC+1:

> Yes, a new db needs to be created. You could also configure a second db 
> manually, let WeeWX populate the schema and then transfer all data using 
> wee_database 
> --transfer
> But the effort is mostly the same either way, so it's easier to just 
> follow the documentation.
>

-- 
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/c5b42dbc-7658-43c8-baf3-8d48e8d6ddd5n%40googlegroups.com.


Re: [weewx-user] Problem with extension install (SyntaxError: Non-ASCII character)

2021-02-23 Thread Michael Schantl
Yes, a new db needs to be created. You could also configure a second db 
manually, let WeeWX populate the schema and then transfer all data using 
wee_database 
--transfer
But the effort is mostly the same either way, so it's easier to just follow 
the documentation.

-- 
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/51e4d4d3-c9f1-4773-a489-fbaaf289f7d0n%40googlegroups.com.


Re: [weewx-user] Problem with extension install (SyntaxError: Non-ASCII character)

2021-02-23 Thread Christian Gruber
hello,

put my RPI now to the same subnet, and i get data.

i also switched schema in weewx.conf to user.weatherlink_live.schema and 
restarted the service

do i have to create a new database then, like its written 
here http://www.weewx.com/docs/customizing.htm#archive_database 
or is this not necessary?

regards,
chris

Christian Gruber schrieb am Sonntag, 21. Februar 2021 um 08:46:12 UTC+1:

> hello,
>
> thank you for this information about schema and UDP.
>
> i use a mikrotik rb4011igs, so i think this should be possible, i will 
> look for a solution and post it here.
>
> regards,
> chris
>
> mbat...@gmail.com schrieb am Sonntag, 21. Februar 2021 um 03:39:09 UTC+1:
>
>> UDP broadcasts are not routed between subnets, so unless your weewx host 
>> has a presence on the weatherlink hub's net, it won't "hear" the hub.
>>
>> There are a couple of ways (besides "multi-homing" the weewx box) to deal 
>> with the problem. Ass u me ing your home firewall / router is a Linux box, 
>> and that you have administrative control of it, one solution is to install 
>> a UDP replicator (such as this one 
>> ) on your home router.  
>> Another method (same assumptions) is to use port forwarding, which is 
>> described here 
>> 
>> .
>>
>> On Saturday, February 20, 2021 at 12:55:10 PM UTC-6 
>> michael.s...@gmail.com wrote:
>>
>>> should the pi and weatherlink live be on the same subnetwork, because i 
 dont get data

>>>
>>> Yes, to receive the live 2.5 second push updates (wind, rain) both 
>>> devices must be on the same subnet. They work using UDP broadcasts. The 
>>> "complete" data set (HTTP) doesn't technically require it, though I haven't 
>>> tested whether the driver works fine if it never receives a push update (it 
>>> should).
>>>
>>>
>>> why should i switch to WLL schema, i loose specific data, when i dont do 
 it?

>>>  
>>> The following columns are added in the WLL schema:
>>>
>>>- dewpoint and heatindex for up to 9 sensors (default only for 2)
>>>- wetbulb temperature
>>>- THW and THSW index ("feels like" temperature)
>>>- indoor heatindex 
>>>- "rainCount": how often your rain sensor's spoon got tripped since 
>>>the last update
>>>- "rainCountRate": the current rate of spoon tripping
>>>- "rainSize": the size of the rain sensor spoon *in inches *(as 
>>>configured in the WLL app or the WeatherLink.com website)
>>>
>>> Additionally, daily summaries and units are configured for all new 
>>> columns (except the last one).
>>>
>>>
>>> regards, 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/8cf02db6-eb61-47d5-9d88-455e9b83470bn%40googlegroups.com.


Re: [weewx-user] Problem with extension install (SyntaxError: Non-ASCII character)

2021-02-20 Thread Christian Gruber
hello,

thank you for this information about schema and UDP.

i use a mikrotik rb4011igs, so i think this should be possible, i will look 
for a solution and post it here.

regards,
chris

mbat...@gmail.com schrieb am Sonntag, 21. Februar 2021 um 03:39:09 UTC+1:

> UDP broadcasts are not routed between subnets, so unless your weewx host 
> has a presence on the weatherlink hub's net, it won't "hear" the hub.
>
> There are a couple of ways (besides "multi-homing" the weewx box) to deal 
> with the problem. Ass u me ing your home firewall / router is a Linux box, 
> and that you have administrative control of it, one solution is to install 
> a UDP replicator (such as this one 
> ) on your home router.  
> Another method (same assumptions) is to use port forwarding, which is 
> described here 
> 
> .
>
> On Saturday, February 20, 2021 at 12:55:10 PM UTC-6 michael.s...@gmail.com 
> wrote:
>
>> should the pi and weatherlink live be on the same subnetwork, because i 
>>> dont get data
>>>
>>
>> Yes, to receive the live 2.5 second push updates (wind, rain) both 
>> devices must be on the same subnet. They work using UDP broadcasts. The 
>> "complete" data set (HTTP) doesn't technically require it, though I haven't 
>> tested whether the driver works fine if it never receives a push update (it 
>> should).
>>
>>
>> why should i switch to WLL schema, i loose specific data, when i dont do 
>>> it?
>>>
>>  
>> The following columns are added in the WLL schema:
>>
>>- dewpoint and heatindex for up to 9 sensors (default only for 2)
>>- wetbulb temperature
>>- THW and THSW index ("feels like" temperature)
>>- indoor heatindex 
>>- "rainCount": how often your rain sensor's spoon got tripped since 
>>the last update
>>- "rainCountRate": the current rate of spoon tripping
>>- "rainSize": the size of the rain sensor spoon *in inches *(as 
>>configured in the WLL app or the WeatherLink.com website)
>>
>> Additionally, daily summaries and units are configured for all new 
>> columns (except the last one).
>>
>>
>> regards, 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/e67d9997-1aa3-42bb-8206-37e69b5cc0cfn%40googlegroups.com.


Re: [weewx-user] Problem with extension install (SyntaxError: Non-ASCII character)

2021-02-20 Thread mbat...@gmail.com
UDP broadcasts are not routed between subnets, so unless your weewx host 
has a presence on the weatherlink hub's net, it won't "hear" the hub.

There are a couple of ways (besides "multi-homing" the weewx box) to deal 
with the problem. Ass u me ing your home firewall / router is a Linux box, 
and that you have administrative control of it, one solution is to install 
a UDP replicator (such as this one 
) on your home router.  
Another method (same assumptions) is to use port forwarding, which is 
described here 

.

On Saturday, February 20, 2021 at 12:55:10 PM UTC-6 michael.s...@gmail.com 
wrote:

> should the pi and weatherlink live be on the same subnetwork, because i 
>> dont get data
>>
>
> Yes, to receive the live 2.5 second push updates (wind, rain) both devices 
> must be on the same subnet. They work using UDP broadcasts. The "complete" 
> data set (HTTP) doesn't technically require it, though I haven't tested 
> whether the driver works fine if it never receives a push update (it 
> should).
>
>
> why should i switch to WLL schema, i loose specific data, when i dont do 
>> it?
>>
>  
> The following columns are added in the WLL schema:
>
>- dewpoint and heatindex for up to 9 sensors (default only for 2)
>- wetbulb temperature
>- THW and THSW index ("feels like" temperature)
>- indoor heatindex 
>- "rainCount": how often your rain sensor's spoon got tripped since 
>the last update
>- "rainCountRate": the current rate of spoon tripping
>- "rainSize": the size of the rain sensor spoon *in inches *(as 
>configured in the WLL app or the WeatherLink.com website)
>
> Additionally, daily summaries and units are configured for all new columns 
> (except the last one).
>
>
> regards, 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/d8044162-1963-423d-9ce5-f39c214f3916n%40googlegroups.com.


Re: [weewx-user] Problem with extension install (SyntaxError: Non-ASCII character)

2021-02-20 Thread Michael Schantl

>
> should the pi and weatherlink live be on the same subnetwork, because i 
> dont get data
>

Yes, to receive the live 2.5 second push updates (wind, rain) both devices 
must be on the same subnet. They work using UDP broadcasts. The "complete" 
data set (HTTP) doesn't technically require it, though I haven't tested 
whether the driver works fine if it never receives a push update (it 
should).


why should i switch to WLL schema, i loose specific data, when i dont do it?
>
 
The following columns are added in the WLL schema:

   - dewpoint and heatindex for up to 9 sensors (default only for 2)
   - wetbulb temperature
   - THW and THSW index ("feels like" temperature)
   - indoor heatindex 
   - "rainCount": how often your rain sensor's spoon got tripped since the 
   last update
   - "rainCountRate": the current rate of spoon tripping
   - "rainSize": the size of the rain sensor spoon *in inches *(as 
   configured in the WLL app or the WeatherLink.com website)

Additionally, daily summaries and units are configured for all new columns 
(except the last one).


regards, 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/fe5373ca-f949-4c80-9c1a-c6cf3aa81f25n%40googlegroups.com.


Re: [weewx-user] Problem with extension install (SyntaxError: Non-ASCII character)

2021-02-20 Thread Christian Gruber
hello,

thank you, i reinstalled it and it's running now :)

i have a few additional questions:

-) should the pi and weatherlink live be on the same subnetwork, because i 
dont get data

-) why should i switch to WLL schema, i loose specific data, when i dont do 
it?

regards,
chris



tke...@gmail.com schrieb am Samstag, 20. Februar 2021 um 14:16:46 UTC+1:

> You do not need to uninstall weewx first. 
>
> Just follow the install instructions, but use the python3 version instead:
>
>
> *wget -qO - https://weewx.com/apt/weewx- 
> python3.list | sudo tee 
> /etc/apt/sources.list.d/weewx.list*
>
>
> *sudo apt-get updatesudo apt-get install weewx*
>
>
>
> On Sat, Feb 20, 2021 at 3:42 AM Michael Schantl  
> wrote:
>
>>
>> Hi Chris,
>>
>> I guess you followed the documentation for installing on a Pi?
>> http://www.weewx.com/docs/debian.htm
>>
>> In that case first uninstall WeeWX {should keep configuration}:
>>
>>sudo apt remove weewx
>>
>> Also keep in mind that the WLL driver uses the Python *requests* 
>> library. Install it using:
>>
>>sudo apt install python3-requests
>>
>> Then re-install according to the page linked above. In the first section 
>> only run the command that's labeled "*For Debian10 and later, use 
>> python3*". Skip the following line for Python 2.
>> Follow all other sections as usual.
>>
>> grua...@gmail.com schrieb am Samstag, 20. Februar 2021 um 11:52:18 UTC+1:
>>
>>> hello michael,
>>>
>>> you are right - install worked now, but i get an error in syslog.
>>>
>>> how can i tell my pi to use python3 instead of python2?
>>>
>>> regards,
>>> chris 
>>>
>>> michael.s...@gmail.com schrieb am Freitag, 19. Februar 2021 um 20:00:51 
>>> UTC+1:
>>>
 As far as I can see, you are using Python 2 or this problem occurs only 
 with this version.
 However, the plugin is unfortunately only compatible with Python 3, as 
 it also uses some other Py 3-only features.

 regards,
 Michael
 grua...@gmail.com schrieb am Freitag, 19. Februar 2021 um 19:31:26 
 UTC+1:

> thank you, this solved the problem :)
>
> tke...@gmail.com schrieb am Freitag, 19. Februar 2021 um 14:09:18 
> UTC+1:
>
>> The problem is that the extension author used the copyright character 
>> ('©') in the first line of the code for install.py, which is a non-ascii 
>> character. In Python 2.x, the default encoding of source code is ascii. 
>> If 
>> non-ascii characters are going to be used, then the encoding must be 
>> declared, which the author did not do. In Python 3.x, the default 
>> encoding 
>> is utf-8, so the copyright character will work.
>>
>> The fix is to either remove the character, or switch to Python 3.x. 
>> Or, contact the author.
>>
>> On Fri, Feb 19, 2021 at 2:01 AM Christian Gruber  
>> wrote:
>>
>>> hello,
>>>
>>> i am trying to install this extension to use it with my 
>>> weatherlink-live
>>> https://github.com/michael-slx/weewx-weatherlink-live
>>>
>>> it fails with the following error:
>>>
>>> ##
>>> Request to install 'release.zip'
>>> Extracting from zip archive release.zip
>>> Traceback (most recent call last):
>>>   File "/usr/share/weewx/wee_extension", line 88, in 
>>> main()
>>>   File "/usr/share/weewx/wee_extension", line 80, in main
>>> ext.install_extension(options.install)
>>>   File "/usr/share/weewx/weecfg/extension.py", line 125, in 
>>> install_extension
>>> self.install_from_dir(extension_dir)
>>>   File "/usr/share/weewx/weecfg/extension.py", line 147, in 
>>> install_from_dir
>>> extension_dir)
>>>   File "/usr/share/weewx/weecfg/__init__.py", line 1866, in 
>>> get_extension_installer
>>> __import__('install')
>>>   File "/var/tmp/weewx-weatherlink-live-release/install.py", line 1
>>> SyntaxError: Non-ASCII character '\xc2' in file 
>>> /var/tmp/weewx-weatherlink-live-release/install.py on line 1, but no 
>>> encoding declared; see http://python.oev/peps/pep-0263/ for details
>>> ##
>>>
>>> maybe someone can help me :)
>>>
>>> regards
>>> chris
>>>
>>> -- 
>>> 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/17172c68-ef7b-4d29-a23d-06caf60b4de9n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> You received this message because you are subscribed to the Google 

Re: [weewx-user] Problem with extension install (SyntaxError: Non-ASCII character)

2021-02-20 Thread Tom Keffer
You do not need to uninstall weewx first.

Just follow the install instructions, but use the python3 version instead:


*wget -qO - https://weewx.com/apt/weewx-
python3.list | sudo tee
/etc/apt/sources.list.d/weewx.list*


*sudo apt-get updatesudo apt-get install weewx*



On Sat, Feb 20, 2021 at 3:42 AM Michael Schantl <
michael.schantl...@gmail.com> wrote:

>
> Hi Chris,
>
> I guess you followed the documentation for installing on a Pi?
> http://www.weewx.com/docs/debian.htm
>
> In that case first uninstall WeeWX {should keep configuration}:
>
>sudo apt remove weewx
>
> Also keep in mind that the WLL driver uses the Python *requests* library.
> Install it using:
>
>sudo apt install python3-requests
>
> Then re-install according to the page linked above. In the first section
> only run the command that's labeled "*For Debian10 and later, use python3*".
> Skip the following line for Python 2.
> Follow all other sections as usual.
>
> grua...@gmail.com schrieb am Samstag, 20. Februar 2021 um 11:52:18 UTC+1:
>
>> hello michael,
>>
>> you are right - install worked now, but i get an error in syslog.
>>
>> how can i tell my pi to use python3 instead of python2?
>>
>> regards,
>> chris
>>
>> michael.s...@gmail.com schrieb am Freitag, 19. Februar 2021 um 20:00:51
>> UTC+1:
>>
>>> As far as I can see, you are using Python 2 or this problem occurs only
>>> with this version.
>>> However, the plugin is unfortunately only compatible with Python 3, as
>>> it also uses some other Py 3-only features.
>>>
>>> regards,
>>> Michael
>>> grua...@gmail.com schrieb am Freitag, 19. Februar 2021 um 19:31:26
>>> UTC+1:
>>>
 thank you, this solved the problem :)

 tke...@gmail.com schrieb am Freitag, 19. Februar 2021 um 14:09:18
 UTC+1:

> The problem is that the extension author used the copyright character
> ('©') in the first line of the code for install.py, which is a non-ascii
> character. In Python 2.x, the default encoding of source code is ascii. If
> non-ascii characters are going to be used, then the encoding must be
> declared, which the author did not do. In Python 3.x, the default encoding
> is utf-8, so the copyright character will work.
>
> The fix is to either remove the character, or switch to Python 3.x.
> Or, contact the author.
>
> On Fri, Feb 19, 2021 at 2:01 AM Christian Gruber 
> wrote:
>
>> hello,
>>
>> i am trying to install this extension to use it with my
>> weatherlink-live
>> https://github.com/michael-slx/weewx-weatherlink-live
>>
>> it fails with the following error:
>>
>> ##
>> Request to install 'release.zip'
>> Extracting from zip archive release.zip
>> Traceback (most recent call last):
>>   File "/usr/share/weewx/wee_extension", line 88, in 
>> main()
>>   File "/usr/share/weewx/wee_extension", line 80, in main
>> ext.install_extension(options.install)
>>   File "/usr/share/weewx/weecfg/extension.py", line 125, in
>> install_extension
>> self.install_from_dir(extension_dir)
>>   File "/usr/share/weewx/weecfg/extension.py", line 147, in
>> install_from_dir
>> extension_dir)
>>   File "/usr/share/weewx/weecfg/__init__.py", line 1866, in
>> get_extension_installer
>> __import__('install')
>>   File "/var/tmp/weewx-weatherlink-live-release/install.py", line 1
>> SyntaxError: Non-ASCII character '\xc2' in file
>> /var/tmp/weewx-weatherlink-live-release/install.py on line 1, but no
>> encoding declared; see http://python.oev/peps/pep-0263/ for details
>> ##
>>
>> maybe someone can help me :)
>>
>> regards
>> chris
>>
>> --
>> 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/17172c68-ef7b-4d29-a23d-06caf60b4de9n%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/1a992758-a708-4422-9d89-2a1ef1d1289an%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google 

Re: [weewx-user] Problem with extension install (SyntaxError: Non-ASCII character)

2021-02-20 Thread Michael Schantl

Hi Chris,

I guess you followed the documentation for installing on a Pi?
http://www.weewx.com/docs/debian.htm

In that case first uninstall WeeWX {should keep configuration}:

   sudo apt remove weewx

Also keep in mind that the WLL driver uses the Python *requests* library. 
Install it using:

   sudo apt install python3-requests

Then re-install according to the page linked above. In the first section 
only run the command that's labeled "*For Debian10 and later, use python3*". 
Skip the following line for Python 2.
Follow all other sections as usual.

grua...@gmail.com schrieb am Samstag, 20. Februar 2021 um 11:52:18 UTC+1:

> hello michael,
>
> you are right - install worked now, but i get an error in syslog.
>
> how can i tell my pi to use python3 instead of python2?
>
> regards,
> chris 
>
> michael.s...@gmail.com schrieb am Freitag, 19. Februar 2021 um 20:00:51 
> UTC+1:
>
>> As far as I can see, you are using Python 2 or this problem occurs only 
>> with this version.
>> However, the plugin is unfortunately only compatible with Python 3, as it 
>> also uses some other Py 3-only features.
>>
>> regards,
>> Michael
>> grua...@gmail.com schrieb am Freitag, 19. Februar 2021 um 19:31:26 UTC+1:
>>
>>> thank you, this solved the problem :)
>>>
>>> tke...@gmail.com schrieb am Freitag, 19. Februar 2021 um 14:09:18 UTC+1:
>>>
 The problem is that the extension author used the copyright character 
 ('©') in the first line of the code for install.py, which is a non-ascii 
 character. In Python 2.x, the default encoding of source code is ascii. If 
 non-ascii characters are going to be used, then the encoding must be 
 declared, which the author did not do. In Python 3.x, the default encoding 
 is utf-8, so the copyright character will work.

 The fix is to either remove the character, or switch to Python 3.x. Or, 
 contact the author.

 On Fri, Feb 19, 2021 at 2:01 AM Christian Gruber  
 wrote:

> hello,
>
> i am trying to install this extension to use it with my 
> weatherlink-live
> https://github.com/michael-slx/weewx-weatherlink-live
>
> it fails with the following error:
>
> ##
> Request to install 'release.zip'
> Extracting from zip archive release.zip
> Traceback (most recent call last):
>   File "/usr/share/weewx/wee_extension", line 88, in 
> main()
>   File "/usr/share/weewx/wee_extension", line 80, in main
> ext.install_extension(options.install)
>   File "/usr/share/weewx/weecfg/extension.py", line 125, in 
> install_extension
> self.install_from_dir(extension_dir)
>   File "/usr/share/weewx/weecfg/extension.py", line 147, in 
> install_from_dir
> extension_dir)
>   File "/usr/share/weewx/weecfg/__init__.py", line 1866, in 
> get_extension_installer
> __import__('install')
>   File "/var/tmp/weewx-weatherlink-live-release/install.py", line 1
> SyntaxError: Non-ASCII character '\xc2' in file 
> /var/tmp/weewx-weatherlink-live-release/install.py on line 1, but no 
> encoding declared; see http://python.oev/peps/pep-0263/ for details
> ##
>
> maybe someone can help me :)
>
> regards
> chris
>
> -- 
> 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/17172c68-ef7b-4d29-a23d-06caf60b4de9n%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/1a992758-a708-4422-9d89-2a1ef1d1289an%40googlegroups.com.


Re: [weewx-user] Problem with extension install (SyntaxError: Non-ASCII character)

2021-02-20 Thread Christian Gruber
hello michael,

you are right - install worked now, but i get an error in syslog.

how can i tell my pi to use python3 instead of python2?

regards,
chris 

michael.s...@gmail.com schrieb am Freitag, 19. Februar 2021 um 20:00:51 
UTC+1:

> As far as I can see, you are using Python 2 or this problem occurs only 
> with this version.
> However, the plugin is unfortunately only compatible with Python 3, as it 
> also uses some other Py 3-only features.
>
> regards,
> Michael
> grua...@gmail.com schrieb am Freitag, 19. Februar 2021 um 19:31:26 UTC+1:
>
>> thank you, this solved the problem :)
>>
>> tke...@gmail.com schrieb am Freitag, 19. Februar 2021 um 14:09:18 UTC+1:
>>
>>> The problem is that the extension author used the copyright character 
>>> ('©') in the first line of the code for install.py, which is a non-ascii 
>>> character. In Python 2.x, the default encoding of source code is ascii. If 
>>> non-ascii characters are going to be used, then the encoding must be 
>>> declared, which the author did not do. In Python 3.x, the default encoding 
>>> is utf-8, so the copyright character will work.
>>>
>>> The fix is to either remove the character, or switch to Python 3.x. Or, 
>>> contact the author.
>>>
>>> On Fri, Feb 19, 2021 at 2:01 AM Christian Gruber  
>>> wrote:
>>>
 hello,

 i am trying to install this extension to use it with my weatherlink-live
 https://github.com/michael-slx/weewx-weatherlink-live

 it fails with the following error:

 ##
 Request to install 'release.zip'
 Extracting from zip archive release.zip
 Traceback (most recent call last):
   File "/usr/share/weewx/wee_extension", line 88, in 
 main()
   File "/usr/share/weewx/wee_extension", line 80, in main
 ext.install_extension(options.install)
   File "/usr/share/weewx/weecfg/extension.py", line 125, in 
 install_extension
 self.install_from_dir(extension_dir)
   File "/usr/share/weewx/weecfg/extension.py", line 147, in 
 install_from_dir
 extension_dir)
   File "/usr/share/weewx/weecfg/__init__.py", line 1866, in 
 get_extension_installer
 __import__('install')
   File "/var/tmp/weewx-weatherlink-live-release/install.py", line 1
 SyntaxError: Non-ASCII character '\xc2' in file 
 /var/tmp/weewx-weatherlink-live-release/install.py on line 1, but no 
 encoding declared; see http://python.oev/peps/pep-0263/ for details
 ##

 maybe someone can help me :)

 regards
 chris

 -- 
 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/17172c68-ef7b-4d29-a23d-06caf60b4de9n%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/c25c62d1-15b2-4834-bf02-48c215f51208n%40googlegroups.com.


Re: [weewx-user] Problem with extension install (SyntaxError: Non-ASCII character)

2021-02-19 Thread Michael Schantl
As far as I can see, you are using Python 2 or this problem occurs only 
with this version.
However, the plugin is unfortunately only compatible with Python 3, as it 
also uses some other Py 3-only features.

regards,
Michael
grua...@gmail.com schrieb am Freitag, 19. Februar 2021 um 19:31:26 UTC+1:

> thank you, this solved the problem :)
>
> tke...@gmail.com schrieb am Freitag, 19. Februar 2021 um 14:09:18 UTC+1:
>
>> The problem is that the extension author used the copyright character 
>> ('©') in the first line of the code for install.py, which is a non-ascii 
>> character. In Python 2.x, the default encoding of source code is ascii. If 
>> non-ascii characters are going to be used, then the encoding must be 
>> declared, which the author did not do. In Python 3.x, the default encoding 
>> is utf-8, so the copyright character will work.
>>
>> The fix is to either remove the character, or switch to Python 3.x. Or, 
>> contact the author.
>>
>> On Fri, Feb 19, 2021 at 2:01 AM Christian Gruber  
>> wrote:
>>
>>> hello,
>>>
>>> i am trying to install this extension to use it with my weatherlink-live
>>> https://github.com/michael-slx/weewx-weatherlink-live
>>>
>>> it fails with the following error:
>>>
>>> ##
>>> Request to install 'release.zip'
>>> Extracting from zip archive release.zip
>>> Traceback (most recent call last):
>>>   File "/usr/share/weewx/wee_extension", line 88, in 
>>> main()
>>>   File "/usr/share/weewx/wee_extension", line 80, in main
>>> ext.install_extension(options.install)
>>>   File "/usr/share/weewx/weecfg/extension.py", line 125, in 
>>> install_extension
>>> self.install_from_dir(extension_dir)
>>>   File "/usr/share/weewx/weecfg/extension.py", line 147, in 
>>> install_from_dir
>>> extension_dir)
>>>   File "/usr/share/weewx/weecfg/__init__.py", line 1866, in 
>>> get_extension_installer
>>> __import__('install')
>>>   File "/var/tmp/weewx-weatherlink-live-release/install.py", line 1
>>> SyntaxError: Non-ASCII character '\xc2' in file 
>>> /var/tmp/weewx-weatherlink-live-release/install.py on line 1, but no 
>>> encoding declared; see http://python.oev/peps/pep-0263/ for details
>>> ##
>>>
>>> maybe someone can help me :)
>>>
>>> regards
>>> chris
>>>
>>> -- 
>>> 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/17172c68-ef7b-4d29-a23d-06caf60b4de9n%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/546caa69-3d25-401c-8182-f39194fba6ddn%40googlegroups.com.


Re: [weewx-user] Problem with extension install (SyntaxError: Non-ASCII character)

2021-02-19 Thread Christian Gruber
thank you, this solved the problem :)

tke...@gmail.com schrieb am Freitag, 19. Februar 2021 um 14:09:18 UTC+1:

> The problem is that the extension author used the copyright character 
> ('©') in the first line of the code for install.py, which is a non-ascii 
> character. In Python 2.x, the default encoding of source code is ascii. If 
> non-ascii characters are going to be used, then the encoding must be 
> declared, which the author did not do. In Python 3.x, the default encoding 
> is utf-8, so the copyright character will work.
>
> The fix is to either remove the character, or switch to Python 3.x. Or, 
> contact the author.
>
> On Fri, Feb 19, 2021 at 2:01 AM Christian Gruber  
> wrote:
>
>> hello,
>>
>> i am trying to install this extension to use it with my weatherlink-live
>> https://github.com/michael-slx/weewx-weatherlink-live
>>
>> it fails with the following error:
>>
>> ##
>> Request to install 'release.zip'
>> Extracting from zip archive release.zip
>> Traceback (most recent call last):
>>   File "/usr/share/weewx/wee_extension", line 88, in 
>> main()
>>   File "/usr/share/weewx/wee_extension", line 80, in main
>> ext.install_extension(options.install)
>>   File "/usr/share/weewx/weecfg/extension.py", line 125, in 
>> install_extension
>> self.install_from_dir(extension_dir)
>>   File "/usr/share/weewx/weecfg/extension.py", line 147, in 
>> install_from_dir
>> extension_dir)
>>   File "/usr/share/weewx/weecfg/__init__.py", line 1866, in 
>> get_extension_installer
>> __import__('install')
>>   File "/var/tmp/weewx-weatherlink-live-release/install.py", line 1
>> SyntaxError: Non-ASCII character '\xc2' in file 
>> /var/tmp/weewx-weatherlink-live-release/install.py on line 1, but no 
>> encoding declared; see http://python.oev/peps/pep-0263/ for details
>> ##
>>
>> maybe someone can help me :)
>>
>> regards
>> chris
>>
>> -- 
>> 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/17172c68-ef7b-4d29-a23d-06caf60b4de9n%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/c6037437-fe02-40ca-931c-fc998041a872n%40googlegroups.com.


Re: [weewx-user] Problem with extension install (SyntaxError: Non-ASCII character)

2021-02-19 Thread Tom Keffer
The problem is that the extension author used the copyright character ('©')
in the first line of the code for install.py, which is a non-ascii
character. In Python 2.x, the default encoding of source code is ascii. If
non-ascii characters are going to be used, then the encoding must be
declared, which the author did not do. In Python 3.x, the default encoding
is utf-8, so the copyright character will work.

The fix is to either remove the character, or switch to Python 3.x. Or,
contact the author.

On Fri, Feb 19, 2021 at 2:01 AM Christian Gruber 
wrote:

> hello,
>
> i am trying to install this extension to use it with my weatherlink-live
> https://github.com/michael-slx/weewx-weatherlink-live
>
> it fails with the following error:
>
> ##
> Request to install 'release.zip'
> Extracting from zip archive release.zip
> Traceback (most recent call last):
>   File "/usr/share/weewx/wee_extension", line 88, in 
> main()
>   File "/usr/share/weewx/wee_extension", line 80, in main
> ext.install_extension(options.install)
>   File "/usr/share/weewx/weecfg/extension.py", line 125, in
> install_extension
> self.install_from_dir(extension_dir)
>   File "/usr/share/weewx/weecfg/extension.py", line 147, in
> install_from_dir
> extension_dir)
>   File "/usr/share/weewx/weecfg/__init__.py", line 1866, in
> get_extension_installer
> __import__('install')
>   File "/var/tmp/weewx-weatherlink-live-release/install.py", line 1
> SyntaxError: Non-ASCII character '\xc2' in file
> /var/tmp/weewx-weatherlink-live-release/install.py on line 1, but no
> encoding declared; see http://python.oev/peps/pep-0263/ for details
> ##
>
> maybe someone can help me :)
>
> regards
> chris
>
> --
> 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/17172c68-ef7b-4d29-a23d-06caf60b4de9n%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/CAPq0zECOGNVX-arQvLBXHiEeLFPx%3DSPw-BqJPxcu9vm6HBeTsw%40mail.gmail.com.


[weewx-user] Problem with extension install (SyntaxError: Non-ASCII character)

2021-02-19 Thread Christian Gruber
hello,

i am trying to install this extension to use it with my weatherlink-live
https://github.com/michael-slx/weewx-weatherlink-live

it fails with the following error:

##
Request to install 'release.zip'
Extracting from zip archive release.zip
Traceback (most recent call last):
  File "/usr/share/weewx/wee_extension", line 88, in 
main()
  File "/usr/share/weewx/wee_extension", line 80, in main
ext.install_extension(options.install)
  File "/usr/share/weewx/weecfg/extension.py", line 125, in 
install_extension
self.install_from_dir(extension_dir)
  File "/usr/share/weewx/weecfg/extension.py", line 147, in install_from_dir
extension_dir)
  File "/usr/share/weewx/weecfg/__init__.py", line 1866, in 
get_extension_installer
__import__('install')
  File "/var/tmp/weewx-weatherlink-live-release/install.py", line 1
SyntaxError: Non-ASCII character '\xc2' in file 
/var/tmp/weewx-weatherlink-live-release/install.py on line 1, but no 
encoding declared; see http://python.oev/peps/pep-0263/ for details
##

maybe someone can help me :)

regards
chris

-- 
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/17172c68-ef7b-4d29-a23d-06caf60b4de9n%40googlegroups.com.