Vielen Dank für die Hinweise. Ich werde es mir ansehen und korrigieren.

hesf...@gmail.com schrieb am Sonntag, 25. Juli 2021 um 08:37:04 UTC+2:

> sorry 
> die Erweiterung für die Einheitendarstellung in
>
> $current.airqHumAbs.gram_per_meter_cubed
> $current.airqCO.milligram_per_meter_cubed.format("%.2f")
> $current.airqO3.microgram_per_meter_cubed.format("%.1f")
>
> habe ich in first_device.html.tmpl entfernt, dann generiert weewx die 
> Seiten
> Hartmut
>
> hesf...@gmail.com schrieb am Sonntag, 25. Juli 2021 um 08:00:08 UTC+2:
>
>> Hallo und Guten Morgen,
>>
>> da sind noch 2 Fehler.
>> 1. airQ_corant.py
>> __altitude = config_dict['airQ'][device]['altitude'] 
>> if len(__altitude)==3: 
>>      __altitude = weewx.units.ValueTuple(__altitude[0],__altitude[1],
>> __altitude[2]) 
>> else:
>>      __altitude = weewx.units.ValueTuple(__altitude[0],__altitdue[1],'
>> group_altitude')
>> in Zeile 355
>>
>> 2. ich weiß nicht wo ich suchen muss.
>> Jul 25 07:50:39 hesba weewx[10248] INFO weewx.reportengine: Using 
>> localization file /home/weewx/skins/airQ/lang/de.conf for report 
>> 'airqReport'
>> Jul 25 07:50:40 hesba weewx[10248] ERROR weewx.cheetahgenerator: Generate 
>> failed with exception '<class 'TypeError'>'
>> Jul 25 07:50:40 hesba weewx[10248] ERROR weewx.cheetahgenerator: **** 
>> Ignoring template /home/weewx/skins/airQ/first_device.html.tmpl
>> Jul 25 07:50:40 hesba weewx[10248] ERROR weewx.cheetahgenerator: **** 
>> Reason: 'UnknownType' object is not subscriptable
>> Jul 25 07:50:40 hesba weewx[10248] ERROR weewx.cheetahgenerator: ****  
>> Traceback (most recent call last):
>> Jul 25 07:50:40 hesba weewx[10248] ERROR weewx.cheetahgenerator: ****    
>> File "/home/weewx/bin/weewx/cheetahgenerator.py", line 332, in generate
>> Jul 25 07:50:40 hesba weewx[10248] ERROR weewx.cheetahgenerator: 
>> ****      unicode_string = compiled_template.respond()
>> Jul 25 07:50:40 hesba weewx[10248] ERROR weewx.cheetahgenerator: ****    
>> File "_home_weewx_skins_airQ_first_device_html_tmpl.py", line 346, in 
>> respond
>> Jul 25 07:50:40 hesba weewx[10248] ERROR weewx.cheetahgenerator: ****    
>> File "/home/weewx/bin/weewx/units.py", line 1612, in __getattr__
>> Jul 25 07:50:40 hesba weewx[10248] ERROR weewx.cheetahgenerator: 
>> ****      converted = self.convert(target_unit)
>> Jul 25 07:50:40 hesba weewx[10248] ERROR weewx.cheetahgenerator: ****    
>> File "/home/weewx/bin/weewx/units.py", line 1593, in convert
>> Jul 25 07:50:40 hesba weewx[10248] ERROR weewx.cheetahgenerator: 
>> ****      value_t = convert(self.value_t, target_unit)
>> Jul 25 07:50:40 hesba weewx[10248] ERROR weewx.cheetahgenerator: ****    
>> File "/home/weewx/bin/weewx/units.py", line 1938, in convert
>> Jul 25 07:50:40 hesba weewx[10248] ERROR weewx.cheetahgenerator: 
>> ****      if val_t[1] == target_unit:
>> Jul 25 07:50:40 hesba weewx[10248] ERROR weewx.cheetahgenerator: ****  
>> TypeError: 
>> 'UnknownType' object is not subscriptable
>>
>> wenn ich in  $current.airqHumAbs.gram_per_meter_cubed  
>> ".gram_per_meter_cubed" keine Fehler
>>
>> Gruß
>> Hartmut
>>
>> kk44...@gmail.com schrieb am Samstag, 24. Juli 2021 um 21:12:16 UTC+2:
>>
>>> I added an additional command to the configuration tool, that creates a 
>>> simple skin based on the Seasons skin with all the airQ devices found in 
>>> weewx.conf and displaying the values and the diagrams for them. Simply call 
>>> sudo 
>>> airq_conf --create-skin and find the new skin in /etc/weewx/skins/airQ.
>>>
>>> Karen K schrieb am Sonntag, 18. Juli 2021 um 21:21:11 UTC+2:
>>>
>>>> Configuration tool is uploaded to Github. Please, be careful using it. 
>>>> Don't forget backup.
>>>>
>>>> Karen K schrieb am Sonntag, 18. Juli 2021 um 18:48:36 UTC+2:
>>>>
>>>>> CO is really milligram not microgram according to the airQ 
>>>>> documentation and the display in the airQ app.
>>>>>
>>>>> Regarding "prefix": If you have more than one airQ device, you need 
>>>>> different names of the observation types for each of them. That's the 
>>>>> prefix for. Imagine there are 3 airQ devices, one outside, one in the 
>>>>> bedroom and one in the living room. Your could configure the outside 
>>>>> device 
>>>>> without prefix to put "co", "co2", "no2", "noise", "o3", "pm1_0", 
>>>>> "pm2_5", 
>>>>> "pm10_0", and "so2" into the predefined columns of the WeeWX database. 
>>>>> For 
>>>>> the bedroom device you could set "prefix = bedroom". So you get 
>>>>> "bedroom_co", "bedroom_co2" etc. for that device. And for the living room 
>>>>> device you could set "prefix = livingroom". So you get "livingroom_co", 
>>>>> "livingroom_co2", etc. for that. To create the appropriate columns in the 
>>>>> database I prepare a tool. I it is written, but still not tested. I got 
>>>>> the 
>>>>> second shot of Corona vaccination yesterday, and I am still down.
>>>>>
>>>>> Thank you for the information about installing the crypto modules. In 
>>>>> my case there was no need to install it separately. But I will include it 
>>>>> in the documentation.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> hesf...@gmail.com schrieb am Sonntag, 18. Juli 2021 um 07:18:29 UTC+2:
>>>>>
>>>>>> Guten Morgen,
>>>>>> ich habe die Fehler während der Installation beseitigt. auch unter
>>>>>> 1. airQ_corant.py Zeile 279 'co': ('co', 'milligram_per_meter_cubed', 
>>>>>> 'group_concentration',lambda x:x[0]),
>>>>>>                                                                  
>>>>>> microgram_per_meter_cubed
>>>>>> 2. wie funktioniert das mit dem "prefix"
>>>>>>   wird dann co oder co2 zu "prefixco" oder "prefixco2"
>>>>>>
>>>>>> Bei einem Rechner war ich erfolgreich mit der Installation.
>>>>>>
>>>>>> Danke
>>>>>>
>>>>>> Hallo,
>>>>>> I fixed the errors during the installation. 
>>>>>> how does that work with that "prefix"
>>>>>>
>>>>>> I thank you for the very good work
>>>>>>
>>>>>> A note for installing: "Crypto"
>>>>>> $ sudo apt-get install build-essential python3-dev 
>>>>>> $ pip3 install pycryptodomex 
>>>>>> $ python3 -m Cryptodome.SelfTest 
>>>>>>
>>>>>> I was successful with the installation on one computer.
>>>>>>
>>>>>> Thanks
>>>>>> Hartmut
>>>>>> kk44...@gmail.com schrieb am Samstag, 17. Juli 2021 um 22:01:22 
>>>>>> UTC+2:
>>>>>>
>>>>>>> From those logs and the removed messages (I read them before they 
>>>>>>> were removed) I am not sure what is the actual state of your 
>>>>>>> installation. 
>>>>>>> Does it generally work or not?
>>>>>>>
>>>>>>> In the moment I write a tool to add the necessary columns to the 
>>>>>>> database schema. By now the only way is to add the columns 
>>>>>>> using wee_database one by one. If you do not set a prefix, some data is 
>>>>>>> already saved to the database like pm1_0, pm2_5, and pm10_0. 
>>>>>>>
>>>>>>> hesf...@gmail.com schrieb am Samstag, 17. Juli 2021 um 16:16:21 
>>>>>>> UTC+2:
>>>>>>>
>>>>>>>> Hallo, 
>>>>>>>> by
>>>>>>>> root@hesba:/home/weewx/bin# ./wee_extension --install weewx-airQ.zip
>>>>>>>> Request to install 'weewx-airQ.zip'
>>>>>>>> Extracting from zip archive weewx-airQ.zip
>>>>>>>> Traceback (most recent call last):
>>>>>>>>   File "./wee_extension", line 88, in <module>
>>>>>>>>     main()
>>>>>>>>   File "./wee_extension", line 80, in main
>>>>>>>>     ext.install_extension(options.install)
>>>>>>>>   File "/home/weewx/bin/weecfg/extension.py", line 130, in 
>>>>>>>> install_extension
>>>>>>>>     self.install_from_dir(extension_dir)
>>>>>>>>   File "/home/weewx/bin/weecfg/extension.py", line 150, in 
>>>>>>>> install_from_dir
>>>>>>>>     installer_path, installer = 
>>>>>>>> weecfg.get_extension_installer(extension_dir)
>>>>>>>>   File "/home/weewx/bin/weecfg/__init__.py", line 1851, in 
>>>>>>>> get_extension_installer
>>>>>>>>     __import__('install')
>>>>>>>>   File "/var/tmp/weewx-airQ-master/install.py", line 26
>>>>>>>>     '#altitude': 'set_if_not_station_altitude'
>>>>>>>>                ^
>>>>>>>> SyntaxError: invalid syntax
>>>>>>>>
>>>>>>>> and
>>>>>>>>
>>>>>>>> root@hesba:/home/weewx/bin# ./wee_extension --install weewx-airQ.zip
>>>>>>>> Request to install 'weewx-airQ.zip'
>>>>>>>> Extracting from zip archive weewx-airQ.zip
>>>>>>>> Traceback (most recent call last):
>>>>>>>>   File "./wee_extension", line 88, in <module>
>>>>>>>>     main()
>>>>>>>>   File "./wee_extension", line 80, in main
>>>>>>>>     ext.install_extension(options.install)
>>>>>>>>   File "/home/weewx/bin/weecfg/extension.py", line 130, in 
>>>>>>>> install_extension
>>>>>>>>     self.install_from_dir(extension_dir)
>>>>>>>>   File "/home/weewx/bin/weecfg/extension.py", line 150, in 
>>>>>>>> install_from_dir
>>>>>>>>     installer_path, installer = 
>>>>>>>> weecfg.get_extension_installer(extension_dir)
>>>>>>>>   File "/home/weewx/bin/weecfg/__init__.py", line 1858, in 
>>>>>>>> get_extension_installer
>>>>>>>>     installer = loader()
>>>>>>>>   File "/var/tmp/weewx-airQ-master/install.py", line 8, in loader
>>>>>>>>   File "/var/tmp/weewx-airQ-master/install.py", line 12, in __init__
>>>>>>>> NameError: name 'GTSInstaller' is not defined
>>>>>>>>
>>>>>>>> root@hesba:/home/weewx/bin# ./wee_extension --install weewx-airQ.zip
>>>>>>>> Request to install 'weewx-airQ.zip'
>>>>>>>> Extracting from zip archive weewx-airQ.zip
>>>>>>>> Saving installer file to /home/weewx/bin/user/installer/airQ
>>>>>>>> Saved configuration dictionary. Backup copy at 
>>>>>>>> /home/weewx/weewx.conf.20210717161220
>>>>>>>> Finished installing extension 'weewx-airQ.zip'
>>>>>>>>
>>>>>>>> how do i get the data into a database
>>>>>>>>
>>>>>>>> Hartmut
>>>>>>>> xsli...@gmail.com schrieb am Mittwoch, 14. Juli 2021 um 21:29:41 
>>>>>>>> UTC+2:
>>>>>>>>
>>>>>>>>> Thanks for review Karen. I also found this  device uRADMonitor » 
>>>>>>>>> Products <https://www.uradmonitor.com/products/> for similar 
>>>>>>>>> price. Now the worst part, choose one :)
>>>>>>>>>
>>>>>>>>> st 14. 7. 2021 v 17:10 odesílatel Karen K <kk44...@gmail.com> 
>>>>>>>>> napsal:
>>>>>>>>>
>>>>>>>>>> [image: dayPM.png]
>>>>>>>>>> https://github.com/roe-dl/weewx-airQ
>>>>>>>>>>
>>>>>>>>>> The device is specified down to -20°C. So, outside usage is 
>>>>>>>>>> possible, if it is protected against rain.
>>>>>>>>>> Karen K schrieb am Sonntag, 11. Juli 2021 um 18:11:39 UTC+2:
>>>>>>>>>>
>>>>>>>>>>> Some time has passed, and finally I can present the first 
>>>>>>>>>>> version of a driver (or better: service) to retrieve the data out 
>>>>>>>>>>> of the 
>>>>>>>>>>> Air-Q device of the Corant GmbH. You will find it there:
>>>>>>>>>>>
>>>>>>>>>>> Service to retrieve data from Air-Q device 
>>>>>>>>>>> <https://github.com/roe-dl/weewx-airQ> (at Github)
>>>>>>>>>>> Web site of the Air-Q device <https://www.air-q.com> (including 
>>>>>>>>>>> possibility to purchase one)
>>>>>>>>>>>
>>>>>>>>>>> The configuration is simple. The IP address of the device and 
>>>>>>>>>>> the password are the only needed parameters. Observations are 
>>>>>>>>>>> stored to the 
>>>>>>>>>>> appropriate WeeWX observation types automatically.
>>>>>>>>>>>
>>>>>>>>>>> If more than one Air-Q device is used, a name prefix can be 
>>>>>>>>>>> prepended to the observation types to distinguish between the 
>>>>>>>>>>> devices. That 
>>>>>>>>>>> way it is possible to store the observations of more than one 
>>>>>>>>>>> device in the 
>>>>>>>>>>> same database.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> -- 
>>>>>>>>>> You received this message because you are subscribed to a topic 
>>>>>>>>>> in the Google Groups "weewx-user" group.
>>>>>>>>>> To unsubscribe from this topic, visit 
>>>>>>>>>> https://groups.google.com/d/topic/weewx-user/ljyMS0EQR4k/unsubscribe
>>>>>>>>>> .
>>>>>>>>>> To unsubscribe from this group and all its topics, send an email 
>>>>>>>>>> to weewx-user+...@googlegroups.com.
>>>>>>>>>> To view this discussion on the web visit 
>>>>>>>>>> https://groups.google.com/d/msgid/weewx-user/8049deb7-a33b-4428-bc8c-f22a7a769958n%40googlegroups.com
>>>>>>>>>>  
>>>>>>>>>> <https://groups.google.com/d/msgid/weewx-user/8049deb7-a33b-4428-bc8c-f22a7a769958n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>>>> .
>>>>>>>>>>
>>>>>>>>>

-- 
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/b3f2cbd2-7736-4b50-9bd0-ee6d328187d8n%40googlegroups.com.

Reply via email to