WeatherFlow PiConsole - Archive

morning Peter

it is in auto start, I’ll start it from terminal today, hopefully it’ll split something on screen …
We’re expecting some thunderstorm today (eventually as you know … it can happen or not)

If I get something you’ll know :slight_smile:

1 Like

OK understood. I think I need to look more closely at logging when the console is running in the auto-start mode.

On the off chance we see something useful, can you run this command and let me know what you see? It might be quite long, but look for entries that are dated yesterday

sudo journalctl -u wfpiconsole.service | cat

think the error is in there

sudo journalctl -u wfpiconsole.service | cat
-- Logs begin at Wed 2020-06-03 09:45:10 CEST, end at Thu 2020-06-04 11:21:00 CEST. --
juin 03 14:43:03 WF_console python3[421]: 2020-06-03 14:43:03+0200 [WeatherFlowClientProtocol (TLSMemoryBIOProtocol),client] Unhandled Error
juin 03 14:43:03 WF_console python3[421]:         Traceback (most recent call last):
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/python/log.py", line 103, in callWithLogger
juin 03 14:43:03 WF_console python3[421]:             return callWithContext({"system": lp}, func, *args, **kw)
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/python/log.py", line 86, in callWithContext
juin 03 14:43:03 WF_console python3[421]:             return context.call({ILogContext: newCtx}, func, *args, **kw)
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/python/context.py", line 122, in callWithContext
juin 03 14:43:03 WF_console python3[421]:             return self.currentContext().callWithContext(ctx, func, *args, **kw)
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/python/context.py", line 85, in callWithContext
juin 03 14:43:03 WF_console python3[421]:             return func(*args,**kw)
juin 03 14:43:03 WF_console python3[421]:         --- <exception caught here> ---
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/internet/_threadedselect.py", line 276, in _doReadOrWrite
juin 03 14:43:03 WF_console python3[421]:             why = getattr(selectable, method)()
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/internet/tcp.py", line 243, in doRead
juin 03 14:43:03 WF_console python3[421]:             return self._dataReceived(data)
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/internet/tcp.py", line 249, in _dataReceived
juin 03 14:43:03 WF_console python3[421]:             rval = self.protocol.dataReceived(data)
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/protocols/tls.py", line 330, in dataReceived
juin 03 14:43:03 WF_console python3[421]:             self._flushReceiveBIO()
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/protocols/tls.py", line 295, in _flushReceiveBIO
juin 03 14:43:03 WF_console python3[421]:             ProtocolWrapper.dataReceived(self, bytes)
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/protocols/policies.py", line 120, in dataReceived
juin 03 14:43:03 WF_console python3[421]:             self.wrappedProtocol.dataReceived(data)
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/twisted/websocket.py", line 135, in dataReceived
juin 03 14:43:03 WF_console python3[421]:             self._dataReceived(data)
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/websocket/protocol.py", line 1180, in _dataReceived
juin 03 14:43:03 WF_console python3[421]:             self.consumeData()
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/websocket/protocol.py", line 1192, in consumeData
juin 03 14:43:03 WF_console python3[421]:             while self.processData() and self.state != WebSocketProtocol.STATE_CLOSED:
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/websocket/protocol.py", line 1558, in processData
juin 03 14:43:03 WF_console python3[421]:             fr = self.onFrameEnd()
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/websocket/protocol.py", line 1680, in onFrameEnd
juin 03 14:43:03 WF_console python3[421]:             self._onMessageEnd()
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/twisted/websocket.py", line 163, in _onMessageEnd
juin 03 14:43:03 WF_console python3[421]:             self.onMessageEnd()
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/websocket/protocol.py", line 628, in onMessageEnd
juin 03 14:43:03 WF_console python3[421]:             self._onMessage(payload, self.message_is_binary)
juin 03 14:43:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/twisted/websocket.py", line 166, in _onMessage
juin 03 14:43:03 WF_console python3[421]:             self.onMessage(payload, isBinary)
juin 03 14:43:03 WF_console python3[421]:           File "main.py", line 93, in onMessage
juin 03 14:43:03 WF_console python3[421]:             self.factory._app.WebsocketDecodeMessage(Message)
juin 03 14:43:03 WF_console python3[421]:           File "main.py", line 423, in WebsocketDecodeMessage
juin 03 14:43:03 WF_console python3[421]:             Thread(target=websocket.rapidWind, args=(Msg,self), name="rapidWind").start()
juin 03 14:43:03 WF_console python3[421]:           File "/usr/lib/python3.5/threading.py", line 844, in start
juin 03 14:43:03 WF_console python3[421]:             _start_new_thread(self._bootstrap, ())
juin 03 14:43:03 WF_console python3[421]:         builtins.RuntimeError: can't start new thread
juin 03 14:43:03 WF_console python3[421]:         
juin 03 14:43:03 WF_console python3[421]: 2020-06-03 14:43:03+0200 [-] Websocket connection closed
juin 03 14:43:03 WF_console python3[421]: 2020-06-03 14:43:03+0200 [-] Websocket connection retrying
juin 03 14:43:03 WF_console python3[421]: 2020-06-03 14:43:03+0200 [WeatherFlowClientProtocol (TLSMemoryBIOProtocol),client] <twisted.internet.tcp.Connector object at 0x70611b10> will retry in 2 seconds
juin 03 14:43:03 WF_console python3[421]: 2020-06-03 14:43:03+0200 [-] Stopping factory <__main__.WeatherFlowClientFactory object at 0x706d8ad0>
juin 03 14:43:06 WF_console python3[421]: 2020-06-03 14:43:06+0200 [-] Starting factory <__main__.WeatherFlowClientFactory object at 0x706d8ad0>
juin 03 14:43:07 WF_console python3[421]: 2020-06-03 14:43:07+0200 [-] Websocket connection open
juin 03 14:43:07 WF_console python3[421]: 2020-06-03 14:43:07+0200 [WeatherFlowClientProtocol (TLSMemoryBIOProtocol),client] Unhandled Error
juin 03 14:43:07 WF_console python3[421]:         Traceback (most recent call last):
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/python/log.py", line 103, in callWithLogger
juin 03 14:43:07 WF_console python3[421]:             return callWithContext({"system": lp}, func, *args, **kw)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/python/log.py", line 86, in callWithContext
juin 03 14:43:07 WF_console python3[421]:             return context.call({ILogContext: newCtx}, func, *args, **kw)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/python/context.py", line 122, in callWithContext
juin 03 14:43:07 WF_console python3[421]:             return self.currentContext().callWithContext(ctx, func, *args, **kw)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/python/context.py", line 85, in callWithContext
juin 03 14:43:07 WF_console python3[421]:             return func(*args,**kw)
juin 03 14:43:07 WF_console python3[421]:         --- <exception caught here> ---
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/internet/_threadedselect.py", line 276, in _doReadOrWrite
juin 03 14:43:07 WF_console python3[421]:             why = getattr(selectable, method)()
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/internet/tcp.py", line 243, in doRead
juin 03 14:43:07 WF_console python3[421]:             return self._dataReceived(data)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/internet/tcp.py", line 249, in _dataReceived
juin 03 14:43:07 WF_console python3[421]:             rval = self.protocol.dataReceived(data)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/protocols/tls.py", line 330, in dataReceived
juin 03 14:43:07 WF_console python3[421]:             self._flushReceiveBIO()
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/protocols/tls.py", line 295, in _flushReceiveBIO
juin 03 14:43:07 WF_console python3[421]:             ProtocolWrapper.dataReceived(self, bytes)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/protocols/policies.py", line 120, in dataReceived
juin 03 14:43:07 WF_console python3[421]:             self.wrappedProtocol.dataReceived(data)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/twisted/websocket.py", line 135, in dataReceived
juin 03 14:43:07 WF_console python3[421]:             self._dataReceived(data)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/websocket/protocol.py", line 1180, in _dataReceived
juin 03 14:43:07 WF_console python3[421]:             self.consumeData()
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/websocket/protocol.py", line 1192, in consumeData
juin 03 14:43:07 WF_console python3[421]:             while self.processData() and self.state != WebSocketProtocol.STATE_CLOSED:
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/websocket/protocol.py", line 1558, in processData
juin 03 14:43:07 WF_console python3[421]:             fr = self.onFrameEnd()
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/websocket/protocol.py", line 1680, in onFrameEnd
juin 03 14:43:07 WF_console python3[421]:             self._onMessageEnd()
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/twisted/websocket.py", line 163, in _onMessageEnd
juin 03 14:43:07 WF_console python3[421]:             self.onMessageEnd()
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/websocket/protocol.py", line 628, in onMessageEnd
juin 03 14:43:07 WF_console python3[421]:             self._onMessage(payload, self.message_is_binary)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/twisted/websocket.py", line 166, in _onMessage
juin 03 14:43:07 WF_console python3[421]:             self.onMessage(payload, isBinary)
juin 03 14:43:07 WF_console python3[421]:           File "main.py", line 93, in onMessage
juin 03 14:43:07 WF_console python3[421]:             self.factory._app.WebsocketDecodeMessage(Message)
juin 03 14:43:07 WF_console python3[421]:           File "main.py", line 407, in WebsocketDecodeMessage
juin 03 14:43:07 WF_console python3[421]:             Thread(target=websocket.Tempest, args=(Msg,self), name="Tempest").start()
juin 03 14:43:07 WF_console python3[421]:           File "/usr/lib/python3.5/threading.py", line 844, in start
juin 03 14:43:07 WF_console python3[421]:             _start_new_thread(self._bootstrap, ())
juin 03 14:43:07 WF_console python3[421]:         builtins.RuntimeError: can't start new thread
juin 03 14:43:07 WF_console python3[421]:         
juin 03 14:43:07 WF_console python3[421]: 2020-06-03 14:43:07+0200 [WeatherFlowClientProtocol (TLSMemoryBIOProtocol),client] Unhandled Error
juin 03 14:43:07 WF_console python3[421]:         Traceback (most recent call last):
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/kivy/clock.py", line 581, in tick
juin 03 14:43:07 WF_console python3[421]:             self._process_events()
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/kivy/support.py", line 210, in reactor_work
juin 03 14:43:07 WF_console python3[421]:             q.popleft()()
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/internet/_threadedselect.py", line 227, in _interleave
juin 03 14:43:07 WF_console python3[421]:             getattr(self, '_process_' + msg)(*args)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/internet/_threadedselect.py", line 199, in _process_Notify
juin 03 14:43:07 WF_console python3[421]:             _logrun(selectable, _drdw, selectable, method, dct)
juin 03 14:43:07 WF_console python3[421]:         --- <exception caught here> ---
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/python/log.py", line 103, in callWithLogger
juin 03 14:43:07 WF_console python3[421]:             return callWithContext({"system": lp}, func, *args, **kw)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/python/log.py", line 86, in callWithContext
juin 03 14:43:07 WF_console python3[421]:             return context.call({ILogContext: newCtx}, func, *args, **kw)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/python/context.py", line 122, in callWithContext
juin 03 14:43:07 WF_console python3[421]:             return self.currentContext().callWithContext(ctx, func, *args, **kw)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/python/context.py", line 85, in callWithContext
juin 03 14:43:07 WF_console python3[421]:             return func(*args,**kw)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/internet/_threadedselect.py", line 286, in _doReadOrWrite
juin 03 14:43:07 WF_console python3[421]:             self._disconnectSelectable(selectable, why, method == "doRead")
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/internet/posixbase.py", line 258, in _disconnectSelectable
juin 03 14:43:07 WF_console python3[421]:             selectable.connectionLost(failure.Failure(why))
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/internet/tcp.py", line 519, in connectionLost
juin 03 14:43:07 WF_console python3[421]:             self._commonConnection.connectionLost(self, reason)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/internet/tcp.py", line 327, in connectionLost
juin 03 14:43:07 WF_console python3[421]:             protocol.connectionLost(reason)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/protocols/tls.py", line 398, in connectionLost
juin 03 14:43:07 WF_console python3[421]:             self._flushReceiveBIO()
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/protocols/tls.py", line 295, in _flushReceiveBIO
juin 03 14:43:07 WF_console python3[421]:             ProtocolWrapper.dataReceived(self, bytes)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/protocols/policies.py", line 120, in dataReceived
juin 03 14:43:07 WF_console python3[421]:             self.wrappedProtocol.dataReceived(data)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/twisted/websocket.py", line 135, in dataReceived
juin 03 14:43:07 WF_console python3[421]:             self._dataReceived(data)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/websocket/protocol.py", line 1180, in _dataReceived
juin 03 14:43:07 WF_console python3[421]:             self.consumeData()
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/websocket/protocol.py", line 1192, in consumeData
juin 03 14:43:07 WF_console python3[421]:             while self.processData() and self.state != WebSocketProtocol.STATE_CLOSED:
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/websocket/protocol.py", line 1550, in processData
juin 03 14:43:07 WF_console python3[421]:             fr = self.onFrameData(payload)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/websocket/protocol.py", line 1645, in onFrameData
juin 03 14:43:07 WF_console python3[421]:             self._onMessageFrameData(payload)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/twisted/websocket.py", line 154, in _onMessageFrameData
juin 03 14:43:07 WF_console python3[421]:             self.onMessageFrameData(payload)
juin 03 14:43:07 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/autobahn/websocket/protocol.py", line 602, in onMessageFrameData
juin 03 14:43:07 WF_console python3[421]:             self.frame_data.append(payload)
juin 03 14:43:07 WF_console python3[421]:         builtins.AttributeError: 'NoneType' object has no attribute 'append'
juin 03 14:43:07 WF_console python3[421]:         
juin 03 14:48:03 WF_console python3[421]: 2020-06-03 14:48:03+0200 [-] Websocket connection timeout
juin 03 14:48:03 WF_console python3[421]: 2020-06-03 14:48:03+0200 [-] Unhandled Error
juin 03 14:48:03 WF_console python3[421]:         Traceback (most recent call last):
juin 03 14:48:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/kivy/base.py", line 337, in idle
juin 03 14:48:03 WF_console python3[421]:             Clock.tick()
juin 03 14:48:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/kivy/clock.py", line 581, in tick
juin 03 14:48:03 WF_console python3[421]:             self._process_events()
juin 03 14:48:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/kivy/support.py", line 210, in reactor_work
juin 03 14:48:03 WF_console python3[421]:             q.popleft()()
juin 03 14:48:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/internet/_threadedselect.py", line 221, in _interleave
juin 03 14:48:03 WF_console python3[421]:             self.runUntilCurrent()
juin 03 14:48:03 WF_console python3[421]:         --- <exception caught here> ---
juin 03 14:48:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/internet/base.py", line 896, in runUntilCurrent
juin 03 14:48:03 WF_console python3[421]:             call.func(*call.args, **call.kw)
juin 03 14:48:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/protocols/policies.py", line 743, in __timedOut
juin 03 14:48:03 WF_console python3[421]:             self.timeoutConnection()
juin 03 14:48:03 WF_console python3[421]:           File "main.py", line 100, in timeoutConnection
juin 03 14:48:03 WF_console python3[421]:             self.transport.abortConnection()
juin 03 14:48:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/protocols/tls.py", line 435, in abortConnection
juin 03 14:48:03 WF_console python3[421]:             self._shutdownTLS()
juin 03 14:48:03 WF_console python3[421]:           File "/usr/local/lib/python3.5/dist-packages/twisted/protocols/tls.py", line 338, in _shutdownTLS
juin 03 14:48:03 WF_console python3[421]:             shutdownSuccess = self._tlsConnection.shutdown()
juin 03 14:48:03 WF_console python3[421]:         builtins.AttributeError: 'NoneType' object has no attribute 'shutdown'
juin 03 14:48:03 WF_console python3[421]:         
juin 03 14:48:07 WF_console python3[421]: 2020-06-03 14:48:07+0200 [-] Websocket connection timeout
juin 04 08:04:08 WF_console systemd[1]: Stopping WeatherFlow PiConsole...
juin 04 08:04:08 WF_console systemd[1]: Stopped WeatherFlow PiConsole.

