Direct url-call by browser without any problem yields the table in previous message.
.
As next step applied the below scriptlines as function to capture the contents of an url;
working in other lua-files without problems for urls related to json-files en xml-files.
Code: Select all
function os.capture(cmd, raw)
local f = assert(io.popen(cmd, 'r'))
local s = assert(f:read('*a'))
f:close()
if raw then return s end
s = string.gsub(s, '^%s+', '')
s = string.gsub(s, '%s+$', '')
s = string.gsub(s, '[\n\r]+', ' ')
return s
end
Subsequent simple implementation of this function as part of lua-file for grab & print.
Code: Select all
result=os.capture('curl -s "https://www.findu.com/cgi-bin/rawwx.cgi?call='..CWOP_System_ID..'"')
if (DEBUG == 1) then
print('Table-File CWOP_Weather')
print(result)
end
But such setup produces a print of an apparently empty file ...........
.
Digging a bit deeper (in the source-info of the browser-picture) detect that the output of the url-call
looks like a HTML-file,
unexpectedly turning this exercise into webscraping-effort, instead of just reading&storing the datafile after an url-call.
- Spoiler: show
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd"><HTML>
<HEAD>
<meta http-equiv="expires" content="-1">
<meta http-equiv="pragma" content="no-cache">
<TITLE>Raw Weather for EW0725</TITLE>
</HEAD>
<BODY alink="#008000" bgcolor="#F5F5DC" link="#0000FF" vlink="#000080">
EW0725>APRS,TCPXX*,qAX,CWOP-6:@290650z5217.78N/00648.33E_345/001g004t051r000p001P001b10149h86L201.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@290700z5217.78N/00648.33E_099/000g001t051r000p001P001b10149h85L212.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@290710z5217.78N/00648.33E_276/001g004t051r000p001P001b10149h83L220.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@290720z5217.78N/00648.33E_073/000g003t052r000p001P001b10149h82L234.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@290730z5217.78N/00648.33E_107/000g003t052r000p001P001b10148h82L239.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@290740z5217.78N/00648.33E_085/000g003t053r000p001P001b10147h79L192.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@290750z5217.78N/00648.33E_167/000g003t052r000p001P001b10147h78L116.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@290800z5217.78N/00648.33E_080/000g003t052r000p001P001b10147h80L148.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@290810z5217.78N/00648.33E_094/000g003t052r000p001P001b10147h82L144.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@290820z5217.78N/00648.33E_260/000g003t052r000p001P001b10147h83L089.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@290830z5217.78N/00648.33E_223/000g003t051r002p003P003b10148h86L058.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@290840z5217.78N/00648.33E_063/000g001t051r002p003P003b10149h88L148.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@290850z5217.78N/00648.33E_056/001g006t050r002p003P003b10149h87L291.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@290900z5217.78N/00648.33E_073/000g001t051r002p003P003b10149h87L349.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@290910z5217.78N/00648.33E_022/000g002t052r002p003P003b10148h84L423.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@290920z5217.78N/00648.33E_170/000g003t053r002p003P003b10148h81L279.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@290930z5217.78N/00648.33E_023/000g004t053r000p003P003b10147h81L305.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@290940z5217.78N/00648.33E_043/001g003t054r000p003P003b10147h80L461.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@290950z5217.78N/00648.33E_278/001g005t054r000p003P003b10147h76L489.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291000z5217.78N/00648.33E_271/001g005t054r000p003P003b10147h73L336.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291010z5217.78N/00648.33E_252/002g005t054r000p003P003b10146h73L416.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@291020z5217.78N/00648.33E_339/001g006t054r000p003P003b10146h74L172.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291030z5217.78N/00648.33E_131/003g003t...r000p003P003b.....h...weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@291040z5217.78N/00648.33E_076/000g002t053r000p003P003b10146h78L206.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@291050z5217.78N/00648.33E_013/001g004t053r000p003P003b10146h77L342.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@291100z5217.78N/00648.33E_261/001g004t054r000p003P003b10146h74L576.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@291110z5217.78N/00648.33E_084/001g004t055r000p003P003b10145h71L648.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291120z5217.78N/00648.33E_062/001g006t057r000p003P003b10143h69L490.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@291130z5217.78N/00648.33E_050/001g004t057r000p003P003b10143h70L251.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291140z5217.78N/00648.33E_167/001g004t056r000p003P003b10142h70L391.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@291150z5217.78N/00648.33E_104/001g003t056r000p003P003b10142h69L494.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@291200z5217.78N/00648.33E_036/001g007t057r000p003P003b10141h69L458.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@291210z5217.78N/00648.33E_114/001g004t057r000p003P003b10140h67L537.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@291220z5217.78N/00648.33E_335/001g005t057r000p003P003b10139h67L511.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291230z5217.78N/00648.33E_044/001g007t057r000p003P003b10138h68L617.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@291240z5217.78N/00648.33E_030/000g004t058r000p003P003b10138h67L447.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@291250z5217.78N/00648.33E_111/001g004t057r000p003P003b10137h68L263.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@291300z5217.78N/00648.33E_086/001g006t057r000p003P003b10138h70L258.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@291310z5217.78N/00648.33E_262/001g005t056r000p003P003b10138h67L295.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@291320z5217.78N/00648.33E_178/001g003t056r000p003P003b10137h66L359.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291330z5217.78N/00648.33E_187/001g003t056r000p003P003b10137h67L353.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@291340z5217.78N/00648.33E_271/002g005t056r000p003P003b10137h67L382.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291350z5217.78N/00648.33E_046/001g004t056r000p003P003b10137h69L239.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@291400z5217.78N/00648.33E_253/001g004t056r000p003P003b10137h68L242.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@291410z5217.78N/00648.33E_267/001g004t056r000p003P003b10137h67L313.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291420z5217.78N/00648.33E_175/001g003t056r000p003P003b10137h70L343.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291430z5217.78N/00648.33E_227/001g004t056r000p003P003b10137h70L258.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@291440z5217.78N/00648.33E_202/001g004t055r000p003P003b10136h70L284.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@291450z5217.78N/00648.33E_246/000g003t055r000p003P003b10136h69L334.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@291500z5217.78N/00648.33E_270/001g004t056r000p003P003b10135h68L333.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@291510z5217.78N/00648.33E_245/001g004t056r000p003P003b10136h68L233.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@291520z5217.78N/00648.33E_256/001g004t056r000p003P003b10136h69L145.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@291530z5217.78N/00648.33E_236/000g003t055r000p003P003b10136h71L274.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@291540z5217.78N/00648.33E_153/001g005t055r000p003P003b10136h70L236.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@291550z5217.78N/00648.33E_211/000g002t055r000p003P003b10135h69L155.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@291600z5217.78N/00648.33E_253/001g004t055r000p003P003b10135h71L101.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291610z5217.78N/00648.33E_281/000g003t054r000p003P003b10134h72L106.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@291620z5217.78N/00648.33E_264/000g003t054r000p003P003b10134h72L114.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291630z5217.78N/00648.33E_281/000g004t054r000p003P003b10133h73L148.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291640z5217.78N/00648.33E_246/000g003t054r000p003P003b10133h73L113.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@291650z5217.78N/00648.33E_069/001g005t054r000p003P003b10134h72L035.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@291700z5217.78N/00648.33E_134/000g003t053r000p003P003b10134h75L041.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@291710z5217.78N/00648.33E_071/001g004t052r000p003P003b10134h76L065.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@291720z5217.78N/00648.33E_052/000g002t052r000p003P003b10134h76L066.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291730z5217.78N/00648.33E_084/000g002t052r000p003P003b10134h75L080.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@291740z5217.78N/00648.33E_069/000g001t052r000p003P003b10134h76L077.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@291750z5217.78N/00648.33E_102/000g001t052r000p003P003b10134h74L065.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291800z5217.78N/00648.33E_063/001g003t053r000p003P003b10134h73L057.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@291810z5217.78N/00648.33E_051/000g003t052r000p003P003b10134h74L043.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@291820z5217.78N/00648.33E_041/000g002t052r000p003P003b10134h74L030.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@291830z5217.78N/00648.33E_038/001g004t052r000p003P003b10134h73L017.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@291840z5217.78N/00648.33E_032/000g003t052r000p003P003b10135h74L012.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@291850z5217.78N/00648.33E_062/000g003t051r000p003P003b10135h73L014.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@291900z5217.78N/00648.33E_.../000g000t051r000p003P003b10134h74L014.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@291910z5217.78N/00648.33E_232/000g002t051r000p003P003b10135h74L010.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@291920z5217.78N/00648.33E_060/000g002t051r000p003P003b10135h75L006.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@291930z5217.78N/00648.33E_.../000g000t051r000p003P003b10135h76L005.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@291940z5217.78N/00648.33E_.../000g000t050r000p003P003b10135h77L002.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@291950z5217.78N/00648.33E_056/000g001t050r000p003P003b10135h78L001.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@292000z5217.78N/00648.33E_050/000g001t050r000p003P003b10135h78L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@292010z5217.78N/00648.33E_.../000g000t050r000p003P003b10135h78L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@292020z5217.78N/00648.33E_203/000g002t050r000p003P003b10135h78L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@292030z5217.78N/00648.33E_.../000g000t050r000p003P003b10134h77L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@292040z5217.78N/00648.33E_343/000g002t050r000p003P003b10135h75L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@292050z5217.78N/00648.33E_246/000g002t050r000p003P003b10135h74L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@292100z5217.78N/00648.33E_.../000g000t050r000p003P003b10134h74L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@292110z5217.78N/00648.33E_020/000g002t050r000p003P003b10134h74L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@292120z5217.78N/00648.33E_.../000g000t049r000p003P003b10134h76L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@292130z5217.78N/00648.33E_352/000g002t049r000p003P003b10134h76L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@292140z5217.78N/00648.33E_.../000g000t049r000p003P003b10134h77L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@292150z5217.78N/00648.33E_.../000g000t049r000p003P003b10134h78L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@292200z5217.78N/00648.33E_345/000g002t049r000p003P000b10134h78L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@292210z5217.78N/00648.33E_.../000g000t049r000p003P000b10134h79L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@292220z5217.78N/00648.33E_.../000g000t049r000p003P000b10134h79L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@292230z5217.78N/00648.33E_022/000g002t049r000p003P000b10134h80L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@292240z5217.78N/00648.33E_.../000g000t048r000p003P000b10134h81L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@292250z5217.78N/00648.33E_.../000g000t048r000p003P000b10134h81L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@292300z5217.78N/00648.33E_.../000g000t048r000p003P000b10133h82L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@292310z5217.78N/00648.33E_.../000g000t048r000p003P000b10134h82L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@292320z5217.78N/00648.33E_.../000g000t047r000p003P000b10133h82L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@292330z5217.78N/00648.33E_.../000g000t047r000p003P000b10133h83L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@292340z5217.78N/00648.33E_.../000g000t047r000p003P000b10133h83L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@292350z5217.78N/00648.33E_.../000g000t046r000p003P000b10133h84L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@300000z5217.78N/00648.33E_.../000g000t046r000p003P000b10133h86L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@300010z5217.78N/00648.33E_.../000g000t045r000p003P000b10132h86L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@300020z5217.78N/00648.33E_.../000g000t045r000p003P000b10132h86L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@300030z5217.78N/00648.33E_.../000g000t045r000p003P000b10132h87L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@300040z5217.78N/00648.33E_.../000g000t045r000p003P000b10132h87L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@300050z5217.78N/00648.33E_.../000g000t046r000p003P000b10131h87L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@300100z5217.78N/00648.33E_.../000g000t046r000p003P000b10130h86L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@300110z5217.78N/00648.33E_.../000g000t046r000p003P000b10131h86L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@300120z5217.78N/00648.33E_.../000g000t046r000p003P000b10131h86L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@300130z5217.78N/00648.33E_.../000g000t...r000p003P000b.....h...weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@300140z5217.78N/00648.33E_047/000g001t046r000p003P000b10130h86L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@300150z5217.78N/00648.33E_.../000g000t046r000p003P000b10129h86L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@300200z5217.78N/00648.33E_.../000g000t046r000p003P000b10129h87L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@300210z5217.78N/00648.33E_.../000g000t046r000p003P000b10128h87L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@300220z5217.78N/00648.33E_.../000g000t045r000p003P000b10128h88L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@300230z5217.78N/00648.33E_.../000g000t045r000p003P000b10127h89L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@300240z5217.78N/00648.33E_.../000g000t044r000p003P000b10128h90L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@300250z5217.78N/00648.33E_.../000g000t044r000p003P000b10127h91L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@300300z5217.78N/00648.33E_.../000g000t044r000p003P000b10127h91L000.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@300310z5217.78N/00648.33E_.../000g000t044r000p003P000b10128h91L001.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@300320z5217.78N/00648.33E_276/000g001t044r000p003P000b10128h90L002.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@300330z5217.78N/00648.33E_118/000g001t045r000p003P000b10128h89L005.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@300340z5217.78N/00648.33E_.../000g000t045r000p003P000b10128h89L010.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@300350z5217.78N/00648.33E_.../000g000t045r000p003P000b10129h89L014.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@300400z5217.78N/00648.33E_.../000g000t044r000p003P000b10129h90L020.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@300410z5217.78N/00648.33E_.../000g000t044r000p003P000b10129h90L020.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@300420z5217.78N/00648.33E_.../000g000t044r000p002P000b10128h91L024.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@300430z5217.78N/00648.33E_.../000g000t044r000p002P000b10129h91L037.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@300440z5217.78N/00648.33E_.../000g000t044r000p002P000b10129h92L049.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@300450z5217.78N/00648.33E_120/000g001t044r000p002P000b10129h91L086.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-1:@300500z5217.78N/00648.33E_312/000g002t045r000p002P000b10130h89L126.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-3:@300510z5217.78N/00648.33E_276/000g001t046r000p002P000b10130h87L131.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@300520z5217.78N/00648.33E_316/000g002t046r000p002P000b10131h86L104.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@300530z5217.78N/00648.33E_330/000g002t047r000p002P000b10132h85L100.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@300540z5217.78N/00648.33E_323/000g002t047r000p002P000b10132h84L123.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@300550z5217.78N/00648.33E_285/000g002t048r000p002P000b10132h82L140.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@300600z5217.78N/00648.33E_245/000g001t048r000p002P000b10132h82L150.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-6:@300610z5217.78N/00648.33E_333/000g003t049r000p002P000b10132h82L161.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-4:@300620z5217.78N/00648.33E_008/000g003t049r000p002P000b10133h79L222.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-5:@300630z5217.78N/00648.33E_307/000g003t050r000p002P000b10133h77L379.weewx-4.7.0-WeatherFlowUDP <br>
EW0725>APRS,TCPXX*,qAX,CWOP-7:@300640z5217.78N/00648.33E_326/000g003t051r000p002P000b10133h76L240.weewx-4.7.0-WeatherFlowUDP <br>
</BODY>
</HTML>
Means that using a lua-file or python-file we need another way to get the CWOP data-lists:
=> a different plan of attack is required to read the url, convert the result to txt-type-file and subsequently extract the last line and it's contents.
An
alternative url-call resulting in nice html-table provides a 'real' html-page with a very simple HTML-table included, covering last 24 hours, with UTC-info to full extend and the meteo-values already translated into metric units. If you
reduce the url-call, you get a table with 'imperial' units.
In this setup with the actual values in the first/top dataline of the table.
Easier for web-scraping software?
Principally not in favour of webscraping, but don't see an alternative, simple approach to get to the CWOP-data.
June01, 2022:
2 Latest messages merged, and last deleted