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

Europe Stories

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

18/09/2026

ReSing Voices Vol 2 from IK Multimedia

10 new voice models join line-up The latest expansion for IK Multimedia's AI-powered vocal-modelling software has arrived, delivering a set of 10 new vo...

18/09/2026

Museum of Synthesizers present the Arturia World Tour

A day of hands-on synthesis, sound design & performance On Saturday 26 September 2026, The Museum of Synthesisers will be hosting a full day of hands-on syn...

18/09/2026

AgileTV wraps up IBC 2026 with two industry awards

AgileTV has successfully wrapped up its participation at IBC 2026 in Amsterdam, following four days of conversations with customers, partners and industry profe...

18/09/2026

aconnic AG invites to a Virtual Investor Conference

aconnic AG (ISIN: DE000A0LBKW6), Munich, invites its shareholders and investors to a Virtual Investor Conference on Tuesday, September 29th, 2026, at 11.00 am. ...

18/09/2026

The new iPhone 18 Pro, iPhone 18 Pro Max, Apple Watch Series 12, and AirPods 5 now available to buy on Sky Mobiles award-winning network

Friday 18 September 2026 The new iPhone 18 Pro, iPhone 18 Pro Max, Apple Watch ...

17/09/2026

Image-Line & Antares reveal AutoTune Go

Popular DAW gains free pitch-correction tool Image-Line have teamed up with Antares to kit their popular DAW software out with a built-in pitch-correction p...

17/09/2026

Gibson & Baggs unveil HiFi DNA pickup

Promises unprecedented realism, dynamic nuance and clarity Gibson have teamed up with acoustic pickup experts Baggs, creating a next-generation' pickup...

17/09/2026

VSL introduce Synchron Cimbalom & World Percussion II

Two new libraries join percussion line-up VSL (Vienna Symphonic Library) have just launched two new libraries that bring some intriguing new instruments int...

17/09/2026

Arturia update the MiniFreak

Hardware & plug-in versions gain new features Arturia have just released a free update that brings some significant new features to their MiniFreak synthesi...

17/09/2026

5 Reasons to Join Calrec at IBC

Calrec brings leading audio solutions and long-term business value to IBC 2026 We're looking forward to meeting up with you all on 11-14th September in Amst...

17/09/2026

New series of Aistear an Amhrin shares extraordinary stories behind Ireland's best-loved songs

New series of Aistear an Amhr in shares extraordinary stories behind Ireland'...

17/09/2026

The Late Late Show is back! Guests include Liam Neeson, Siobhn McSweeney and the All-Ireland-winning Mayo team

The Late Late Show is back! Liam Neeson, Siobh n McSweeney, Caitr ona Balfe a...

17/09/2026

The Neighbours Effect: Gen Z Brings Back Big Hair, Double Denim and 80s soap style

The Neighbours Effect: Gen Z Brings Back Big Hair, Double Denim and 80s soap sty...

17/09/2026

Official trailer released for Sky Original WAR

The bold, new legal drama starring Dominic West and Sienna Miller launches on Sky and NOW on 2nd OctThursday 17 September 2026 Official trailer released for Sk...

17/09/2026

AI safety needs more than rules. It needs evidence

Every week we read headlines about new threats from AI. From taking over jobs to disrupting critical infrastructure, spreading misinformation or even destroying...

17/09/2026

Arqiva selected by SANZAAR to deliver global distribution of 2026 international rugby programme

Arqiva selected by SANZAAR to deliver global distribution of 2026 international ...

17/09/2026

Widow\u2019s Bay triumphs as most decorated freshman comedy in Emmy history - PRESS RELEASE - Posted on 15 September 2026

CULVER CITY, CALIFORNIA This evening at the 78th Primetime Emmy Awards, Apple TV...

17/09/2026

RT Statement: 2027 Eurovision Song Contest

RT Statement: RT is today confirming that its position regarding participation in the Eurovision Song Contest remains unchanged. RT will not participate in...

16/09/2026

Wavea release Flite V2

Powerful soft synth receives free update Wavea have just launched a new and improved version of their feature-packed soft synth, kitting it out with over 20...

16/09/2026

Modartt launch Airteq

Physical-modelling experts launch pipe-based instrument Modartt are well known for their impressive Pianoteq and Organteq offerings, and now, they've pu...

16/09/2026

FL Studio & Antares launch AutoTune Go

Popular DAW gains free pitch-correction tool Image-Line have teamed up with Antares to kit their popular DAW software out with a built-in pitch-correction p...

16/09/2026

Microwave Factory and Rohde & Schwarz enable automated SAR measurements with CMX500 support in MATEOS

Microwave Factory and Rohde & Schwarz enable automated SAR measurements with CMX...

16/09/2026

Rohde & Schwarz launches new security scanner for large events at Security Expo 2026

Rohde & Schwarz launches new security scanner for large events at Security Expo ...

16/09/2026

Red Seat Ventures Announces Exclusive Partnership with Caleb Hammer's Financial Audit

