That’s OK, the address there is just for if you are running it on another machine. It only gets used then. I’ve reproduced the error on the github version, but I don’t get it on the version I’m using, so I’ll see what’s different.
Edit: @bramjacobse check if you have curl installed - the error appears to be because the upintheair.json file is 0 bytes. If curl is missing an empty file gets created.
@caius I’m having the same problem as bramjacobse. The script was working fine until you made the changes yesterday.
pi@Test:~ $ ./polar.sh 200 10
Using disk : /home/pi
12000
Gathering data every 10 seconds until Tue 13 Aug 14:33:39 BST 2019
Number of data points collected: 157578
Calculating Range, Azimuth and Elevation data:
awk: not an option: -i
Filtering altitudes
Processing heywhatsthat.com data:
/home/pi/upintheair.json
awk: not an option: -i
[Edit] I do have a upintheair.json file in /home/pi My hwt is QQCXP59B
No, that’s correct and I get data if I use that. Does upintheair.json exist, and if so does it have data in it? Do:
ls -lh upintheair.json
It should be bigger than 0 bytes.
I suspect that the problem is you have a zero byte file there. At present the script won’t check if the file is valid, so if the download failed previously that won’t correct itself. I’ll implement a change to fix that.
Yep, it seems that running the script the first time without a valid hwt id results in the creation of a 0 byte upintheair.json which persists between runs.
My upintheair.json was populated and ~240K. I did run the script yesterday without a valid ID by mistake. I’ve since deleted it and re-run seems OK so far.
Fontconfig warning: ignoring UTF-8: not a valid region tag
Generating high altitude heatmap…
“/dev/stdin” line 52: warning: Cannot find or open file “/home/pi/heatmap_high”
Generating low altitude heatmap…
“/dev/stdin” line 64: warning: Cannot find or open file “/home/pi/heatmap_low”
“/dev/stdin” line 64: No data in plot