[Logo] Mango Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: pegi
Forum Index » Profile for pegi » Messages posted by pegi
Author Message
Ok thanks.

In the meantime I found a workaround for this trough my PHP server that can deal with HTTP Auth.

The function I found:
--------------------------------------------------------------
function http_auth_get($url,$username,$password){
$cred = sprintf('Authorization: Basic %s',base64_encode("$username:$password");
$opts = array(
'http'=>array(
// 'proxy' => 'tcp://www.proxy.com:80',
// 'request_fulluri' => True,
'method'=>'GET',
'header'=>$cred)
);
$ctx = stream_context_create($opts);
$handle = fopen ( $url, 'r', false,$ctx);

return stream_get_contents($handle);
}
--------------------------------------------------------------

I just made a simple script that routes requests through this.

/P
My WEB-INF/classes/i18n.properties file looks like this:
---------------------------------------------------------------
# This file lists all language supported by this instance.
#
en=English
de=Deutsch
#zh=
---------------------------------------------------------------

I did infact get it to work if I made a copy of:
messages_en.properties and named it messages_sv.properties.

Without changing anything in i18n.properties

/P

My Firefox 3.5 is set to:
- Swedish [sv]
- English [en]
- Swedish/Sweden [sv-se]
- English/US [en-us]

In that order

The problem is the same in IE and Chrome
I just found something interesting for those running windows.

http://www.msure.se

I don't know how much this software will demand of your harware though.
This is also on my wishlist but it doesn't look like there is a easy solution to your problem yet.

Read thread:
http://mango.serotoninsoftware.com/forum/posts/list/221.page
I have a problem that I'm dealing with right now.

I've set up a modbus data source to read and set a setpoint.
I multiply the read value by 0.1 to get the right value.
This works fine in most cases but sometime the vale comes up with a lot of decimals (eg. 1.00000001).
This looks bad on Graphic views.
The solution I used for that is the Text renderer properties where I set the format to 0.0
The value comes up with 0,0 because I'm using a non US computer.
Next problem is when I'm setting a new value.
The setpointbox shows the value with a comma as decimalpoint but Mango doesn't accept values with , (comma). It only accepts . as decimal separator.

This get somewhat confusing for users.

Personly I don't mind using point as decimal and it would be better not to localize the decimalsign because unformatted values are shown with point.

Is there anyone who have a better solution for this?

Thanks

Hi.
I have the same problem.

The quickest solution is just to select a language before login (with icon on top right).
It's annoying that I have to do it every time I login but no problems after that.
I guess it has to do with I18N
See post: http://mango.serotoninsoftware.com/forum/posts/list/135.page
Hi.

I'm trying to connect to a PLC device that communicate like this:

To get values:

- Send "http://url/filename?param=<p1>;<p2>;<p3>"
(This will get me a file containing the values I asked for separated with semicolon)

To set values:
- Send "http://url/filename?param=<p1>,val;<p2>,val;<p3>,val"
(This will get me a file containing OK if all went well)

To get the device to accept this I must be able to do HTTP authentication.

Can I get this to work with Mango?

Is it possible to only send messages if set values are changed?

/P
 
Forum Index » Profile for pegi » Messages posted by pegi
Go to:   
Powered by JForum 2.1.9 © JForum Team