
Most retail digital signage still runs on a fixed loop. Someone books a promotion for the week, uploads it, and it plays whether the store is busy or quiet. Automated digital signage works the other way round: your own data decides what plays, and the screens follow on their own.
This post walks through one working example. A sales figure controls a promotion on every screen in a store:
Sales above a threshold: the promotion turns on across all tagged screens.
Sales below the threshold: the promotion turns off again.
No change needed: nothing is called and nothing is published.
No one opens the dashboard. The whole example is free and open source on GitHub: Digital Signage Sales-driven Promotions. It is a small Node.js app built on the EasySignage Open API and the official @easysignage/sdk package, with a simple web page so you can watch every API call as it happens.
A promotion that ignores what is happening in the store wastes screen time. When the shop floor is busy, a bundle offer or an upsell earns its place. When it is quiet, the same screen may be better spent on brand content, opening hours or a different message altogether.
Dynamic digital signage closes that gap. The data that already runs your business, such as point of sale totals, footfall counters, stock levels or the weather, can decide what plays. Some retail promotion ideas that work well with this pattern:
Show a bundle offer when basket size is high and hide it when it falls.
Push a flash sale for slow-moving stock and pull it the moment the stock is gone.
Run a happy hour offer only while foot traffic is below a target.
Promote cold drinks when the temperature passes 28°C.
The rule changes from one business to another. The building blocks stay the same, and this example shows them end to end.
Two tags connect everything:
promo on media: The images and videos that make up the promotion carry the tag promo. They sit in the playlist your screens already play and are disabled until the promotion runs.automation on screens: Every screen that should follow the rule carries the tag automation.When sales cross the threshold, the app makes two calls: it enables all media tagged promo, then publishes every screen tagged automation. When sales drop below it, it disables the promo media and publishes again.
| Sales value | What the app does | API calls |
|---|---|---|
| Above the threshold (default 100) | Turns the promotion on | media.enableByTag("promo"), then displays.publishByTag("automation") |
| Below the threshold | Turns the promotion off | media.disableByTag("promo"), then displays.publishByTag("automation") |
| Promotion already in the right state | Nothing | None |
Tags are labels you add to media and screens, and they make this work at any size. Give every promotion the promo tag and every store screen the automation tag. The app then turns all your promotions on or off at once and updates all your screens at once, whether you have one screen or three hundred. To add a new screen, just tag it in the dashboard. Nothing else needs to change.
Publishing is always the second step. Enabling or disabling media changes what is planned in your account; publishing sends that plan to the players. A screen that is offline at the time picks up the change when it reconnects.

The demo page has Sales drop and Sales pick up buttons, a box to type an exact number, and an Auto mode that moves sales up and down on its own. The API log on the right shows each SDK call, the HTTP route behind it and the response, which makes it easy to explain to a client or a store manager what is happening.
The core of the app is two calls. Everything else in the repository handles the details that matter in production.
import { EasySignage } from "@easysignage/sdk";
const client = new EasySignage(); // reads EASYSIGNAGE_API_KEY from the environment
async function setPromo(on: boolean) {
if (on) await client.media.enableByTag("promo");
else await client.media.disableByTag("promo");
await client.displays.publishByTag("automation"); // nothing changes on screen until you publish
}
The app around it adds what a real deployment needs:
It only calls the API when the state changes. Going from 150 to 160 makes no calls, so polling a sales system every few seconds will not flood the API.
Calls run one at a time. Fast changes can never send an enable and a disable out of order.
Problems are reported clearly, for example when no media carries the promo tag, no screen carries the screen tag, or the plan does not include publishing by tag.
The API key stays on the server. It lives in a local .env file, the browser page never sees it, and the server listens on 127.0.0.1 only.
The demo simulates sales so you can try it without touching a live system. To drive the promotion from your own data, call setSales() with the real number. A webhook from your point of sale or e-commerce platform is the simplest digital signage integration:
app.post("/webhooks/sales", async (req, res) => {
await setSales(Number(req.body.totalLastHour));
res.sendStatus(204);
});
You can also poll a reporting API on a timer. The same pattern works for any signal: weather, stock levels, footfall counters, queue length or the time of day. Pick a tag for the content, a tag for the screens, and a rule.
The README on GitHub has the full steps. In short:
Install it. You need Node.js 20.12 or newer. Clone the repository and run npm install.
Create an API key in the dashboard under Settings > API Keys, with the media, playlists and displays permissions. The API Keys help article shows each step.
Add the key to .env. Copy .env.example to .env and paste the key in. The file is ignored by git, so the key is never committed.
Tag your screens automation in the dashboard. A browser player is fine for testing.
Seed the demo content with npm run setup. It creates a “Sales demo” playlist, uploads three sample images (two tagged promo) and assigns the playlist to your tagged screens.
Run it with npm run dev and open http://localhost:3000.
Using your own content instead? Tag your promotional media promo in the dashboard, make sure your screens play a playlist that contains it, and skip step 5.
If you sell or install digital signage, data-driven promotions are an easy service to add to a retail deal. The client sees their screens react to their own numbers, and you own the integration that makes it happen.
The code is MIT licensed. Copy it, change the rule, rebrand the page and run it for clients, including in paid projects.
It works with white label accounts. If you run EasySignage under your own brand through the white label partner program, set EASYSIGNAGE_BASE_URL to your API host and nothing else changes.
One key per client account. Each API key belongs to one account and can be limited to the permissions the integration needs.
The same pattern repeats. Once a client has one rule running, adding another (weather, stock, opening hours) is a small change, not a new project.
An EasySignage Premium or Enterprise plan. API keys and publishing by tag are part of these plans; see pricing.
An API key with the media, playlists and displays permissions. The API Keys help article shows how to create one.
At least one screen in your account. Any EasySignage player works, including a browser player for testing.
Node.js 20.12 or newer on the machine or server that runs the app.
Automated digital signage is signage where content changes on its own, based on rules, schedules or data from other systems, instead of someone updating screens by hand. In this example the rule is a sales threshold, and the EasySignage Open API applies the change to every tagged screen.
Point of sale (POS) digital signage is a screen at or near the checkout that shows offers, upsells or information while customers pay. Connecting it to your POS data, as in this example, lets the offer change with what is actually selling.
You need someone comfortable running a Node.js app and connecting it to your data source. Creating the API key and tagging media and screens is done in the dashboard and takes a few clicks. The example is written to be read and changed, and the README covers every step.
No. The promotion sits in the playlist your screens already play. Enabling it adds it to the loop, and disabling it takes it out again. Everything else keeps playing.
They pick up the latest state the next time they connect. Publishing records the change in your account, and players fetch it when they are back online.
Yes. Tag the screens in every store automation, or give each store its own screen tag and run one copy of the app per store with its own threshold.
Yes. It is MIT licensed. You can use it, change it and include it in paid client work, as long as the license notice stays with the code.
API access is included with the Premium and Enterprise plans. Publishing by tag is part of those plans too.
Clone the Sales-driven Promotions repository, create an API key, and try it on a single test screen.
If you want to see what else the API can do, read How to Automate Digital Signage with EasySignage Open API, or try the companion example, Digital Signage Folder Sync, which keeps a playlist in step with a folder of files.