Twitter: easy script for HS tweets

Forum over Homeseer scripts (DUTCH forum)

Moderators: TANE, Ruud

DJF3
Advanced Member
Advanced Member
Posts: 895
Joined: Thu Jul 12, 2007 9:28 am
Contact:

Twitter: easy script for HS tweets

Post 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'
Last edited by DJF3 on Wed Feb 08, 2012 1:02 pm, edited 2 times in total.
DJF3
Advanced Member
Advanced Member
Posts: 895
Joined: Thu Jul 12, 2007 9:28 am
Contact:

Twitter: easy script for HS tweets

Post by DJF3 »

Added Prowl support for APNS (Apple Push Notification Services - works great!)
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Twitter: easy script for HS tweets

Post 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?
Alexander
Global Moderator
Global Moderator
Posts: 1532
Joined: Sat Mar 10, 2007 11:19 pm
Location: Netherlands

Twitter: easy script for HS tweets

Post by Alexander »

I don't understand either. What is the benefit?

Alexander
DJF3
Advanced Member
Advanced Member
Posts: 895
Joined: Thu Jul 12, 2007 9:28 am
Contact:

Twitter: easy script for HS tweets

Post 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
8r1an
Starting Member
Starting Member
Posts: 10
Joined: Sun Sep 14, 2008 9:37 am
Location: United Kingdom

Twitter: easy script for HS tweets

Post 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
User avatar
TANE
Forum Moderator
Forum Moderator
Posts: 4806
Joined: Fri Apr 06, 2007 9:46 pm
Location: Netherlands
Contact:

Twitter: easy script for HS tweets

Post 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">
DJF3
Advanced Member
Advanced Member
Posts: 895
Joined: Thu Jul 12, 2007 9:28 am
Contact:

Twitter: easy script for HS tweets

Post 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..."
User avatar
TANE
Forum Moderator
Forum Moderator
Posts: 4806
Joined: Fri Apr 06, 2007 9:46 pm
Location: Netherlands
Contact:

Twitter: easy script for HS tweets

Post 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">
DJF3
Advanced Member
Advanced Member
Posts: 895
Joined: Thu Jul 12, 2007 9:28 am
Contact:

Twitter: easy script for HS tweets

Post 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.
Last edited by DJF3 on Wed Feb 08, 2012 12:43 pm, edited 1 time in total.
I-1
Member
Member
Posts: 201
Joined: Wed Jan 24, 2007 11:41 am
Location: Netherlands

Twitter: easy script for HS tweets

Post 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,
I-1
Member
Member
Posts: 201
Joined: Wed Jan 24, 2007 11:41 am
Location: Netherlands

Twitter: easy script for HS tweets

Post 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 :-)
DJF3
Advanced Member
Advanced Member
Posts: 895
Joined: Thu Jul 12, 2007 9:28 am
Contact:

Twitter: easy script for HS tweets

Post 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
Last edited by DJF3 on Wed Feb 08, 2012 12:42 pm, edited 1 time in total.
I-1
Member
Member
Posts: 201
Joined: Wed Jan 24, 2007 11:41 am
Location: Netherlands

Twitter: easy script for HS tweets

Post 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
Maarten
Member
Member
Posts: 123
Joined: Tue Mar 04, 2008 12:19 am
Location: Netherlands

Twitter: easy script for HS tweets

Post 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?
Post Reply

Return to “Homeseer Scripts Forum”