HelloWorld module / application

Started by AdSchellevis, September 02, 2015, 02:35:25 PM

Previous topic - Next topic
September 02, 2015, 02:35:25 PM Last Edit: June 19, 2024, 10:52:31 AM by AdSchellevis
I've just created a wiki page on how to build modules using the OPNsense framework including building of pkgng plugins.

For anyone who is interested, you can find it here:

https://docs.opnsense.org/development/examples/helloworld.html


I was able to get it up and running by installing helloworld directly through pkg install. I've found that menu system part needs to be changed to the following in order to work on the latest version.

<menu>
    <!-- Plugin HelloWorld menu -->
    <Lobby order="999">
        <HelloWorld VisibleName="Hello World!" url="/ui/helloworld/"/>
    </Lobby>
</menu>

The following link seem to be already outdated too. https://wiki.opnsense.org/index.php/Develop:Backend/Using_Templates

I've tried to change the HelloWorld to custom name but having an issue in save function. Configd reports execute error, but couldn't figure out the issue. How should I investigate the issue? More specifically, as shown below, where the "template reload OPNsense.HelloWorld" in the reload action supposed to exist in order to let configd.py run successfully?

$bckresult = trim($backend->configdRun("template reload OPNsense.HelloWorld"));

Thanks in advance.


Hi,

the configuration page of hello world (full help) shows 4x the same description.

cheers till

--------------------------------------------------------------------
OPNsense 17.1.b_66-amd64
FreeBSD 11.0-RELEASE-p5
OpenSSL 1.0.2j 26 Sep 2016


 :'( it looks like the link in the sticky post is obsolete... new link should be: https://wiki.opnsense.org/development/examples/helloworld.html isn't it?

@ffsb42 new link should be https://docs.opnsense.org/development/examples/helloworld.html , I've changed it accordingly, thanks for the ping.