Yealink Forums

Full Version: XML FormattedTextScreen
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am working on a Weather application to use on T38's (38.70.0.132 Firmware) but I am struggling with the FormattedTextScreen object.
This code will only display 2 lines of text:

<YealinkIPPhoneFormattedTextScreen>
<Line Size="normal">Current Conditions</Line>
<Line Size="small">Temperature: 2.1°C</Line>
<Line Size="small">Pressure: 100.7 kPa falling</Line>
<Line Size="small">Wind: S 31 km/h gust 45 km/h</Line>
<Line Size="normal">Monday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A few showers beginning near noon. Wind southwest 30 km/h. High plus 4.</Line>
</YealinkIPPhoneFormattedTextScreen>

I even tried the sample code on page 17 of the XML Browser Developer's Guide and just like the screen shot there "Header Line3" is not display on the phone.

Any assistance would be appreciated.

Thx,
TekMason
Hi TekMason,

I think you forget to add <scroll> in your file.
Please test below syntax.
-------------------------------------------------
<YealinkIPPhoneFormattedTextScreen
doneAction="http://10.1.0.105/menu.php"
Beep="yes"
Timeout="60"
LockIn="no">

<Scroll>
<Line Size="normal">Current Conditions</Line>
<Line Size="small">Temperature: 2.1°C</Line>
<Line Size="small">Pressure: 100.7 kPa falling</Line>
<Line Size="small">Wind: S 31 km/h gust 45 km/h</Line>
<Line Size="normal">Monday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A few showers beginning near noon.</Line>
<Line Size="small">Wind southwest 30 km/h. High plus 4.</Line>
</Scroll>

</YealinkIPPhoneFormattedTextScreen>
-------------------------------------------------
I re-edit this post with right syntax.
Thanks Yealink Support.
The code you posted didn't quite work but it was close enough to send me down the right path.
This is the working code:
-------------------------------------------------
<YealinkIPPhoneFormattedTextScreen
doneAction="http://10.1.0.105/menu.php"
Beep="yes"
Timeout="60"
LockIn="no">

<Scroll>
<Line Size="normal">Current Conditions</Line>
<Line Size="small">Temperature: 2.1°C</Line>
<Line Size="small">Pressure: 100.7 kPa falling</Line>
<Line Size="small">Wind: S 31 km/h gust 45 km/h</Line>
<Line Size="normal">Monday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A few showers beginning near noon.</Line>
<Line Size="small">Wind southwest 30 km/h. High plus 4.</Line>
</Scroll>

</YealinkIPPhoneFormattedTextScreen>
-------------------------------------------------
There were 2 things in the code you posted that the T38G did not like and caused it to throw a File format errror! message.
1. <?xml version="1.0" encoding="ISO-8859-1"?>
2. The closing scroll tag was lower case, </scroll>. It must be </Scroll>. The T38G is very particular about the XML it receives and case matters.

It is bizarre that the Yealink will only display 2 lines unless they are enclosed within scroll tags. This presents another issue that I will bring up in a new topic.

TekMason
Hi TekMason,

Thanks to your opinion. I have edited my previous post.
Can you share a script that you used to create the XML files With the current conditions?
Hi craigreilly,

You can refer to post #3.
thanks Support - but this is static content. I am trying to figure out how to serve dynamic content...
Reference URL's