mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-07 02:11:14 +02:00
Update mesh-bot.py
This commit is contained in:
+2
-3
@@ -69,9 +69,8 @@ def auto_response(message,snr,rssi,hop,message_from_id):
|
|||||||
location = get_node_location(message_from_id)
|
location = get_node_location(message_from_id)
|
||||||
lat = location[0]
|
lat = location[0]
|
||||||
lon = location[1]
|
lon = location[1]
|
||||||
print (f"Using Reported Location: {location}")
|
print (f"Using Location: {location}")
|
||||||
suntime = get_sunrise_sunset(lat,lon)
|
bot_response = get_sun(lat,lon)
|
||||||
bot_response = "Sunrise: " + suntime[0] + "\nSunset: " + suntime[1]
|
|
||||||
elif "hfcond" in message.lower():
|
elif "hfcond" in message.lower():
|
||||||
bot_response = hf_band_conditions()
|
bot_response = hf_band_conditions()
|
||||||
elif "solar" in message.lower():
|
elif "solar" in message.lower():
|
||||||
|
|||||||
Reference in New Issue
Block a user