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

18/11/2025

Scripps Sends Mixed Messages in Response to Possible Sinclair Deal

CINCINNATI E.W. Scripps has issued a statement responding to news that Sinclair has acquired approximately 8.2% of the outstanding class A (non-voting) shares o...

18/11/2025

Tegna Shareholders Approve Nexstar Merger

TYSONS, Va. Tegna has announced that its shareholders have voted overwhelmingly to approve the proposed $6.2 billion merger with Nexstar Media....

18/11/2025

Popularity of Online Short Form Content Moving Beyond Social Media

NEW YORK Short-form vertical video has exploded across platforms like TikTok, Instagram, and YouTube, but a new survey commissioned by Media.net, a provider of ...

18/11/2025

DJI Introduces Osmo Action 6 Camera With Variable Aperture

SHENZHEN, China DJI today unveiled the Osmo Action 6, an all-in-one action camera featuring a variable aperture with a range from f/2.0 to f/4.0, the company...

18/11/2025

Veteran Production Sound Mixer Tony Johnson Captures the...

In the high-stakes world of film sound, there's no room for second chances. When an actor whispers a line with the weight of an entire scene, or lets loose ...

18/11/2025

Sonnet Announces Black Friday Sale on Select Products

Sonnet Technologies is having a sale on a selection of popular products, including a Thunderbolt 4 dock, an eGPU chassis, SATA and M.2 SSD PCIe cards, and mor...

18/11/2025

4Fangs Launches Horror and Suspense FAST Channel on Amagi...

Amagi, a cloud-based SaaS technology solutions provider for broadcast and streaming TV, today announced the launch of 4Fangs, a new Free Ad-Supported Streaming ...

18/11/2025

WIM 8th Annual Holiday Toast to Honor Mandy Walker ASC AM...

Women In Media (WiM) announces its honorees for the 2025 Holiday Toast. The annual celebration recognizes legendary creatives whose work uplifts and inspires th...

18/11/2025

Unforgettable Cinematography of Adam Newport-Berra with Z...

Cinematographer Adam Newport-Berra ( Good Fortune , The Bear , Euphoria ) emerged from the 2025 Emmy season with a statuette celebrating his Outstanding Cinem...

18/11/2025

Thomas Secures - Friends and Lovers - Moving Lights Usin...

Atlanta-based gaffer and lighting programmer Quinton Thomas brings the same practical, problem-solving instinct of a board op to every set he walks onto. With a...

18/11/2025

Suitelife Systems Appoints Veterans Charles Sotto and Reb...

Suitelife Systems, a division of NFB Consulting Group, headquartered in California, has announced the appointments of Charles Sotto as Director of Media Technol...

18/11/2025

Scott Kramer Turns to NUGEN Audio to Bridge Creativity an...

Sound Director and Audio Product Manager Scott Kramer has built a career around shaping stories through audio, guiding projects across film, television and stre...

18/11/2025

iWedia Strengthens Long-Term Operator Partnerships and Cu...

iWedia, a global leader in software solutions for connected TV devices, announces its participation at the APAC TV Summit 2025, taking place November 18 20 in B...

18/11/2025

MRMC Introduces Flair Bridge - Simplifying Robot Control...

Mark Roberts Motion Control (MRMC) is proud to announce the launch of Flair Bridge, a groundbreaking solution that redefines how operators control MRMC's in...

18/11/2025

LiveU Delivers a Solid Connection to Groovy Gecko for Dra...

Over the summer, world famous musician and rapper Drake continued the rollout of his new album Iceman, by live streaming the second and third episodes of a seri...

18/11/2025

Oregon Municipal Channel Upgrades Visuals With Telycam PTZs

KEIZER, Ore. Municipal broadcaster Keizer City Television, K23 TV, has deployed four Telycam PTZ cameras to upgrade the visual quality of its live meeting cover...

18/11/2025

Peacock to Stream EA Sports Madden NFL Cast on Thanksgiving

STAMFORD, Conn. NBC Sports and Peacock have announced that they are working for the second consecutive year with the National Football League, EA Sports and Gen...

18/11/2025

Research: Netflix Boosts Viewing With Familiar Kids Franchises

LONDON A new Ampere Analysis study finds that familiar franchises are successfully driving kids' TV consumption on Netflix and that the streamers big bet on...

18/11/2025

Content Discovery Still a Challenge for Streamers: Hub Study

PORTSMOUTH, N.H. TV viewers continue to find it challenging to find relevant programs in the fragmented universe of streaming content, according to new findings...

18/11/2025

20 Bob Dylan Songs That Reflect a Legacy of A-Changin

20 Bob Dylan Songs That Reflect a Legacy of A-Changin On the heels of Bob Dylan receiving a Berklee honorary doctorate, we take stock of one of the most singu...

18/11/2025

Microsoft, NVIDIA and Anthropic Announce Strategic Partnerships

Today, Microsoft, NVIDIA and Anthropic announced new strategic partnerships. Anthropic is scaling its rapidly growing Claude AI model on Microsoft Azure, powere...

18/11/2025

Delivering AI-Ready Enterprise Data With GPU-Accelerated AI Storage

AI agents have the potential to become indispensable tools for automating complex tasks. But bringing agents to production remains challenging. According to Ga...

18/11/2025

The unbelievable story of DJ Carey from hurling hero to convicted fraudster charted in new RT documentary series

DJ Carey: The Dodger starts Monday 24th November at 9.35pm on RT One and RT Pl...

17/11/2025

EA SPORTS Madden NFL Cast to Return Thanksgiving Night With Immersive, Data-Driven Broadcast on Peacock

EA SPORTS Madden NFL Cast to Return Thanksgiving Night With Immersive, Data-Driv...

17/11/2025

Behind the Broadcast Booth: Impact Ventures' Greer Christian on Building Her Career Around Passion

Behind the Broadcast Booth: Impact Ventures' Greer Christian on Building Her...

17/11/2025

SVG Sit-Down: Sportradar's Brian Josephs Talks Peacock's Powerful Performance View - and Just Telling Better Sports Stories

SVG Sit-Down: Sportradar's Brian Josephs Talks Peacock's Powerful Perfor...

17/11/2025

2025 Sports Broadcasting Hall of Fame: Greg Gumbel, Iconic Voice and Comforting Presence

2025 Sports Broadcasting Hall of Fame: Greg Gumbel, Iconic Voice and Comforting ...

17/11/2025

ESPN, Pixar, the NFL, and Beyond Sports Team Up for ESPN's Dec. 8 Monsters, Inc.' MNF' Altcast Effort

ESPN, Pixar, the NFL, and Beyond Sports Team Up for ESPN's Dec. 8 Monsters,...

17/11/2025

SVG Sit-Down: EA SPORTS' Evan Dexter on How the EA SPORTS Madden NFL Cast' Blends Gaming and Live NFL Production

SVG Sit-Down: EA SPORTS' Evan Dexter on How the EA SPORTS Madden NFL Cast&#...

17/11/2025

Cast your votes and sail into 2026 with the return of SBS's the Chillest 100

Cast your votes and sail into 2026 with the return of SBS's the Chillest 100 17 November, 2025 Media releases Voting is now open for Australia's ul...

17/11/2025

Building a unified, secure localisation operating model with Blue Lucy

When VSI Group, one of the world's leading localisation providers, set out to modernise its complex, multi-site operations built through years of acquisitio...

17/11/2025

Sinclair Acquires 8% Stake in E.W. Scripps

Dealmaking for broadcast stations continues to heat up, with Sinclair reporting it has built up a 8.2% stake in E.W. Scripps and has been talking with Scripps f...

17/11/2025

ITU: 6 Billion Now Online Globally

The worlds online population grew by more than 240 million people in 2025, according to Facts and Figures 2025 released today by the International Telecommunica...

17/11/2025

ASB GlassFloor Launches an Elite Training Facility in Par...

ASB GlassFloor, the leading provider in LED sports flooring, today announced the opening of Athletes Lab 2.0, a premier athletic training facility designed to e...

17/11/2025

SmallHD Unlocks Camera Control for Canon

SmallHD today announced the release of its popular Camera Control for Canon cinema cameras. This new integration enables filmmakers to adjust critical camera se...

17/11/2025

Matthews Helps Samuel and Sons Bring Luxury Trim to Life...

Luxury is in the details, and no one captures that better than the creative team at Samuel & Sons. As the visionaries behind iconic photography and advertising ...

17/11/2025

One Giant Leap for AI Physics: NVIDIA Apollo Unveiled as Open Model Family for Scientific Simulation

NVIDIA Apollo - a family of open models for accelerating industrial and computat...

17/11/2025

NVIDIA Accelerated Computing Enables Scientific Breakthroughs for Materials Discovery

To power future technologies including liquid-cooled data centers, high-resoluti...

17/11/2025

Accelerated Computing, Networking Drive Supercomputing in Age of AI

At SC25, NVIDIA unveiled advances across NVIDIA BlueField DPUs, next-generation networking, quantum computing, national research, AI physics and more - as accel...

17/11/2025

NVIDIA Accelerates AI for Over 80 New Science Systems Worldwide

Across quantum physics, digital biology and climate research, the world's researchers are harnessing a universal scientific instrument to chart new frontier...

17/11/2025

The Great Flip: How Accelerated Computing Redefined Scientific Systems - and What Comes Next

It used to be that computing power trickled down from hulking supercomputers to ...

17/11/2025

VEON Commences USD 100 million Buyback Program

17 Nov 2025 VEON Commences USD 100 million Buyback Program Dubai, November 17, 2025: VEON Ltd. (Nasdaq: VEON), a global digital operator ( VEON or the Compan...

17/11/2025

Sky brings top comedy talent to screens with new stand-up specials

Monday 17 November 2025 Sky brings top comedy talent to screens with new stand-up specials Sky and streaming service NOW are bringing audiences a fresh dose o...

16/11/2025

Viper Shield Advances Production for Global F-16 Fleet

L3Harris to deliver advanced electronic warfare systems quickly for worldwide F-16 programs...

16/11/2025

Symphony MKII TB2 to TB3 Self Install Guide

Upgrading your Apogee Symphony MKII from TB2 to TB3: Need to Knows Upgrading your Apogee interface to Thunderbolt 3 isn't difficult - but it's not a cas...

16/11/2025

Apogee Electronics Acquired by Dirk Ulrich's Rockforce Tech Holding, Parent Company of Manley Labs

Apogee Electronics Acquired by Dirk Ulrich's Rockforce Tech Holding, Parent ...

15/11/2025

Disney, YouTube TV Reach Multi-Year Distribution Deal

BURBANK, Calif. The Walt Disney Company and YouTube TV have reached a new multi-year distribution agreement, ending a carriage dispute that had blacked out ABC,...

15/11/2025

ATSC 3.0 Interop Puts NextGen TV's Advanced Features in the Crosshairs

PLYMOUTH, Wis. A group of about 20 TV technology vendors supporting NextGen TV are wrapping up their ATSC 3.0 Interop here at Heartland Video Systems headquarte...

15/11/2025

NBCUniversal to Launch NBC Sports Network on Nov. 17

NEW YORK NBCUniversal has announced that it will be launching NBC Sports Network (NBCSN), a 24/7 linear network featuring a wide range of marquee sporting event...