python icon indicating copy to clipboard operation
python copied to clipboard

show weather info under the node / environmental metrics logs from a real weather station

Open francisuk1989 opened this issue 1 year ago • 1 comments

I have made a bash script to get the weather information onto a text file using json and jq and then i forked and edited @pdxlocations script https://github.com/pdxlocations/Meshtastic-Python-Examples/blob/main/send-environment-metrics.py to read this data from a text file, This works great but i can't configure out how this information would appear under my nodes name rather then sending it to a node. The script sends it as;

image

interface.sendData(
    telemetry_data,
    destinationId=BROADCAST_ADDR,
    portNum=portnums_pb2.PortNum.TELEMETRY_APP,
    wantResponse=False,
)

However anyone know how i can achieve this? So in the app, it will show under the node e.g

Android 17c 77.0% 1013.25 hPa iOS will be under the environmental metrics logs

francisuk1989 avatar Mar 21 '24 20:03 francisuk1989

This issue has been mentioned on Meshtastic. There might be relevant details there:

https://meshtastic.discourse.group/t/weather-information-under-my-node-name/11548/2

geeksville avatar Apr 03 '24 16:04 geeksville