Dashticz - Custom scripts

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: robgeerts, htilburgs

Post Reply
mhodom
Posts: 3
Joined: Tuesday 11 July 2017 15:45
Target OS: Raspberry Pi
Domoticz version:
Contact:

function getBlock_233(device,idx)

Post by mhodom » Saturday 15 July 2017 20:51

Hello everybody,

Is there a way to define a selector, i have a dummy device(heater) with 5 levels, i saw the possibility to switch:
$('.block_'+idx).attr('onclick','switchDevice(this)');
but how to keep my selector using the function getBlock()

or how to have to icons (on,off) without getblock();

Thank you very much for your participation and your help

Kolkos
Posts: 1
Joined: Sunday 30 July 2017 19:03
Target OS: Raspberry Pi
Domoticz version:
Contact:

Script to change the RPI Touch Screen brightness

Post by Kolkos » Sunday 30 July 2017 19:19

Recently I've purchased a secondary (actually my third) Raspberry with the official Raspberry Touch Screen. On this RPI I've installed a simple LAMP server and installed Dashticz.

Let me start with saying 'Kudo's for this interface mate!'

One thing that bothers me with the Touch Screen is the brightness, by default it is far to bright and without an keyboard is pretty hard to change the brightness.

I couldn't find a way to change the brightness from within Dashticz, so I decided to write my own script.

Basically what I've done is to add a Dummy Dimmer to Domoticz and use the value of this Dimmer to change the brightness of the Touch Screen with this value. Therefore I needed a script to 'listen' to Domoticz. After that I could add this Dimmer to Dashticz.

An detailed instruction on how to install and use the script can be found here:
https://github.com/kolkos/rpi_backlight

Please let me know if I missed something or if you experiencing any problems.

Cheers!

- Anton

User avatar
robgeerts
Posts: 1233
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Script to change the RPI Touch Screen brightness

Post by robgeerts » Sunday 30 July 2017 20:44

Thanks for the compliments and thanks for sharing!
Although this has nothing to do with Dashticz, it may help others using the Raspberry Touch Screen.
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

Blueone
Posts: 163
Joined: Friday 29 November 2013 12:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Script to change the RPI Touch Screen brightness

Post by Blueone » Sunday 30 July 2017 22:19

It canalso be done with dashticz, I wrote an how-to in the wiki a couple of months ago.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests