airQ by airQ_corant

61 views
Skip to first unread message

hesf...@gmail.com

unread,
Jul 19, 2021, 4:26:10 AM7/19/21
to weewx-user

Hallo,

we can convert the micro into the milli
by "co" values
if milli in airQ_corant no data in database
if micro ----> data in database
the conversion and display of the values is not complete


i have in index...
  <table class='hes1'>
   <tr><td class="hes1_kopfa" colspan="2">air-Q</td></tr>
   <tr><td colspan='2'><a href="https://www.air-q.com/">Luftanalyse und Feinstaub</a></td></tr>
   <tr><td>Gesundheitsindex </td><td>$current.airqHealthIdx</td></tr>
   <tr><td>Leistungsindex   </td><td>$current.airqPerfIdx</td></tr>
   <tr><td colspan='2'><b>Gase</b></td></tr>
   <tr><td>Sauerstoff       </td><td>$current.o2 </td></tr>
   <tr><td>Kohlendioxid     </td><td>$current.co2</td></tr>
   <tr><td>Stickstoffdioxid </td><td>$current.no2</td></tr>
   <tr><td>Ozone            </td><td>$current.o3</td></tr>
   <tr><td>Schwefeldioxid   </td><td>$current.so2</td></tr>
   <tr><td>Kohlenmonoxid    </td><td>$current.co</td></tr>
   <tr><td>VOC              </td><td>$current.TVOC</td></tr>
   <tr><td colspan='2'><b>Feinstaub</b></td></tr>
   <tr><td>PM 1  </td><td>$current.pm1_0</td></tr>
   <tr><td>PM 2,5</td><td>$current.pm2_5</td></tr>
   <tr><td>PM 10 </td><td>$current.pm10_0</td></tr>
   <tr><td>CNT 03  </td><td>$current.cnt0_3</td></tr>
   <tr><td>CNT 05</td><td>  $current.cnt0_5</td></tr>
   <tr><td>CNT 10</td><td>  $current.cnt1_0</td></tr>
   <tr><td>CNT 25 </td><td> $current.cnt2_5</td></tr>
   <tr><td>CNT 50  </td><td>$current.cnt5_0</td></tr>
   <tr><td>CNT 100</td><td> $current.cnt10_0</td></tr>
   <tr><td colspan='2'><b>Raum</b></td></tr>
   <tr><td>Temp  </td><td>$current.airqTemp</td></tr>
   <tr><td>Humid  </td><td>$current.airqHumidity</td></tr>
   <tr><td>Humid Delta</td><td>$current.airqHumAbs</td></tr>
   <tr><td>Taupunkt</td><td>$current.airqDewpoint</td></tr>
   <tr><td>Pressure</td><td>$current.airqPressure</td></tr>
   <tr><td>Altiumeter</td><td>$current.airqAltimeter</td></tr>
   <tr><td>Barometer</td><td>$current.airqBarometer</td></tr>
  </table>

and the result


air-Q

Luftanalyse und Feinstaub

Gesundheitsindex 
85,500000

Leistungsindex     
92,144340

Gase

Sauerstoff                
21%

Kohlendioxid            
563 ppm

Stickstoffdioxid        
16,3 µg/m³

Ozone                        
3,2 µg/m³

Schwefeldioxid        
182,0 µg/m³

Kohlenmonoxid        
896,9 µg/m³

VOC                            
0 ppm

Feinstaub

PM 1              
2,2 µg/m³

PM 2,5
            2,7 µg/m³

PM 10            
3,2 µg/m³

CNT 03          
492

CNT 05
           151

CNT 10
           16

CNT 25          
0

CNT 50          
0

CNT 100
         0

Raum

Temp               
23,5°C

Humid             
48%

Humid Delta
    10196,7 µg/m³

Taupunkt
          11,5°C

Pressure
          1014,3 mbar

Altimeter
          1020,9 mbar

Barometer
        N/A

I am currently using the version 0.4

Hartmut

Karen K

unread,
Jul 19, 2021, 5:40:48 AM7/19/21
to weewx-user
I see I forgot to define the unit mg/m^3. Please see line 144ff. in airQ_corant.py. I added the missing lines and uploaded them to Github, but I could not check by now, whether the unit conversion ist correct.

Karen K

unread,
Jul 19, 2021, 5:49:03 AM7/19/21
to weewx-user
I would suggest:

<tr><td>Kohlenmonoxid</td><td>$current.co.milligram_per_meter_cubed</td></tr>
<tr><td>Luftfeuchte (absolut)</td><td>$current.airqHumAbs.gram_per_meter_cubed</td></tr>

hesf...@gmail.com

unread,
Jul 19, 2021, 6:27:57 AM7/19/21
to weewx-user
Hallo,
my airQ         air-Q-Software-Version: 1.20.2.r4_D_1.74
I changed it, and here the result

by weewx airQ 19.07.2021 12:20:00
Gesundheitsindex 99,300000
Leistungsindex    
92,988410

Gase

Sauerstoff            
21%

Kohlendioxid       
547 ppm

Stickstoffdioxid  
16,3 µg/m³

Ozone                   
9,6 µg/m³

Schwefeldioxid   
201,6 µg/m³

Kohlenmonoxid 
1,3 mg/m³

VOC                    
0 ppm

Feinstaub

PM 1                    
1,0 µg/m³

PM 2,5
                  1,1 µg/m³

PM 10                  
1,6 µg/m³

CNT 03             
231

CNT 05
             65

CNT 10
             6

CNT 25            
0

CNT 50            
0

CNT 100
          0

Raum

Temp                            
24,6°C

Luftfeuchte                  
45%

Luftfeuchte (absolut)
10,1 g/m³

Taupunkt
                       11,5°C

Pressure
                        1014,0 mbar

Altimeter
                       1020,5 mbar

Barometer
                    N/A

Krach
                            20 dB
------------------------------------------------------------------------------------------------------------------------------------
by airQ                             19.7.2021, 12:21:27
Gesundheitsindex                96.4 %                Stickstoffdioxid                   19.97 µg/m³
Leistungsindex                   92.31 %               Ozon                                       10.93 µg/m³
Sauerstoff                           20.64 %               Schwefeldioxid                     203.21 µg/m³
Kohlendioxid                      567 ppm             VOC                                         15 ppb
Relative Luftfeuchte         45.03 %               Kohlenmonoxid                     1.26 mg/m³
Absolute Luftfeuchte       10.21 g/m³         PM1 Feinstaub                      1 µg/m³
Temperatur                        24.66 °C              PM2.5 Feinstaub                  1 µg/m³
Luftdruck                       1013.9 hPa             PM10 Feinstaub                   1 µg/m³
Taupunkt                            11.6 °C
---------------------------------------------------------------------------------------------------------------------------------------
Thank you for your prompt reply
Hartmut

hesf...@gmail.com

unread,
Jul 19, 2021, 6:32:51 AM7/19/21
to weewx-user
Hallo,
und jetzt noch wenn es nicht zu vermessen,
die Daten in eine eigene Datenbank.
Hartmut

Karen K

unread,
Jul 19, 2021, 6:33:15 AM7/19/21
to weewx-user
And

<tr><td>VOC              </td><td>$current.TVOC.ppb</td></tr>

Karen K

unread,
Jul 19, 2021, 6:38:09 AM7/19/21
to weewx-user
hesf...@gmail.com schrieb am Montag, 19. Juli 2021 um 12:32:51 UTC+2:
Hallo,
und jetzt noch wenn es nicht zu vermessen,
die Daten in eine eigene Datenbank.
Hartmut

Das muß mir mal einer erklären, wie es geht. Ich befürchte, WeeWX kann nur in eine Datenbank schreiben, wenn ich das Kapitel [StdArchive] in weewx.conf richtig interpretiere. 

hesf...@gmail.com

unread,
Jul 19, 2021, 6:50:21 AM7/19/21
to weewx-user
Hallo, es ist nicht die aller neuste Version von meiner Erweiterung von WEEWX,


steht eine Version

Das Ergebnis ist unter http://wetter.hes61.de/

Es werden neben weewx_mysql noch 12 weitere Datentabellen von 3 RasPI und 2 BanaPI geliefert.
mit einem PC Celeron 16MB-Ram und einem 1TB Raid 1 verarbeitet.

Danke für das Verständnis und die sehr schnelle Antwort.
Hartmut

hesf...@gmail.com

unread,
Jul 19, 2021, 6:56:09 AM7/19/21
to weewx-user
and ich erstelle eine aktuelle Kopie der weewx_mysql mit        

user.weewxwd3.WeeArchive,

#===============================================================================

# Class WeeArchive

#===============================================================================


class WeeArchive(weewx.engine.StdService):

""" Service to store Weewx-WEE specific archive data. """


def __init__(self, engine, config_dict):

super(WeeArchive, self).__init__(engine, config_dict)


# Extract our binding from the Weewx-WEE section of the config file. If

# it's missing, fill with a default

if 'WeewxArchive' in config_dict:

self.data_binding = config_dict['WeewxArchive'].get('data_binding', 'wee_binding')

else:

self.data_binding = 'wee_binding'


log.info("Weewx-Archive will use data binding %s", self.data_binding)


# setup our database if needed

self.setup_database(config_dict)


# bind ourselves to NEW_ARCHIVE_RECORD event

self.bind(weewx.NEW_ARCHIVE_RECORD, self.new_archive_record)



def new_archive_record(self, event):

"""Called when a new archive record has arrived. """


# get our manager

dbmanager = self.engine.db_binder.get_manager(self.data_binding)

# now put the record in the archive

dbmanager.addRecord(event.record)


def setup_database(self, config_dict):

"""Setup the main database archive"""


# This will create the database if it doesn't exist, then return an

# opened instance of the database manager.

dbmanager = self.engine.db_binder.get_manager(self.data_binding, initialize=True) log.info("Weewx-Archive using binding '%s' to database '%s'", self.data_binding, dbmanager.database_name)

Hartmut


<tr><td>VOC              </td><td>$current.TVOC.ppb</td></tr> --> Ergebnis VOC  12,653846  ohne ppb 19.07.2021 12:55:00
Reply all
Reply to author
Forward
0 new messages