Display Domoticz messages on your Philips TV

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Display Domoticz messages on your Philips TV

Post 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
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Display Domoticz messages on your Philips TV

Post by Derik »

Only Philips???
Who tf owns a Philips.....?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Display Domoticz messages on your Philips TV

Post 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??
BigDog
Posts: 82
Joined: Tuesday 17 September 2013 13:59
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.9269
Location: The Netherlands
Contact:

Re: Display Domoticz messages on your Philips TV

Post by BigDog »

Das it work with samsung smart tv?
1X Raspberry4B : Domoticz Version 2023.1 [Linux 5.10.63-v7l+ armv7l]
1X Conbee II : 2.25.3 - 26720700
1X RFXtrx433 USB Firmware:183
1X Mysensors Gateway 1.5 -3
6X ESP8266: Tosmota firmware
Zigbee : 6 Operators, 13 Sensors
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Display Domoticz messages on your Philips TV

Post by pepijn »

Nope, as far as i know only Philips uses JointSpace.
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Display Domoticz messages on your Philips TV

Post 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 ]
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Display Domoticz messages on your Philips TV

Post 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
Peter112
Posts: 16
Joined: Tuesday 15 October 2013 14:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Uithuizen,Groningen,The Netherlands
Contact:

Re: Display Domoticz messages on your Philips TV

Post 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%
RaspberryPI domoticz, test server Intel Atom 230 dual core @1,6 GhzW7-32bit domoticz Test,RFXtrx433 USB, Kaku ,OWL
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Display Domoticz messages on your Philips TV

Post 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.
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Display Domoticz messages on your Philips TV

Post by remb0 »

sorry for my late responses. but here are the sources of websites i found on internet moths ago
Attachments
TV Website.zip
(977.49 KiB) Downloaded 218 times
User avatar
jec_44
Posts: 7
Joined: Wednesday 14 January 2015 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Nantes France
Contact:

Re: Display Domoticz messages on your Philips TV

Post 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
User avatar
Brutus
Posts: 249
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: Display Domoticz messages on your Philips TV

Post 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?
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
CronoS
Posts: 135
Joined: Wednesday 15 July 2015 23:40
Target OS: -
Domoticz version:
Contact:

Re: Display Domoticz messages on your Philips TV

Post 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?
twoenter
Posts: 76
Joined: Sunday 17 February 2019 15:01
Target OS: NAS (Synology & others)
Domoticz version: 4.10
Contact:

Re: Display Domoticz messages on your Philips TV

Post 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..
Check my Domoticz tutorials, ESP8266 and Synology blog at https://www.twoenter.nl/blog
Wous
Posts: 4
Joined: Friday 05 January 2018 9:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Display Domoticz messages on your Philips TV

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

Who is online

Users browsing this forum: No registered users and 1 guest