Search found 45 matches

by ArneG
Fri Feb 16, 2018 2:53 pm
Forum: General
Topic: PowerShell based cmdlets / Commands
Replies: 123
Views: 61615

Re: PowerShell based cmdlets / Commands

Yes, it works the UI-way 8)
by ArneG
Fri Feb 16, 2018 11:18 am
Forum: General
Topic: PowerShell based cmdlets / Commands
Replies: 123
Views: 61615

Re: PowerShell based cmdlets / Commands

Just checked to be sure: Sensor IS editable
by ArneG
Fri Feb 16, 2018 9:34 am
Forum: General
Topic: PowerShell based cmdlets / Commands
Replies: 123
Views: 61615

Re: PowerShell based cmdlets / Commands

And now it is back to returning nothing.
How to best check if my sensor(s) are "editable"? As I said; -keephistory and -newname works as it should.
by ArneG
Fri Feb 16, 2018 9:20 am
Forum: General
Topic: PowerShell based cmdlets / Commands
Replies: 123
Views: 61615

Re: PowerShell based cmdlets / Commands

I don't know if it is editable, but the keephistory-switch does work, so probably the sensor it is indeed editable. I also tried many other sensors, same shit. BUT, I just tried it agian now: "https://live.telldus.com/sensor/setIgnore?id=10324063&ignore=1" The telldus site returns an error on this n...
by ArneG
Fri Feb 16, 2018 8:39 am
Forum: General
Topic: PowerShell based cmdlets / Commands
Replies: 123
Views: 61615

Re: PowerShell based cmdlets / Commands

Maybe a clue: I tried something directly when logged in on the telldus site: "https://live.telldus.com/sensor/setKeepHistory?id=10324063&keepHistory=1" Telldus site returns "{"status":"success"}" and does what it should "https://live.telldus.com/sensor/setIgnore?id=10324063&ignore=1" Telldus site re...
by ArneG
Fri Feb 16, 2018 7:35 am
Forum: General
Topic: PowerShell based cmdlets / Commands
Replies: 123
Views: 61615

Re: PowerShell based cmdlets / Commands

I Will debug my code a little bit more and report back...
by ArneG
Thu Feb 15, 2018 9:57 pm
Forum: General
Topic: PowerShell based cmdlets / Commands
Replies: 123
Views: 61615

Re: PowerShell based cmdlets / Commands

Set-TDSensor: "-newname" and "-keephistory" options works, "-IgnoreSensor" does not?
by ArneG
Thu Jan 18, 2018 11:08 am
Forum: General
Topic: PowerShell based cmdlets / Commands
Replies: 123
Views: 61615

Re: PowerShell based cmdlets / Commands

Will there be any Get-TDSensorHistory soon ? The data from Telldus Live may be available now like it is with the Device-History ?
by ArneG
Thu Jan 18, 2018 11:08 am
Forum: General
Topic: PowerShell based cmdlets / Commands
Replies: 123
Views: 61615

Re: PowerShell based cmdlets / Commands

The cmdlet for the sensorhistory data is collecting the complete history available on the telldusserver each time. This results in a lot of duplicate sensordata when the cmdlet is uses to poll the telldus server on a regular basis. Of course it is no problem handling/filtering out duplicate sensorda...
by ArneG
Thu Jan 18, 2018 11:08 am
Forum: General
Topic: PowerShell based cmdlets / Commands
Replies: 123
Views: 61615

Re: PowerShell based cmdlets / Commands

Got it :)
Thanx!
by ArneG
Thu Jan 18, 2018 11:08 am
Forum: General
Topic: PowerShell based cmdlets / Commands
Replies: 123
Views: 61615

Re: PowerShell based cmdlets / Commands

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
by ArneG
Thu Jan 18, 2018 11:08 am
Forum: General
Topic: PowerShell based cmdlets / Commands
Replies: 123
Views: 61615

Re: PowerShell based cmdlets / Commands

What about a set (rename?) devicename cmdlet? Winstick has this features so I think it is in the API...?
by ArneG
Thu Jan 18, 2018 11:08 am
Forum: General
Topic: PowerShell based cmdlets / Commands
Replies: 123
Views: 61615

Re: PowerShell based cmdlets / Commands

I know. I''m collecting devicehistory via that cmdlet on a regular basis. I also do poll the sensors via TD-GetSensor every 15 minutes or so, and that way collecting/storing my own sensorhistory locally via a simple Delphi-application that I've hacked together...But it would be nice to get this hist...
by ArneG
Thu Jan 18, 2018 11:08 am
Forum: General
Topic: PowerShell based cmdlets / Commands
Replies: 123
Views: 61615

Re: PowerShell based cmdlets / Commands

Thanks. Works fine appearanty :P

Btw: maybe the example in the code should reflect that the cmdlet uses UTC times (since the timedata from Telldus live is in UTC, and getdate() returns local time by default)
by ArneG
Thu Jan 18, 2018 11:08 am
Forum: General
Topic: PowerShell based cmdlets / Commands
Replies: 123
Views: 61615

Re: PowerShell based cmdlets / Commands

Glad it works! :) Hmm... I think I see your point. The way it works now will make sure the user will get the expected data back from Telldus Live (converts the date you add to UTC). What I really should do though is convert the returned dates to the local time for the whole thing to make more sense...