That looks like a nasty error! Do you have a feeling for how many lightning strikes you were getting per minute when the console stopped working?

not really



OK, no worries! I only ask as the error is associated with the console starting too many threads. Each lightning strike starts a new thread. This isn’t actually necessary, so I’ll make some changes for the next version. Hopefully this won’t happen again!

usually threads don’t kill a system … image a web server … 100 or 300 simultaneous connections … it holds … why does python ‘break’ … rather robust python no ??

edit : found this

and since pi is a quad core I think, 4 seems to be the logical limit …

There is no limit, Python doesn’t specify about that.

However, running too many threads is generally a stupid idea. Here “ too many ” depends on how many your hardware is capable of running multiple threads simultaneously. Usually, it doesn’t make sense to have more threads than the number of CPU cores you have.

Any reason that you know of that after the (recent) update and running the setup routine, it won’t find the outside air module? I’ve rebooted everything and it says it’s not there. Worked fine before (?) Seems to work on the app on my phone. Is there syntax to enter the number besides just the 4 numbers (XXXX). Thanks!

in terminal I didn’t see this error just after booting the wfpiconsole

[-] Exception in thread Tempest:
2020-06-04 11:38:02+0200 [-] Traceback (most recent call last):
2020-06-04 11:38:02+0200 [-]   File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
2020-06-04 11:38:02+0200 [-]     self.run()
2020-06-04 11:38:02+0200 [-]   File "/usr/lib/python3.5/threading.py", line 862, in run
2020-06-04 11:38:02+0200 [-]     self._target(*self._args, **self._kwargs)
2020-06-04 11:38:02+0200 [-]   File "/home/pi/wfpiconsole/lib/websocket.py", line 133, in Tempest
2020-06-04 11:38:02+0200 [-]     PresTrend        = derive.SLPTrend(Pres,Time,Data3h,Config)
2020-06-04 11:38:02+0200 [-]   File "/home/pi/wfpiconsole/lib/derivedVariables.py", line 187, in SLPTrend
2020-06-04 11:38:02+0200 [-]     Pres3h = SLP(Pres3h,Config)
2020-06-04 11:38:02+0200 [-]   File "/home/pi/wfpiconsole/lib/derivedVariables.py", line 157, in SLP
2020-06-04 11:38:02+0200 [-]     SLP = Pres[0] * (1 + ((P0/Pres[0])**((Rd*GammaS)/g)) * ((GammaS*Elev)/T0))**(g/(Rd*GammaS))
2020-06-04 11:38:02+0200 [-] TypeError: unsupported operand type(s) for /: 'float' and 'NoneType'
2020-06-04 11:38:02+0200 [-] 

