How to install plugins? Should i build firmware from source?
The plugins are built in. All thatâs needed is to enable them for your device. Check out the docs for the plugin youâre interested in on how to do that.
For example RangeTest plugin. Documentation says i should enable it by setting
range_test_plugin_enabled = 1
But how and where?
Lol. I added python api examples just this morning.
Hereâs the draft doc:
I agree.
@mc-hamster, with respect, I donât see how your reply answers âBut how and where?â.
It would seem that using the Python API, you can do:
meshtastic --set range_test_plugin_enabled 1
However, how do you do this on a TTGO Lora device?
ie âAll thatâs needed is to enable them for your deviceâ How?
I suspect we need to compile from Source and find this setting. Correct?
OK, may have found it - where to enable the plugins: ( If correct, perhaps this can be added to the docs?)
I want to enable the serial plugin:
In MESHTASTIC-DEVICE/src/plugins/SerialPlugin.cpp need to uncomment the line:
// radioConfig.preferences.serialplugin_enabled = 1;
not quite. The code is already built with this plugin included. You donât need to rebuild from source (unless you want to because you are changing the code). I assume that comment you saw is just a remnant of @mc-hamsterâs personal testing.
To turn the flag on that you mentioned at runtime youâd do:
âmeshtastic --set serialplugin_enabled trueâ
Thanks for the reply.
Good news not having to recompile, BUT
it is not clear where the following is entered: âmeshtastic --set serialplugin_enabled trueâ.
Is this from the CLI on the Python API?
Or the Android App?
I think all the info you need is documented here:
Cheers
Thanks for sharing that!
Hi Mike,
Yeah, you found my little shortcuts to develop and test this quicker. Those let me go through several different configurations really fast without having to exit Visual Studio Code.
@Arne Pointed you in the right direction. Currently those settings are available from the Python API. Thanks for trying this out!
Ahah. Making more sense now.
Thanks for your quick responses.
Hereâs what enabling the plugin looks like with the python tool (with --info showing the before and after states):
Thatâs how Iâm setting my mobile âreceiverâ T-Beam. For my stationary âsenderâ T-Beam I use these two commands after flashing updated firmware:
meshtastic --set range_test_plugin_enabled 1
meshtastic --set range_test_plugin_sender 60
Thanks for that command log.
But on OSX and Ubuntu, I get the following:
Exception: This version of meshtastic-python requires device firmware version 1.2 or later. For more information see Using the python API during the 1.2 transition - Python API - Meshtastic
When I use for example:
meshtastic --set serialplugin_enabled true
Any ideas?
To answer my own question - V1.2 refers to the firmware on the device - needed to flash the latest V1.2.10 and that works.