Closed smarti2019 closed 3 years ago
Please upgrade the the latest changes and try again. Do give feedback if the error persist.
See README.md about how to upgrade
yes, the same error ./sat.sh: line 89: [: file: integer expression expected
Hum... let me check that...
if [ $MAXELEV -gt 10 ] ; then
So your MAXELEV var does not contains an integer
Please run this on the PC you have the soft installed and report the full output:
/usr/bin/predict -t /etc/sat_data/data.txt -p NOAA19
Try this it fixed the problem with predict and it now runs correctly. Now to recheck the rest of the install as still not working mkdir ~/.predict cd ~/.predict wget https://raw.githubusercontent.com/kd2bd/predict/master/default/predict.db wget https://raw.githubusercontent.com/kd2bd/predict/master/default/predict.tle wget https://raw.githubusercontent.com/kd2bd/predict/master/default/predict.qth
Having fixed predict now get this running the command line bit. pi@raspberrypi:~ $ /usr/bin/predict -t /etc/sat_data/data.txt -p NOAA19 1612437023 Thu 04Feb21 11:10:23 0 2 221 80 356 3421 61814 0.000000 1612437124 Thu 04Feb21 11:12:04 2 349 225 77 24 3229 61814 0.000000 1612437225 Thu 04Feb21 11:13:45 2 335 229 73 39 3181 61814 0.000000 1612437326 Thu 04Feb21 11:15:26 1 322 233 68 48 3285 61814 0.000000 1612437386 Thu 04Feb21 11:16:26 0 315 236 64 52 3412 61814 * 0.000000
but still get this when running sats.sh pi@raspberrypi:~ $ sudo sats.sh Updating data and scheduling new sats Fresh data fetched, updating the good file Filtering the sats we need and set simple names => ISS (ZARYA)/ISS /usr/local/bin/sats.sh: line 89: [: file: integer expression expected => RADFXSAT (FOX-1B)/AO91-FOX-1B /usr/local/bin/sats.sh: line 89: [: file: integer expression expected => FOX-1CLIFF (AO-95)/AO95-FOX-1CLIFF /usr/local/bin/sats.sh: line 89: [: file: integer expression expected => FOX-1D (AO-92)/AO92-FOX-1D /usr/local/bin/sats.sh: line 89: [: file: integer expression expected => DIWATA-2B/PO101-DIWATA-2B /usr/local/bin/sats.sh: line 89: [: file: integer expression expected => NOAA 19/NOAA19 /usr/local/bin/sats.sh: line 89: [: file: integer expression expected => NOAA 18/NOAA18 /usr/local/bin/sats.sh: line 89: [: file: integer expression expected => NOAA 15/NOAA15 /usr/local/bin/sats.sh: line 89: [: file: integer expression expected
from the console at user "pi" /usr/bin/predict -t /etc/sat_data/data.txt -p NOAA19 1612454507 Thu 04Feb21 16:01:47 0 101 184 41 330 3419 61817 0.000000 1612454608 Thu 04Feb21 16:03:28 5 92 189 46 333 2906 61817 0.000000 1612454709 Thu 04Feb21 16:05:09 10 79 193 52 335 2484 61817 0.000000 1612454809 Thu 04Feb21 16:06:49 14 62 197 58 339 2211 61817 0.000000 1612454908 Thu 04Feb21 16:08:28 15 42 201 63 343 2143 61817 0.000000 1612455006 Thu 04Feb21 16:10:06 13 23 205 69 349 2293 61817 0.000000 1612455106 Thu 04Feb21 16:11:46 8 8 209 74 358 2624 61817 0.000000 1612455206 Thu 04Feb21 16:13:26 3 357 214 78 15 3084 61817 0.000000 1612455271 Thu 04Feb21 16:14:31 0 351 216 80 33 3424 61817 * 0.000000
Please download the attached file into the machine you has FAASGS installed, then do the following:
mv sats.txt sats.sh
chmod +x sats.sh
./sats.sh
And report back the full output (copy it as a txt file and attach it to your post), this file is a debug loaded version of sat.sh
File: sats.txt
Hi Pavel
Here is the output from your debug script.
Dave
From: Pavel Milanes (CO7WT) notifications@github.com Sent: 05 February 2021 04:41 To: stdevPavelmc/FAASGS FAASGS@noreply.github.com Cc: Murzim2 murzim@hotmail.co.uk; Comment comment@noreply.github.com Subject: Re: [stdevPavelmc/FAASGS] error by execute sat.sh (#11)
Please download the attached file into the machine you has FAASGS installed, then do the following:
mv sats.txt sats.sh
chmod +x sats.sh
./sats.sh
And report back the full output (copy it as a txt file and attach it to your post), this file is a debug loaded version of sat.sh
- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FstdevPavelmc%2FFAASGS%2Fissues%2F11%23issuecomment-773782992&data=04%7C01%7C%7C53de508663a14b461ace08d8c9903cc9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637480968614190505%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=l%2F0KCMOsWlRdXtKPSO7Ab0KtkX9%2BApTbalvgFpXl6Cw%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAH5DISSTV6E2SZWUCIC6VJ3S5NZFXANCNFSM4W3FAGRQ&data=04%7C01%7C%7C53de508663a14b461ace08d8c9903cc9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637480968614200494%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=GLCpka6MFK6Vlj18AcqM3mYK70AcjNy5%2B3aQXg1UwWw%3D&reserved=0.
pi@raspberrypi:~/FAASGS $ ./sats.sh Updating data and scheduling new sats mkdir: cannot create directory â: Permission denied /etc/sat_data/data_temp.txt: Permission denied Can't fetch fresh TLE data, using old one ./sats.sh: line 30: /var/www/html/sat/passes.txt: Permission denied => ISS (ZARYA)/ISS ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
=> RADFXSAT (FOX-1B)/AO91-FOX-1B ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
Fri Feb 05 10:49:49 2021, 66o, 689s ./sats.sh: line 105: /var/www/html/sat/passes.txt: Permission denied => FOX-1CLIFF (AO-95)/AO95-FOX-1CLIFF ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
Fri Feb 05 10:29:13 2021, 52o, 742s ./sats.sh: line 105: /var/www/html/sat/passes.txt: Permission denied => FOX-1D (AO-92)/AO92-FOX-1D ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
Fri Feb 05 09:38:19 2021, 12o, 573s ./sats.sh: line 105: /var/www/html/sat/passes.txt: Permission denied => DIWATA-2B/PO101-DIWATA-2B ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
Fri Feb 05 12:46:40 2021, 12o, 615s ./sats.sh: line 105: /var/www/html/sat/passes.txt: Permission denied => NOAA 19/NOAA19 ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
Fri Feb 05 09:17:08 2021, 16o, 770s ./sats.sh: line 105: /var/www/html/sat/passes.txt: Permission denied => NOAA 18/NOAA18 ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
Fri Feb 05 10:28:42 2021, 83o, 953s ./sats.sh: line 105: /var/www/html/sat/passes.txt: Permission denied => NOAA 15/NOAA15 ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
Fri Feb 05 09:43:21 2021, 20o, 797s ./sats.sh: line 105: /var/www/html/sat/passes.txt: Permission denied pi@raspberrypi:~/FAASGS $
here the output:
pi@rasp4b:~/FAASGS $ ./sats.sh Updating data and scheduling new sats mkdir: cannot create directory ‘/var/www’: Permission denied /etc/sat_data/data_temp.txt: Permission denied Can't fetch fresh TLE data, using old one ./sats.sh: line 30: /var/www/html/sat/passes.txt: Permission denied => ISS (ZARYA)/ISS ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
Fri Feb 05 17:18:30 2021, 38o, 643s ./sats.sh: line 105: /var/www/html/sat/passes.txt: Permission denied => RADFXSAT (FOX-1B)/AO91-FOX-1B ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
=> FOX-1CLIFF (AO-95)/AO95-FOX-1CLIFF ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
=> FOX-1D (AO-92)/AO92-FOX-1D ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
=> DIWATA-2B/PO101-DIWATA-2B ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
=> NOAA 19/NOAA19 ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
Fri Feb 05 18:27:24 2021, 61o, 943s ./sats.sh: line 105: /var/www/html/sat/passes.txt: Permission denied => NOAA 18/NOAA18 ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
=> NOAA 15/NOAA15 ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
Fri Feb 05 17:11:02 2021, 19o, 786s ./sats.sh: line 105: /var/www/html/sat/passes.txt: Permission denied pi@rasp4b:~/FAASGS $
Ouch!
Sorry, I must said: "run it as sudo", that's why it give you a lot of "Permission denied"
So please run it as sudo ./sats.sh
and report back.
Hi Pavel
Think I may have seen another problem associated with Predict. The .Predict directory was not in /root Now get entry's in the web page. Will see how I get on tomorrow.
Attached the output from the system with the /root/.predict in place.
Dave, G8PGO
From: Pavel Milanes (CO7WT) notifications@github.com Sent: 05 February 2021 19:34 To: stdevPavelmc/FAASGS FAASGS@noreply.github.com Cc: Murzim2 murzim@hotmail.co.uk; Comment comment@noreply.github.com Subject: Re: [stdevPavelmc/FAASGS] error by execute sat.sh (#11)
Ouch!
Sorry, I must said: "run it as sudo", that's why it give you a lot of "Permission denied"
So please run it as sudo ./sats.sh and report back.
- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FstdevPavelmc%2FFAASGS%2Fissues%2F11%23issuecomment-774243588&data=04%7C01%7C%7C7de622f614984733d2b708d8ca0cf3f6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637481504263551996%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=rfwnsg0EyK%2Fc9VUYi84BrwGD5wNh53Qyu56ppEBUT3o%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAH5DISVEDFIHO3Q27WHFRXTS5RBZRANCNFSM4W3FAGRQ&data=04%7C01%7C%7C7de622f614984733d2b708d8ca0cf3f6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637481504263551996%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=SAAexL1aENle6yaTn%2BtYSwYxyW86MfUr9c7L84pBypg%3D&reserved=0.
pi@raspberrypi:~/FAASGS $ sudo ./sats.sh Updating data and scheduling new sats Fresh data fetched, updating the good file Filtering the sats we need and set simple names => ISS (ZARYA)/ISS ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
=> RADFXSAT (FOX-1B)/AO91-FOX-1B ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
Fri Feb 05 22:31:34 2021, 18o, 754s => FOX-1CLIFF (AO-95)/AO95-FOX-1CLIFF ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
Fri Feb 05 19:50:28 2021, 11o, 594s => FOX-1D (AO-92)/AO92-FOX-1D ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
Fri Feb 05 20:21:18 2021, 14o, 574s => DIWATA-2B/PO101-DIWATA-2B ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
=> NOAA 19/NOAA19 ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
Sat Feb 06 05:43:48 2021, 19o, 830s => NOAA 18/NOAA18 ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
Fri Feb 05 20:20:29 2021, 58o, 937s => NOAA 15/NOAA15 ===== DEBUG: PREDICTION ======
===== DEBUG: MAXELEV ======
pi@raspberrypi:~/FAASGS $
Ok, last run (debug script) is looking good, please notify me if the issue is fixed to close it.
Hi Pavel
Yes I think that issue is fixed by doing the following as there were errors in the Predict install.
ln -s /home/pi/.predict .predict
create a symbolic link from /root to /home/pi/.predict
Think you can now close this one.
Now re-looking at the rest of the install to see if I have done it correctly as I am getting
The web pages up to the recorded Satellite data but if I click the play button of the image icon I get
A 404 not found error for both the wav and png files.
From: Pavel Milanes (CO7WT) notifications@github.com Sent: 06 February 2021 08:04 To: stdevPavelmc/FAASGS FAASGS@noreply.github.com Cc: Murzim2 murzim@hotmail.co.uk; Comment comment@noreply.github.com Subject: Re: [stdevPavelmc/FAASGS] error by execute sat.sh (#11)
Ok, last run (debug script) is looking good, please notify me if the issue is fixed to close it.
- You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FstdevPavelmc%2FFAASGS%2Fissues%2F11%23issuecomment-774421992&data=04%7C01%7C%7C61893b464846468a2f9f08d8ca75d034%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637481954634050879%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=i%2Bjv%2BwC46Ykc0eo%2FB66lbAhj%2FoxhP%2BgoIfRThrryu64%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAH5DISWOIELDTVKEQL5OXA3S5TZYLANCNFSM4W3FAGRQ&data=04%7C01%7C%7C61893b464846468a2f9f08d8ca75d034%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637481954634060867%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=zpE2u3XS%2Fsw6Q9gDUEYMJmXNUU%2BbogWW2MkbJTzuD6A%3D&reserved=0.
Yes I think that issue is fixed by doing the following as there were errors in the Predict install.
Good to know!
The web pages up to the recorded Satellite data but if I click the play button of the image icon I get A 404 not found error for both the wav and png files.
Let it record a few passes, some times when two satellites pass overlaps just one of them will be recorded and the other just got empty.
I wait your feedback.
Hum... O think this maybe related with https://github.com/stdevPavelmc/FAASGS/issues/13
TL;DR: if you use RaspiOS then rtl_fm
has no '-E wav' option.
I will test it today and will try to came up with a solution for all
error :
root@rasp4b:/home/pi/FAASGS# ./sat.sh Updating data and scheduling new sats Fresh data fetched, updating the good file Filtering the sats we need and set simple names => NOAA 19/NOAA19 ./sat.sh: line 89: [: file: integer expression expected => NOAA 18/NOAA18 ./sat.sh: line 89: [: file: integer expression expected => NOAA 15/NOAA15 ./sat.sh: line 89: [: file: integer expression expected
any ideas?