OK - I can see why that could happen. I will get a fix in place for that too.

Shouldn’t be… Can you share your station ID so I can investigate further?

Hi scott.ferguson,

We will gladly help you but you didn’t give your station ID. See here how to obtain it

It’s 11101 (far as I can tell)

I’ve just tested your station on my test setup and the indoor sensor seems to work fine. I also spoofed the update process and that didn’t cause any issues. Can you check the contents of your wfpiconsole.ini file and make sure the you see InAirID = 39047 under the [Station] section. You can see the contents of your .ini file using the command:

cat wfpiconsole.ini.

The indoor sensor seemed to take the sensor # fine during the setup wizard after updating the software, but it doesn’t want to take the outside sensor #.

Station and module IDs

Do you own a TEMPEST module?* [y/n] n
Please enter your outdoor AIR module ID*: 4529
Do you own an Indoor AIR module?* [y/n] y
Please enter your indoor AIR module ID*: 2290
Adding height of TEMPEST module:
Outdoor AIR module not found. Please re-enter your Outdoor AIR ID*:

I put the # shown in the ini file in there for it (38430) and it’s now totally broken ;/

You have to use device ID and not serials. They are on this page for you

1 Like

Much better :slight_smile: Thanks!

Great! Glad it is sorted :smiley:

there you go, several nearby strikes and the console goes wild

RROR ] [Image ] Error reading file icons/windRose/-2681.png
[ERROR ] [Image ] Error reading file icons/windRose/-595.png
[ERROR ] [Image ] Error reading file icons/windRose/-2681.png
[ERROR ] [Image ] Error reading file icons/windRose/-422.png
[ERROR ] [Image ] Error reading file icons/windRose/-2681.png
[ERROR ] [Image ] Error reading file icons/windRose/-188.png
[ERROR ] [Image ] Error reading file icons/windRose/-2682.png
[ERROR ] [Image ] Error reading file icons/windRose/-2682.png
[ERROR ] [Image ] Error reading file icons/windRose/-2683.png
[ERROR ] [Image ] Error reading file icons/windRose/-2684

got hundreds of these lines and indeed the wind rose goes weird lol

Yikes! That’s definitely a bug! I’m pretty sure it is to do with the way threading is implemented. It may take until the weekend to fix, but I’ll work something out. In the meantime you can either just stop/start the console if it happens, or hide the lightning panel and set it not to open automatically in the settings.