Ok, this is pretty possible. I have added PM sensor (from open sensors.community project), which id processing the data through FilePile to WeeWX. How to tell FilePile to get only the data with numbers, that can be changed to float?
Thanks, Michal Dátum: štvrtok 10. decembra 2020, čas: 20:50:10 UTC+1, odosielateľ: [email protected] > The key is the lines: > > Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** return > float(x) if x is not None else None > Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** ValueError: > could not convert string to float: > > Somewhere in the file that the extension filepile is consuming is a number > that cannot be turned into a float. Can't say exactly what it is, but it > will be something on the right hand side of the equations. Something like > > outTemp = N/A > > or > > outTemp = foo > > -tk > > > > On Thu, Dec 10, 2020 at 11:45 AM miso k <[email protected]> wrote: > >> Hello, >> can anybody help me? >> >> I have turned on debug=1 and this comes out: >> >> Dec 10 19:28:00 WeeWX weewx[4695] DEBUG weewx.engine: StdReport thread >> has been terminated >> Dec 10 19:28:00 WeeWX weewx[4695] DEBUG weewx.restx: Shut down OWM thread. >> Dec 10 19:28:00 WeeWX weewx[4695] INFO weewx.restx: MQTT: Published >> record 2020-12-10 19:51:16 CET (1607626276) >> Dec 10 19:28:00 WeeWX weewx[4695] DEBUG weewx.restx: Shut down MQTT >> thread. >> Dec 10 19:28:00 WeeWX weewx[4695] DEBUG weewx.restx: Shut down Windy >> thread. >> Dec 10 19:28:00 WeeWX weewx[4695] DEBUG weewx.restx: Shut down AWEKAS >> thread. >> Dec 10 19:28:00 WeeWX weewx[4695] DEBUG weewx.restx: Shut down CWOP >> thread. >> Dec 10 19:28:00 WeeWX weewx[4695] DEBUG weewx.restx: Shut down PWSWeather >> thread. >> Dec 10 19:28:00 WeeWX weewx[4695] DEBUG weewx.restx: Shut down >> StationRegistry thread. >> Dec 10 19:28:00 WeeWX weewx[4695] INFO user.interceptor: shutting down >> server thread >> Dec 10 19:28:00 WeeWX weewx[4695] DEBUG user.interceptor: stop tcp server >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: Caught unrecoverable >> exception: >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** could not >> convert string to float: >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** Traceback >> (most recent call last): >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** File >> "/usr/share/weewx/weewx/engine.py", line 210, in run >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> self.dispatchEvent(weewx.Event(weewx.CHECK_LOOP, packet=packet)) >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** File >> "/usr/share/weewx/weewx/engine.py", line 241, in dispatchEvent >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> callback(event) >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** File >> "/usr/share/weewx/weewx/engine.py", line 630, in check_loop >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** raise >> BreakLoop >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> weewx.engine.BreakLoop >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** During >> handling of the above exception, another exception occurred: >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** Traceback >> (most recent call last): >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** File >> "/usr/share/weewx/weewx/engine.py", line 646, in post_loop >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> self._catchup(self.engine.console.genArchiveRecords) >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** File >> "/usr/share/weewx/weewx/engine.py", line 690, in _catchup >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** for >> record in generator(lastgood_ts): >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** File >> "/usr/share/weewx/weewx/drivers/__init__.py", line 30, in genArchiveRecords >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** raise >> NotImplementedError("Method 'genArchiveRecords' not implemented") >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> NotImplementedError: Method 'genArchiveRecords' not implemented >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** During >> handling of the above exception, another exception occurred: >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** Traceback >> (most recent call last): >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** File >> "/usr/share/weewx/weewxd", line 154, in main >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> engine.run() >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** File >> "/usr/share/weewx/weewx/engine.py", line 217, in run >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> self.dispatchEvent(weewx.Event(weewx.POST_LOOP)) >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** File >> "/usr/share/weewx/weewx/engine.py", line 241, in dispatchEvent >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> callback(event) >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** File >> "/usr/share/weewx/weewx/engine.py", line 648, in post_loop >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> self._software_catchup() >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** File >> "/usr/share/weewx/weewx/engine.py", line 710, in _software_catchup >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> origin='software')) >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** File >> "/usr/share/weewx/weewx/engine.py", line 241, in dispatchEvent >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> callback(event) >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** File >> "/usr/share/weewx/user/filepile.py", line 91, in new_archive_record >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> new_record_data[self.label_map.get(name, name)] = to_float(value) >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** File >> "/usr/share/weewx/weeutil/weeutil.py", line 1250, in to_float >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** return >> float(x) if x is not None else None >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** >> ValueError: could not convert string to float: >> Dec 10 19:28:01 WeeWX weewx[4695] CRITICAL __main__: **** Exiting. >> Dec 10 19:30:01 WeeWX CRON[29445]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> Dec 10 19:33:01 WeeWX CRON[29452]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> Dec 10 19:36:01 WeeWX CRON[29470]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> Dec 10 19:39:01 WeeWX CRON[29490]: (root) CMD ( [ -x >> /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then >> /usr/lib/php/sessionclean; fi) >> Dec 10 19:39:01 WeeWX CRON[29489]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> Dec 10 19:39:07 WeeWX systemd[1]: Starting Clean php session files... >> Dec 10 19:39:08 WeeWX systemd[1]: phpsessionclean.service: Succeeded. >> Dec 10 19:39:08 WeeWX systemd[1]: Started Clean php session files. >> Dec 10 19:42:01 WeeWX CRON[29572]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> Dec 10 19:45:01 WeeWX CRON[29589]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> Dec 10 19:48:01 WeeWX CRON[29595]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> Dec 10 19:51:01 WeeWX CRON[29614]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> Dec 10 19:54:01 WeeWX CRON[29637]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> Dec 10 19:57:01 WeeWX CRON[29642]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> Dec 10 20:00:01 WeeWX CRON[29661]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> Dec 10 20:03:01 WeeWX CRON[29668]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> Dec 10 20:06:01 WeeWX CRON[29685]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> Dec 10 20:09:01 WeeWX CRON[29704]: (root) CMD ( [ -x >> /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then >> /usr/lib/php/sessionclean; fi) >> Dec 10 20:09:01 WeeWX CRON[29705]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> Dec 10 20:09:07 WeeWX systemd[1]: Starting Clean php session files... >> Dec 10 20:09:08 WeeWX systemd[1]: phpsessionclean.service: Succeeded. >> Dec 10 20:09:08 WeeWX systemd[1]: Started Clean php session files. >> Dec 10 20:12:01 WeeWX CRON[29784]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> Dec 10 20:15:01 WeeWX CRON[29801]: (root) CMD (/usr/bin/php >> /var/www/html/weewx/airqualitydata.php) >> >> >> the webpage is jastrabie.online/weewx - >> I am using Seasons skin with custom PM sensor and some extra temps, and >> Belchertown skin. >> I have installed weather34 skin, but this is disabled now to minimize >> errors. >> Running on RPi 3B+ >> >> Thanks, >> Michal, Slovakia >> >> -- >> 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/55b2da2a-56a2-4ccc-8ca8-f820cb65b155n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/55b2da2a-56a2-4ccc-8ca8-f820cb65b155n%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/1600c38e-63e1-453d-be8c-27741b99f906n%40googlegroups.com.
