Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Solution for parsing config files to create form

Featured Replies

Hi All,

 

In the latest SimpleFeatures plugin, I've created some simple functions to create a form out a config file. When you click submit, it will automatically apply the changes to the config file. Comments appear as tooltips. It will detect if value is a boolean or numeric value, and remove quotation marks as necessary. Any variable with password in it will create password field in form. There are a few caveats, like not being able to use some special characters in the conf file. But, inclusion of both Title and Comments for each setting should help you here.

 

The script parses sections like [Options]

 

The script parses each setting like this:

#TITLE: The title

#COMMENT: The comment

username = "username"

 

Code is rather hacked together, but works quite well in an unRAID setup. Go ahead and take a look at my code, and provide hints and tips for me, or feel free to edit for your own projects.

 

Turns this:

 

[Email]
#TITLE: SMTP Server
SmtpServer = "smtp.gmail.com"
#TITLE: SMTP Port
SmtpServerPort = 465
#TITLE: Username
#COMMENT: Username - Usually first part of email address
Username = "[email protected]"
#TITLE: Password
#COMMENT: Password you use for email account
Password = "password"

 

Into this:

 

Screenshot%20-%20Email%20Notifications.png

 

Available here:

 

http://lime-technology.com/forum/index.php?topic=12698.0

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.