If you write a SUN to the autoresponder, the output
SunRise: Mon 22 05:45
Set: Mon 22 09:10
is displayed
Is it possible to display sunrise and sunset times in 24 hours? Or at least that an AM and PM is employed.
If you write a `SUN` to the autoresponder, the output
```
SunRise: Mon 22 05:45
Set: Mon 22 09:10
```
is displayed
Is it possible to display sunrise and sunset times in 24 hours? Or at least that an AM and PM is employed.
<!-- github-sync-id:2421278123 -->
2024-07-26 09:09:48 Received DM: Sun on Device:0 Channel: 0 From: 1128192892
ERROR:root:Unexpected error in deferred execution <class 'TypeError'>
Traceback (most recent call last):
File "/home/hailo/meshing-around/venv/lib/python3.12/site-packages/meshtastic/util.py", line 283, in _run
o()
File "/home/hailo/meshing-around/venv/lib/python3.12/site-packages/meshtastic/mesh_interface.py", line 1190, in <lambda>
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/home/hailo/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/topicobj.py", line 452, in publish
self.__sendMessage(msgData, topicObj, msgDataSubset)
File "/home/hailo/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/topicobj.py", line 482, in __sendMessage
listener(data, self, allData)
File "/home/hailo/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/listener.py", line 237, in __call__
cb(**kwargs)
File "/home/hailo/meshing-around/mesh_bot.py", line 238, 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 61, in auto_response
bot_response = get_sun(str(location[0]),str(location[1]))
~~~~~~~~^^^
TypeError: 'NoneType' object is not subscriptable
I tryed Sun... ;) **Over IP Node autorespoder**
```
2024-07-26 09:09:48 Received DM: Sun on Device:0 Channel: 0 From: 1128192892
ERROR:root:Unexpected error in deferred execution <class 'TypeError'>
Traceback (most recent call last):
File "/home/hailo/meshing-around/venv/lib/python3.12/site-packages/meshtastic/util.py", line 283, in _run
o()
File "/home/hailo/meshing-around/venv/lib/python3.12/site-packages/meshtastic/mesh_interface.py", line 1190, in <lambda>
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/hailo/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/home/hailo/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/topicobj.py", line 452, in publish
self.__sendMessage(msgData, topicObj, msgDataSubset)
File "/home/hailo/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/topicobj.py", line 482, in __sendMessage
listener(data, self, allData)
File "/home/hailo/meshing-around/venv/lib/python3.12/site-packages/pubsub/core/listener.py", line 237, in __call__
cb(**kwargs)
File "/home/hailo/meshing-around/mesh_bot.py", line 238, 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 61, in auto_response
bot_response = get_sun(str(location[0]),str(location[1]))
~~~~~~~~^^^
TypeError: 'NoneType' object is not subscriptable
```
<!-- github-comment-id:2252117793 -->
In going to close the sun issue as resolved. Can you open a new issue for the tcp issue? I will try and test using a heltec v3 in the meanwhile. but also check this out for likely all similar boards
In going to close the sun issue as resolved. Can you open a new issue for the tcp issue? I will try and test using a heltec v3 in the meanwhile. but also check this out for likely all similar boards
https://github.com/meshtastic/firmware/issues/3618
<!-- github-comment-id:2254220870 -->
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.
If you write a
SUNto the autoresponder, the outputis displayed
Is it possible to display sunrise and sunset times in 24 hours? Or at least that an AM and PM is employed.
Yea I will get a 24:00 in soon
should be resolved @Hailo1999
will try when u fix the Fetch error
I tryed Sun... ;) Over IP Node autorespoder
Tryed Sun over Serial connected Node Autoresponder:
fixed this, thanks for this one as well!
over serial connected autoresponder it runs well but not on IP based autoresponder
In going to close the sun issue as resolved. Can you open a new issue for the tcp issue? I will try and test using a heltec v3 in the meanwhile. but also check this out for likely all similar boards
https://github.com/meshtastic/firmware/issues/3618