View Single Post
Old 07-21-2019, 09:55 AM   #1
mapal123
Junior Member
mapal123 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2019
Device: kindle
Kindle weather+domotic display : need a second page/image activated with touch

Hi!
Great forum here, it was really useful to me to develop my own Weather display.
It display data from a french weather website, temp graph, and also temperature of my home gotten from my domotic system.
It's based on Mathew petroff project


Here is a snapshot in case anyone is interested




The hard heavy part I all coded in python (that I know well) , it modifies in the end a SVG file, that is converted in png.

The kindle "only" downloads the png via a cronjob (see code at the end of the post) from my local server, every couple of minutes, displays it using eips command. Kindle commands I know almost nihil.

Bash, linux, I am ok with it, but not a champion!

I've seen Kual, but I am thinking I need only a small part of it, or even there is a much easier solution.

Now for the questions.
  1. 1) Anybody knows an easy way to use touchscreen to implement a simple action (toggle eips and display a second .png with other informations)
  2. 2) other commands that I could use to:
    - lower / increment background visibility of kindle
    - restart framework /re-enable sleep
    I would like to launch them in the cronjob, if a given file is found (or not) on the server. This would leave the "intelligence" on my server!

Here's kindle code I used from Mathew petroff project

Code:
stop framework  #as name suggests

lipc-set-prop -i com.lab126.powerd preventScreenSaver 1  #disables screensaver /sleep
lipc-set-prop com.lab126.pillow disableEnablePillow disable

wget http://IP/weather-script-output.png  #gets the image from servr
eips -f -g weather-script-output.png   #displays it
All help would be really appreciated

MAP

Last edited by mapal123; 07-21-2019 at 09:59 AM.
mapal123 is offline   Reply With Quote