{"id":16480762,"url":"https://github.com/heyitsgilbert/psmotd","last_synced_at":"2026-04-17T03:35:01.560Z","repository":{"id":235405833,"uuid":"790552444","full_name":"HeyItsGilbert/PSMotd","owner":"HeyItsGilbert","description":"A Message of the Day (MOTD) for your PowerShell profile.","archived":false,"fork":false,"pushed_at":"2024-12-23T00:29:45.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T20:42:54.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HeyItsGilbert.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"HeyItsGilbert"}},"created_at":"2024-04-23T05:00:22.000Z","updated_at":"2024-12-23T00:29:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"142de268-11cb-4b52-909b-a28562afa05a","html_url":"https://github.com/HeyItsGilbert/PSMotd","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"52fbf50fe000d97255640bda5ccf621b1fc5ab9d"},"previous_names":["heyitsgilbert/psmotd"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HeyItsGilbert/PSMotd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeyItsGilbert%2FPSMotd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeyItsGilbert%2FPSMotd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeyItsGilbert%2FPSMotd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeyItsGilbert%2FPSMotd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HeyItsGilbert","download_url":"https://codeload.github.com/HeyItsGilbert/PSMotd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeyItsGilbert%2FPSMotd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31913743,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T13:05:14.282Z","updated_at":"2026-04-17T03:35:01.521Z","avatar_url":"https://github.com/HeyItsGilbert.png","language":"PowerShell","funding_links":["https://github.com/sponsors/HeyItsGilbert"],"categories":[],"sub_categories":[],"readme":"# PSMotd\r\n\r\nA Message of the Day (MOTD) for your PowerShell profile.\r\n\r\n## Overview\r\n\r\nThis module allows you to write a function in your profile and call it a cadence\r\nthat you prefer. This is commonly something you want on first login or maybe\r\nonce a day.\r\n\r\n## Installation\r\n\r\n```powershell\r\nInstall-Module PSMotd\r\n```\r\n\r\n## Examples\r\n\r\nAn example of printing weather alerts in CA by defining a function called\r\n`Get-MessageOfTheDay`. When the module is loaded it will determine if it should\r\nrun the function in your prompt.\r\n\r\n```powershell\r\nfunction Get-MessageOfTheDay {\r\n  $weatherAlerts = Invoke-RestMethod \"https://api.weather.gov/alerts/active?area=CA\"\r\n  if($weatherAlerts.features){\r\n    Write-Host \"Weather Alerts in California 🌤️\"\r\n    $weatherAlerts.Features | ForEach-Object{\r\n        Write-Host \"== $($_.headline) ==\"\r\n        Write-Host \"Severity: $($_.severity)\"\r\n        Write-Host \"Description: $($_.description)\"\r\n    }\r\n  }\r\n}\r\nImport-Module PSMotd\r\nGet-Motd\r\n```\r\n\r\nBy default the MOTD will be print once a day. You can set your environment\r\nvariable to any of the following: 'Never', 'EverySession', 'Daily', 'Weekly'\r\n\r\n## Configuration\r\n\r\nConfigurations can be seen via `Get-MOTDConfig` and updated with\r\n`Set-MOTDConfig`.\r\n\r\nYou can set your MOTD frequency by running:\r\n\r\n```powershell\r\n\r\n```\r\n\r\n## Shout Out\r\n\r\nThis is mostly a copy paste of DeadlyDog's tiPS module. It is a way more robust\r\nframework, you should go and try it and buy him a bagel.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyitsgilbert%2Fpsmotd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheyitsgilbert%2Fpsmotd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyitsgilbert%2Fpsmotd/lists"}