solar is broken #117

Closed
opened 2026-10-05 01:24:10 +02:00 by adam · 2 comments
Owner

Looks like user sends solar command and something is broken:

2025-11-15 16:24:12,307 | DEBUG | System: Packet HopDebugger: hop_away:0 hop_limit:4 hop_start:5 calculated_hop_count:1 fi
nal_hop_value:1 Hop Relay:94 via_mqtt:False transport_mechanism:TRANSPORT_LORA Hostname:None
2025-11-15 16:24:12,309 | INFO | Device:1 Channel: 0 Received DM: solar From: Lightning
2025-11-15 16:24:12,311 | DEBUG | System: Bot detected Commands:[{'cmd': 'solar', 'index': 0}] From: Lightning isDM:True p
laying:False
Unexpected error in deferred execution <class 'xml.parsers.expat.ExpatError'>
Traceback (most recent call last):
File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/meshtastic/util.py", line 311, in _run
o()
File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/meshtastic/mesh_interface.py", line 1641, in
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 452, in publish
self.__sendMessage(msgData, topicObj, msgDataSubset)
File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 482, in __sendMessage
listener(data, self, allData)
File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/listener.py", line 237, in call
cb(**kwargs)
File "/home/service5/meshing-around/mesh_bot.py", line 2083, in onReceive
send_message(auto_response(message_string, snr, rssi, hop, pkiStatus, message_from_id, channel_number, rxNode, isDM), channel_number, message_from_id, rxNode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/service5/meshing-around/mesh_bot.py", line 183, in auto_response
bot_response = command_handlercmds[0]['cmd']
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/service5/meshing-around/mesh_bot.py", line 112, in
"solar": lambda: drap_xray_conditions() + "\n" + solar_conditions() + "\n" + get_noaa_scales_summary(),
^^^^^^^^^^^^^^^^^^
File "/home/service5/meshing-around/modules/space.py", line 42, in solar_conditions
solar_xml = xml.dom.minidom.parseString(solar_cond.text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/xml/dom/minidom.py", line 2000, in parseString
return expatbuilder.parseString(string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/xml/dom/expatbuilder.py", line 925, in parseString
return builder.parseString(string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 3, column 1180

Looks like user sends solar command and something is broken: 2025-11-15 16:24:12,307 | DEBUG | System: Packet HopDebugger: hop_away:0 hop_limit:4 hop_start:5 calculated_hop_count:1 fi nal_hop_value:1 Hop Relay:94 via_mqtt:False transport_mechanism:TRANSPORT_LORA Hostname:None 2025-11-15 16:24:12,309 | INFO | Device:1 Channel: 0 Received DM: solar From: Lightning 2025-11-15 16:24:12,311 | DEBUG | System: Bot detected Commands:[{'cmd': 'solar', 'index': 0}] From: Lightning isDM:True p laying:False Unexpected error in deferred execution <class 'xml.parsers.expat.ExpatError'> Traceback (most recent call last): File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/meshtastic/util.py", line 311, in _run o() File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/meshtastic/mesh_interface.py", line 1641, in <lambda> lambda: pub.sendMessage(topic, packet=asDict, interface=self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/publisher.py", line 216, in sendMessage topicObj.publish(**msgData) File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 452, in publish self.__sendMessage(msgData, topicObj, msgDataSubset) File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 482, in __sendMessage listener(data, self, allData) File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/listener.py", line 237, in __call__ cb(**kwargs) File "/home/service5/meshing-around/mesh_bot.py", line 2083, in onReceive send_message(auto_response(message_string, snr, rssi, hop, pkiStatus, message_from_id, channel_number, rxNode, isDM), channel_number, message_from_id, rxNode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/service5/meshing-around/mesh_bot.py", line 183, in auto_response bot_response = command_handler[cmds[0]['cmd']]() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/service5/meshing-around/mesh_bot.py", line 112, in <lambda> "solar": lambda: drap_xray_conditions() + "\n" + solar_conditions() + "\n" + get_noaa_scales_summary(), ^^^^^^^^^^^^^^^^^^ File "/home/service5/meshing-around/modules/space.py", line 42, in solar_conditions solar_xml = xml.dom.minidom.parseString(solar_cond.text) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/xml/dom/minidom.py", line 2000, in parseString return expatbuilder.parseString(string) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/xml/dom/expatbuilder.py", line 925, in parseString return builder.parseString(string) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/xml/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 3, column 1180 <!-- github-sync-id:3628712101 -->
adam closed this issue 2026-10-05 01:24:10 +02:00
Author
Owner

But my own test works fine:

2025-11-15 16:31:21,121 | DEBUG | System: Packet HopDebugger: hop_away:0 hop_limit:5 hop_start:5 calculated_hop_count:0 final_hop_value:Gateway Relay:C4 via_mqtt:False transport_mechanism:TRANSPORT_MULTICAST_UDP Hostname:None
2025-11-15 16:31:21,122 | INFO | Device:1 Channel: 0 Received DM: solar From: ZedIsSttn1
2025-11-15 16:31:21,123 | DEBUG | System: Bot detected Commands:[{'cmd': 'solar', 'index': 0}] From: ZedIsSttn1 isDM:True playing:False
2025-11-15 16:31:23,442 | DEBUG | System: Splitting #chunks: 2, Total length: 155
2025-11-15 16:31:23,443 | INFO | Device:1 Chunker1/2 Sending DM: Normal X-ray Background A-Index: 5 K-Index: 1 Sunspots: 87 X-Ray Flux: C2.0 Solar Flux: 145 Signal Noise: S0-S1 24hrMax: none (G:0) To: ZedIsSttn1
2025-11-15 16:31:25,947 | INFO | Device:1 Chunker2/2 Sending DM: Predicted: minor (G:1) To: ZedIsSttn1

But my own test works fine: 2025-11-15 16:31:21,121 | DEBUG | System: Packet HopDebugger: hop_away:0 hop_limit:5 hop_start:5 calculated_hop_count:0 final_hop_value:Gateway Relay:C4 via_mqtt:False transport_mechanism:TRANSPORT_MULTICAST_UDP Hostname:None 2025-11-15 16:31:21,122 | INFO | Device:1 Channel: 0 Received DM: solar From: ZedIsSttn1 2025-11-15 16:31:21,123 | DEBUG | System: Bot detected Commands:[{'cmd': 'solar', 'index': 0}] From: ZedIsSttn1 isDM:True playing:False 2025-11-15 16:31:23,442 | DEBUG | System: Splitting #chunks: 2, Total length: 155 2025-11-15 16:31:23,443 | INFO | Device:1 Chunker1/2 Sending DM: Normal X-ray Background A-Index: 5 K-Index: 1 Sunspots: 87 X-Ray Flux: C2.0 Solar Flux: 145 Signal Noise: S0-S1 24hrMax: none (G:0) To: ZedIsSttn1 2025-11-15 16:31:25,947 | INFO | Device:1 Chunker2/2 Sending DM: Predicted: minor (G:1) To: ZedIsSttn1 <!-- github-comment-id:3536494391 -->
Author
Owner

got a patch in, that site has been hammered lately!

got a patch in, that site has been hammered lately! <!-- github-comment-id:3536539968 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/meshing-around#117