r/PowerShell • • Apr 13 '18

PowerShell IoT is now open source

https://github.com/PowerShell/PowerShell-IoT
135 Upvotes

17 comments sorted by

9

u/frumpa_awesome Apr 14 '18

A member of the Microsoft PowerShell team did a (short) Lightning Demo on stage at the PowerShell Summit on Monday, controlling a lamp and collecting reads from a temperature sensor using a Raspberry Pi. Cool stuff

12

u/SeeminglyScience Apr 14 '18 edited Apr 14 '18

psst, that's op (edit: okay maybe not)

6

u/tylerl0706 Apr 14 '18

Actually Andrew gave the demo that time 😉 I did VSCode 👍

3

u/jhulbe Apr 14 '18

I keep trying to use vscode over ise but it always gives me trouble. Yesterday it just stopped wanting to run code in my console by hitting f8.

Is there a starter user settings file somewhere you suggest for developing PowerShell in vscode?

3

u/tylerl0706 Apr 14 '18

The default configuration is the way to go.

You know, that's the first time I heard about this issue.

Can you do me a favor and open an issue so that I can better diagnose your issue? Steps here: https://github.com/powershell/vscode-powershell#reporting-problems

You can also open the command pallet and type "Bug" and select the PowerShell open a bug in Github option that will pre-fill a lot of stuff.

You'll still need to attach the logs.

Sorry you're having trouble! I'll try to help :)

1

u/jhulbe Apr 16 '18

I don't even know enough about it to determine what is wrong to report a bug.

I think it's my keybindings.json, it just says this:

{ "key": "f8",                    "command": "editor.action.marker.next",
                                     "when": "editorFocus && !editorReadonly" },

1

u/tylerl0706 Apr 16 '18

Is this something you added or it was like that already?

1

u/jhulbe Apr 16 '18

That was just in the keybindings. I saw something online that said delete all keybindings and let the powershell extension take over. I tried that with no results. So I restored the keybindings.json

I just tried uninstalling and reinstalling vscode and the extensions., no luck.

1

u/tylerl0706 Apr 17 '18

2

u/jhulbe Apr 17 '18

I figured it out yesterday afternoon, i'm just an idiot.

It's an old habit that I name my files .txt while they're in testing, so I know it's something I'm working on. ISE lets me still F8 these and run sections to test. It's an old habit that has carried over from just pushing out .bat and .cmd files in notepad and saving them as .txt first. Then downloading .ps1 files off the internet and saving them as .txt first so I dont accidentally run them.

VScode does not treat the .txt files the same.

I switched over to an old script and it ran just fine. Then I realized the intellisense colors and formatting were all there, then i realized it's the file format of .ps1 vs .txt

Thanks for the help. Guess this habit dies now.

→ More replies (0)

11

u/IamNabil Apr 14 '18

Hmm. I2C? So I can monitor the temperature of my chicken coop using powershell?

10

u/packetheavy Apr 14 '18

Not sure if you're joking or being serious but a hot chicken house is a major problem you wouldn't definitely want to know about ASAP as it can affect your yields.

Gotta keep the birds happy.

6

u/IamNabil Apr 14 '18

Not joking. That said, I have the opposite problem. It's routinely -30 here in the winter.

4

u/Soverance Apr 13 '18

this is amazing - now i need an IoT project.

2

u/yeah_i_got_skills Apr 13 '18

Looks so good. :D