Domoticz with E-ink WIP
Moderator: leecollings
Domoticz with E-ink WIP
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
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...
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
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
Nice! Please keep us posted.
Re: Domoticz with E-ink WIP
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)
Re: Domoticz with E-ink WIP
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
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
-
- Posts: 249
- Joined: Sunday 09 October 2016 20:20
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Nederland
- Contact:
Re: Domoticz with E-ink WIP
Nice work!!!
-
- Posts: 13
- Joined: Thursday 26 April 2018 20:03
- Target OS: Linux
- Domoticz version: 4.11786
- Location: Germany
- Contact:
Re: Domoticz with E-ink WIP
Looks great! Congratulation!
Domoticz Version: 2023.1
Platform: Openmediavault 6; Docker; HP Microserver Gen8
Plugin/Hardware: MySensors Gateway; Philips HUE Bridge; OMG; ZigBee;
Platform: Openmediavault 6; Docker; HP Microserver Gen8
Plugin/Hardware: MySensors Gateway; Philips HUE Bridge; OMG; ZigBee;
Re: Domoticz with E-ink WIP
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
https://github.com/BenRoe/rpi-magicmirror-eink
-
- Posts: 1
- Joined: Friday 20 April 2018 8:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Domoticz with E-ink WIP
Hi Devros.
I'm very interested for this project as well.
Do you thing you could share it with us please ?
Thank you.
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
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.
Could you please share the code.
Who is online
Users browsing this forum: No registered users and 1 guest