Sign up here and you can log into the forum!

Webend Configuration plugins

Feature requests / enhancements discussion regarding the web interface

Re: Webend Configuration plugins   

Postby recliq » Fri Jan 07, 2011 11:04 am

ROFL! very nice... :lol: :lol:
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Webend Configuration plugins   

Postby RMerlin » Fri Jan 07, 2011 6:11 pm

Jo2003 wrote:Hi RMerlin! Great work! One suggestion: Could you please mark the html code you use as UTF-8? I'm writing the kartina plugin and have to insert cyrillic channel names there. I have inserted the meta tag into /usr/share/webend/webend/addons/config/index.php (I'm not 100% sure about the path because I have no access to my WDTV Live at this time) and it works without a problem. It would be nice to have this in the official version as well.


I experimented with it, and I suspect UTF-8 will cause issues with WEC components that expect 8-bits encoding (such as bash scripts, the /conf/config file, or anything expecting a path). It will be safer to leave it to the default ISO encoding I'm afraid.

You could provide your own ISO to UTF-8 conversion code through a custom hooks for any field that expects to handle UTF-8 inputs.
WDLXTV Webend maintainer. Visit http://www.lostrealm.ca/wdlxtv to see my other WDLXTV projects.
If you like my work, please consider donating.
User avatar
RMerlin
WDLXTV Team
 
Posts: 3236
Joined: Sat Jun 26, 2010 9:25 am
Location: Montreal, Canada

Re: Webend Configuration plugins   

Postby RMerlin » Sat Jan 08, 2011 12:40 am

Just a heads-up: with recent changes I made to WEC' the backup and restore custom hooks are now deprecated. I'm not aware of anyone having used them so far, but if you did, they will no longer be used by WEC.
WDLXTV Webend maintainer. Visit http://www.lostrealm.ca/wdlxtv to see my other WDLXTV projects.
If you like my work, please consider donating.
User avatar
RMerlin
WDLXTV Team
 
Posts: 3236
Joined: Sat Jun 26, 2010 9:25 am
Location: Montreal, Canada

Re: Webend Configuration plugins   

Postby DJArty » Sun Jan 09, 2011 3:32 am

"UMSP and WDTVExt plugin configuration"
Any info about adding WDTVExt plugin configuration into the WEC? May be sample or some WDTVExt plugin already using WEC integration.
(Need possibility to set/change some /conf/config keys via WebEnd)
Tnx.

P.S. ok think I found something :roll:
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Please Donate PayPal to email: djartyua ( a t ) gmail (d o t) com
WebMoney: WMZ114867333413; WMU219453404899; WMR161810775332
User avatar
DJArty
Developer
 
Posts: 540
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Webend Configuration plugins   

Postby DJArty » Sun Jan 09, 2011 4:48 am

But don't work like charm..
var res = executeCmd("ln -s " + this.rootPath + "Weather_wec.php /tmp/config-plugins/Weather_wec.php");
..working good.. Weather_wec.php symlinked in right place:
Code: Select all
<?php
$wec_options['WEATHER_ID'] = array('configname' => 'WEATHER_ID',
                    'configdesc' => "WEATER_ID - zipcode of your city",
                    'longdesc' => "zipcode like EUR|RO|RO010|BUCHAREST",
                    'group' => '@WDTVExt User Plugins',
                    'type' => WECT_TEXT,
                    'page' => WECP_EXTPLUGS,
                    'availval' => array(),
                    'availvalname' => array(),
                    'defaultval' => '',
                    'currentval' => '');
?>

(and trying 'group' => 'Weather')
Does not appear in the right place (any place).. Why? (0.4.5.1)
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Please Donate PayPal to email: djartyua ( a t ) gmail (d o t) com
WebMoney: WMZ114867333413; WMU219453404899; WMR161810775332
User avatar
DJArty
Developer
 
Posts: 540
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Webend Configuration plugins   

Postby recliq » Sun Jan 09, 2011 6:33 am

this works as intended over here: creates a new table Weather with config option WEATHER_ID in WDTVExt Plugins tab...
Code: Select all
$wec_options['WEATHER_ID'] = array('configname' => 'WEATHER_ID',
                    'configdesc' => "WEATER_ID - zipcode of your city",
                    'longdesc' => "zipcode like EUR|RO|RO010|BUCHAREST",
                    'group' => 'Weather',
                    'type' => WECT_TEXT,
                    'page' => WECP_EXTPLUGS,
                    'availval' => array(),
                    'availvalname' => array(),
                    'defaultval' => '',
                    'currentval' => '');
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Webend Configuration plugins   

Postby DJArty » Sun Jan 09, 2011 7:12 am

As I wrote early I try 'group' => 'Weather', too - nothing..
On which version its work?
Image
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Please Donate PayPal to email: djartyua ( a t ) gmail (d o t) com
WebMoney: WMZ114867333413; WMU219453404899; WMR161810775332
User avatar
DJArty
Developer
 
Posts: 540
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Webend Configuration plugins   

Postby recliq » Sun Jan 09, 2011 7:22 am

odd...
works here for my Tools WEC since WEC was introduced...
right now I'm on latest svn woth .rootFS
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Webend Configuration plugins   

Postby DJArty » Sun Jan 09, 2011 7:56 am

Ok I figure out what happen.. WEC don't like ...symlink? ln -s command
or symlink to ..._wec.php in the ./webext-plugins on usb-hdd.
But if i use cp -f command in .js I see needed "Weather" group but "WDTVExt User Plugins" is disappear (and symlynk to Reloader too) :)
Ver 4.5.1 and not EXT3 now, testing for other people, so need always to copy or link .php distributed with WDTVExt Plugin. Perhaps the boot sequence has a definite value.
Any comments?
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Please Donate PayPal to email: djartyua ( a t ) gmail (d o t) com
WebMoney: WMZ114867333413; WMU219453404899; WMR161810775332
User avatar
DJArty
Developer
 
Posts: 540
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Webend Configuration plugins   

Postby RMerlin » Sun Jan 09, 2011 10:44 am

Symlinks are fine (ReLoader uses one), however the script needs to have the proper permissions for Apache to be able to read and execute it. Keep in mind symlinks require ext3 at both ends of the symlink.
WDLXTV Webend maintainer. Visit http://www.lostrealm.ca/wdlxtv to see my other WDLXTV projects.
If you like my work, please consider donating.
User avatar
RMerlin
WDLXTV Team
 
Posts: 3236
Joined: Sat Jun 26, 2010 9:25 am
Location: Montreal, Canada

PreviousNext

Return to Webend Web Interface

Who is online

Users browsing this forum: No registered users and 2 guests

cron