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 ...

09/10/2026

Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026

September 10 2026, 06:00 (PDT) Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026 New Sports Intelligence helps providers better unders...

07/10/2026

Dalet Flex LTS Delivers Smarter Media Operations from Ingest to Distribution

Dalet, a leading technology and service provider for media-rich organizations, today announced the latest Long-Term Supported (LTS) release of Dalet Flex. Build...

01/10/2026

AWS Elemental Dynamic Multiview Powers New Live Multiview Channels in Big Blue Marbles Cloud Video Kit

Big Blue Marble has announced the addition of live multiview channels to its Clo...

01/10/2026

SVG Sit-Down: Kieran Kunhya of Open Broadcast Systems on the Power of De-Centralized Production

The company CEO sees AI as a tool in speeding and enhancing product development ...

01/10/2026

USA Sports Looks To Set a New Standard' for WNBA Playoffs Coverage Ahead of Fever-Aces Showdown Tonight

Production, tech, crewing, and logistics teams draw on experience of a busy inau...

01/10/2026

Merrell and Sundance Collab Announce Three-Year Global Storytelling Program and 2027 Sundance Film Festival Partnership

The Partnership Will Support Filmmakers Worldwide Through Original Short Films I...

01/10/2026

Phoenix from Spitfire Audio & BT

Third collaboration with celebrated composer Spitfire Audio have once again teamed up with Grammy-nominated composer, producer and technologist BT, creating...

01/10/2026

Novation launch the FLpad

FL Studio gets dedicated grid controller Novation have teamed up with FL Studio developers Image-Line to create another dedicated controller for the popular...

01/10/2026

Volt Gen 2 & Volt Max interfaces from Universal Audio

Six new USB interfaces introduced Universal Audio's USB audio interface line-up has just been refreshed, gaining six new models aimed at musicians, prod...

01/10/2026

Siretta SNYPER-5G Shortlisted for the IoT Global Awards 2026

Siretta's SNYPER-5G cellular network analyser has been shortlisted for the IoT Global Awards 2026. The IoT Global Awards recognise products, services and o...

01/10/2026

Press Release: South Africa Announces Variasies op 'n Tema/Variations on a Theme as Official Selection for the 99th Annual Academy Awards

Johannesburg, South Africa, 30 September 2026 - The National Film and Video Foun...

01/10/2026

Mesh Broadcast Services and Argo M - A Perfect Fit

Mesh Broadcast Services Fits Big-Truck Audio Power into Compact Eclipse Unit with Calrec Argo M Canadian OB company Mesh Broadcast Services has fitted its Eclip...

01/10/2026

Mediaproxy Brings AI Monitoring, Web-Based Multiviewing to NAB Show New York

Share Copy link Facebook X Linkedin Bluesky Email...

01/10/2026

Disguise brings the software behind the worlds biggest st...

For more than two decades, Disguise has powered some of the most ambitious live events and experiences in the world from Bad Bunny and Coachella to the Burj K...

01/10/2026

New California Law Offers Tax Credits For Hiring Local Journalists

Share Copy link Facebook X Linkedin Bluesky Email...

01/10/2026

State Broadcasters Want the FCC to Ease Into Software-Based EAS

Share Copy link Facebook X Linkedin Bluesky Email...

01/10/2026

Multiscreen TV Ad Campaigns Double Incremental Return On Ad Spend, Says Comcast

Share Copy link Facebook X Linkedin Bluesky Email...

01/10/2026

Scripps Calls Dish's Removal of WTVQ a Clear Violation' of Recent Agreement

Share Copy link Facebook X Linkedin Bluesky Email...

01/10/2026

Slovenian Broadcaster Taps Synamedia for Local Ads on Its International Channels

Share Copy link Facebook X Linkedin Bluesky Email...

01/10/2026

Viz Libero Teams brings 3D analysis to Richmond AFL coach...

The Australian football team can turn match footage into tactical insights to improve performance and maximize fan engagement Vizrt, the AI platform for visual...

01/10/2026

Mesh Broadcast Services Fits Big-Truck Audio Power into C...

When Mesh Broadcast Services set out to fit the pro audio capability of a large TV truck into a small audio room for high-profile sports events, Calrecs Argo M ...

01/10/2026

Emergent Appoints Tom Shelburne as Head of Business Devel...

Emergent, the browser-native broadcast graphics platform, today announced the appointment of Tom Shelburne as Head of Business Development, North America, effec...

01/10/2026

Mediaproxy brings AI driven monitoring and browser based...

Melbourne, Australia 1 October 2026: Mediaproxy, the global standard for software-based IP compliance monitoring and multiviewing solutions, will showcase maj...

01/10/2026

Clear-Com Arcadia Central Station Brings Professional Pr...

Clear-Com is supporting the education and development of future audiovisual industry professionals in Poland through the deployment of its Arcadia Central Sta...

01/10/2026

Telefonica equips new TSAmediaHUB monitoring room with Al...

Telef nica Servicios Audiovisuales (TSA), the audiovisual services arm of global telecommunications group Telef nica, has supplied and commissioned an LED wall ...

01/10/2026

FCC Unleashes Spectrum Abundance for New Uses

Share Copy link Facebook X Linkedin Bluesky Email...

01/10/2026

Poll: Alabamans Favor PBS Support, but Many Question Its Political Leanings

Share Copy link Facebook X Linkedin Bluesky Email...

01/10/2026

California Governor Signs Community NEWS Act

Share Copy link Facebook X Linkedin Bluesky Email...

01/10/2026

Green Hippo Estuary Series MC1 and MC2 Media Controllers...

Eleven minutes between headliners. The sponsor loop needs to be on screen now, and the only operator on hand is the one running lights. With the Green Hippo Est...

01/10/2026

DigiBox announces partnership with FOR-A for UK and Europ...

DigiBox has announced a new partnership with FOR-A to represent the innovative MixBoard product range in the UK market, further expanding its portfolio of broa...

01/10/2026

Screen Australia-funded documentaries bring Australian experiences and new perspectives to the screen

Screen Australia-funded documentaries bring Australian experiences and new persp...

01/10/2026

Mavis Camera 8.2 adds iPhone 18 Pro support with variable aperture control

Mavis Camera 8.2 adds iPhone 18 Pro support with variable aperture control Brie Clayton September 30, 2026 0 Comments Latest release also introduces P...

01/10/2026

Ghosts of the Gold Rush Shot with PYXIS 6K

Ghosts of the Gold Rush Shot with PYXIS 6K Brie Clayton September 30, 2026 0 Comments Blackmagic Design cameras expertly capture documentary while del...

01/10/2026

RE:Vision Effects - RSMB V7 is here!

RE:Vision Effects - RSMB V7 is here! Lori Freitag September 30, 2026 0 Comments ReelSmart Motion Blur 7 is here, the RSMB V7 cycle is open. ReelSmart ...

01/10/2026

VideoGen raises $3.3M seed as its AI video platform passes 5 million users

VideoGen raises $3.3M seed as its AI video platform passes 5 million users Brie Clayton September 30, 2026 0 Comments VideoGen co-founders Anton Koeni...

01/10/2026

Fullsteam Brewery Opens Its Durham Forever Home at American Tobacco Campus

New taproom, restaurant, lounge and theater in the historic Power Plant add to ATC's growing social hub Fullsteam Brewery and CBC Real Estate celebrate th...

01/10/2026

Berklee and APM Music Launch Global Catalog Bringing Student-Created Music to Film, TV, and Beyond

Berklee and APM Music Launch Global Catalog Bringing Student-Created Music to Fi...

01/10/2026

X-Rite Pantone Launches Spectura to Advance Connected Color Quality from Lab to Production

X-Rite Pantone Launches Spectura to Advance Connected Color Quality from Lab to ...

01/10/2026

ITVX AND WARNER BROS. DISCOVERY ANNOUNCE NEW BRANDED CONTENT PARTNERSHIP

ITVX AND WARNER BROS. DISCOVERY ANNOUNCE NEW BRANDED CONTENT PARTNERSHIP QUEST TLC Under a new branded content partnership between Warner Bros. Disco...

01/10/2026

Fall Savings on Our Flagship Ivory 3 Pianos

Save $50 on Ivory 3 American Concert D and German DThis fall, bring the sound and expressive character of two world-class concert grands into your studio with s...

01/10/2026

Nominees revealed for 2026 Sky Arts Awards

Thursday 1 October 2026 Nominees revealed for 2026 Sky Arts Awards Current slide, 0 0, undefined1 0 Irish National Opera and Jennifer Walshe: MARS Jacob Al...

01/10/2026

Vital TV antenna replaced at Sudbury

Vital TV antenna replaced at SudburyHelicopter and broadcast engineers work together to upgrade TV services for 1.5M in the East -- Share to Linkedin Octobe...

01/10/2026

Arqiva appoints Simon Duffy as Chair

Arqiva appoints Simon Duffy as ChairSimon Duffy joins as Chair effective 01 October 2026 -- Share to Linkedin October 1, 2026 Press Office 01 October 2026...

01/10/2026

The Boys are Back! The 2 Johnnies Late Night Lock In returns for Season 4

Season 4 of the multi-award-winning hit entertainment series The 2 Johnnies Late Night Lock In is back, serving up another round of unpredictable laughs, unforg...

01/10/2026

RT lyric fm's award-winning The Lyric Feature returns for new autumn series

New season begins Sunday, 4 October at 6pm on RT lyric fm and RT Listen RT lyric fm's arts and culture documentary series The Lyric Feature returns on S...

01/10/2026

RT Supporting the Arts is supporting 32 cultural events nationwide this October

RT is proud to continue its commitment to supporting and celebrating the arts across Ireland this October, highlighting a vibrant programme of theatre, music, ...

01/10/2026

Productive, Durable, Fungible: How NVIDIA AI Factories Maximize Return on Investment

AI factories are built by the megawatt, even by the gigawatt. Each megawatt fact...

01/10/2026

Fall Into 25 New Games on GeForce NOW This October

Spooky season is streaming in. Alongside falling leaves, pumpkin spice and everything nice, 25 new games are joining GeForce NOW throughout October, including s...