Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Images - each zone
#1
I'm toying with the idea of integrating images next to the valve controls.    The idea as of right now is to link to network based images, so pictures are not required to be stored locally.  Maybe have an option to store locally.    This will be useful with IP cameras and rPi cameras.


some guidance on where I should look to add in this functionality would be helpful.
Reply
#2
The functionality could be added into one of the HTML templates in the SIP/templates directory.

There is a base template that contains the menu buttons and the clock that appears at the left of the other content of SIP UI pages. There is space below the clock that could be use for an image. An image tag could be added to the div holding time elements at ~line 165 -166 in the base.html file. or a new div could be added below that one.


SIP uses the web.py framework for the UI. the latest documentation for web.py can be found at:
http://webpy.readthedocs.io/en/latest/index.html

The templating section covers the Python integration. The templates are a combination of HTML and python.

If images are stored locally they should be placed into the SIP/static directory.

Dan
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)