[ACP-1383]  File Based Weather Server Errors
Type Bug
Priority High
Severity Minor
Component Weather Servers
Fixed In Version [8.0.18.0.1
Versions Affected [8.08.0
Severity Closed
Resolution Complete
Reported By Bob Denny
Resources Bob Denny
Start Date 10/6/2015

Description
See this Comm Center thread by Rob Hawley. He saw an error reading the file (empty file). Make this recoverable as well.

Comments
12/3/2015 2:31:29 PM   Bob Denny
It has been 2 months, I declare it OK now.
10/31/2015 12:32:32 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 896
Affected files /trunk/AcquireSupport.wsc (Modified)
/trunk/Script Components Master/AcquireSupport.wsc (Modified)

/trunk/WeatherComponents/BoltwoodFile.wsc (Modified)
/trunk/WeatherComponents/SROWeather.wsc (Modified)

Check-in comment Polling improvements to file-based weather servers. GEM:1383 Close pointing image window only GEM:1362
10/29/2015 2:14:28 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 895
Affected files /trunk/WeatherComponents/BoltwoodFile.wsc (Modified)
/trunk/WeatherComponents/SROWeather.wsc (Modified)
Check-in comment Add tracing to file in Boltwood and SRO file servers. GEM:1383
10/21/2015 4:21:51 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 882
Affected files /trunk/WeatherComponents/AuroraCloudSensor.wsc (Modified)
/trunk/WeatherComponents/SROWeather.wsc (Modified)
Check-in comment Fix error reporting in loops GEM:1348 GEM:1383
10/21/2015 4:20:10 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 881
Affected files /trunk/WeatherComponents/BoltwoodFile.wsc (Modified)
Check-in comment Fix error reporting in loops GEM:1348 GEM:1383
10/21/2015 2:49:54 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 880
Affected files /trunk/WeatherComponents/AuroraCloudSensor.wsc (Modified)
/trunk/WeatherComponents/BoltwoodFile.wsc (Modified)
/trunk/WeatherComponents/SROWeather.wsc (Modified)
Check-in comment Error handling in file reading loop GEM:1348 GEM:1383
10/20/2015 8:18:34 PM   Bob Denny
I posted the BoltwoodFile server to the Comm Center for Hawley.


I also mailed the SROWeather server to Larry Van Vleet.
10/20/2015 6:35:26 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 878
Affected files /trunk/ACP Help/images/AAGDataFile.jpg (Added)
/trunk/ACP Help/images/ClaritySetup.png (Added)
/trunk/ACP Help/relnotes.htm (Modified)
/trunk/ACP Help/weather.htm (Modified)
/trunk/WeatherComponents/AuroraCloudSensor.wsc (Added)
/trunk/WeatherComponents/BoltwoodFile.wsc (Modified)
/trunk/WeatherComponents/SROWeather.wsc (Modified)
Check-in comment Weather server changes. Using file access for all by preference. Added apecial Aurora server. Overhauled docs to talk about file access. GEM:1348 GEM:801 GEM:1383
10/20/2015 3:09:24 PM   Bob Denny
ALSO STARTUP UNSAFE WEATHER IN COMMON - FIX THIS ON ALL INCLUDING AURORA. SEE THIS POST.
10/20/2015 2:16:36 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 877
Affected files /trunk/ACP Help/relnotes.htm (Modified)
/trunk/WeatherComponents/BoltwoodFile.wsc (Modified)
/trunk/WeatherComponents/SROWeather.wsc (Modified)
Check-in comment Implement more robust file locking in file-based weather servers. GEM:1383
10/20/2015 2:04:01 PM   Bob Denny
Note the attachment from Lukas Demetz with Nerpio weather servers.
10/12/2015 3:48:37 PM   Bob Denny
CHECK SRO FLAVOR OF THIS FOR BOTH PROBLEMS
10/12/2015 3:46:22 PM   Bob Denny
ADDITIONAL PROBLEM: Missing VeryWindy trigger.
10/11/2015 4:05:17 PM   Bob Denny
He has the solution, lock it locally for write, then open for read, etc: See this post and the solution

  For i = 0 To 19                                          ' Try twice a sec. for 10 sec.
Set L = FSO.OpenTextFile(c_sLogFileName, 8) ' Lock the file for writing (using append)
If Err.Number = 0 Then
Set S = FSO.OpenTextFile(c_sLogFileName, 1) ' also resets pointer to start of file
If Err.Number = 0 Then
buf = S.ReadLine ' OK We have the file open. Read the data line
If Err.Number = 0 Then
S.Close ' And close it right away
L.Close
Exit For
Else
buf = Err.Message
S.Close
L.Close
End If
Else
buf = Err.Message
L.Close
End If
Else
buf = Err.Message
End If
Util.WaitForMilliseconds 500
Next
10/9/2015 8:26:46 AM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 875
Affected files /trunk/ACP Help/relnotes.htm (Modified)
/trunk/ACP Help/weather.htm (Modified)
/trunk/WeatherComponents/BoltwoodFile.wsc (Modified)
Check-in comment Make Boltwood reading logic report the specific errors like the SRO one already did (!!!) Weather Safety docs for VeryLight being unsafe (no GEM) GEM:1383