Post by rfindlay on Jun 7, 2016 9:25:04 GMT -8
Hello! I've been using RasPiConnect for a couple of years and have finally run into a situation I need help with.
I'm trying to use Remote Picture Web View. I have edited the ExecuteRemoteWebView file and altered the entry for W-2.
I renamed it W-1000 to match my config in the IOS App. Then I place a file in the static directory and it displays... Sometimes.
It seems that the refresh isn't working the way I'd expect. The /var/log/RasPiConnectServer.log file shows the GETs on the file:
BTW, I cobbled up the lines below, ignore ports and some timestamps...)
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 GET /static/dog-nose.jpg" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:51] "HTTP/1.1 GET /static/dog-nose.jpg" - 304 Not Modified
(I manually change the contents of the image file...)
10.200.0.21:62229 - - [07/Jun/2016 12:47:54] "HTTP/1.1 GET /static/dog-nose.jpg" - 200
(The new image is updated in the IOS App as expected)
10.200.0.21:62229 - - [07/Jun/2016 12:47:57] "HTTP/1.1 GET /static/dog-nose.jpg" - 304 Not Modified
(I manually change the contents of the image file...)
10.200.0.21:62229 - - [07/Jun/2016 12:48:00] "HTTP/1.1 GET /static/dog-nose.jpg" - 200
(The new image is updated in the IOS App as expected)
10.200.0.21:62229 - - [07/Jun/2016 12:48:03] "HTTP/1.1 GET /static/dog-nose.jpg" - 304 Not Modified
(This continues for a few seconds and then it get interesting...)
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:57] "HTTP/1.1 GET /static/dog-nose.jpg" - 304 Not Modified
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:57] "HTTP/1.1 GET /static/dog-nose.jpg" - 304 Not Modified
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:57] "HTTP/1.1 GET /static/dog-nose.jpg" - 304 Not Modified
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:57] "HTTP/1.1 GET /static/dog-nose.jpg" - 304 Not Modified
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
You can see that the checks on the file seem to be coming less and less often until they seem to stop completely!
This breaks my application as I need the refresh of the file contents shown on the IOS App screen at most a few seconds after the file has been changed. If I wait long enough then any changes to the file are never updated to the App until I manually kill and restart the IOS App.
I tried to set the RemoteWebView window as a Refresh control based on a button press but that didn't help and really doesn't fit the way I believe this should work.
I'm running the latest version of the server on a Raspberry Pi running a fully updated Raspian image and the IOS device has the latest IOS as well.
Generally speaking this system has worked quite well but this one has me stumped.
Can you please help?
Richard Findlay
I'm trying to use Remote Picture Web View. I have edited the ExecuteRemoteWebView file and altered the entry for W-2.
I renamed it W-1000 to match my config in the IOS App. Then I place a file in the static directory and it displays... Sometimes.
It seems that the refresh isn't working the way I'd expect. The /var/log/RasPiConnectServer.log file shows the GETs on the file:
BTW, I cobbled up the lines below, ignore ports and some timestamps...)
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 GET /static/dog-nose.jpg" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:51] "HTTP/1.1 GET /static/dog-nose.jpg" - 304 Not Modified
(I manually change the contents of the image file...)
10.200.0.21:62229 - - [07/Jun/2016 12:47:54] "HTTP/1.1 GET /static/dog-nose.jpg" - 200
(The new image is updated in the IOS App as expected)
10.200.0.21:62229 - - [07/Jun/2016 12:47:57] "HTTP/1.1 GET /static/dog-nose.jpg" - 304 Not Modified
(I manually change the contents of the image file...)
10.200.0.21:62229 - - [07/Jun/2016 12:48:00] "HTTP/1.1 GET /static/dog-nose.jpg" - 200
(The new image is updated in the IOS App as expected)
10.200.0.21:62229 - - [07/Jun/2016 12:48:03] "HTTP/1.1 GET /static/dog-nose.jpg" - 304 Not Modified
(This continues for a few seconds and then it get interesting...)
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:57] "HTTP/1.1 GET /static/dog-nose.jpg" - 304 Not Modified
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:57] "HTTP/1.1 GET /static/dog-nose.jpg" - 304 Not Modified
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:57] "HTTP/1.1 GET /static/dog-nose.jpg" - 304 Not Modified
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:57] "HTTP/1.1 GET /static/dog-nose.jpg" - 304 Not Modified
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
10.200.0.21:62229 - - [07/Jun/2016 12:47:48] "HTTP/1.1 POST /raspi" - 200
You can see that the checks on the file seem to be coming less and less often until they seem to stop completely!
This breaks my application as I need the refresh of the file contents shown on the IOS App screen at most a few seconds after the file has been changed. If I wait long enough then any changes to the file are never updated to the App until I manually kill and restart the IOS App.
I tried to set the RemoteWebView window as a Refresh control based on a button press but that didn't help and really doesn't fit the way I believe this should work.
I'm running the latest version of the server on a Raspberry Pi running a fully updated Raspian image and the IOS device has the latest IOS as well.
Generally speaking this system has worked quite well but this one has me stumped.
Can you please help?
Richard Findlay