meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.37k stars 825 forks source link

Request: Hard code a location for non-gps units #536

Closed plughie closed 3 years ago

plughie commented 3 years ago

Describe the feature request I have a couple of Heltec units without GPS that I would like to report from a static, hardcoded position. These will be fixed relay nodes with no use for a GPS, which would just draw extra unnecessary power.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Device info:

Smartphone information (if relevant):

Additional context Add any other context about the problem here.

folletto95 commented 3 years ago

What app did you use for ios?

plughie commented 3 years ago

I used Android, but app and OS versions are irrelevant because relay nodes will not be app connected.

IZ1IVA commented 3 years ago

Describe the feature request I have a couple of Heltec units without GPS that I would like to report from a static, hardcoded position. These will be fixed relay nodes with no use for a GPS, which would just draw extra unnecessary power.

I second that request, excellent idea!

geeksville commented 3 years ago

thanks good idea. working on this now.

geeksville commented 3 years ago

In. Run "meshtastic --setlat 32.7767 --setlon -96.7970 --setalt 1337". If someone in this thread and has time and interest, it would be super great if you could send in a pull request to create the beginnings of "docs/python-cmd-guide.md" documenting these new flags (and eventually other things)

IZ1IVA commented 3 years ago

In. Run "meshtastic --setlat 32.7767 --setlon -96.7970 --setalt 1337". If someone in this thread and has time and interest, it would be super great if you could send in a pull request to create the beginnings of "docs/python-cmd-guide.md" documenting these new flags (and eventually other things)

Done. I presume --setalt expects an altitude in feet, doesn't it?

IZ1IVA commented 3 years ago

Turns out it's metres. Or meters. Good!

IZ1IVA commented 3 years ago

I'm having an issue here... if I manually set the position of a LoRa32 board, meshtastic --info doesn't return any position at all. Indeed, this node is listed in the mesh but doesn't show up in the map.