Plots no longer render in 7.1

Posted on
Mon Oct 23, 2017 5:33 am
johnpolasek offline
Posts: 911
Joined: Aug 05, 2011
Location: Aggieland, Texas

Plots no longer render in 7.1

Not sure if this one is yours or Matts, but I figured I'd start here; I upgraded to Indigo 7.1 and Pibeacon 69.155 last Friday, replacing the Indigo web server with the reduced version from that PiBeacon... and now any time I try to bring up a plot, in either touch or the Indigo clieant , I get
    Oct 23, 2017, 5:25:13 AM
    WebServer internal server error "http://192.168.10.101:8176/refreshingimage" from 192.168.10.190
    WebServer internal server error "http://192.168.10.101:8176/refreshingimage" from 192.168.10.190
    WebServer

    Request Headers:
    AUTHORIZATION: Digest username="XXXXXXXXX", realm="Indigo Control Server", nonce="ad824c6e2645d2546db3583916946602", uri="/refreshingimage?page=House%20Temp%20Plot&id=2", response="1b2ca423b150d9dedfb239feb5bb6504", algorithm="MD5", cnonce="9654b97e40bc2c35c85a13e65a270310", nc=00000003, qop="auth"
    REFERER: http://192.168.10.101:8176/controlpage? ... emp%20Plot
    HOST: 192.168.10.101:8176
    ACCEPT: image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5
    USER-AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4
    CONNECTION: keep-alive
    Remote-Addr: 192.168.10.190
    ACCEPT-LANGUAGE: en-us
    ACCEPT-ENCODING: gzip, deflate

    Traceback (most recent call last):
    File "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/cherrypy/_cprequest.py", line 609, in respond
    cherrypy.response.body = self.handler()
    File "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
    File "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/indigopy/indigoreqhandler.py", line 468, in refreshingimage
    if result_content_type != '' and result_content_type.find('image') != 0:
    UnboundLocalError: local variable 'result_content_type' referenced before assignment

    WebServer

    Request Headers:
    AUTHORIZATION: Digest username="XXXXXXXXX", realm="Indigo Control Server", nonce="ad824c6e2645d2546db3583916946602", uri="/refreshingimage?page=House%20Temp%20Plot&id=2&nocache=1508754312266", response="f18dca62ec9b6d1f8602e726cf5842be", algorithm="MD5", cnonce="9654b97e40bc2c35c85a13e65a270310", nc=00000005, qop="auth"
    REFERER: http://192.168.10.101:8176/controlpage? ... emp%20Plot
    HOST: 192.168.10.101:8176
    ACCEPT: image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5
    USER-AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4
    CONNECTION: keep-alive
    Remote-Addr: 192.168.10.190
    ACCEPT-LANGUAGE: en-us
    ACCEPT-ENCODING: gzip, deflate

    Traceback (most recent call last):
    File "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/cherrypy/_cprequest.py", line 609, in respond
    cherrypy.response.body = self.handler()
    File "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
    File "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/indigopy/indigoreqhandler.py", line 468, in refreshingimage
    if result_content_type != '' and result_content_type.find('image') != 0:
    UnboundLocalError: local variable 'result_content_type' referenced before assignment

    WebServer internal server error "http://192.168.10.101:8176/refreshingimage" from 192.168.10.190
    WebServer

    Request Headers:
    AUTHORIZATION: Digest username="XXXXXXXX", realm="Indigo Control Server", nonce="ad824c6e2645d2546db3583916946602", uri="/refreshingimage?page=House%20Temp%20Plot&id=2&nocache=1508754312266", response="5ff76d975181f24815c383416a796b2b", algorithm="MD5", cnonce="9654b97e40bc2c35c85a13e65a270310", nc=00000006, qop="auth"
    REFERER: http://192.168.10.101:8176/controlpage? ... emp%20Plot
    HOST: 192.168.10.101:8176
    ACCEPT: image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5
    USER-AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4
    CONNECTION: keep-alive
    Remote-Addr: 192.168.10.190
    ACCEPT-LANGUAGE: en-us
    ACCEPT-ENCODING: gzip, deflate

    Traceback (most recent call last):
    File "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/cherrypy/_cprequest.py", line 609, in respond
    cherrypy.response.body = self.handler()
    File "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
    File "/Library/Application Support/Perceptive Automation/Indigo 7/IndigoWebServer/indigopy/indigoreqhandler.py", line 468, in refreshingimage
    if result_content_type != '' and result_content_type.find('image') != 0:
    UnboundLocalError: local variable 'result_content_type' referenced before assignment

Jpgs snatched from the security camera plugin display fine, as do control pages with png backgrounds and control elements.

Posted on
Mon Oct 23, 2017 7:24 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Plots no longer render in 7.1

You can switch to the pibeacon socket version and revert to the original indigo web server.
And the newest version is .159 I believe

There is also the issue of // vs /// in the url --- see other discussion thread:
http://forums.indigodomo.com/viewtopic.php?f=13&t=19290&p=147563&hilit=indigoplotd#p147563
"""
Change the URL to this and it should work:

file:///Users/timm/Documents/INDIGOplotD/PowerUsage-minute-S2.png

The URL you have previously isn't correct, but Indigo was forgiving about it. 7.1 isn't as forgiving.

"""

Sent from my iPhone using Tapatalk

Posted on
Mon Oct 23, 2017 1:57 pm
johnpolasek offline
Posts: 911
Joined: Aug 05, 2011
Location: Aggieland, Texas

Re: Plots no longer render in 7.1

kw123 wrote:
"""
Change the URL to this and it should work:

file:///Users/timm/Documents/INDIGOplotD/PowerUsage-minute-S2.png

The URL you have previously isn't correct, but Indigo was forgiving about it. 7.1 isn't as forgiving.

"""

Sent from my iPhone using Tapatalk



I'll try that when I get home... I assume that's also been updated in the "dump to log for IndigoPlot? I haven't created or updated any new plots since last spring, and copied the refs directly from what was sent to the log at the time.

Posted on
Mon Oct 23, 2017 3:09 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Plots no longer render in 7.1

Have not changed that. Will
Post a new version next week with some improvements.


Sent from my iPhone using Tapatalk

Posted on
Tue Oct 24, 2017 5:43 am
johnpolasek offline
Posts: 911
Joined: Aug 05, 2011
Location: Aggieland, Texas

Re: Plots no longer render in 7.1

The fix did work. All plots now back after changing file:/... to file:///...

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests