PowerShell based cmdlets / Commands

Moderator: Telldus

Re: PowerShell based cmdlets / Commands

Postby c8h10n4o2 » Tue Aug 23, 2016 8:03 am

Masonit wrote:Hi

Since yesterday I get a certificate warning when running get-tdsensor. Never seen this before. Certificate is issued to *.ballou.se. Anyone else with the same problem? My powershell scripts isen't working correctly because of this.


\Masonit


Hmm... I'm getting the same error. It seems Telldus is moving some stuff around (like this forum), which could be the cause of this.

I'll look into to it as soon as a can!
c8h10n4o2
 
Posts: 45
Joined: Sun May 05, 2013 4:24 pm

Re: PowerShell based cmdlets / Commands

Postby c8h10n4o2 » Tue Aug 23, 2016 8:41 am

Updated version available!

Get it at:
https://github.com/AWahlqvist/powershel ... lldus.psm1


@Masonit: Could you verify if this version works for you? Thanks in advance!
c8h10n4o2
 
Posts: 45
Joined: Sun May 05, 2013 4:24 pm

Re: PowerShell based cmdlets / Commands

Postby Masonit » Tue Aug 23, 2016 10:40 am

Works just fine again. Thanks for quick response! :clap:

\Masonit
Masonit
 
Posts: 72
Joined: Sat Sep 22, 2012 9:08 pm

Re: PowerShell based cmdlets / Commands

Postby c8h10n4o2 » Tue Aug 23, 2016 10:44 am

Awesome! :D

Thanks for reporting the issue!
c8h10n4o2
 
Posts: 45
Joined: Sun May 05, 2013 4:24 pm

Re: PowerShell based cmdlets / Commands

Postby c8h10n4o2 » Thu Oct 06, 2016 3:17 pm

Just wanted to give you a small update.

I've updated the module to include some changes:
  • It's available at the PowerShell Gallery. If you run Windows 10 (or PowerShell 5) this means you can install it by simply running "Install-Module Telldus". You can also update to the latest version at any time by running "Update-Module Telldus" in a PowerShell prompt.
  • You can now save your credentials really simply by executing: Connect-TelldusLive -SaveCredential. After you've done this once, you can reuse those by running "Connect-TelldusLive -UseSavedCredential". The credentials are saved encrypted using your logon session (in windows).
  • Bell support for Set-TDDevice
  • If you specify a date/time when fetching sensor history, the cmdlet wont change it to UTC automtically.


Link to PowerShell Gallery:
https://www.powershellgallery.com/packages/Telldus
c8h10n4o2
 
Posts: 45
Joined: Sun May 05, 2013 4:24 pm

Re: PowerShell based cmdlets / Commands

Postby Masonit » Tue Nov 01, 2016 9:07 pm

Thanks for keeping it up to date. :) Are you planning to support local api?

https://developer.telldus.com/blog/2016 ... ublic-beta

\Masonit
Masonit
 
Posts: 72
Joined: Sat Sep 22, 2012 9:08 pm

Re: PowerShell based cmdlets / Commands

Postby c8h10n4o2 » Fri Nov 11, 2016 7:42 pm

Sorry for a late reply! I'd love to support that. I guess I just have to upgrade to a znet first :)

Will try to look into it... :)
c8h10n4o2
 
Posts: 45
Joined: Sun May 05, 2013 4:24 pm

Re: PowerShell based cmdlets / Commands

Postby ArneG » Sat Jan 28, 2017 1:34 pm

What about a set (rename?) devicename cmdlet? Winstick has this features so I think it is in the API...?
ArneG
 
Posts: 8
Joined: Sat Jan 09, 2016 1:28 pm

Re: PowerShell based cmdlets / Commands

Postby c8h10n4o2 » Sun Jan 29, 2017 9:20 am

Sure, that looks very straight forward. I haven't had use for that so far, no other reason why it hasn't been created :-)

I'll put it on the ToDo-list!
c8h10n4o2
 
Posts: 45
Joined: Sun May 05, 2013 4:24 pm

Re: PowerShell based cmdlets / Commands

Postby c8h10n4o2 » Thu Feb 02, 2017 9:13 am

ArneG wrote:What about a set (rename?) devicename cmdlet? Winstick has this features so I think it is in the API...?


Updated the module with Rename-TDDevice now. Also added Get-TDEvent, and up/down actions for Set-TDDevice. I don't have any device supporting that though, so I haven't been able to test that (up/down actions).

I also noticed a bug in Connect-TelldusLive when used with the "-SaveCredential" switch on the first run which is hopefully fixed now. Sorry about that!

If you installed the module from PowerShell Gallery you can simply run "Update-Module Telldus -Force" to get the new version.

The latest version is also always available at:
https://www.powershellgallery.com/packages/Telldus


If you want any other features in this module, feel free to request them here :-)
c8h10n4o2
 
Posts: 45
Joined: Sun May 05, 2013 4:24 pm

Re: PowerShell based cmdlets / Commands

Postby ArneG » Tue Mar 21, 2017 8:21 am

A few other tasks that we have to log on to Teldus Live manually to perform would be nice to be able to do via the CMDLet:
Turn on/off the Telldus live's 'store history'-function for sensors.
Set the Ignore/Show switch for devices/sensors
ArneG
 
Posts: 8
Joined: Sat Jan 09, 2016 1:28 pm

Previous

Return to General

Who is online

Users browsing this forum: Bing [Bot] and 2 guests