Page 1 of 2

Twitter: easy script for HS tweets

Posted: Mon Sep 14, 2009 12:04 pm
by DJF3
Image

Hi,

Just finished testing my Twitter script for HS. It allows you to call the script with your twitter text that includes date/time/device-values/device-strings.

Example:

Code: Select all

("Main","Temperature is vv[T19] at dd[hh:mm] and front door is ss[^8]") 
The result would be: "Temperature is 21 at 11:20 and the front door is closed"

How does it look?
Image

Where can I get it?
http://www.domoticaworld.com
Click on 'Twitter' under 'Scripts'

Twitter: easy script for HS tweets

Posted: Thu Sep 17, 2009 9:24 am
by DJF3
Added Prowl support for APNS (Apple Push Notification Services - works great!)

Twitter: easy script for HS tweets

Posted: Thu Sep 17, 2009 6:39 pm
by drmacchi
Please let me understand: you publish home's info on twitter, do you? But isn't it better to connect directly to HS by ip?

Twitter: easy script for HS tweets

Posted: Fri Sep 18, 2009 11:24 am
by Alexander
I don't understand either. What is the benefit?

Alexander

Twitter: easy script for HS tweets

Posted: Fri Sep 18, 2009 2:34 pm
by DJF3
I use Twitter quite often and now in my list of 'tweets' I see information about my house.

Sure I can browse to HS, use my touch-screen, call my home IVR, look at the TV, look at the IP phone to get similar information.

It's about getting specific information send to an app that I use on a daily basis anyway.

If you're not a Twitter user this won't be useful for you.

Bye!
DJ

Twitter: easy script for HS tweets

Posted: Sun Oct 18, 2009 1:54 pm
by 8r1an
Been using DJ_Twitter and it works very well. One thing missing is sending prowl messages with different priority.
Would it be possible to add this?

Brian

Twitter: easy script for HS tweets

Posted: Wed Nov 04, 2009 12:00 am
by TANE
@DJ
Thanks for the great script.
found some small bugs.
It will not work with devices using "("
(3 is my instant power usage device.

see my Dutch blog about Homeseer and Twitter
http://www.tane.nl/wp/?p=58





<hr noshade size="1"><font size="1">Enver
Twitter http://twitter.com/Chak64%20My%20Domoti ... tane.nl/wp</font id="size1">

Twitter: easy script for HS tweets

Posted: Thu Nov 05, 2009 5:05 pm
by DJF3
Good point Enver!
I haven't tested this. Hope to have more time fixing some of these bugs next month ;-)
Cheers
DJ

<hr noshade size="1">
"...deal with the world the way it is, not the way you want it to be..."

Twitter: easy script for HS tweets

Posted: Mon Nov 09, 2009 12:49 am
by TANE
DJ,
Volegnede optie regel geeft een foute week dag aan
("Main","Incoming Transmission -Telefoon op dd[hh:mm DDD, D MMM YYYY] HS-script")

Incoming Transmission -Telefoon op 18:25 maandag, 8 november 2009 HS-script

8 november is een zondag

<hr noshade size="1"><font size="1">Enver
Twitter http://twitter.com/Chak64%20My%20Domoti ... tane.nl/wp</font id="size1">

Twitter: easy script for HS tweets

Posted: Mon Nov 09, 2009 12:07 pm
by DJF3
Updated website with Twitter/APNS version 0.4:
-Fixed double string/value issue where 2nd string/value isn't shown
-Fixed (chak!) day-of-week-name issue (where monday should be sunday)
-Updated trace information shown

http://www.domoticaworld.com and click on 'Twitter' under Scripts.

Twitter: easy script for HS tweets

Posted: Wed Dec 02, 2009 6:19 pm
by I-1
Hi,

I am using the twitter script now.
I have a question ...

I now discovered after 2 hours that you I need to give in a parameter after the script to make it work...

Anyway... I don't understand the parameters and how to use them.
For example ...
- When my harison curtains (on A1) and closing or opening or stoping I want to generate a twitter message.

Now what parameter do I have to put in in order to say:
"On <date/time> the <curtains A1> - status changed to <open/close/stop>"

Thanks,

Twitter: easy script for HS tweets

Posted: Wed Dec 02, 2009 7:19 pm
by I-1
In the documentation there are only these parameters explained:

- 'vv[<device>]' to insert VALUE of a HS device
- 'ss[<device>]' to insert the device STRING

Can you please give me more examples ... of how this works ... because
when I use "vv[A1]" it gives me back the value "4"
when I use "ss[A1]" it gives me back the value "STOP"

What also a pain in the ass is, is that it only twitters when I hit the RUN button ... it will not run when my curtains open/close or stop.

See my twitter page --> http://twitter.com/tikadomo

When I set the trigger to "Device Status Change" I can select a device "Living Room Curtains" and there is no OPEN/CLOSE/STOP status to choose from ...

This is really driving me crazy :-)

Twitter: easy script for HS tweets

Posted: Fri Dec 04, 2009 3:24 pm
by DJF3
Hi I-1

Make sure you check out this information: http://www.domoticaworld.com (click 'Twitter' under Scripts))

One remark: have you tried device-VALUE change instead of device-STATUS change? You might get a list with open/close/stop.

- "vv[A1]" will be replaced by the device VALUE of device "A1"
In HomeSeer 2.4.0.2 or higher you can open device A1 and click on 'Additional information'. You can now see the device value/status/string of a device. Right now the script can only be the value or string of a device (or a date/time)

- If you want to want any status to be twittered you can select "Status=Set Any Status" and send the device-string through the script
- Alternatively you can find out what the device-values for OPEN/CLOSE/STOP are, and trigger based on a device value change

To generate "On <date/time> the <curtains A1> - status changed to <open/close/stop>"
Call script: DJ_Twitter_xx.vb with parameter
("Main","On dd[DD MM] the curtains - status changed to ss[A1]")
("Main","On dd[DD MM] the curtains - status changed to ss[A1]|no")
-- to not send it, only put it in the logfile
("Main","On dd[DD MM] the curtains - status changed to ss[A1]|prowl")
-- send to iphone using Prowl's APNS
Again, the status "open/close or stop" should be in the device-string (as it cannot be in the device-value)

If it doesn't work as expected, set the strDebug parameter in the script to 2 and post the HS log (double check if there's no passwords in the traces).

Cheers
DJ

Twitter: easy script for HS tweets

Posted: Tue Dec 08, 2009 2:57 pm
by I-1
Hi DJ,

I kind of have it working ...
How do I use the prowl option AND the twitter option?
Is that done only by adding the "prowl" keyword?

Thanks,
Iwan

Twitter: easy script for HS tweets

Posted: Sun Dec 13, 2009 10:16 pm
by Maarten
Hello homeseer say 13-12-2009 21:14:36 - Warning - VB.Net script exception(310), re-starting: Lengte kan niet minder dan nul zijn.Parameternaam: length

Whate is the problem? my script looks like thit:

("main","Temperatuur in Hellevoetsluis is ss[13] dit was op dd[DDD, DMM YYYY] HS-script')

Whate i am doing rong?