Git Product home page Git Product logo

nowcastnotify's Introduction

Show-Nowcast

This command creates a NotifyIcon which displays the current nowcast from Nate Silver/ESPN's fivethirtyeight.com

538

By default, the NotifyIcon will poll fivethirtyeight.com every 10 minutes and displays a popup if (and only if) there is a change in percentage.

You can change the default polling by specifying -Interval (in minutes).

If you click on the icon, it will bring you directly to the fivethirtyeight nowcast page.

I also compiled the script into an .exe if you're interested. Check the .bin directory.

Screenshots

When you start the command from PowerShell, you get a lil splash screenshots/executable

starting

Then, the PowerShell window will disappear and you'll see a toast popup telling you the current nowcast.

initialpopup

If you hoover over at any time, you can be reminded of the nowcast.

hoover

Was there a change in percentage in the last 10 minutes? The popup will let you know!

changepopup

Examples

This is a script so just run it like a script (.\Show-NowCast or .\Show-NowCast.ps1). Note that the PowerShell window will disappear but the PowerShell process will still be running.

.\Show-NowCast

The above example creates a popup to which displays the current election nowcast for the President of the United States. Note that the PowerShell window will disappear.

Checks fivethirtyeight.com every 10 minutes and displays a popup if (and only if) there is a change in percentage.

.\Show-NowCast -Interval 60

The above example creates a popup to which displays the current election nowcast for the President of the United States. Note that the PowerShell window will disappear.

Checks fivethirtyeight.com every 60 minutes and displays a popup if (and only if) there is a change in percentage.

.\Show-NowCast -Verbose -ShowWindow

The above example keeps the PowerShell window open and shows what is happening in the background

To Quit

Right click, Exit

Bonus

Don't want to execute PowerShell? Whatever, here's an exe compiled directly from the ps1 using PowerShell Studio.

executable

nowcastnotify's People

Contributors

potatoqualitee avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.