All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 594 posts ]  Go to page Previous  1 ... 20, 21, 22, 23, 24
Author Message
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Sat May 27, 2017 1:07 am 
Offline
EDVEaware - FlightAware user avatar

Joined: Tue Dec 15, 2015 1:44 am
Posts: 36
I'm missing a link to flightradar24, 'cause using mutability before. So i modified a bit of code to get a link to FR24.

Image

Would be nice to get a link into the future also to FR24.

Thanks.


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Sun Jun 04, 2017 7:37 pm 
Offline
FlightAware Member
invergordon - FlightAware user avatar

Joined: Wed Jan 01, 2014 4:18 pm
Posts: 110
Piaware 3.5.0 installed and has been running nicely on my RPi3 for a few days. I have a java script that takes some port 30003 data from dump1090-fa and puts it into a remote MySQL database, again working nicely for the same period except I note that the time of the records is in UTC! I don't want UTC time otherwise I have to recode all my queries and PHP scripts to cater for this. I check the RPi system time and is set to UTC.

So I login to the Rpi3 and run "sudo raspi-config" and set the locale to NZ and time zone to Auckland because that's where I live. A reboot and no dump1090 connection to my Skyview page.

I connect a keyboard and monitor up to the RPi3 and restart, the screen cycles through some info eventually settling on a screen that says all piaware settings are OK (normal) and other system parameters like CPU and network settings. This page cycles itself every 30 seconds and no login prompt is offered.

There are three options:

1. Alt+F1 This screen
2. Alt+F2 Command line login
3. Alt+F10 System logs

Looking at the logs it seems no messages are being sent to Flightaware, there is mention of the time being reset and depending on what point I look at the logs depends on what information is shown, but I see nothing that points me to a remedy.

Connecting to the RPi3 both through Putty and by selecting Alt+F2 keyboard connection results in an immediate disconnection.

Can Piaware not run nicely without the system clock being set to UTC?


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Sun Jun 04, 2017 8:29 pm 
Offline
FlightAware Staff
obj - FlightAware user avatar

Joined: Tue Sep 30, 2014 7:14 pm
Posts: 3654
I don't test with a non-UTC timezone but I wouldn't expect any problems.

Alt-F2 _on the console_ (i.e. with an attached keyboard) will switch you to tty2 which is running a getty (login prompt)
If you want to ssh in, see the docs on enabling ssh.

And speaking as a developer - if you are storing event timestamps using local timezones, you're probably doing it wrong.
Store UTC times and do any conversions you need into the appropriate timezone in your presentation layer.
Local times are not unique, for one thing (e.g. 2 April 2017 02:30 occurs twice in the NZ timezone)

Code:
$ TZ=Pacific/Auckland date -d '1 April 2017 13:30 +0000'
Sun  2 Apr 02:30:00 NZDT 2017
$ TZ=Pacific/Auckland date -d '1 April 2017 14:30 +0000'
Sun  2 Apr 02:30:00 NZST 2017


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Sun Jun 04, 2017 8:49 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2117
Location: Toronto CYYZ
obj wrote:
I don't test with a non-UTC timezone but I wouldn't expect any problems.

I always change to local time zone (US Eastern) and never had any problem because of this.

pi@piaware:~$ date
Sun Jun 4 21:48:19 EDT 2017

@invergordon: Try
sudo systemctl dump1090-fa restart
sudo systemctl piaware restart


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Sun Jun 04, 2017 8:58 pm 
Offline
FlightAware Member
invergordon - FlightAware user avatar

Joined: Wed Jan 01, 2014 4:18 pm
Posts: 110
abcd567 wrote:

@invergordon: Try
sudo systemctl dump1090-fa restart
sudo systemctl piaware restart


Problem is I can no longer log in to my RPi3!


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Sun Jun 04, 2017 9:15 pm 
Offline
FlightAware Staff
obj - FlightAware user avatar

Joined: Tue Sep 30, 2014 7:14 pm
Posts: 3654
I can't really provide support for this sort of problem. rpi-config assumes a lot about the installed system and maybe it broke stuff. I'd be more suspicious of the locale change than the timezone change tbh. Try starting again from a fresh image and trying one change at a time. When you find which step breaks then you can dig into that particular issue. I'll take pull requests or bug reports if there's something specific to the piaware image that is set up incorrectly.


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Sun Jun 04, 2017 11:27 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2117
Location: Toronto CYYZ
@invergordon:
After formatting microSD card and writing fresh Piaware image, dont use command "sudo raspi-config" to set time zone. Instead use following command:
pi@piaware:~$ sudo dpkg-reconfigure tzdata


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Mon Jun 05, 2017 2:20 am 
Offline
FlightAware Member
invergordon - FlightAware user avatar

Joined: Wed Jan 01, 2014 4:18 pm
Posts: 110
abcd567 wrote:
@invergordon:
After formatting microSD card and writing fresh Piaware image, dont use command "sudo raspi-config" to set time zone. Instead use following command:
pi@piaware:~$ sudo dpkg-reconfigure tzdata


Oops, too late, but all good so far using sudo raspi-config.

So I'm not sure what happened this morning (NZ time), I'll be keeping a close eye on 3.5.0.

Thanks all for your words of wisdom.


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Thu Jul 06, 2017 8:41 am 
Offline
rajat321 - FlightAware user avatar

Joined: Sat Mar 23, 2013 10:56 pm
Posts: 16
Hi!
I've started my feeder 57103 a few days with the latest PiAware 3.5.0. Flightaware and Fr24 feeds are working ok. However I'm having the following problems:
1. Skyview is not working. Neither directly on clicking on the webpage nor on putting the address in the browser (192.168.1.39:8080). Problem is there with wireless as well as wired network. Says 'This site can't be reached'.
2. Virtual Radar Server is also not getting data from the feeder nor am I able to feed Planefinder.
Please let me know what I'm doing wrong.

Rajat


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Mon Jul 10, 2017 4:26 am 
Offline
FlightAware Member
invergordon - FlightAware user avatar

Joined: Wed Jan 01, 2014 4:18 pm
Posts: 110
Is there any way to enable PHP with the 3.5 image? If I run:

Code:
sudo lighttpd-enable-mod fastcgi fastcgi-php


this seems to disable all of the web for piaware!

Any ideas?


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Mon Jul 10, 2017 7:44 am 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2117
Location: Toronto CYYZ
rajat321 wrote:
Hi!
I've started my feeder 57103 a few days with the latest PiAware 3.5.0. Flightaware and Fr24 feeds are working ok. However I'm having the following problems:
1. Skyview is not working. Neither directly on clicking on the webpage nor on putting the address in the browser (192.168.1.39:8080). Problem is there with wireless as well as wired network. Says 'This site can't be reached'.
2. Virtual Radar Server is also not getting data from the feeder nor am I able to feed Planefinder.
Please let me know what I'm doing wrong.

Rajat

Which OS image you have written to your microSD card?

Raspbian from: https://www.raspberrypi.org/downloads/

OR

Piaware 3.5.0 SD Card from: http://piaware.flightcdn.com/piaware-sd-card-3.5.0.img.zip

OR

Pi24 from: http://repo.feed.flightradar24.com/rpi_images/fr24-raspberry-pi-latest.img.zip

The problem you described occurs with Pi24 image.

In Pi24 image the folder /var/log is linked to tmpfs in file / etc / fstab. As a result the contents get deleted on reboot. The lighttpd and planefinder clients do not recreate their log folders & files after reboot, and crash at reboot. The map and planefinder data feeder stop working.

If you are using Pi24 image, please see this thread in which I have given a workaround/solution for this problem:

How to Feed Data to Multiple Sites - A Brief Guide
Post #1 describes the problem, Post #2 gives solution.

.


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Mon Jul 10, 2017 12:08 pm 
Offline
rajat321 - FlightAware user avatar

