Seems like it's this line in the windy.py:

if 'barometer' in record_m:
data['pressure'] = 100.0 * record_m['barometer'] # Pascalsthat is causing 
the issue, but there is no mqtt topic in my setup called "barometer", I'm 
only posting "pressure", so why would it even be trying to execute this 
function?

Any takers on this one?

On Wednesday, 8 January 2020 13:15:45 UTC-5, raenrfm wrote:
>
> Posting to windy works for a while but then I inevitably get this error:
>
> Jan  8 12:21:18 6a4c8de67d74 weewx[7295]: restx: Windy: Unexpected 
> exception of type <type 'exceptions.TypeError'>
> Jan  8 12:21:18 6a4c8de67d74 weewx[7295]: *** Traceback (most recent call 
> last):
> Jan  8 12:21:18 6a4c8de67d74 weewx[7295]: ***   File 
> "/usr/share/weewx/weewx/restx.py", line 343, in run_loop
> Jan  8 12:21:18 6a4c8de67d74 weewx[7295]: ***    
>  self.process_record(_record, dbmanager)
> Jan  8 12:21:18 6a4c8de67d74 weewx[7295]: ***   File 
> "/usr/share/weewx/weewx/restx.py", line 392, in process_record
> Jan  8 12:21:18 6a4c8de67d74 weewx[7295]: ***     _payload = 
> self.get_post_body(_full_record)
> Jan  8 12:21:18 6a4c8de67d74 weewx[7295]: ***   File 
> "/usr/share/weewx/user/windy.py", line 164, in get_post_body
> Jan  8 12:21:18 6a4c8de67d74 weewx[7295]: ***     data['pressure'] = 100.0 
> * record_m['barometer']  # Pascals
> Jan  8 12:21:18 6a4c8de67d74 weewx[7295]: *** TypeError: unsupported 
> operand type(s) for *: 'float' and 'NoneType'
> Jan  8 12:21:18 6a4c8de67d74 weewx[7295]: restx: Windy: Thread exiting. 
> Reason: unsupported operand type(s) for *: 'float' and 'NoneType'
>
> Is it because I'm getting a null entry for pressure in a given archive 
> cycle?
>

-- 
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/acf0a660-8050-417e-ab04-cd2d9dab5c73%40googlegroups.com.

Reply via email to