question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RFC: notification service for LuCI

See original GitHub issue

Currently LuCI notifies the user if no root user password is set. I imagine multiple other apps and running services have valuable status information to show on login, should we design a more flexible notification setup allowing “third party apps” to add banners?

Right now the password notification is awkwardly handled for each theme in header.htm, involving some Lua code. Instead e.g. a ubus service could return this information and show it dynamically in LuCI.

If it’s a framework other services may update a status periodically or on events and add notifications to the ubus daemon, e.g. “New sysupgrade availalbe”, “New device connected for the first time”, “Adblock list update available”, “No internet connection”, etc

Using ubus this could even be used by some trivial smartphone app to let users know certain things need attention.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
feckertcommented, May 4, 2021

@stangri Sorry I dragged this on myself now. But I have a urgend use case for this case and wanted to move on as quickly as possible. Besides, I have some time right now.

0reactions
feckertcommented, May 4, 2021

Wouldn’t the (re-)use of MQTT be the better solution - especially if you want to communicate with the outside world (apps etc.)?

@dibdot It sounds interesting, but for now I would start small. if we bring mqtt into the game, then we need other dependencies. Besides, I don’t think shell is suitable for that task then.

As an alternative, we could introduce a /etc/hotplug.d/notification, where scripts are stored that do something with the message. You could then trigger your mqtt handling. On every add of a notification via ubus.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Subscription to YANG Notifications, RFC 8639
Subscription to YANG Notifications (RFC 8639, September 2019)
Read more >
[OpenWrt Wiki] DDNS client
Directly updates a DNS server (Bind, PowerDNS, Knot) via nsupdate ( RFC 2136). ... Refresh the page and navigate to LuCI → Services...
Read more >
Untitled
Microsoft visio virtual server stencil, Eg11 bmw, Watch 7g rainbow colony full movie? ... Ezhaiyin sirippil full movie, Alert box in javascript css, ......
Read more >
6.2 Technical Notes Red Hat Enterprise Linux 6
luci will not function with Red Hat Enterprise Linux 5 clusters unless each ... If you see this test, your display server is...
Read more >
NYS Div. of Homeland Security & Emergency Services - Twitter
1. 12. NEWS: DHSES appoints Luci Labriola-Cuffe as Deputy State Fire Administrator, the first woman to serve as DSFA for the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found