Jxck-S / plane-notify

Notify if a selected plane has taken off or landed using ADS-B data. Compares older data to newer data to determine if a landing or takeoff has occurred. As well as nav modes, emergency squawk and resolution advisory notifications. Can output to Twitter, Discord, Mastodon, and Telegram
GNU General Public License v3.0
2.5k stars 432 forks source link

Not giving the expected output #34

Open davezaxh opened 2 years ago

davezaxh commented 2 years ago

I recently tried using this program to post status of a particular plane on one of my Discord channels, but the issue is, it isn't giving any output. On cross-verifying with adsb-exchange, although the plane being is in thr air it doesn't display any output, neither on the virtual machine nor on the channel. If you could please look into this matter and let me if there's any wrong being done on my part, it would be really helpful.

On running the program, the webhook set for bot alerts gives me a notification of it starting and therafter shows nothing on the channel but this is the view from the instance image

It isn't showing any flight-data even though the plane in question is still in the air. image

Discord Channel Output\ image

Thanks in advance✌️

rcbonz commented 2 years ago

Was the program running when the plane took off or landed? As far as I could understand, you won't get a notification if the plane is flying on on the ground when the program starts. You'll only get a notification when the plane take off or land while the program is running.

davezaxh commented 2 years ago

Was the program running when the plane took off or landed? As far as I could understand, you won't get a notification if the plane is flying on on the ground when the program starts. You'll only get a notification when the plane take off or land while the program is running?

Yes, the plane did land and takeoff while the program was running. I thought it would display information such as flight atitude, autopilot enabled and so on but it isn't display anything useful at all 🤷

rcbonz commented 2 years ago

Was the program running when the plane took off or landed? As far as I could understand, you won't get a notification if the plane is flying on on the ground when the program starts. You'll only get a notification when the plane take off or land while the program is running?

Yes, the plane did land and takeoff while the program was running. I thought it would display information such as flight atitude, autopilot enabled and so on but it isn't display anything useful at all 🤷

OK, I'm running the program with that ICAO you are using (A16579) and as soon as it takes off I'll let you know here what the outputs are for me. So then we might figure if there's something wrong in your side or elsewhere. Could be ASDBX information that are not reliable.

Meanwhile, if you want to try this ICAO on your program: AE6A36, it's an USAF helicopter that have being very active, so it won't take long for you to find out what the outputs are for you.

B0nz

rcbonz commented 2 years ago

Was the program running when the plane took off or landed? As far as I could understand, you won't get a notification if the plane is flying on on the ground when the program starts. You'll only get a notification when the plane take off or land while the program is running?

Yes, the plane did land and takeoff while the program was running. I thought it would display information such as flight atitude, autopilot enabled and so on but it isn't display anything useful at all 🤷

OK, I'm running the program with that ICAO you are using (A16579) and as soon as it takes off I'll let you know here what the outputs are for me. So then we might figure if there's something wrong in your side or elsewhere. Could be ASDBX information that are not reliable.

Meanwhile, if you want to try this ICAO on your program: AE6A36, it's an USAF helicopter that have being very active, so it won't take long for you to find out what the outputs are for you.

B0nz

Well, plane took off and worked here. Probably something wrong there. Can you send ss or content of planet.ini? IMG_20220315_175302_389

davezaxh commented 2 years ago

Was the program running when the plane took off or landed? As far as I could understand, you won't get a notification if the plane is flying on on the ground when the program starts. You'll only get a notification when the plane take off or land while the program is running?

Yes, the plane did land and takeoff while the program was running. I thought it would display information such as flight atitude, autopilot enabled and so on but it isn't display anything useful at all 🤷

OK, I'm running the program with that ICAO you are using (A16579) and as soon as it takes off I'll let you know here what the outputs are for me. So then we might figure if there's something wrong in your side or elsewhere. Could be ASDBX information that are not reliable.

Meanwhile, if you want to try this ICAO on your program: AE6A36, it's an USAF helicopter that have being very active, so it won't take long for you to find out what the outputs are for you.

B0nz

Well, plane took off and worked here. Probably something wrong there. Can you send ss or content of planet.ini? IMG_20220315_175302_389

For some reason it didn't work for me? What application are you using this with? Discord, Twitter or Pushbullet.

rcbonz commented 2 years ago

Was the program running when the plane took off or landed? As far as I could understand, you won't get a notification if the plane is flying on on the ground when the program starts. You'll only get a notification when the plane take off or land while the program is running?

Yes, the plane did land and takeoff while the program was running. I thought it would display information such as flight atitude, autopilot enabled and so on but it isn't display anything useful at all 🤷

OK, I'm running the program with that ICAO you are using (A16579) and as soon as it takes off I'll let you know here what the outputs are for me. So then we might figure if there's something wrong in your side or elsewhere. Could be ASDBX information that are not reliable. Meanwhile, if you want to try this ICAO on your program: AE6A36, it's an USAF helicopter that have being very active, so it won't take long for you to find out what the outputs are for you. B0nz

Well, plane took off and worked here. Probably something wrong there. Can you send ss or content of planet.ini? IMG_20220315_175302_389

For some reason it didn't work for me? What application are you using this with? Discord, Twitter or Pushbullet.

I'm using Twitter and Telegram (Telegram I coded myself, it's not available in this repository, at least yet), but I get output information in terminal and that image is the one is sent to Twitter and Telegram, not the Tweet. Can you share the content of you Planet.ini without sensitive informations, such as API and so on?

davezaxh commented 2 years ago

Was the program running when the plane took off or landed? As far as I could understand, you won't get a notification if the plane is flying on on the ground when the program starts. You'll only get a notification when the plane take off or land while the program is running?

Yes, the plane did land and takeoff while the program was running. I thought it would display information such as flight atitude, autopilot enabled and so on but it isn't display anything useful at all 🤷

OK, I'm running the program with that ICAO you are using (A16579) and as soon as it takes off I'll let you know here what the outputs are for me. So then we might figure if there's something wrong in your side or elsewhere. Could be ASDBX information that are not reliable. Meanwhile, if you want to try this ICAO on your program: AE6A36, it's an USAF helicopter that have being very active, so it won't take long for you to find out what the outputs are for you. B0nz

Well, plane took off and worked here. Probably something wrong there. Can you send ss or content of planet.ini? IMG_20220315_175302_389

For some reason it didn't work for me? What application are you using this with? Discord, Twitter or Pushbullet.

I'm using Twitter and Telegram (Telegram I coded myself, it's not available in this repository, at least yet), but I get output information in terminal and that image is the one is sent to Twitter and Telegram, not the Tweet. Can you share the content of you Planet.ini without sensitive informations, such as API and so on?

IMG_20220316_130520~2.jpg

rcbonz commented 2 years ago

Everything looks correct. I'd suggest you to start over, git clone again and so on to see if it works. Did you use the "pipenv run python main" (what actually works for me is 'pipenv run python3 main.py')?

davezaxh commented 2 years ago

Everything looks correct. I'd suggest you to start over, git clone again and so on to see if it works. Did you use the "pipenv run python main" (what actually works for me is 'pipenv run python3 main.py')?

I ran the following commands:

  1. pipenv run python3 main.py
  2. pipenv run python main.py
  3. python3 main.py
  4. python main.py

All of the above gave me the same results

It doesn't work!

davezaxh commented 2 years ago

If you don't mind could you put up a screenshot of your mainconf.ini and planeconf.ini while censoring the private information so that I could compare and see what's wrong?

rcbonz commented 2 years ago

Sorry taking so long to answer, busy days irl. Captura de Tela 2022-03-24 às 11 30 36 Captura de Tela 2022-03-24 às 11 28 50

davezaxh commented 2 years ago

You might have revealed your ADSB-Exchange API Key, you might want to change it

Sorry taking so long to answer, busy days irl. Captura de Tela 2022-03-24 às 11 30 36 Captura de Tela 2022-03-24 às 11 28 50

davezaxh commented 2 years ago

Was the program running when the plane took off or landed? As far as I could understand, you won't get a notification if the plane is flying on on the ground when the program starts. You'll only get a notification when the plane take off or land while the program is running?

Yes, the plane did land and takeoff while the program was running. I thought it would display information such as flight atitude, autopilot enabled and so on but it isn't display anything useful at all 🤷

OK, I'm running the program with that ICAO you are using (A16579) and as soon as it takes off I'll let you know here what the outputs are for me. So then we might figure if there's something wrong in your side or elsewhere. Could be ASDBX information that are not reliable. Meanwhile, if you want to try this ICAO on your program: AE6A36, it's an USAF helicopter that have being very active, so it won't take long for you to find out what the outputs are for you. B0nz

Well, plane took off and worked here. Probably something wrong there. Can you send ss or content of planet.ini? IMG_20220315_175302_389

For some reason it didn't work for me? What application are you using this with? Discord, Twitter or Pushbullet.

I'm using Twitter and Telegram (Telegram I coded myself, it's not available in this repository, at least yet), but I get output information in terminal and that image is the one is sent to Twitter and Telegram, not the Tweet. Can you share the content of you Planet.ini without sensitive informations, such as API and so on?

Could you upload your code onto a private repo and then add me a collaborator? I just wanted to understand what exactly is going wrong.

tacodestroyer commented 2 years ago

Anyone still running into this issue? Im having a similar issue but with Discord. Thanks!

davezaxh commented 2 years ago

Anyone still running into this issue? Im having a similar issue but with Discord. Thanks!

Are you able to run it with other mediums?