https://github.com/nothans/thingspeak-powershell-examples
Send data to ThingSpeak from a Windows PowerShell Script
https://github.com/nothans/thingspeak-powershell-examples
iot powershell powershell-script thingspeak
Last synced: 9 months ago
JSON representation
Send data to ThingSpeak from a Windows PowerShell Script
- Host: GitHub
- URL: https://github.com/nothans/thingspeak-powershell-examples
- Owner: nothans
- License: bsd-2-clause
- Created: 2015-03-11T16:08:17.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-08-17T15:25:33.000Z (over 4 years ago)
- Last Synced: 2025-03-31T02:34:12.315Z (10 months ago)
- Topics: iot, powershell, powershell-script, thingspeak
- Language: PowerShell
- Homepage:
- Size: 3.91 KB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ThingSpeak-PowerShell
Send data to ThingSpeak from a Windows PowerShell Script
## Getting Started with ThingSpeak
[ThingSpeak](https://thingspeak.com) is an open source **Internet of Things** application and API to store and retrieve data from anything using HTTP over the Internet or via a Local Area Network.
### Sign Up for ThingSpeak
* Sign Up for New User Account - [https://thingspeak.com/login](https://thingspeak.com/login)
* Create a new Channel by selecting _Channels_, _My Channels_, and then _New Channel_
* Copy and save the ThingSpeak Write API Key and enter it into the PowerShell Script
## freespace.ps1
When this script executes, _[freespace.ps1](/freespace.ps1)_ will report the free space of the disk drive to a ThingSpeak Channel.
### Script Notes:
* Place the _freespace.ps1_ Windows PowerShell script on your desktop computer / server
* Make sure you set the correct drive letter, such as "C:" or "D:"
* Make sure to enter your ThingSpeak Wite API Key for your Channel
## Resources
The following links were helpful in creating and implementing my PowerShell scripts:
* [How to Write Your First Powershell Script](http://www.adminarsenal.com/admin-arsenal-blog/powershell-how-to-write-your-first-powershell-script)
* [Execute PowerShell Script Using Windows Task Scheduler](http://stackoverflow.com/questions/23953926/how-to-execute-a-powershell-script-automatically-using-windows-task-scheduler)