Joined: Sat Mar 23, 2013 10:56 pm
Posts: 16
I'm using the Piaware 3.5.0 SD card image downloaded from the website.


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Mon Jul 10, 2017 1:57 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2117
Location: Toronto CYYZ
rajat321 wrote:
I'm using the Piaware 3.5.0 SD card image downloaded from the website.

Try 192.168.1.39/dump1090-fa/ instead of 192.168.1.39:8080


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Tue Jul 11, 2017 8:11 am 
Offline
louisianajeeper - FlightAware user avatar

Joined: Sat Jan 31, 2015 1:41 pm
Posts: 28
Guess your PiAware site is on the same network as the computer you are trying from. If it is not things get more difficult.

Your Pi does show to be feeding data to FlightAware so it is working.

Go to your MyADSB page and confirm that your router has not reassigned the pi network address. This is found on the site information block and is probably the last line there. Incorrect IP would also account for your problems with other applications. Routers typically use DHCP for assigning addresses and tend to change the IP of any device according to whatever rules that are in the router. I keep my pi set to static IP and also assign that IP in the router so it does not duplicate the address on other devices but that requires more that I can post here.

When you switched to wired connection, if my memory is correct, that would be another IP address. The wireless IP and wired will not be the same.

There are several other ways to confirm sites IP address even if its running without local monitor and keyboard which I'm not touching on here.

Without trying here seems like my memory is that when you hook up wired the IP is not the same as the wireless on your Pi.


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Tue Jul 11, 2017 11:23 am 
Offline
rajat321 - FlightAware user avatar

Joined: Sat Mar 23, 2013 10:56 pm
Posts: 16
With a lot of 'fiddling' over the last few days and a reboot just now, all seems to be well. I'm feeding Flightaware as well as watching Skyview locally!
It must have been something to do with the IP address.
Thanks for all the help and concern. Cheers!


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Mon Jul 17, 2017 12:14 pm 
Offline
lankosher - FlightAware user avatar

Joined: Sun Dec 14, 2014 8:53 am
Posts: 31
Hi Guys,

Anyone experienced similar symptom? I enabled SSH connection and changed my password. After some time I noticed that I lost some features in Control Panel – “send command to device” section disappeared. Can it be retrieved?

In the meantime can you suggest the command to restart dump1090 in Pi 3.5 via SSH? Standard dump1090 not mutability !

Image


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Mon Jul 17, 2017 12:19 pm 
Offline
FlightAware Staff
obj - FlightAware user avatar

Joined: Tue Sep 30, 2014 7:14 pm
Posts: 3654
lankosher wrote:
After some time I noticed that I lost some features in Control Panel – “send command to device” section disappeared. Can it be retrieved?

You have manual updates disabled in your piaware configuration. Manual updates need to be enabled for remote commands to work.


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Mon Jul 17, 2017 12:23 pm 
Offline
FlightAware Member
abcd567 - FlightAware user avatar

Joined: Sat Feb 15, 2014 3:08 am
Posts: 2117
Location: Toronto CYYZ
@lankosher:

Following is the command to restart dump1090 in Pi 3.5 (SD card image) via SSH
Code:
#to restart
sudo systemctl restart dump1090-fa

#to check status
sudo systemctl status dump1090-fa -l



To enable “send command to device”
Code:
sudo piaware-config allow-auto-updates yes
sudo piaware-config allow-manual-updates yes

#now reboot to implement above commands in your stats page
sudo reboot


After reboot, refresh/reload your stats page/settings.


Top
 Profile  
 
 Post subject: Re: Announcing PiAware 3! (Latest version: 3.5.0)
PostPosted: Mon Jul 17, 2017 12:32 pm 
Offline
lankosher - FlightAware user avatar

Joined: Sun Dec 14, 2014 8:53 am
Posts: 31
@ obj & abcd567 - thank you both for prompt answer, it all worked out and Control Panel is full again :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 594 posts ]  Go to page Previous  1 ... 20, 21, 22, 23, 24

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Loxberry, TomMuc and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: