[WORKING] New ADSBExchange base image v1.0

Discussion in 'Feeding' started by James, Dec 31, 2017.

Tags:
  1. James

    James Guest

    I set it to GB for you. WiFi should work now if configured in adsb-config.txt
     
  2. James

    James Guest

    I tried to get it to connect ... didn't seem to work ... so maybe check the config .. not sure
     
  3. vtec23

    vtec23 Moderator

    Just switched to link off and feed disappeared
     
  4. vtec23

    vtec23 Moderator

    Back on tp link and feeding will leave alone
     
  5. James

    James Guest

    plug cable back in and I'll see what it can see
     
  6. vtec23

    vtec23 Moderator

    Back on
     
  7. vtec23

    vtec23 Moderator

    My ip isn’t on here
     

    Attached Files:

  8. James

    James Guest

    I think there was a typo in your configuration ... odd ..

    Wifi should be working now ...



    wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 192.168.1.42 netmask 255.255.255.0 broadcast 192.168.1.255
    inet6 fd06:aa9d:ff05:1:c773:adcd:687b:d7c2 prefixlen 64 scopeid 0x0<global>
    inet6 fdaa:bbcc:ddee:0:c2c9:671f:1be7:bf3a prefixlen 64 scopeid 0x0<global>
    inet6 fe80::22dd:a3b6:a505:60fb prefixlen 64 scopeid 0x20<link>
    ether b8:27:eb:8c:9d:a6 txqueuelen 1000 (Ethernet)
    RX packets 540 bytes 55274 (53.9 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 6893 bytes 4271399 (4.0 MiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
     
  9. vtec23

    vtec23 Moderator

    Shall I leave cable in
     
  10. James

    James Guest

    hmmm .. there's a bug in the parse script ..

    awkward ..

    Code:
    numlines=$(wc -l /boot/adsb-config.txt | cut -f1 -d ' ')
    for (( line=1; line<=numlines; line++))
    do
      sedscript=$line"p"
      param=$(sed -n $sedscript /boot/adsb-config.txt | cut -f 1 -d ' ')
      value=$(sed -n $sedscript /boot/adsb-config.txt | cut -f 2- -d ' ' | cut -f 1 -d$'\r')
         
            if [ "$param" == "WIFI_SSID" ]
            then
              WIFI_SSID=$(echo ${value,})
              echo WIFI_SSID=$WIFI_SSID >> /tmp/adsbx-params
            fi
            if [ "$param" == "WIFI_PASSWORD" ]
            then
              WIFI_PASSWORD=$(echo ${value,})
              echo WIFI_PASSWORD=$WIFI_PASSWORD >> /tmp/adsbx-params
            fi
    
    

    If "WIFISSID" then it appears in /tmp/adsbx-params as WIFISSID

    if WIFISSID then it appears in /tmp/adsbx-params as wIFISSID



    What am i missing in bash?
     
  11. James

    James Guest

    Don't unplug it yet .. trying to see what this bug is
     
  12. vtec23

    vtec23 Moderator

  13. James

    James Guest

    Ok this is fail from FA codebase ... ugh ..

    ===


    This is called "Parameter Expansion" available in bash version 4+ . To change the case of the string stored in the variable to lower case.Eg:

    var=HeyThere
    echo ${var,,}
    heythere
    You may want to try some additional commands and check the effect : source

    ${var^}
    ${var^^}
    ${var,}
    ${var,,}
    Note: "Parameter Expansion" is present in man bash .Search for it.
     
  14. James

    James Guest

    I fixed it and it will go out on next image
     
  15. vtec23

    vtec23 Moderator

    Sorry James above me what shall I do next
     
  16. James

    James Guest

    Wifi should work now ... I swear! Set it up like you want it now
     
  17. vtec23

    vtec23 Moderator

    Un plugged and working thanks did you see anything wrong with mlat
     
  18. James

    James Guest

    I did not. UK MLAT is always funky.
     
  19. BobW

    BobW New Member

    Ummm.... Maybe just blind, but I cannot find the link to actually download the image.
    Thanks
     
  20. K4HLW

    K4HLW Moderator

    It was temporarily removed as the new image should be out any day.