Sony Pixel Power calrec Sony

Video Platform Observability using Agama AWE SDK - Part 2: Layout & Style

25/05/2022

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!
LINK: https://agama.tv/video-platform-observability-using-agama-awe-sdk-seri...
See more stories from agama

Most recent headlines

05/01/2027

Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be demoed at CES 2026

Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be ...

01/12/2026

Coalition Asks Appeals Court to Block FCCs Repeal of TV Ownership Rule

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

01/12/2026

Waiken ILW partners with Broadpeak to power dynamic ad in...

Partnership delivers personalized viewing experiences and premium advertising experiences across Latin America Broadpeak , a leader in streaming and monetizati...

01/12/2026

Rise AV Opens 2027 Mentoring Programme Applications in th...

Rise AV, the leading advocacy organisation promoting gender diversity and professional development in the AV, Live and Production Technology sectors, has opened...

01/12/2026

FCC Chairman Carr Remains Defiant Despite Court Striking Down ABC License Review

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

01/12/2026

Online Petition Calls for Congress to Limit FCC Authority in Disney/ABC License Reviews

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , er...

01/12/2026

Blue Lucy and Moments Lab turn rights holders archives in...

New integration connects Blue Lucys rights-aware content management platform with Moments Lab's AI platform, so teams can find, compile and publish archive ...

01/12/2026

Scientists develop a more comprehensive approach to track measles using wastewater

LA JOLLA, CA-One cheap and reliable, albeit stinky tool has become an increasing...

01/12/2026

Beam Dynamics Introduces MCP for Faster, Smarter Technology Operations

Beam Dynamics Introduces MCP for Faster, Smarter Technology Operations Brie Clayton November 30, 2026 0 Comments Beam Dynamics has introduced new Model ...

01/12/2026

Multi Platform Healthcare Campaign Captured on URSA Cine 12K LF

Multi Platform Healthcare Campaign Captured on URSA Cine 12K LF Brie Clayton November 30, 2026 0 Comments Craftshow Digital completes Singing River He...

01/12/2026

Gravity Media acquires MOOV to expand broadcast graphics and virtual production capabilities

Gravity Media acquires MOOV to expand broadcast graphics and virtual production ...

01/12/2026

OZ Racing's Rally Legend Shot on URSA Cine 12K LF and PYXIS 12K

OZ Racing's Rally Legend Shot on URSA Cine 12K LF and PYXIS 12K Brie Clayton November 30, 2026 0 Comments From rugged mountain trails to high spee...

01/12/2026

Have yourself a merry little laugh, RT unwraps Christmas comedy line-up

There's no shortage of seasonal silliness this Christmas, as RT serves up a festive feast of comedy across its platforms. From laugh-out-loud specials and ...

01/12/2026

Changing children's lives for good: 4.8 million raised in 2025, supporting 173 charities across 29 counties

The Toy Show Appeal has raised more than 31.2 million for children's charit...

01/12/2026

NVIDIA Local AI Systems Give America Private, Secure Access to Open Source Models, Agents and Operating Systems Running on Device

As agents begin to act on a user's behalf, open source technologies enable u...

01/12/2026

NVIDIA Strengthens US Quantum Leadership With Groq 3 LPX Breakthrough in Quantum Error Correction

A first-of-its-kind approach to quantum error correction using NVIDIA Groq 3 LPX...

01/12/2026

NVIDIA Announces Model Risk Bench to Help Identify and Mitigate Safety Risks

NVIDIA is introducing Model Risk Bench, a suite that builds on joint risk-management and evaluation work with Microsoft and contributions from the broader ecosy...

01/12/2026

America's Industrial Expansion Accelerates With NVIDIA and Partners, Supporting Chip Production, Jobs and Local Suppliers

Across the U.S., NVIDIA and its partners are expanding manufacturing capacity to...

01/12/2026

From Factory Floors to Farm Fields, Robots Take On the Heavy Lifting With NVIDIA Technologies

Robots are expanding what American workers can accomplish, with advancements in ...

01/12/2026

Patients Move Closer to Better Treatments as NVIDIA and Healthcare Leaders Speed Research

NVIDIA and U.S. life sciences leaders are using AI to advance biomedical researc...

01/12/2026

NVIDIA Expands Its Genesis Mission Work With New Fusion Technology to Advance Discovery of New Energy Sources

Fusion could become a new source of abundant energy, but harnessing it requires ...

01/12/2026

NVIDIA GeoNeMo Helps Developers Build Agents to Speed Geospatial Intelligence from Earth to Orbit

Satellite data helps communities detect wildfires, monitor crops and respond to ...

01/12/2026

NVIDIA Advances Wireless Networks as Platforms for Physical AI

Wireless networks are built to connect devices, but the same signals can also help them understand the physical world. NVIDIA Aerial Sense, a new open source ...

30/11/2026

MASVs New Gameday Solution Offers Near Real-Time Automated Delivery of Sports Media

MASV, the global file transfer platform built for teams moving massive content a...

30/11/2026

Free Registration for the 2026 SVG SUMMIT Closes on Dec. 1 at 5 p.m. ET!

Free registration for THE SVG SUMMIT closes on Dec. 1 at 5 p.m. ET, so don't miss out! After the deadline, tickets will cost $150 to attend the event. CLICK...

30/11/2026

Voodoo Lab refresh the Amp Selector line-up

ABY & Pro amp switcher models introduced Guitar power supply and switching experts Voodoo Lab have just revealed two products that build on the foundations ...

30/11/2026

Bits Happen from ALM/Busy Circuits

New eight-bit digital VCO announced ALM/Busy Circuits' latest Eurorack module combines the immediacy of an analogue VCO with the flexibility of digital ...

30/11/2026

StageBox 2 now available

Audio inputs, backing playback, PDF support & more In the April 2026 issue, we ran a review on StageBox, a handy macOS and Windows application designed to h...

30/11/2026

Nielsen Completes Acquisition of DoubleVerify

Combination creates a leading independent media intelligence platform across all workflows and channels. New York, NY - November 30, 2026 - Nielsen Holdings ( ...

30/11/2026

Ampere: U.S. Overtakes Germany as World's Second-Largest Soccer Media Rights Market

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , er...

30/11/2026

New Viz Engine 5.6 Integrates Gaussian Splatting

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

30/11/2026

Nielsen Closes Deal to Buy DoubleVerify

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

30/11/2026

DPA Microphones Earns 2027 NAMM TEC Award Noms for 4097 C...

DPA Microphones is proud to announce that two of its innovative audio solutions have been named as finalists in the 2027 NAMM TEC Awards. This includes the 4097...

30/11/2026

Media Tech Journalist Gary Arlen Has Died

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

30/11/2026

FCC Chairman Carr Remains Defiant Despite Court Loss

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

30/11/2026

NAB Show Registration Opens Tomorrow

Share {alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...

30/11/2026

From innovation to impact - Lightware reflects on 2026

For Lightware, 2026 has been a year of continued progress, marked by significant developments across its connectivity and control portfolio. Alongside advancing...

30/11/2026

Hiltron Reports a Successful and Expanding Space Tech Exp...

Hiltron Communications reports a successful Space Tech Expo Europe 2026, held from Tuesday 17 through Thursday 19 November across five halls of the Messe Bremen...

30/11/2026

Calrec expands into the Pro AV market with Type RT at ISE...

Calrec will be located at Stand 4P800. Broadcast and Pro AV united ISE 2027's theme, When Worlds Unite, reflects Calrecs own approach. Stadiums, univers...

30/11/2026

CGI launches OpenMedia Evolve and brings a new generation...

CGI (TSX: GIB.A) (NYSE: GIB), one of the largest independent IT and business consulting services firms in the world, today launched OpenMedia Evolve, the next g...

30/11/2026

Dan Borrelli joins Sky as Head of YouTube

Monday 30 November 2026 Dan Borrelli joins Sky as Head of YouTube Sky has appointed Dan Borrelli as Head of YouTube for Sky Entertainment Group, in a newly cr...

30/11/2026

Sky News launches Ask Sky News, a new way to search and explore the news

Monday 30 November 2026 Sky News launches Ask Sky News, a new way to search and explore the news AI-powered feature lets audiences ask questions, get answers ...

30/11/2026

RedNet TNX delivers mission-critical redundancy for Chicago-based live sound engineer, Andrew Dewar

RedNet TNX delivers mission-critical redundancy for Chicago-based live sound eng...

30/11/2026

Apple unveils all\u2011new (RED) collection of products - PRESS RELEASE - Posted on 30 November 2026

CUPERTINO, CALIFORNIA Apple today announced an all-new (RED) collection - includ...

30/11/2026

Apple Music Replay launches redesigned highlight reel and all\u2011time view - UPDATE - Posted on 30 November 2026

Apple Music today debuted Replay '26, a redesigned look back at the year in ...

30/11/2026

Apple Podcasts reveals the top shows of 2026 and introduces Replay - UPDATE - Posted on 30 November 2026

Today, Apple Podcasts unveiled the most popular podcasts of 2026, celebrating th...

30/11/2026

RT delivers blockbuster movies, unmissable music and festive favourites as homes across Ireland can't wait this Christmas

Launching the first of three Christmas content announcements this week, RT is s...

29/11/2026

Boroz: Free plug-in from fedDSP

Combines compression, saturation & EQ Said to be the easiest way to turn your sound all the way to 11 , fedDSP's latest release brings together compres...

29/11/2026

New Life for the Original Symphony I/O: An Independent Software Project

New Life for the Original Symphony I/O: An Independent Software Project With Apogee's cooperation, an independent developer is helping bring the original Sy...

28/11/2026

Melbourne Instruments update the Roto-Control

Cubase & FL Studio integration improved Melbourne Instruments have just released the latest update for their motorised MIDI controller, adding Cubase and FL...