Can I check for updates via CLI (bash script)?


Recommended Posts

I wrote a little bash script to interface with a MicroPython program on a Pi Pico with a 1602 LCD to display information, such as:
Unraid Version, Hostname/IP, UPS Status, Disk Space.

Video if interested (a link to my code is in the video description): 



I was wondering if there was a way to check for updates to Unraid via the CLI, so that I could incorporate a daily check into my script. 

  • Like 1
Link to comment
17 hours ago, zefie said:

I was wondering if there was a way to check for updates to Unraid via the CLI, so that I could incorporate a daily check into my script. 

There you go:

wget -qO- https://unraid-dl.sfo2.cdn.digitaloceanspaces.com/stable/releases.json | jq -r '.[0].name' | cut -d ' ' -f2

 

Of course make sure that you've go jq installed.

 

17 hours ago, zefie said:

I wrote a little bash script

I would also recommend that you link the bash script here, or even better post it here as a document. I don't know if everyone trusts links form a not know source.

  • Thanks 1
Link to comment
1 hour ago, ich777 said:

There you go:

wget -qO- https://unraid-dl.sfo2.cdn.digitaloceanspaces.com/stable/releases.json | jq -r '.[0].name' | cut -d ' ' -f2

 

Of course make sure that you've go jq installed.

 

Thanks!
 

1 hour ago, ich777 said:

 

I would also recommend that you link the bash script here, or even better post it here as a document. I don't know if everyone trusts links form a not know source.


The bash script on its own is useless without the customized Pico MicroPython code (included in the rar).
The bash script just sends data over the USB Serial port exposed by the Pico, with custom formatting I made up to handle stuff like moving the cursor on the LCD, clearing the LCD, etc.

Plus, I could do better at documenting what each part of the script does, but I kinda threw the release (and video) together in 30 min just to post this thread😅

  • Thanks 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.