
25 May, 2022
Blog
By Anders Svensson
In our previous article Par1 of this series, we presented the Agama AWE SDK, the requirements needed to create a simple application to provide real use for Agama customers and the configuration of the project.
In the second part of the series, we're diving into how to create the layout and styling, and also elaborate on the application logic.
We have created a boilerplate application and defined the configuration parameters that shall be possible for the users to adapt. It is now time to start creating the actual functionality of the application. An important part of that is the actual layout and structure of the presentation, which for these applications is controlled by standard HTML, CSS, and JavaScript. In the application index.html below, we have modified the boilerplate HTML structure and instead defined a set of div:s used as placeholders for the configured test name and a div for the status indicator.
The ADE will automatically update the UI while editing and saving HTML so the structural changes will be shown immediately. The result is not interesting right now as we have not yet populated the div:s with any content and styling, so the result is still just an empty screen.
The Application logic To start populating the application with the configured content, test logic and the test status results, we need to start adding JavaScript code.
The main application entry point that is called by the Agama application framework is the onUpdate function. This function has two parameters, state and reason. The state parameter is an object that contains the configuration of the application. So, all the parameters that we defined in the JSON returned in the onConfiguration function, will be available in this object. The reason parameter is an integer stating why the function is being called; it allows us to implement different handling and behavior depending on this. In our application we must handle the create and configuration change reason. In the code above one can see how easily and obviously we can access and use the different configuration parameters that we have defined.
The program logic needed to implement the functionality is quite simple. When the application is created, we set up a timer that ensures that our test function update() is called at the user configured interval. The update() function in turn calls the defined REST API and checks the result codes against the configured, and depending on the result adding either a fail or ok CSS class to the status div.
The current result is now as above. We can now see the defined test name, in this case VoD system (which is the name we configured) but we do not see any status symbol. That is correct and it is because we have not yet added the styling for the status div.
Styling Adding CSS styling for the application is the last step in getting the applications appearance and functionality in-place. We use the automatically created file css/style.css and add the following.
It is here where we define the fail to indicate with an orange background, and ok to indicate with a green background.
Yes, now it looks more promising!
Most recent headlines
05/01/2027
Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be ...
04/08/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
04/07/2026
April 7 2026, 19:00 (PDT) Detective Conan: Fallen Angel of the Highway Opens in...
01/06/2026
January 6 2026, 05:30 (PST) Dolby Sets the New Standard for Premium Entertainment at CES 2026
Throughout the week, Dolby brings to life the latest innovatio...
02/05/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
01/05/2026
January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...
11/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/04/2026
Pilot phase begins for a new national infrastructure designed to safeguard academic and research data with full local data control, sovereignty, resilience, and...
11/04/2026
How to Stream Coachella 2026 at Home Check this years stacked schedule for the annual music festivals full lineup, including when Berklee artists from Laufey ...
11/04/2026
Time Travel As Berklee on the Road programs in Puerto Rico and Italy mark decades-long anniversaries, we journey into the past and step into the future.
Apri...
11/04/2026
Improving vaccine design for Ebola, HIV and more Scripps Research scientists and colleagues develop a nanodisc platform that offers a clearer view of how key vi...
10/04/2026
The Invisible OPEX Killer: Is Your Server Room Dragging You Down? In the broadcast world, we talk a lot about uptime. We talk about talent retention, latency...
10/04/2026
Imagine Communications will showcase its multiviewer portfolio at NAB Show 2026 (April 19-22, Booth N1328, Las Vegas Convention Center), including Prismon and t...
10/04/2026
Chyron has released PRIME VSAR 2.3, an update to its virtual set and augmented reality solution for broadcast. The release adds compatibility with Unreal Engine...
10/04/2026
Techex will exhibit at NAB Show 2026 (Booth W2267, April 19-23, Las Vegas Convention Center), demonstrating new tx darwin features including consumer multiview,...
10/04/2026
NDI will exhibit at NAB Show 2026, demonstrating its IP video ecosystem through live partner integrations, NDI 6.3 features, AI metadata workflows, and creator ...
10/04/2026
FOR-A has announced the acquisition of all shares of Tamu Radiance Corporation, a new company spun off from the Information Equipment Business of Tamura Corpora...
10/04/2026
InSync Technology will showcase new and updated video conversion products at NAB...
10/04/2026
TNT Sports and DAZN have announced a partnership to air monthly boxing events in the United States under the brand The Fight. The series will be promoted in p...
10/04/2026
Panasonic Projector and Display has announced the SQ3 Series of 4K LCD displays as part of its MEVIX professional display portfolio. All sizes will be available...
10/04/2026
Amagi has announced the addition of Agentic Media Operations to its Amagi NOW platform, integrating AI reasoning agents across its media supply chain workflows ...
10/04/2026
LTN has announced enhancements to its global IP video network targeting broadcasters transitioning from satellite distribution. The updates come ahead of US fed...
10/04/2026
Daktronics has installed new LED displays at Yankee Stadium, upgrading the main centerfield board, two flanking boards, and two ribbon displays spanning the 200...
10/04/2026
Harmonic has announced updates to its hybrid streaming solution, including Model Context Protocol (MCP) connectivity for AI applications, cloud-native deploymen...
10/04/2026
MultiDyne Video and Fiber Optic Systems will introduce two new fiber transport products at NAB Show 2026 (Booth C4425, April 19-22): the FiberSaver-10G waveleng...
10/04/2026
Telos Alliance and ip-studio will demonstrate STUDIO ZERO, a cloud-hosted virtual studio, at NAB Show 2026. First introduced at NAB Show 2023, STUDIO ZERO integ...
10/04/2026
d&b solutions, a London-based audio-visual, lighting, and media integration grou...
10/04/2026
ARRI and SmallHD have announced a new expansion license for ARRI's Hi-5 and Hi-5 SX hand units that displays lens data overlays on supported SmallHD monitor...
10/04/2026
Roku and the Banana Ball Championship League (BBCL) have announced an exclusive streaming partnership to bring five BBCL games to the Roku Sports Channel in 202...
10/04/2026
Ratings Roundup is a rundown of recent rating news and is derived from press rel...
10/04/2026
The Peabody Awards don't just recognize great storytelling, they spotlight t...
10/04/2026
After launching the Spotify Podcast Awards in Mexico last year, we brought the fan-voted celebration to Paris this week for its first edition in France. Hosted ...
10/04/2026
Powered and unpowered live PA ranges upgraded
Yamaha have just refreshed four of their hugely popular PA speaker ranges, delivering significant improvements...
10/04/2026
Underlying plug-in & VI technology now available to others
UJAM's latest announcement sees the company open up' Gorilla Engine, the development pla...
10/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
10/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
10/04/2026
Bitcentral, a leading provider of professional media solutions for broadcast and digital video, will showcase its latest innovations at NAB Show 2026 (Booth W28...
10/04/2026
Ikegami to Introduce Expanded Range of Broadcast Production Solutions at NAB 202...
10/04/2026
AJA Debuts SMPTE ST 2110 and openGear Solutions Ahead of NAB 2026
Brie Clayton April 10, 2026
0 Comments
New gear and updates address evolving hybrid ...
10/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
10/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
10/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
10/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
10/04/2026
Frequency, the engine behind the worlds leading streaming television channels, today launched its AI platform for Frequency Studio, powering the entire channel ...
10/04/2026
What can I watch on UKTV and stream on U this week?
This week on UKTV and the free streaming service U, viewers can watch a range of new and returning programm...
10/04/2026
J nger Audio Joins EBU ADM Integration Group as Founding Member to Help Advance...
10/04/2026
Five-part Sky Original drama airs nightly on Sky Mix and Sky Atlantic from 20 Ap...