TypeError with last gauge-data.txt.tmpl

130 views
Skip to first unread message

gjr80

unread,
Jun 1, 2020, 7:39:07 PM6/1/20
to weewx-user
Posted on behalf of @CdfCastronno.

Gary

Ciao,
From the first installation of Gauges Steel i've this error:

Jun 2 00:58:22 raspberrypi weewx[28959] DEBUG weewx.reportengine: Running report 'SteelSeries'
Jun 2 00:58:22 raspberrypi weewx[28959] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/ss/skin.conf for report 'SteelSeries'
Jun 2 00:58:22 raspberrypi weewx[28959] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx/ss
Jun 2 00:58:22 raspberrypi weewx[28959] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Jun 2 00:58:22 raspberrypi weewx[28959] DEBUG weewx.manager: Daily summary version is 2.0
Jun 2 00:58:22 raspberrypi weewx[28959] ERROR weewx.cheetahgenerator: Generate failed with exception '<class 'TypeError'>'
Jun 2 00:58:22 raspberrypi weewx[28959] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/ss/gauge-data.txt.tmpl
Jun 2 00:58:22 raspberrypi weewx[28959] ERROR weewx.cheetahgenerator: **** Reason: unsupported operand type(s) for *: 'NoneType' and 'int'
Jun 2 00:58:22 raspberrypi weewx[28959] ERROR weewx.cheetahgenerator: **** Traceback (most recent call last):
Jun 2 00:58:22 raspberrypi weewx[28959] ERROR weewx.cheetahgenerator: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate
Jun 2 00:58:22 raspberrypi weewx[28959] ERROR weewx.cheetahgenerator: **** unicode_string = compiled_template.respond()
Jun 2 00:58:22 raspberrypi weewx[28959] ERROR weewx.cheetahgenerator: **** File "_etc_weewx_skins_ss_gauge_data_txt_tmpl.py", line 348, in respond
Jun 2 00:58:22 raspberrypi weewx[28959] ERROR weewx.cheetahgenerator: **** TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
Jun 2 00:58:22 raspberrypi weewx[28959] INFO weewx.cheetahgenerator: Generated 1 files for report SteelSeries in 0.08 seconds

Could you help me to understand how i've forgot or wrong?
i use WH1080 with SDR antenna

http://cdfcastronno.altervista.org/WEEWX/
Thanks
Gianni

gjr80

unread,
Jun 1, 2020, 7:45:31 PM6/1/20
to weewx-user
Gianni,

Can you please post a copy of gauge-data.txt.tmpl from your WeeWX machine (it will be in /etc/weewx/skins/ss). There have been some recent changes to this file that should have addressed this issue (if the issue is what i suspect it is).

Gary

Campo Fiori

unread,
Jun 2, 2020, 6:53:51 AM6/2/20
to weewx-user
Ciao,
and thanks to all for the collaboration, these are my first steps in GitHub and google groups.

in attachment the file gauge-data.txt.tmpl that should be the last pubblicated 

Thanks
Gianni
gauge-data.txt.tmpl

gjr80

unread,
Jun 2, 2020, 7:41:24 AM6/2/20
to weewx-user
Thank you , you have the latest .tmpl. Could you please run WeeWX directly, that will cause loop packets (lines starting with LOOP:) and archive records (lines starting with REC:) to be displayed on the terminal. You will see numerous LOOP: lines with a REC: line every archive period. Let WeeWX run for a few minutes, until you see at least one REC: line, then take a copy of the output and post here. Make sure you have at least 3 or 4 LOOP lines and at least one REC: line.

Gary

Graham Eddy

unread,
Jun 2, 2020, 7:55:01 AM6/2/20
to weewx...@googlegroups.com
“unsupported operand type(s) for *: 'NoneType' and 'int’” seems to match only several rain*rain_mult lines in that template


--
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/ffecee6e-0229-40cc-bfd6-143a4f5cf03f%40googlegroups.com.

John Kline

unread,
Jun 2, 2020, 12:31:01 PM6/2/20
to weewx...@googlegroups.com
Are you running under python3?

If so, attached is my gauge-data.txt.impl file with the changes I had to make to run on python3.  Would you give it a try?


gauge-data.txt.tmpl

Campo Fiori

unread,
Jun 2, 2020, 4:54:15 PM6/2/20
to weewx-user
Ciao,
i've tried 

python3 --version
Python 3.7.3
i've sostituite the file gauge-data.txt.tml with yours

seem the same error:

DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/ss/skin.conf for report 'SteelSeries'
Jun  2 22:48:52 raspberrypi weewx[1922] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx/ss
Jun  2 22:48:52 raspberrypi weewx[1922] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Jun  2 22:48:52 raspberrypi weewx[1922] DEBUG weewx.manager: Daily summary version is 2.0
Jun  2 22:48:52 raspberrypi weewx[1922] ERROR weewx.cheetahgenerator: Generate failed with exception '<class 'TypeError'>'
Jun  2 22:48:52 raspberrypi weewx[1922] ERROR weewx.cheetahgenerator: **** Ignoring template /etc/weewx/skins/ss/gauge-data.txt.tmpl
Jun  2 22:48:52 raspberrypi weewx[1922] ERROR weewx.cheetahgenerator: **** Reason: unsupported operand type(s) for *: 'NoneType' and 'int'
Jun  2 22:48:52 raspberrypi weewx[1922] ERROR weewx.cheetahgenerator: ****  Traceback (most recent call last):
Jun  2 22:48:52 raspberrypi weewx[1922] ERROR weewx.cheetahgenerator: ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate
Jun  2 22:48:52 raspberrypi weewx[1922] ERROR weewx.cheetahgenerator: ****      unicode_string = compiled_template.respond()
Jun  2 22:48:52 raspberrypi weewx[1922] ERROR weewx.cheetahgenerator: ****    File "_etc_weewx_skins_ss_gauge_data_txt_tmpl.py", line 335, in respond
Jun  2 22:48:52 raspberrypi weewx[1922] ERROR weewx.cheetahgenerator: ****  TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
Jun  2 22:48:52 raspberrypi weewx[1922] INFO weewx.cheetahgenerator: Generated 1 files for report SteelSeries in 0.06 seconds

Ciao

Campo Fiori

unread,
Jun 2, 2020, 5:16:29 PM6/2/20
to weewx-user
Ciao Gary,
is this the log you asked me?

LOOP:   2020-06-02 23:08:21 CEST (1591132101) altimeter: 29.968624626529174, barometer: 29.96051417693838, cloudbase: 2485.4995773068968, dateTime: 1591132101, dewpoint: 53.68607260437847, heatindex: 59.18, humidex: 63.29232304229164, inDewpoint: 60.61539943116409, inHumidity: 61.59474027333919, inTemp: 74.70239366531372, maxSolarRad: 0.0, outBatteryStatus: 0, outHumidity: 82.0, outTemp: 59.18, pressure: 28.650930271685535, rainRate: 0.0, usUnits: 1
LOOP:   2020-06-02 23:08:21 CEST (1591132101) altimeter: 29.96789829101696, barometer: 29.95978182989673, cloudbase: 2485.4995773068968, dateTime: 1591132101, dewpoint: 53.68607260437847, heatindex: 59.18, humidex: 63.29232304229164, inDewpoint: 60.58659174307027, inHumidity: 61.587423052030736, inTemp: 74.67534028795664, maxSolarRad: 0.0, outBatteryStatus: 0, outHumidity: 82.0, outTemp: 59.18, pressure: 28.650229935773375, rainRate: 0.0, usUnits: 1
LOOP:   2020-06-02 23:09:09 CEST (1591132149) altimeter: 29.969108854763597, barometer: 29.961002412965048, cloudbase: 2485.4995773068968, dateTime: 1591132149, dewpoint: 53.68607260437847, heatindex: 59.18, humidex: 63.29232304229164, inDewpoint: 60.70274599439047, inHumidity: 61.74861311430727, inTemp: 74.72042925283779, maxSolarRad: 0.0, outBatteryStatus: 0, outHumidity: 82.0, outTemp: 59.18, pressure: 28.65139716675528, rainRate: 0.0, usUnits: 1
LOOP:   2020-06-02 23:09:57 CEST (1591132197) altimeter: 29.966150635737453, barometer: 29.958019710618824, cloudbase: 2485.4995773068968, dateTime: 1591132197, dewpoint: 53.68607260437847, heatindex: 59.18, humidex: 63.29232304229164, inDewpoint: 60.74753577828198, inHumidity: 61.88395280247094, inTemp: 74.70239366531372, maxSolarRad: 0.0, outBatteryStatus: 0, outHumidity: 82.0, outTemp: 59.18, pressure: 28.64854483930729, rainRate: 0.0, usUnits: 1
REC:    2020-06-02 23:09:00 CEST (1591132140) altimeter: 30.001072214497384, barometer: 29.960148003417554, cloudbase: 2485.4995773068968, dateTime: 1591132140, dewpoint: 53.68607260437847, ET: None, heatindex: 59.18, humidex: 63.29232304229164, inDewpoint: 60.60099558711718, inHumidity: 61.591081662684964, inTemp: 74.68886697663518, interval: 1.0, maxSolarRad: 0.0, outBatteryStatus: 0.0, outHumidity: 82.0, outTemp: 59.18, pressure: 28.68221649919712, rainRate: 0.0, usUnits: 1
LOOP:   2020-06-02 23:10:45 CEST (1591132245) altimeter: 29.967512359878928, barometer: 29.959857402785243, cloudbase: 2484.5178991248513, dateTime: 1591132245, dewpoint: 53.51039198837947, heatindex: 59.0, humidex: 63.02085210222074, inDewpoint: 60.67230061379695, inHumidity: 61.86792178869024, inTemp: 74.63025133617222, maxSolarRad: 0.0, outBatteryStatus: 0, outHumidity: 82.0, outTemp: 59.0, pressure: 28.649857819311574, rainRate: 0.0, usUnits: 1
REC:    2020-06-02 23:10:00 CEST (1591132200) altimeter: 30.000439808451507, barometer: 29.959511061791936, cloudbase: 2485.4995773068968, dateTime: 1591132200, dewpoint: 53.68607260437847, ET: None, heatindex: 59.18, humidex: 63.29232304229164, inDewpoint: 60.72514088633622, inHumidity: 61.8162829583891, inTemp: 74.71141145907575, interval: 1.0, maxSolarRad: 0.0, outBatteryStatus: 0.0, outHumidity: 82.0, outTemp: 59.18, pressure: 28.681606725920926, rainRate: 0.0, usUnits: 1
LOOP:   2020-06-02 23:11:33 CEST (1591132293) altimeter: 29.96634734065498, barometer: 29.958682723398923, cloudbase: 2484.5178991248513, dateTime: 1591132293, dewpoint: 53.51039198837947, heatindex: 59.0, humidex: 63.02085210222074, inDewpoint: 60.68032001085946, inHumidity: 61.84826897191625, inTemp: 74.64828691531439, maxSolarRad: 0.0, outBatteryStatus: 0, outHumidity: 82.0, outTemp: 59.0, pressure: 28.648734502970346, rainRate: 0.0, usUnits: 1
REC:    2020-06-02 23:11:00 CEST (1591132260) altimeter: 30.000737775345435, barometer: 29.959857402785243, cloudbase: 2484.5178991248513, dateTime: 1591132260, dewpoint: 53.51039198837947, ET: None, heatindex: 59.0, humidex: 63.02085210222074, inDewpoint: 60.67230061379695, inHumidity: 61.86792178869024, inTemp: 74.63025133617222, interval: 1.0, maxSolarRad: 0.0, outBatteryStatus: 0.0, outHumidity: 82.0, outTemp: 59.0, pressure: 28.681894029059933, rainRate: 0.0, usUnits: 1
LOOP:   2020-06-02 23:13:09 CEST (1591132389) altimeter: 29.962663083001818, barometer: 29.954967918520406, cloudbase: 2409.1764725424628, dateTime: 1591132389, dewpoint: 53.84189426534198, heatindex: 59.0, humidex: 63.193900538643575, inDewpoint: 60.549867639793284, inHumidity: 61.65554475920797, inTemp: 74.603197971388, maxSolarRad: 0.0, outBatteryStatus: 0, outHumidity: 83.0, outTemp: 59.0, pressure: 28.645182128532607, rainRate: 0.0, usUnits: 1
REC:    2020-06-02 23:12:00 CEST (1591132320) altimeter: 29.999571462338828, barometer: 29.958682723398923, cloudbase: 2484.5178991248513, dateTime: 1591132320, dewpoint: 53.51039198837947, ET: None, heatindex: 59.0, humidex: 63.02085210222074, inDewpoint: 60.68032001085946, inHumidity: 61.84826897191625, inTemp: 74.64828691531439, interval: 1.0, maxSolarRad: 0.0, outBatteryStatus: 0.0, outHumidity: 82.0, outTemp: 59.0, pressure: 28.680769456628777, rainRate: 0.0, usUnits: 1
LOOP:   2020-06-02 23:13:57 CEST (1591132437) altimeter: 29.95902423537633, barometer: 29.951298903278715, cloudbase: 2409.1764725424628, dateTime: 1591132437, dewpoint: 53.84189426534198, heatindex: 59.0, humidex: 63.193900538643575, inDewpoint: 60.57227832788864, inHumidity: 61.66743477011606, inTemp: 74.62123354738695, maxSolarRad: 0.0, outBatteryStatus: 0, outHumidity: 83.0, outTemp: 59.0, pressure: 28.641673541572455, rainRate: 0.0, usUnits: 1
LOOP:   2020-06-02 23:14:45 CEST (1591132485) altimeter: 29.957276512858712, barometer: 29.94953669248356, cloudbase: 2409.1764725424628, dateTime: 1591132485, dewpoint: 53.84189426534198, heatindex: 59.0, humidex: 63.193900538643575, inDewpoint: 60.627519984025625, inHumidity: 61.732593516132496, inTemp: 74.64828691531439, maxSolarRad: 0.0, outBatteryStatus: 0, outHumidity: 83.0, outTemp: 59.0, pressure: 28.639988383727744, rainRate: 0.0, usUnits: 1
REC:    2020-06-02 23:14:00 CEST (1591132440) altimeter: 29.99414847564324, barometer: 29.95313341089956, cloudbase: 2409.1764725424628, dateTime: 1591132440, dewpoint: 53.84189426534198, ET: None, heatindex: 59.0, humidex: 63.193900538643575, inDewpoint: 60.56107298384096, inHumidity: 61.661489764662015, inTemp: 74.61221575938748, interval: 1.0, maxSolarRad: 0.0, outBatteryStatus: 0.0, outHumidity: 83.0, outTemp: 59.0, pressure: 28.675540554382618, rainRate: 0.0, usUnits: 1

gjr80

unread,
Jun 2, 2020, 5:25:20 PM6/2/20
to weewx-user
Thanks, I can see the issue. I will get a patched gauge-data.txt.tmpl out later this morning.

Gary

gjr80

unread,
Jun 2, 2020, 10:07:19 PM6/2/20
to weewx-user
Gianni,

Please try the attached gauge-data.txt.tmpl. Download the attached file to your WeeWX machine and copy it in place of the existing gauge-data.txt.tmpl in the /etc/skins/ss directory. No need to restart WeeWX.

I have submitted a PR with the changes so we should see the SteelSeries GitHub repo updated in due course.

Gary
gauge-data.txt.tmpl

Campo Fiori

unread,
Jun 7, 2020, 8:32:55 AM6/7/20
to weewx...@googlegroups.com
Ciao Gary
thanks a lot for your assistance, now all works great! :)

--
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.
Reply all
Reply to author
Forward
0 new messages