First test with new Debian distribution and new Python ... I get a couple 
of errors ...

Jun 30 16:17:08 weewx4-raspi python3[374]: weewx[374] CRITICAL __main__:   
  ****      self.loadServices(config_dict)
Jun 30 16:17:08 weewx4-raspi python3[374]: weewx[374] CRITICAL __main__:   
  ****    File "/usr/share/weewx/weewx/engine.py", line 161, in loadServices
Jun 30 16:17:08 weewx4-raspi python3[374]: weewx[374] CRITICAL __main__:   
  ****      obj = weeutil.weeutil.get_object(svc)(self, config_dict)
Jun 30 16:17:08 weewx4-raspi python3[374]: weewx[374] CRITICAL __main__:   
  ****    File "/usr/share/weewx/weeutil/weeutil.py", line 1335, in 
get_object
Jun 30 16:17:08 weewx4-raspi python3[374]: weewx[374] CRITICAL __main__:   
  ****      mod = __import__(module)
Jun 30 16:17:08 weewx4-raspi python3[374]: weewx[374] CRITICAL __main__:   
  ****    File "/usr/share/weewx/user/aprx.py", line 66
Jun 30 16:17:08 weewx4-raspi python3[374]: weewx[374] CRITICAL __main__:   
  ****      self.lat   = d.get('lat', {})
Jun 30 16:17:08 weewx4-raspi python3[374]: weewx[374] CRITICAL __main__:   
  ****                                  ^
Jun 30 16:17:08 weewx4-raspi python3[374]: weewx[374] CRITICAL __main__:   
  ****  TabError: inconsistent use of tabs and spaces in indentation
Jun 30 16:17:08 weewx4-raspi python3[374]: weewx[374] CRITICAL __main__:   
  ****  Exiting.

(...)

Le vendredi 30 juin 2023 à 15 h 46 min 55 s UTC-4, Yves Martin a écrit :

> Hi Vince,
>
> This is already done (new Raspberry Pi 10 with Python 3.9) ... but how to 
> transfert all to the new one?
> If I copy all from one to the new one, is weewx will work under Python3?
>
> (/usr/share/, /var/, /etc/ directories etc...)
>
> Yves
> Le vendredi 30 juin 2023 à 15 h 40 min 20 s UTC-4, vince a écrit :
>
>> debian 7 was end-of-life over 5 years ago and is no longer getting 
>> security updates.  You should build a new SD card with a current RaspiOS on 
>> it, which will have python3 there by default.   Reinstall everything you 
>> have added to your current os onto the new SD card.
>>
>> Once you have the new SD using weewx and python3 you will meet the 
>> prerequisites for the airlink extension.
>>
>> On Friday, June 30, 2023 at 4:51:33 AM UTC-7 Yves Martin wrote:
>>
>>> Hi Vince,
>>>
>>> What I'm looking for is to ingrate pertinent information about "Air 
>>> Quality" on my Meteo Station. If there is a third party extension doing it, 
>>> I will take it!
>>> If I have to upgrade Python to version 3.x, I will do it too (but I need 
>>> to know how... and what is the impact of my actual setting).
>>> If there is an easy way to do it, this is perfect! ;)
>>>
>>> Actually I"m using Debian 7.11 with Python 2.7.3
>>>
>>> Regards,
>>>
>>> Yves,
>>> YMartin.com/meteo
>>>
>>> Le jeudi 29 juin 2023 à 18 h 34 min 42 s UTC-4, vince a écrit :
>>>
>>>> Not sure what you're looking for in terms of an answer here.  Yes there 
>>>> is a third-party extension if you attempt to look for it even minimally. 
>>>>  Yes it requires a modern python version.  Yes there is an easy way to 
>>>> integrate it.  Install and configure that extension like you would do with 
>>>> any other extension.
>>>>
>>>> On Thursday, June 29, 2023 at 1:24:13 PM UTC-7 Yves Martin wrote:
>>>>
>>>>> Hi Vince,
>>>>>
>>>>> I'm using the "Davis Air Quality Sensor" with my phone (Installed here 
>>>>> http://45.73.0.50:8080/v1/current_conditions)
>>>>> Here is the information about the device: 
>>>>> https://www.davisinstruments.com/pages/airlink
>>>>>
>>>>> I am looking to integrate this sensor to my meteo station ... 
>>>>> (YMartin.com/meteo)
>>>>> I'm using a Davis Vantage Pro2 since a while now, and with weewx it 
>>>>> works very well since 2014.
>>>>>
>>>>> I already asked here if something exists for this Air Quality Sensor, 
>>>>> and I get an answer that I have to upgrade my version (3.9.2 to 4.x.x) 
>>>>> and 
>>>>> perhaps upgrade also my Python version too and the device was already 
>>>>> supported (I did not find this in the documentation).
>>>>>
>>>>> I've set another Raspberry Pi with Debian 10 and Python 3.9 ... but 
>>>>> before I change and transfert the data to the new plateform, I would like 
>>>>> to know if there is an easy way to integrate this sensor to weewx?
>>>>>
>>>>> Regards,
>>>>>
>>>>> Yves
>>>>> YMartin.com/meteo
>>>>>
>>>>> Le jeudi 29 juin 2023 à 16 h 09 min 52 s UTC-4, vince a écrit :
>>>>>
>>>>>> What have you searched for ?
>>>>>> (hint - try some searches)
>>>>>>
>>>>>> I would be surprised if anything modern works with python2...
>>>>>>
>>>>>> On Thursday, June 29, 2023 at 1:00:35 PM UTC-7 Yves Martin wrote:
>>>>>>
>>>>>>>
>>>>>>> 15 h 58 (maintenant) 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> Hi,
>>>>>>>
>>>>>>> Is the Devis "Air Quality Sensor" is natively supported in the last 
>>>>>>> version of weewx? (4.9.1) 
>>>>>>>
>>>>>>> I'm using Python 2.7.3 (I've heard I will need Python 3...)?
>>>>>>>
>>>>>>> I've added a link to my meteo station and I will be happy to get the 
>>>>>>> data and add these information in my meteo station. With the poor Air 
>>>>>>> quality we had in Montreal in the last days, it will be important to 
>>>>>>> share 
>>>>>>> this information. (http://45.73.0.50:8080/v1/current_conditions)
>>>>>>>
>>>>>>> Yves,
>>>>>>> YMartin.com/meteo
>>>>>>>
>>>>>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c2d1cabe-0ab6-42b1-8bf9-0fea761b0900n%40googlegroups.com.

Reply via email to