Meteobridge RPi4 - Localization by IP stopped working **solved**
Posted: Fri Mar 26, 2021 11:24 pm
Recently the "Localization by IP" area on the "Meteobridge Information" screen stopped reporting my ISP information. MB = v5.1 build 2202)
I suspect that the problem may be that the provider "ip-tracker.org" may have changed their http-response layout to the IP track request coming from Meteobridge.
Looking at the Meteobridge code it appears that the program "/home/iptrack.sh" is failing on line 13 when it attempts to get the FLAGURL.
FLAGURL="`cat $FILE | awk -F\<img\ src= '{print $2}' | awk -F\' '{print $2}'`"
For a simple test I changed that line to read:
FLAGURL="`cat $FILE | awk -F src= '{print $2}' | awk -F\' '{print $2}'`"
and the IP location was successful.
Can you please have a look and tell me if you agree this may be an issue?
Thanks much.
I suspect that the problem may be that the provider "ip-tracker.org" may have changed their http-response layout to the IP track request coming from Meteobridge.
Looking at the Meteobridge code it appears that the program "/home/iptrack.sh" is failing on line 13 when it attempts to get the FLAGURL.
FLAGURL="`cat $FILE | awk -F\<img\ src= '{print $2}' | awk -F\' '{print $2}'`"
For a simple test I changed that line to read:
FLAGURL="`cat $FILE | awk -F src= '{print $2}' | awk -F\' '{print $2}'`"
and the IP location was successful.
Can you please have a look and tell me if you agree this may be an issue?
Thanks much.