Images - each zone - Printable Version +- SIP (https://nosack.com/sipforum) +-- Forum: SIP (Sustainable Irrigation Platform) (https://nosack.com/sipforum/forumdisplay.php?fid=1) +--- Forum: Feature requests (https://nosack.com/sipforum/forumdisplay.php?fid=4) +--- Thread: Images - each zone (/showthread.php?tid=64) |
Images - each zone - Flyguy - 2016 Dec 19 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. RE: Images - each zone - dan - 2016 Dec 20 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 |