Red Seat Ventures Announces Exclusive Partnership with Caleb Hammer's Financ...

16/09/2026

Garda whistleblowers come forward to RT Investigates from inside the Garda Protect Disclosures Office

Garda whistleblowers come forward to RT Investigates from inside the Garda Pr...

15/09/2026

Audient unveil flagship Horizon interfaces

New Thunderbolt audio interfaces aimed at pro studios Audient's latest announcement sees the company introduce three new high-end audio interfaces desig...

15/09/2026

Sennheiser launch the Spectera SKM handheld

Completes core wireless system line-up The latest addition to Sennheiser's Spectera range is now shipping, completing the core elements of the company&#...

15/09/2026

Schwabe Digital reveal HiFAL 2

High-frequency dynamics plug-in upgraded Schwabe Digital have just released a major free update for their acclaimed high-frequency dynamics processing plug-...

15/09/2026

LUNA 3.0 & UAD Spark Studio from Universal Audio

DAW update launched alongside all-in-one subscription bundle The latest version of Universal Audio's DAW software has just arrived, and has been release...

15/09/2026

Rupert Neve Designs introduce three plug-ins

Three popular hardware units go virtual Rupert Neve Designs are entering the software market in style, with not one, but three of their sought-after hardwar...

15/09/2026

Argo M Powers Cloudbass' Next Generation OB Fleet

When longstanding OB specialist Cloudbass made the decision to expand its fleet to accommodate remote production facilities for a leading UK sports broadcaster&...

15/09/2026

DPA's 6388 wins Best of Show Award at IBC2026

Unveiled at IBC2026 in Amsterdam, the 6388 delivers DPAs signature natural, authentic sound, with outstanding feedback rejection and exceptional speech intellig...

15/09/2026

Red Seat Ventures' Supercast Launches Live Streaming, Bringing Real-Time Video and Community to Subscribers

Red Seat Ventures' Supercast Launches Live Streaming, Bringing Real-Time Vid...

15/09/2026

Arqiva recognised with Armed Forces Covenant Silver Award

Arqiva recognised with Armed Forces Covenant Silver AwardPresented to organisations that demonstrate outstanding support for the Armed Forces community -- Sh...

14/09/2026

Sony expand WH headphone line-up

Three new models introduced Sony have just announced the launch of three new pairs of headphones that span their premium, mid-range and entry-level line-ups...

14/09/2026

Audient unveil Horizon interfaces

New flagship Thunderbolt units aimed at pro studios Audient's latest announcement sees the company introduce three new high-end audio interfaces designe...

14/09/2026

Inside DPA's N-Series at IBC2026: Wireless audio without compromise

At IBC2026, Ren M rch explains how the N-Series combines DPA's renowned microphone technology with a high-performance wireless platform, offering a wide tu...

14/09/2026

Award-winning network Sky Mobile to Offer iPhone Duo, iPhone 18 Pro, iPhone 18 Pro Max, Apple Watch Series 12, and AirPods 5

Monday 14 September 2026 Award-winning network Sky Mobile to Offer iPhone Duo, ...

14/09/2026

Major updates for Apple\u2019s software platforms are now\u00A0available - UPDATE - Posted on 14 September 2026

Apple's latest software updates introduce Siri AI, a more intelligent, knowl...

14/09/2026

First look image of The Walsh Sisters series two released

RT in association with the BBC today released first look image from the second series of The Walsh Sisters, inspired by the novels of international best-sellin...

13/09/2026

Elektron reveal the Outbox 8

Offers eight audio and CV outputs via USB Elektron's latest launch offers a convenient way for users to integrate hardware instruments, effects and mixe...

13/09/2026

SES's Final Three O3b mPOWER Satellites Successfully Launched

Luxembourg, September 13, 2026 - SES today announced the successful launch of its eleventh, twelfth and thirteenth O3b mPOWER satellites, further expanding its ...

13/09/2026

Sky releases trailer for Crystal Lake, an A24 produced prequel series to Friday the 13th, coming this October

Sunday 13 September 2026 Sky releases trailer for Crystal Lake, an A24 produced...

12/09/2026

Transformer Boost from Great Eastern FX Co.

Latest Obsolete Devices pedal announced Great Eastern FX Co. have just launched the latest pedal in their Obsolete Devices series, a range of effects pedals...

12/09/2026

Colorfront And Qumulo Team-Up To Make Every Frame Of Footage Searchable For The Life Of A Production

September 11, 2026 BUDAPEST & SEATTLE, 10 September 2026 - Qumulo and Colorfron...

12/09/2026

New Type RT console and Apex M6 Modular I/O Platform

Calrec expands its IP ecosystem with new Type RT console and Apex M6 Modular I/O Platform at IBC 2026 Type RT is the centrepiece of Calrec's news at IBC 202...

11/09/2026

Positive Grid announce the Spark Pedal

Spark series gains compact modelling stompbox Positive Grid's Spark amps have become a popular part of the company's line-up, offering a convenient ...