Page 1 of 1

Display Domoticz messages on your Philips TV

Posted: Saturday 03 May 2014 22:56
by pepijn
A nice addition to my Domoticz installation:
Display messages on my TV screen on certain events (door opens, doorbel rings etc)
This is possible using JointSpace and a simple bash script on my Raspberry Pi.

First download JSTx (http://sourceforge.net/apps/mediawiki/j ... title=JSTx)
I've copied the binaries to /opt/JSTx

Create a script (i named it display.sh)

Code: Select all

/opt/JSTx/JSTx -F /opt/JSTx/font/decker.ttf -s 40 -W 1280 -H 720 -w 1200 -h 60 -x 40 -y 40 -t "$*" t -T 5 -b "100,100,100,128" -f "255,255,255,255" --dfb:quiet --remote=<TV IP address>
You can use the script on the switch configuration page, on or off action.

Code: Select all

script:///opt/domoticz/scripts/display.sh This message will be displayed on your TV
You can also use it in LUA scripts if you want.

Have fun!
Pepijn

Re: Display Domoticz messages on your Philips TV

Posted: Saturday 03 May 2014 23:46
by Derik
Only Philips???
Who tf owns a Philips.....?

Re: Display Domoticz messages on your Philips TV

Posted: Sunday 04 May 2014 2:57
by remb0
Me :). See my other post for a webbased tv remote.
@topicstarter: Great news. Van You put it in the wiki?
Maybe with download and copy commands??

Re: Display Domoticz messages on your Philips TV

Posted: Sunday 04 May 2014 6:18
by BigDog
Das it work with samsung smart tv?

Re: Display Domoticz messages on your Philips TV

Posted: Sunday 04 May 2014 8:31
by pepijn
Nope, as far as i know only Philips uses JointSpace.

Re: Display Domoticz messages on your Philips TV

Posted: Sunday 04 May 2014 11:11
by Derik
remb0 wrote:Me :). See my other post for a webbased tv remote.

Please where, i can not find , sorry [ the search on the site give no solution ]

Re: Display Domoticz messages on your Philips TV

Posted: Sunday 04 May 2014 21:22
by pepijn
Derik wrote:Please where, i can not find , sorry [ the search on the site give no solution ]
Try searching for "Philips" and you will find this post http://www.domoticz.com/forum/viewtopic.php?f=31&t=1150

Re: Display Domoticz messages on your Philips TV

Posted: Monday 05 May 2014 18:05
by Peter112
a little help i found and want to share

http://jointspace.sourceforge.net/download.html
below you can download jointSPACE TV simulator

more info, can we send json directly to the tv ?

http://jointspace.sourceforge.net/

for the users Smart-TV's, about 27% sold tv's in Holland is Philips, Samsung 41% Sony 11% ,Lg 10% and Panasonic 7%

Re: Display Domoticz messages on your Philips TV

Posted: Monday 05 May 2014 22:49
by pepijn
The Philips TV's have a REST API running on a internal webserver on port 1925.

This example pushes the 'on/off button' on your remote.

Code: Select all

curl -X POST -H "Content-Type: application/json" -d '{ "key": "Standby"}' http://<tv's ip address>:1925/1/input/key
I've put this into a bash script and calling this script from Domoticz as mentioned above.

The only problem i have right now is that i'am unable to detect the current state of the TV. So i don't know if it's turned on or off using the remote.

Re: Display Domoticz messages on your Philips TV

Posted: Monday 12 May 2014 20:02
by remb0
sorry for my late responses. but here are the sources of websites i found on internet moths ago

Re: Display Domoticz messages on your Philips TV

Posted: Wednesday 14 January 2015 16:29
by jec_44
I've seen something interresting for TV Samsung owner like me : http://tech.shantanugoel.com/2013/07/14 ... ython.html

It's a python script, easy to implement. Try it and give us your feedback ! :)

Jec

Re: Display Domoticz messages on your Philips TV

Posted: Wednesday 14 January 2015 16:40
by Brutus
pepijn wrote:A nice addition to my Domoticz installation:
Display messages on my TV screen on certain events (door opens, doorbel rings etc)
This is possible using JointSpace and a simple bash script on my Raspberry Pi.

First download JSTx (http://sourceforge.net/apps/mediawiki/j ... title=JSTx)
I've copied the binaries to /opt/JSTx

Create a script (i named it display.sh)

Code: Select all

/opt/JSTx/JSTx -F /opt/JSTx/font/decker.ttf -s 40 -W 1280 -H 720 -w 1200 -h 60 -x 40 -y 40 -t "$*" t -T 5 -b "100,100,100,128" -f "255,255,255,255" --dfb:quiet --remote=<TV IP address>
You can use the script on the switch configuration page, on or off action.

Code: Select all

script:///opt/domoticz/scripts/display.sh This message will be displayed on your TV
You can also use it in LUA scripts if you want.

Have fun!
Pepijn
Do you think this is possible on a windows installation of domoticz?

You say I can use it in LUA. Is the script then te same or do you need to edit some things?

I have two Philips TV's so this could be nice :)

I also was wondering if I you can send commands like on, off, change source like in the MyRemote app from philips?

Re: Display Domoticz messages on your Philips TV

Posted: Wednesday 29 June 2016 21:10
by CronoS
Hi, somebody knows if I can use this JSTx package on a Synology with DSM 6? And how to enable this?

I am not really familiar with Linux. I want to control my 2010 Philips with this, that should work with the 0.23 JSTx package?

Re: Display Domoticz messages on your Philips TV

Posted: Sunday 17 November 2019 14:52
by twoenter
CronoS wrote: Wednesday 29 June 2016 21:10 Hi, somebody knows if I can use this JSTx package on a Synology with DSM 6? And how to enable this?

I am not really familiar with Linux. I want to control my 2010 Philips with this, that should work with the 0.23 JSTx package?
Hi Cronos

I have Synology too and I don't use JSTx for sending commands but just the REST API. You can read how I have implemented it in my blog:

https://www.twoenter.nl/blog/domotica/s ... -domoticz/

Blog is dutch but you can translate it with google translate.



I want to display messages at my Philips TV is it possible to run JSTx at synology? We have no make commands available at DSM..

Re: Display Domoticz messages on your Philips TV

Posted: Monday 18 December 2023 15:06
by Wous
I used the JSTx tool in the past, I bought a new tv, so I cleaned the rubbish. Then my kid broke my new tv with some wood, so I reused my philips tv. Now I want to use the JSTx tools again, but somehow, it won't work. When I use the correct display script, I get this reply:

Code: Select all

(#) DirectFBError [DirectFBCreate( &dfb )]: Appropriate item not found!
Fail!! err!=DFB_OK(!) [32311:    0.000] --> Caught signal 11 (at 0x50, invalid address) <--
./tekstintv.sh: regel 1: 32311 Afgebroken              /opt/JSTx/JSTx -F /opt/JSTx/font/decker.ttf -s 40 -W 1280 -H 720 -w 1200 -h 60 -x 40 -y 40 -t "$*" t -T 5 -b "100,100,100,128" -f "255,255,255,255" --dfb:quiet --remote=192.168.11.53:1925
Ip is correct2, I got no clue...
thanks.