Article 4ZE4X Xfce panel that displays Coronavirus script output?

Xfce panel that displays Coronavirus script output?

by
Framu
from LinuxQuestions.org on (#4ZE4X)
Hi all,

I've got limited time and I don't want to write my own Xfce panel. Therefore I just want an Xfce panel that will display the one-line text output of running a BASH script, updating it a couple times each day.

Does such a panel exist? Failing that, is there an X program that can display text output of a script on my desktop?

I would think someone has already thought of this special type of launcher whose output is put into the launcher's name.

What my BASH script does is this:

It fetches the JSON output from a Chinese source of Coronavirus pandemic statistics, then it parses the JSON using sed and prints the result. Mind you, I don't trust the official stats any more than the next person, what with there being so many eyewitness accounts of crematoria burning 200 bodies per day, but still it is novel to see stats about novel Coronavirus.

The source, in case you're interested, I extracted from this webpage:
https://xw.qq.com/act/qgfeiyan
...using Firefox's ability to list every access that a webpage makes, which let me identify the exact JSON source as:
https://view.inews.qq.com/g2/getOnsI...ww_global_vars

The script is a work in progress, because the parsing of JSON seems to not be a feature of BASH yet.latest?d=yIl2AUoC8zA latest?i=-cLMKcgPAIk:TB1kceQy5MI:F7zBnMy latest?i=-cLMKcgPAIk:TB1kceQy5MI:V_sGLiP latest?d=qj6IDK7rITs latest?i=-cLMKcgPAIk:TB1kceQy5MI:gIN9vFw-cLMKcgPAIk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments