Page 1 of 1

Domoticz with E-ink WIP

Posted: Monday 25 February 2019 0:17
by devros
hi all,
I always wanted to have some nice e-ink with low power consumption and no emited light with domoticz info. So here is my progress so far.
Im using raspberry zero with Waveshare e-ink display and python code. It works quite good so far, only refresh rate is really slow (maybe is because slow SPI on Rasp zero). So dunno if i try to switch to some microcontroler like esp32 or arduino for better SPI data transfer.

How it works so far
- On my domoticz server is running cron with python script that send BMP data over ssh to raspberry connected with e-ink with some refresh&display command.
- Script is written in python - JSON data are recieved from domoticz. Then parse data, use html template with hardcoded size and all is converter from html to BMP (weasyprint module). I know that its quite ugly, but best for templating, imho :)
- Plan is to hide rasp inside wall and make some border for e-ink later :)

Image

Script is unfinished and quite ugly and hardcoded (im still python beginner)
Also e-ink should support red color, so i have to check how :)
If is someone interested i can post script later...

Re: Domoticz with E-ink WIP

Posted: Monday 25 February 2019 10:42
by Seagate
Nice! Please keep us posted.

Re: Domoticz with E-ink WIP

Posted: Wednesday 20 March 2019 0:20
by devros
Seagate wrote: Monday 25 February 2019 10:42 Nice! Please keep us posted.
Thanks :)
so some updates...
-rewrited forecast with nice icons and better predictions
-added google calendar import as separate python module (works for days, multiple calendars, with names and stylings)
-prepared laser case - combined two pieces together to make thin border around display (cutted on acrylic on laser)
-added support for 2 colors - red and black in my case (image is exported as green and red and separated with PIL module to two bitmap images)
-prepared wiring opening on wall (raspberry power supply will be hidden on another side of wall so no visible cables)
-little optimized e-ink code for faster refresh (still quite slow)
Image

Re: Domoticz with E-ink WIP

Posted: Wednesday 20 March 2019 0:45
by nigels0
Nice!

Re: Domoticz with E-ink WIP

Posted: Friday 14 February 2020 22:12
by devros
hello, if anyone is still ingterested, im still working on this project :)
rewrited most of my python code, and used new https://www.waveshare.com/wiki/9.7inch_e-Paper_HAT bigger display with much better refresh rate (no ugly and slow refresh) so i can even add minutes (now i have two minutes refresh). Python script now work standalone as service. Im using html with css for styling and then convert to BMP for eink...
if anyone is interested a can provide code later

Image

Re: Domoticz with E-ink WIP

Posted: Sunday 16 February 2020 8:34
by edwin1234
Nice work!!!

Re: Domoticz with E-ink WIP

Posted: Monday 30 March 2020 11:24
by gropi
Looks great! Congratulation!

Re: Domoticz with E-ink WIP

Posted: Wednesday 15 April 2020 13:17
by DeOS
Looks great! Would you mind sharing the code? I just puchased the 7.5 inch version of the waveshare e-ink screen for the same purpose :). I wanted to use this project, but yours seems a bit simpler with less overhead. ;)

https://github.com/BenRoe/rpi-magicmirror-eink

Re: Domoticz with E-ink WIP

Posted: Wednesday 30 September 2020 13:11
by Faro
Hi Devros.

I'm very interested for this project as well.
Do you thing you could share it with us please ?

Thank you.

Re: Domoticz with E-ink WIP

Posted: Thursday 15 October 2020 12:01
by Chenel
Hi Devros, very interesting project, it is good solution to reduce power consumption of other solutions using LCD pannels.

Could you please share the code.