Domoticz Touchscreen Console

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.
User avatar
Luppie
Posts: 33
Joined: Thursday 08 October 2015 14:23
Target OS: Raspberry Pi
Domoticz version: LastBeta
Location: Netherlands
Contact:

Domoticz Touchscreen Console

Post by Luppie » Sunday 01 November 2015 16:01

I want my Domoticz to be controlled even when no phone or PC is available.
(for instance if my daugther (11) or family want's to control the lights or heater when we're not at home)
So I came up with the idea to use a RaspberryPi and the RaspberryPi 7" Touchscreen in a nice frame, and put it on our bookshelf.

ImageImage Image Image
Image

Because of the touchscreen, I wanted it to be fully operational without a mouse or keyboard and only single purpose for Domoticz.
This is why I configured the Pi in Kiosk Mode and at reboot it will automatically present the Domoticz Interface.
During boot I didn't want to see all the bootlogging garbage, but a nice Domoticz logo.

This is how I configured the RaspberryPi to achieve these goals:

Install & Basic Configuration
Install the latest Debian Jessie Image
Config Network (WiFi)

Open Terminal:

Code: Select all

sudo raspi-config
Within raspi-config do the following steps:
Expand drive
Password
Hostname
Keyboard
Timezone
Overclock (Pi2B) - (I'm using a Raspberry Pi 2B - Choose your own preferred Speed)
GPU Memory (256Mb)

Code: Select all

Reboot
Install Dependencies & Scripts
Open Terminal:

Code: Select all

sudo su
apt-get update && apt-get upgrade && apt-get dist-upgrade
rpi-update
apt-get -y install xscreensaver
apt-get -y install xautomation
apt-get -y install fbi
apt-get -y install mc
apt-get -y install locate

cd /etc/init.d/
wget http://upload.luppie.net/domoticz/aaaasplash
cd /etc/
wget http://upload.luppie.net/domoticz/splash.png
cd /home/pi/
wget http://upload.luppie.net/domoticz/domoticz.sh

nano /home/pi/domoticz.sh
Replace the IP & Port with your Domoticz IP & Port

Make scripts executable and auto reboot at midnight

Code: Select all

chmod a+x /home/pi/domoticz.sh
chmod a+x /etc/init.d/aaaasplash
insserv /etc/init.d/aaaasplash

crontab -e
Add Line : 0 0 * * * /sbin/reboot

Prevent screen to go into blank mode (When the screen blanks, it wont come up anymore)

Code: Select all

nano  /home/pi/.config/lxsession/LXDE-pi/autostart
Add Lines:
@xset s off
@xset -dpms
@xset s noblank
@sh /home/pi/domoticz.sh

Code: Select all

nano /etc/lightdm/lightdm.conf
Add line beneath : [SeatDefaults]
xserver-command=X -s 0 dpms

The screen is upsidedown in the frame, so it needs to be rotated

Code: Select all

nano /boot/config.txt
Add line : lcd_rotate=2

Redirect the logging and disable the raspberry logo

Code: Select all

nano /boot/cmdline.txt
Add : quiet loglevel=3 vga=current logo.nologo
Change : console=tty3

Code: Select all

reboot
Configure the screensaver
When the Domoticz page is presented, press F11 to exit Full Screen and configure the screensaver trough Startmenu -> Preferences -> xscreensaver
Now the keyboard can be unplugged.

This is the result:
Last edited by Luppie on Sunday 08 November 2015 22:17, edited 1 time in total.
Raspberry Pi2B | RFLink | MySensors Gateway | 18B20 | P1 | 9x KaKu Old | 3x Kaku New | KaKu PIR | 2x Flamingo Smoke Detector | Chuango PIR | Chuango Door Contact |3x Chinese Therm. Hum. Sensor | 2x SelectPlus DoorBell | RPi 7" Touch Control Panel

jjnj
Posts: 240
Joined: Thursday 31 July 2014 13:51
Target OS: Windows
Domoticz version:
Location: NL
Contact:

Re: Domoticz Touchscreen Console

Post by jjnj » Sunday 01 November 2015 16:17

Nice that you did this!
But why didn't you just buy a cheap tablet?

User avatar
Luppie
Posts: 33
Joined: Thursday 08 October 2015 14:23
Target OS: Raspberry Pi
Domoticz version: LastBeta
Location: Netherlands
Contact:

Re: Domoticz Touchscreen Console

Post by Luppie » Sunday 01 November 2015 16:21

Before I used Domoticz, I used pilight.

With pilight I used a cheap Chinese Tablet that was mounted to the wall:
Image

With Domoticz I noticed that this cheap tablet wasn't performing as I wanted to. When I want to switch a light I first needed to refresh the webpage and it was loading terrible slow.
Also when I switched something on an other device the tablet didn't update it's status.
Raspberry Pi2B | RFLink | MySensors Gateway | 18B20 | P1 | 9x KaKu Old | 3x Kaku New | KaKu PIR | 2x Flamingo Smoke Detector | Chuango PIR | Chuango Door Contact |3x Chinese Therm. Hum. Sensor | 2x SelectPlus DoorBell | RPi 7" Touch Control Panel

User avatar
gizmocuz
Posts: 8649
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Domoticz Touchscreen Console

Post by gizmocuz » Sunday 01 November 2015 16:53

Nicely done !!
now i wish for a small RPi, so we can mount it on the screen and on the wall directly ;)
Quality outlives Quantity!

MikeF
Posts: 184
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi
Domoticz version: V3.8153
Location: UK
Contact:

Re: Domoticz Touchscreen Console

Post by MikeF » Sunday 08 November 2015 19:39

Hi Luppie,

Just built this - works well, although the reduced screen resolution means that some title bars get overwritten with the values - would be good if these could wrap.

However, I ran into some issues installing the splash screen. There are some inconsistencies in your code snippets: in the wget command, it's spelt with 3 a's, and downloaded into /etc/, whereas the chmod and inserv spell with 4 a's and refer to /etc/init.d/; also, the script is looking for the .png file in /etc/. In the end, I put both files in both locations!!

User avatar
Luppie
Posts: 33
Joined: Thursday 08 October 2015 14:23
Target OS: Raspberry Pi
Domoticz version: LastBeta
Location: Netherlands
Contact:

Re: Domoticz Touchscreen Console

Post by Luppie » Sunday 08 November 2015 22:19

Thanks MikeF,

I've edit my post and corrected the errors. It should be correct now.
Raspberry Pi2B | RFLink | MySensors Gateway | 18B20 | P1 | 9x KaKu Old | 3x Kaku New | KaKu PIR | 2x Flamingo Smoke Detector | Chuango PIR | Chuango Door Contact |3x Chinese Therm. Hum. Sensor | 2x SelectPlus DoorBell | RPi 7" Touch Control Panel

deennoo
Posts: 937
Joined: Wednesday 10 December 2014 14:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Domoticz Touchscreen Console

Post by deennoo » Tuesday 17 November 2015 9:50

Luppie,

i want to thank you, reading your project give me an idea :

Run domoticz directly on Android Tablet, who will be put on a wall.

And it's done !

It's run on Acer A1-810 with root modification

Using Linux deploy -> install debian wheezy
linux deploy.JPG
linux deploy.JPG (84.93 KiB) Viewed 23907 times
After this Flowwing domoticz guide to compile it from source for Linux using terminal or ssh client
ssh client on android.JPG
ssh client on android.JPG (145.4 KiB) Viewed 23907 times
and it works like a charme !
domodroid.JPG
domodroid.JPG (68.53 KiB) Viewed 23907 times
Device are driven by RFlink with ESP8266 ser2net, this allow to use RFlink with Lan gateway material.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / ESP8266 / MQTT / BLE
http://domo-attitude.fr

rockensmathieu
Posts: 1
Joined: Wednesday 16 December 2015 14:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz Touchscreen Console

Post by rockensmathieu » Wednesday 16 December 2015 14:46

Hi

I have a Rpi2, official touchscreen 7", power supply 2A, memory card 32 Gb, Dongle Wifi D-Link DWA-121, RFXCom and many temperature sensors, switchs. I want to see temperatures, graphs, in all rooms on my touchscreen (like your post)
The problem is, i'm novice in linux.

Could you tell me the procedure step by step with many details ?

I have already mount my RPI2 on my touchscreen, the display is ok.

Which OS use ? Raspbian Jessie ? And how install RFXCOM ? And dongle wifi D-Link DWA121 ?

Is it possible with this tutorial : https://www.domoticz.com/wiki/Domoticz_ ... i_SD_Image ?

Thank you very very much

Rockens M.

geezerrr
Posts: 126
Joined: Tuesday 02 December 2014 23:16
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Domoticz Touchscreen Console

Post by geezerrr » Wednesday 16 December 2015 16:19

I like!! +1

I almost did the same.. Close to finish (plaster work is drying now)
Attachments
ImageUploadedByTapatalk1450275578.502662.jpg
ImageUploadedByTapatalk1450275578.502662.jpg (337.06 KiB) Viewed 23098 times
ImageUploadedByTapatalk1450275458.676946.jpg
ImageUploadedByTapatalk1450275458.676946.jpg (358.2 KiB) Viewed 23098 times

roblom
Posts: 561
Joined: Wednesday 26 February 2014 16:28
Target OS: Raspberry Pi
Domoticz version:
Location: the Netherlands
Contact:

Re: Domoticz Touchscreen Console

Post by roblom » Thursday 24 December 2015 13:04

gizmocuz wrote:Nicely done !!
now i wish for a small RPi, so we can mount it on the screen and on the wall directly ;)
Your prayers are heard :D

Pi-zero

geezerrr
Posts: 126
Joined: Tuesday 02 December 2014 23:16
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Domoticz Touchscreen Console

Post by geezerrr » Sunday 17 January 2016 16:40

I've finished today my touchscreen project Image thought I share it with you guys.
What's left is making a nice front page,
Anyone have some tips how to?
ImageUploadedByTapatalk1453041624.797844.jpg
ImageUploadedByTapatalk1453041624.797844.jpg (245.24 KiB) Viewed 22055 times
ImageUploadedByTapatalk1453041534.719151.jpg
ImageUploadedByTapatalk1453041534.719151.jpg (317.39 KiB) Viewed 22055 times
ImageUploadedByTapatalk1453041505.856713.jpg
ImageUploadedByTapatalk1453041505.856713.jpg (268.34 KiB) Viewed 22055 times

User avatar
jannl
Posts: 955
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Geleen
Contact:

Re: Domoticz Touchscreen Console

Post by jannl » Sunday 17 January 2016 22:46

Check the forum. There are some nice examples

pvm
Posts: 930
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: NL
Contact:

Re: Domoticz Touchscreen Console

Post by pvm » Sunday 17 January 2016 23:45

Nice frame
Synology NAS, PI3, ZWave, Xiamo zigbee devices, BTLE plant sensor

geezerrr
Posts: 126
Joined: Tuesday 02 December 2014 23:16
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Domoticz Touchscreen Console

Post by geezerrr » Sunday 17 January 2016 23:47

Thnx, made it myself out of wood, in my dads workshop

geezerrr
Posts: 126
Joined: Tuesday 02 December 2014 23:16
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Domoticz Touchscreen Console

Post by geezerrr » Sunday 17 January 2016 23:48

jannl wrote:Check the forum. There are some nice examples
I know, need to spend some time to figure out how to.

luckysession
Posts: 48
Joined: Saturday 13 July 2013 14:43
Target OS: -
Domoticz version:
Contact:

Re: Domoticz Touchscreen Console

Post by luckysession » Sunday 15 May 2016 17:27

Hey guys,

works fine for me, one failure in your discription in my opinion... to config autostart: nano /home/pi/.config/lxsession/LXDE/autostart

And why doesn´t start in fullscreen mode? Any help? ...

domoticz.sh updatet:

Code: Select all

#/!/bin/bash

epiphany-browser http://192.168.1.200:8080 &
sleep 10
DISPLAY=:0 echo key F11 | xte


and fullscreen work for me :)

thank you!

User avatar
mbliek
Posts: 824
Joined: Friday 12 July 2013 14:08
Target OS: Raspberry Pi
Domoticz version: beta
Location: the Netherlands
Contact:

Re: Domoticz Touchscreen Console

Post by mbliek » Tuesday 17 May 2016 21:55

You can also use 127.0.1.1:8080 in the domoticz.sh script. Then there is no need to edit the script...
It works for me

Muyz
Posts: 5
Joined: Tuesday 19 July 2016 8:51
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Domoticz Touchscreen Console

Post by Muyz » Monday 25 July 2016 23:29

Nice project; thanks for sharing! I just finished building the console. What I notice is that the buttons on switches (Timers, Notifications) consume a lot of space. These buttons are not visible in the pictures posted by the TS. Can these be removed somehow?
Attachments
FullSizeRender.jpg
FullSizeRender.jpg (248.78 KiB) Viewed 18413 times

trixwood
Posts: 510
Joined: Friday 18 March 2016 8:20
Target OS: -
Domoticz version: Offline
Contact:

Re: Domoticz Touchscreen Console

Post by trixwood » Monday 25 July 2016 23:51

That reminds me, I wanted something similar behind a mirror.

Found this :-)

http://michaelteeuw.nl/tagged/magicmirror
http://michaelteeuw.nl/post/11188638352 ... -the-world

User avatar
emme
Posts: 833
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: Domoticz Touchscreen Console

Post by emme » Wednesday 27 July 2016 17:43

Hi...
I'm really interested in this, I honestly think that luppie and geezerrr project are the bes ever!

On September I think I would try the 7" touch LCD and wallmount a soluution with luppie solution.

I have just 3 newbie questions:
Screensaver: can I setup a picture show screensaver so I use it as a picture frame?
Power: how many A does the LCD and rb needs? I've planned a 1.2A USB socket... would it be enough?!
DPMS: is this still an issue? can it be workarounded with a GPIO switch or a remote WOL command?

thanks
ciao
M
That's one small step for a programmer, one giant leap for me!
- - - - -
rPI 3b+ zWave + rfxComm + nodeMcu + mySensors

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests