OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • HelloWorld module / application
« previous next »
  • Print
Pages: [1]

Author Topic: HelloWorld module / application  (Read 23941 times)

AdSchellevis

  • Administrator
  • Hero Member
  • *****
  • Posts: 849
  • Karma: 163
    • View Profile
HelloWorld module / application
« on: September 02, 2015, 02:35:25 pm »
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://wiki.opnsense.org/index.php/Develop:Creating_the_hello_world_module

Logged

Erka

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: HelloWorld module / application
« Reply #1 on: January 28, 2016, 07:05:07 am »
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.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13633
  • Karma: 1174
    • View Profile
Re: HelloWorld module / application
« Reply #2 on: January 28, 2016, 07:58:52 am »
Thanks for the report, I fixed the plugin (version 1.1 included in 16.1 today).

https://github.com/opnsense/plugins/commit/a5fc77b2b03791267ad076273530b8d080daafdd
Logged

tillsense

  • Sr. Member
  • ****
  • Posts: 308
  • Karma: 48
    • View Profile
Re: HelloWorld module / application
« Reply #3 on: December 28, 2016, 07:58:22 am »
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
Logged

michkov

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: HelloWorld module / application
« Reply #4 on: December 28, 2016, 09:02:59 pm »
that's just noticeable to me!
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • HelloWorld module / application
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2