Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/6945998f-2220-8000-9477-424a0c33133c
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== ### === You’ll land on Shortcuts → Shortcuts (yes, that’s the name now). Tap + (top right) Tap New Shortcut ===== Tap the name at the top → rename to: ===== OPM Status Watch Tap Done ===== Tap Add Action ===== You’ll see a big search box at the bottom. Type: <syntaxhighlight>Get Contents of URL </syntaxhighlight> Tap Get Contents of URL Now configure it: * URL → paste: ``<code> https://www.opm.gov/rss/operatingstatus.atom <syntaxhighlight>- Method → GET (If you don’t see Method, tap Show More) Leave everything else alone. ===== Tap Add Action ===== Search: </syntaxhighlight> Get Text from Input <syntaxhighlight> Tap Get Text from Input You should now see: : Good. Don’t change it. ===== Tap Add Action ===== Search: </syntaxhighlight> Get File <syntaxhighlight> Tap Get File Configure it: * File Path → tap and type: </syntaxhighlight> opm_last_status.txt <syntaxhighlight>- Location → Shortcuts * Ask Where to Save → OFF * If File Doesn’t Exist → Continue Shortcut ⚠️ That last option matters. The file won’t exist the first time. ===== Tap Add Action ===== Search: </syntaxhighlight> If <syntaxhighlight> Tap If Now configure the condition: * Left side: Text * Middle: is not * Right side: File It should read like: : === Everything from here goes inside the If block. === ===== Under the blue If section, tap Add Action ===== Search: </syntaxhighlight> Show Notification <syntaxhighlight> Tap it. Fill in: * Title: </syntaxhighlight> OPM Operating Status Changed <syntaxhighlight>- Body: </syntaxhighlight> Tap to check the new DC-area operating status. <syntaxhighlight> Leave “Play Sound” ON. ===== Still inside the If block, tap Add Action ===== Search: </syntaxhighlight> Save File <syntaxhighlight> Tap Save File Configure: * Input → Text * File Path: </syntaxhighlight> opm_last_status.txt </code>`` * Location → Shortcuts * Overwrite If File Exists → ON ===== You’ll see Otherwise under the If. ===== Leave it empty. That means “do nothing if unchanged.” ===== Your shortcut is built 🎉 ===== Don’t worry if it feels fragile — it’s not.
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)