should be solved with https://github.com/SpudGunMan/meshing-around/commit/8e34925af793534d18c92136c5a694404d5cdd98
<!-- github-comment-id:2295180087 -->
024-08-18 11:36:45,112 | DEBUG | System: location data for 123456789 is 0.0032768,0.0032768
ERROR:root:Unexpected error in deferred execution <class 'ValueError'>
Traceback (most recent call last):
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/meshtastic/util.py", line 288, in _run
o()
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/meshtastic/mesh_interface.py", line 1297, in <lambda>
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 452, in publish
self.__sendMessage(msgData, topicObj, msgDataSubset)
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 482, in __sendMessage
listener(data, self, allData)
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/listener.py", line 237, in __call__
cb(**kwargs)
File "/home/hailo/meshing-around/mesh_bot.py", line 299, in onReceive
send_message(auto_response(message_string, snr, rssi, hop, message_from_id, channel_number, rxNode), channel_number, message_from_id, rxNode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/mesh_bot.py", line 55, in auto_response
bot_response = command_handler[cmds[0]['cmd']]()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/mesh_bot.py", line 38, in <lambda>
"whereami": lambda: handle_whereami(message_from_id, deviceID, channel_number),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/mesh_bot.py", line 177, in handle_whereami
return where_am_i(str(location[0]), str(location[1]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/modules/locationdata.py", line 18, in where_am_i
if int(lat) == 0 and int(lon) == 0:
^^^^^^^^
ValueError: invalid literal for int() with base 10: '0.0032768'
and with Heltec without a GPS atached
2024-08-18 11:39:55,634 | INFO | Device:1 Channel: 0 Received DM: Whereami From: Test Node 🇩🇪 (868)
2024-08-18 11:39:55,634 | DEBUG | System: Bot detected Commands:[{'cmd': 'whereami', 'index': 0}]
2024-08-18 11:39:55,634 | WARNING | System: No location data for 1212121212 using default location
ERROR:root:Unexpected error in deferred execution <class 'ValueError'>
Traceback (most recent call last):
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/meshtastic/util.py", line 288, in _run
o()
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/meshtastic/mesh_interface.py", line 1297, in <lambda>
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 452, in publish
self.__sendMessage(msgData, topicObj, msgDataSubset)
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 482, in __sendMessage
listener(data, self, allData)
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/listener.py", line 237, in __call__
cb(**kwargs)
File "/home/hailo/meshing-around/mesh_bot.py", line 299, in onReceive
send_message(auto_response(message_string, snr, rssi, hop, message_from_id, channel_number, rxNode), channel_number, message_from_id, rxNode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/mesh_bot.py", line 55, in auto_response
bot_response = command_handler[cmds[0]['cmd']]()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/mesh_bot.py", line 38, in <lambda>
"whereami": lambda: handle_whereami(message_from_id, deviceID, channel_number),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/mesh_bot.py", line 177, in handle_whereami
return where_am_i(str(location[0]), str(location[1]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/modules/locationdata.py", line 18, in where_am_i
if int(lat) == 0 and int(lon) == 0:
^^^^^^^^
ValueError: invalid literal for int() with base 10: '47.9'
again with t-Beam
```
024-08-18 11:36:45,112 | DEBUG | System: location data for 123456789 is 0.0032768,0.0032768
ERROR:root:Unexpected error in deferred execution <class 'ValueError'>
Traceback (most recent call last):
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/meshtastic/util.py", line 288, in _run
o()
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/meshtastic/mesh_interface.py", line 1297, in <lambda>
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 452, in publish
self.__sendMessage(msgData, topicObj, msgDataSubset)
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 482, in __sendMessage
listener(data, self, allData)
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/listener.py", line 237, in __call__
cb(**kwargs)
File "/home/hailo/meshing-around/mesh_bot.py", line 299, in onReceive
send_message(auto_response(message_string, snr, rssi, hop, message_from_id, channel_number, rxNode), channel_number, message_from_id, rxNode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/mesh_bot.py", line 55, in auto_response
bot_response = command_handler[cmds[0]['cmd']]()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/mesh_bot.py", line 38, in <lambda>
"whereami": lambda: handle_whereami(message_from_id, deviceID, channel_number),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/mesh_bot.py", line 177, in handle_whereami
return where_am_i(str(location[0]), str(location[1]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/modules/locationdata.py", line 18, in where_am_i
if int(lat) == 0 and int(lon) == 0:
^^^^^^^^
ValueError: invalid literal for int() with base 10: '0.0032768'
```
and with Heltec without a GPS atached
```
2024-08-18 11:39:55,634 | INFO | Device:1 Channel: 0 Received DM: Whereami From: Test Node 🇩🇪 (868)
2024-08-18 11:39:55,634 | DEBUG | System: Bot detected Commands:[{'cmd': 'whereami', 'index': 0}]
2024-08-18 11:39:55,634 | WARNING | System: No location data for 1212121212 using default location
ERROR:root:Unexpected error in deferred execution <class 'ValueError'>
Traceback (most recent call last):
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/meshtastic/util.py", line 288, in _run
o()
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/meshtastic/mesh_interface.py", line 1297, in <lambda>
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 452, in publish
self.__sendMessage(msgData, topicObj, msgDataSubset)
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 482, in __sendMessage
listener(data, self, allData)
File "/home/hailo/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/listener.py", line 237, in __call__
cb(**kwargs)
File "/home/hailo/meshing-around/mesh_bot.py", line 299, in onReceive
send_message(auto_response(message_string, snr, rssi, hop, message_from_id, channel_number, rxNode), channel_number, message_from_id, rxNode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/mesh_bot.py", line 55, in auto_response
bot_response = command_handler[cmds[0]['cmd']]()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/mesh_bot.py", line 38, in <lambda>
"whereami": lambda: handle_whereami(message_from_id, deviceID, channel_number),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/mesh_bot.py", line 177, in handle_whereami
return where_am_i(str(location[0]), str(location[1]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/modules/locationdata.py", line 18, in where_am_i
if int(lat) == 0 and int(lon) == 0:
^^^^^^^^
ValueError: invalid literal for int() with base 10: '47.9'
```
<!-- github-comment-id:2295197546 -->
a value of int(float(lat)) should have returned zero in this specific case (its interesting the value is returned like it is)
are you on the main branch? I didnt pull this into heartbeat yet
a value of int(float(lat)) should have returned zero in this specific case (its interesting the value is returned like it is)
are you on the main branch? I didnt pull this into heartbeat yet
<!-- github-comment-id:2295323591 -->
raspberrypi:~/meshing-around $ git branch
* heartbeat
main
raspberrypi:~/meshing-around $
pulled the main before
```
raspberrypi:~/meshing-around $ git branch
* heartbeat
main
raspberrypi:~/meshing-around $
```
<!-- github-comment-id:2295324275 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
T-beam has no gps-Fix so i get an Error
Firmware: v2.3.15.deb7c27
Meshing-around Node: Pico Pi
should be solved with https://github.com/SpudGunMan/meshing-around/commit/8e34925af793534d18c92136c5a694404d5cdd98
again with t-Beam
and with Heltec without a GPS atached
ahh shoot sorry, a new patch in(float)
anyway
a value of int(float(lat)) should have returned zero in this specific case (its interesting the value is returned like it is)
are you on the main branch? I didnt pull this into heartbeat yet
pulled the main before
I updated heartbeat to match main, run a
git pullit should fix itPerfekt