.
Did you carry out following steps when changing skin from 2-clock to SkyView?
#now go to folder dump1090-mutability
cd /usr/share/dump1090-mutability
#first change name of folder html to original-html
#this preserves the original html folder, and enables revert in case something goes wrong
sudo mv html original-html
To find out if you have renamed original folder to original-html, give this command
ls /usr/share/dump1090-mutability
If yes, then to revert do this:
#Go to folder dump1090-mutability
cd /usr/share/dump1090-mutability
#Change name of folder html to fa-html
#this preserves the SkyView html folder, and enables revertto SkyView in case something goes wrong
sudo mv html fa-html
#Now change name of original-html to html
sudo mv original-html html
#Delete existing file optimize-gain.py
sudo rm optimize-gain.py
#Create new blank file optimize-gain.py and make it executeable
sudo touch optimize-gain.py
sudo chmod +x optimize-gain.py
#Run the new blank file
sudo ./optimize-gain.py
Do you still get error message, or get nothing?
If you still get error message, then problem is with your python installation.
If you get nothing, then problem was in code. In this case copy-pate the code in the new blank file, save file then again give following command to run it.
Before, created the file with the windows editor, copied the skript into it and transferred it with filezilla. Not sure if that generally does not work or just some odd occurence. Do not want to check it now, as the pi is happily running through the script testing gains…
True, but creating file on Win/Mac means following 2 unnecessary steps, and still may give errors.
Convert dos2unix
File transfer from Win/Mac to pi.
Easiest and cleanest is to create the file directly in Pi, as follows:
(1) Create blank file sudo touch optimize-gain.py
(2) Make file executeable sudo chmod +x optimize-gain.py
(3) Open newly created file in nano editor sudo nano optimize-gain.py
(4) Out of 4 versions of code in this post, select the one applicable to your install, and copy-paste it to the newly created blank file which you have opened in nano in step (3) above.
I was referring to this case.
Of course those steps are unnecessary, but it’s good to know that there’s command line option, to solve the issue without transferring the file back to windows, saving it in the correct format, and then transferring it back to the pi.
Your proposed commandline method dos2unix is good to solve the issue when the issue exists.
What I am trying to tell is that we are creating the issue ourselves by generating the file optimize-gain.py on Win/Mac computer. Generate the file directly in Pi, and the issue will cease to exist.
Hi,
my first post in the community.
I used TWEAK2 to replace the 2-clock map.
(I have to say I first run the installation of dump1090-fa according the instructions of the installation page, but because I have the spinning thingie on port 8080, I decided to go for this solution and to get rid of google maps api)
But now my columns with altitude and speed are empty (even after refresh).
What can I try to have this fixed ?
see also screenshot
PS : I have run since Febr fr24feed and since begin June also flightaware and I use dump1090-mutability v1.14
This means that you are running dump1090-mutability ver 1.14, but replaced its folder /usr/share/dump1090-mutability/html by the html folder of dump1090-fa which you cloned/downloaded from Github.
Your screenshot shows that you have performed all steps correctly.
Try this:
Reboot your Pi
Clear browser cache by pressing (Ctrl+Shift+Delete) keys.
Yes I thought I performed the steps correctly.
I did what you asked but the result is the same.
I did it with different browsers on my desktop computer and to be sure and also on the Raspbery Pi itself (connection with VNC).
I’m still open for suggestions, yesterday before I wrote the message , when I copy everything back to the “original” setup, the columns are filled up with altitude and speed.
The new versions of dump1090-fa use different names for speed and altitude in the json database that is the transfer between dump1090 and the javascript in your browser.
You need to get an old dump1090-fa version.
3.5.1 should do the trick, not sure how you switch that at github.