Buying groceries with PowerShell

Yes, really, buying groceries can also be done with PowerShell!

How? Well, you need to find someone who sells groceries through a website, and can deliver them to your house.

The rest is just webrequests!

This is not only (but maybee mostly… 😉 ) made as a part of my weird quest for doing strange things with PowerShell, but also a small part of my home automation project. I’ll give you some usage examples:

  • Let’s say the weather-cmdlet posted earlier gives you reports about rain, wind and cold weather for the coming week, how about adding some popcorn to your basket and other things you want for a nice movie-night at home?
  • Your favorite TV show is ending next week, add those popcorns again!
  • If the weather looks nice… order some things needed for a picnic?
  • Connect it to your voice control made with powershell and ask it to, for example, “add milk” when you take the last one from the fridge.
  • An anniversary is coming up (I have written a cmdlet for checking this, post is coming!), let’s order flowers! (Romance is all about spontaeous things, right? 😉 )
  • Find an intelligent fridge with an ethernet/WiFi connection and… well… maybee not 😉

Alright… Nothing lifechanging… But it still shows how versatile PowerShell can be, which is sort of my main point with all this!

This is a small example of how it looks in action:
mathem

The code can be downloaded through this link. (updated at 2016-10-06)

Since it will only be useful for Swedish users who live in cities where this service is available, the rest of you can just look at it as sample code if you want to do something similar.

4 thoughts on “Buying groceries with PowerShell

  1. Pingback: Checking TV Show schedules with PowerShell | DollarUnderscore

  2. Pingback: Automate discount coupons with Azure Automation and Microsoft Flow | DollarUnderscore

  3. Lars Panzerbjrn

    That looks super handy… ^_^

    Shame that here in the UK, Sainsbury’s has a much more complicated site to use PowerShell against -__-

    Reply
    1. Anders Post author

      haha, I know! Who wouldn’t want to buy groceries from the shell, right?! 🙂

      Hopefully Sainsbury’s will get their act together and release an official PowerShell module soon 😉

      Glad you liked it, thanks for reading and commenting!

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *