[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XML Idle screen
Author Message
Billx Offline
Junior Member
**

Posts: 17
Joined: Mar 2013
Reputation: 0
Post: #7
RE: XML Idle screen
Below is script I made.

You can change the script for different Weather Locations by going here: http://w1.weather.gov/xml/current_obs
Then select a state and look at the "Call Signs" for the different locations.

Example:
California
Auburn Muni Airport (KAUN)
Avalon, Catalina Airport (KAVX)
Bakersfield/Meadows (KBFL)
"Call Signs" are KAUN, KAVX and KBFL.

Then change the line in the script where KAVX is located to your new choice.
Then in your Yealink DSS Key programing area, make one of the DSS buttons "XML Browser" and put in the Server info where you are going to have the script.

To make it an Idle Screen, I am not 100% sure how to do it.
But you can use an "Action URL" like "On Hook" and put in the Server info where you are going to have the script.
That way when you hang up on a call, the Action URL "On Hook" sends the request for the script automatically.

GetWX.php

<?php

// GetWX.php

//Get XML from web page
$url = "http://w1.weather.gov/xml/current_obs/KAVX.xml" ;
$xml = simplexml_load_file($url) ;

//Parse out fields
$temp = $xml->temp_f ;
$weather = $xml->weather ;
$humidity= $xml->relative_humidity ;
$wind_dir= $xml->wind_dir ;
$wind_mph= $xml->wind_mph ;
$location= $xml->location ;

//Push to Phone
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>".
"<YealinkIPPhoneFormattedTextScreen Beep=\"yes\" Timeout=\"10\" LockIn=\"no\">".
"<Scroll>".
"<Line Size=\"normal\" Align=\"center\"> $location </Line>".
"<Line Size=\"normal\"> Weather: $weather </Line>".
"<Line Size=\"normal\"> Temperature: $temp </Line>".
"<Line Size=\"normal\"> Humidity: $humidity </Line>".
"<Line Size=\"normal\"> Wind Dir.: $wind_dir / $wind_mph MPH</Line>".
"</Scroll>".
"</YealinkIPPhoneFormattedTextScreen>";

?>
03-10-2014 05:44 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
XML Idle screen - CWR - 03-04-2014, 07:54 AM
RE: XML Idle screen - Yealink Support - 03-04-2014, 11:27 AM
RE: XML Idle screen - CWR - 03-04-2014, 01:13 PM
RE: XML Idle screen - Yealink Support - 03-04-2014, 07:07 PM
RE: XML Idle screen - CWR - 03-04-2014, 10:52 PM
RE: XML Idle screen - Billx - 03-05-2014, 12:09 AM
RE: XML Idle screen - Billx - 03-10-2014 05:44 AM
RE: XML Idle screen - CWR - 03-10-2014, 12:37 PM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  FreePBX chan_pjsip DTMF digits not displaying on screen karl_edgeconnect 1 445 02-13-2024 09:52 PM
Last Post: karl_edgeconnect
  No video / black screen between CUCM and Yalink CMD 0 1,295 10-17-2022 02:18 AM
Last Post: CMD
  Screen covers? (for branding) syadnom 0 1,476 08-18-2022 11:28 PM
Last Post: syadnom
  Screen Saver Stops Working awilson@intermaxteam.com 3 5,329 02-13-2022 05:09 AM
Last Post: complex1
  Dialing and what appears on the screen ajadams@centrictel.com 5 9,416 09-24-2020 12:53 AM
Last Post: Albert_Yealink
  T58 Screen Saver igork007 1 5,661 01-13-2020 07:13 PM
Last Post: complex1
  Replacement Screen T48G yeayealink 2 7,357 05-27-2019 03:07 AM
Last Post: jennytran
  Disabling screen timeout on T29G oliver@olivermarshall.net 1 10,433 05-24-2019 01:30 PM
Last Post: complex1
  Screen Default Back to Page 1 Kiwi 0 4,240 04-16-2019 01:22 AM
Last Post: Kiwi
  Turn off warnings on screen in V84 avayax 1 5,787 03-21-2019 12:30 PM
Last Post: complex1

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication