stdevPavelmc / FAASGS

Fully Automatic Amateur Satellite Ground Station
GNU General Public License v3.0
61 stars 10 forks source link

error by execute sat.sh #11

Closed smarti2019 closed 3 years ago

smarti2019 commented 3 years ago

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?

stdevPavelmc commented 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

smarti2019 commented 3 years ago

yes, the same error ./sat.sh: line 89: [: file: integer expression expected

stdevPavelmc commented 3 years ago

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 
Murzim2 commented 3 years ago

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

Murzim2 commented 3 years ago

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

smarti2019 commented 3 years ago

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

stdevPavelmc commented 3 years ago

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

Murzim2 commented 3 years ago

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

File: sats.txthttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FstdevPavelmc%2FFAASGS%2Ffiles%2F5930143%2Fsats.txt&data=04%7C01%7C%7C53de508663a14b461ace08d8c9903cc9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637480968614190505%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=OeH%2BKMKkanJGm0NLCQeIVMBXZk%2F0EHrfl3zfIeaMyPo%3D&reserved=0

- 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 ======

smarti2019 commented 3 years ago

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 ======

stdevPavelmc commented 3 years ago

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.

Murzim2 commented 3 years ago

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 ======

stdevPavelmc commented 3 years ago

Ok, last run (debug script) is looking good, please notify me if the issue is fixed to close it.

Murzim2 commented 3 years ago

Hi Pavel

Yes I think that issue is fixed by doing the following as there were errors in the Predict install.

  1. 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
  2. sudo -i

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.

stdevPavelmc commented 3 years ago

Yes I think that issue is fixed by doing the following as there were errors in the Predict install.

Good to know!

stdevPavelmc commented 3 years ago

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.

stdevPavelmc commented 3 years ago

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