Giter VIP home page Giter VIP logo

Comments (9)

nukemrules avatar nukemrules commented on August 14, 2024 1

Sure, with info we got I could create something in Node-Red that only grabs my location and NodeInfo from a private MQTT server and publish this to a new topic....

But I see a lot of questions asking how to get on map(s), so this would help a lot in starting communities. Especially the ones with lower knowledge of the internal working of MQTT.

from firmware.

pdxlocations avatar pdxlocations commented on August 14, 2024 1

Chiming in only because I find this interesting. I don't see this feature as being practical, BUT I do see it as something lots of people have been asking for, and I'd prolly end up turning it on too. It would be an easier way to let everyone know you're around, without sharing your entire mesh online.

Perhaps a solution would be a new module/portnum that sends out a combination of Long/Short name + Position information. This portnum would NEVER TX over LoRa, only MQTT.

from firmware.

GUVWAF avatar GUVWAF commented on August 14, 2024 1

This is implemented with #3365 and will be in the upcoming 2.3.0 release. Please ask the maintainer of the map you're using to incorporate the new MapReport packet on the /2/map/ topic which will contain all kinds of information about the node (also e.g. firmware version and number of active local nodes).

from firmware.

GUVWAF avatar GUVWAF commented on August 14, 2024

Just to be sure: you know you can already only enable uplink (and not downlink) in the channel settings to avoid transmitting packets from MQTT over LoRa while still publishing your position on the map?

I don't see why you need separate topics for position and telemetry to accomplish what you want.

from firmware.

nukemrules avatar nukemrules commented on August 14, 2024

Just to be sure: you know you can already only enable uplink (and not downlink) in the channel settings to avoid transmitting packets from MQTT over LoRa while still publishing your position on the map?

I don't see why you need separate topics for position and telemetry to accomplish what you want.

Sure I know, that is a full one way publish and means that everything from the mesh is published to the MQTT server too. Privacy wise you don't want this. You can't hide messages in your public primary channel. Sure you can create a "private" channel, but you want a public one too for people from outside your mesh.
Also when someone subscribes to that MQTT topic and uses up- and downlink, messages can't ever reach the nodes via the node that has only uplink enabled. With a location only mode, you protect the expectation of reaching nodes that can't be reached. And with a separate topic, you protect the mesh from flooding too.

from firmware.

GUVWAF avatar GUVWAF commented on August 14, 2024

You can't hide messages in your public primary channel. Sure you can create a "private" channel, but you want a public one too for people from outside your mesh.

You can create a private primary channel to publish your position and not use it for anything else and have the "public" channel as secondary.
If you want to talk in the clear over LoRa on the primary channel but not publish it to MQTT, while still publishing your location, it sounds like a solution would be to allow periodic position publishing to MQTT on a different channel than the primary.

If you have a separate topic for position only, maps will not be able to show a short and long name, because they need the NodeInfo packets for that. So what you’re asking for is to have switches to select which kind of traffic (by port number) to publish to a dedicated MQTT topic (always unencrypted then?), without nodes subscribing to these topics. This is different from selecting to publish/subscribe to all traffic per channel and would require issue #3116 to be implemented first.

from firmware.

nukemrules avatar nukemrules commented on August 14, 2024

If you have a separate topic for position only, maps will not be able to show a short and long name, because they need the NodeInfo packets for that.

Sure, if that is needed too then NodeInfo should also be published in the same topic.

This could go hand in hand with issue #3116, but needs an approach to make it easier for new users. So an out of the box approach or single click would help.

from firmware.

GUVWAF avatar GUVWAF commented on August 14, 2024

A self-contained “Map Report” packet that only gets published to MQTT makes sense, but like @nukemrules said, it should be simple to use. If you also want things like Device and/or Environment metrics as previously mentioned (or Traceroute, NeighborInfo, DetectionSensor, etc. for that matter), then in my opinion you should just use uplink on the primary channel for that.

It would be good to know what people want to see on the map apart from short/long name and position? meshmap.net also shows the role and hardware type (from NodeInfo). Region, frequency slot and modem preset is useful for knowing how to reach a node over LoRa. Maybe also a boolean for if it uses a channel with the default encryption key and name.
Furthermore, you probably also want to configure the new position precision and send it with the packet such that the map can display the precision.

from firmware.

Danie10 avatar Danie10 commented on August 14, 2024

We are already using a country topic for MQTT for South Africa as msh/ZA and that is working well to filter more for local users, and still uploads our location to the map. So anyone can already choose their own topic.

from firmware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.