Skip to content

Airports.txt errors in metar.py and Crontab issues #64

@TheMagicDick

Description

@TheMagicDick

I have fixed these problems but just wanted to put my solutions out there for those that are having problems.

In the metar.py file it calls airports to get the names of the airports needed, but the original file gives errors and you need to change all of the code to have the full name, airports.txt

Recently i had to redo everything because of a suspected corrupted sd card that bricked my os installation. in the latest version of raspberry lite when installing pip3 it gave an externally managed error that had me force the installation that probably caused my next issue, the crontab.

Instead of using crontab -e, i had to manually do "sudo nano /etc/crontab" to add my refresh and reboot code

i used

*/5 * * * * /home/pi/refresh.sh
@reboot sudo python3 metar.py &

and that fixed my problems

I have attached my metar.py for anyone that doesnt want to do the airports.txt fix.

metar.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions