1. 07 May, 2018 1 commit
    • Eric - kg6wxc's avatar
      Enhancement: map_display.php · 12b091b3
      Eric - kg6wxc authored
      The check for internet access was using a POST variable to tell the page
      if the client had access to the internet or not (it just tries to get
      favicon.ico from google).
      The problem with POST was that every time you refreshed the page, the
      POST variable had to be resent, usually resulting in a dialog box from
      the browser ("Do you want to resend this info?")
      
      This drove me crazy, I could not stand that dialog box.
      
      The check for internet access has been changed to use a cookie.
      The cookie contains 1 item and expires after 30 minutes.
      So after 30 minutes, the page will recheck for internet access and act
      accordingly.
      
      There is also a small change to the check for user-settings.ini.
      
      The README.md/html files were slightly updated as well.
      12b091b3
  2. 04 May, 2018 2 commits
    • Eric - kg6wxc's avatar
      Bug Fix: get-map-info.php, map-display.php · c32015e7
      Eric - kg6wxc authored
      Due to commit before this I also noticed non-nodes were being put into
      the database.
      There were over a 100 in my database alone.
      These are most likely non-node devices and will never be able to be
      mapped.
      Initially, I opted for a "save and recheck" style of polling, in the
      hopes that something was just missed and it would get picked up later.
      This is not the case and over time I think can see what is happening.
      
      added a check in get-map-info.php to try and skip these devices if we
      reach one, and due to that change, the numbers of shown and not show
      node and links at the bottom right of the map is more accuate now (I
      hope).
      
      73
      c32015e7
    • Eric - kg6wxc's avatar
      Bug fix: get-map-info.php · 8837d7fd
      Eric - kg6wxc authored
      Some nodes returned a blank lat,lon and grid_square differently than
      others that were also blank.
      
      This was causing issues when writing to the SQL database.
      get-map-info would throw this error when it would happen:
      "Could not send to SQL. Incorrect double value: '' for column 'lat' at
      row 1"
      
      Fix:
      Any blank lat || lon now get converted to a single "0".
      Any blank grid_square now gets converted to a NULL.
      8837d7fd
  3. 02 May, 2018 5 commits
    • Eric - kg6wxc's avatar
      Fixed some issues in the README file · 874f0104
      Eric - kg6wxc authored
      874f0104
    • Eric - kg6wxc's avatar
      fixed my stupid error in admin.php page. · f8d524bf
      Eric - kg6wxc authored
      f8d524bf
    • Eric - kg6wxc's avatar
      changed default cronscript to use /bin/bash · e24346c2
      Eric - kg6wxc authored
      it used /bin/sh before and for some reason just recently developed a
      problem running get-map-info on my RPi.
      Using /bin/sh caused an SQL error, /bin/bash doesnt...
      Not sure why yet.
      e24346c2
    • Eric - kg6wxc's avatar
      whoops missed a quote in the right spot... · 58f8be72
      Eric - kg6wxc authored
      58f8be72
    • Eric - kg6wxc's avatar
      Changed to use default ini and other user editable files. · 8fbe3dfe
      Eric - kg6wxc authored
      There is no longer a user-files.tar.gz file!
      
      The user must remove the "-default" from the file extension, save the
      file and then make their own changes. I have seen many other programs
      use this and it seems to make sense.
      The README has been updated to reflect this change.
      Other ideas are appreciated still! :)
      
      With the exception of user-settings.ini, the code will check for the
      existance of the non "-default" files and use those instead of the
      default ones.
      Also if the user does not create a user-settings.ini file of their own
      an error will be thrown telling them such.
      
      Fixed the Popup for "total number of link" in the attributon bar.
      
      Some new values were added to the meshmap.css file in order to make it
      easier for the user to make customizations to the page if they want.
      More of these will probably be added in the future.
      8fbe3dfe
  4. 30 Apr, 2018 9 commits
  5. 22 Apr, 2018 1 commit
  6. 20 Apr, 2018 10 commits
  7. 19 Apr, 2018 9 commits
  8. 16 Apr, 2018 1 commit
    • Eric - kg6wxc's avatar
      get-map-info, map_display and map_functions updated. · 058c1f19
      Eric - kg6wxc authored
      Added "ini_set('memory_limit', '128M') to get-map-info and map_display.
      If you have a large network, you may need to increase the amount of
      memory needed. 128M should be more than enough in most cases, unless you
      have a "Mega Mesh" like N2MH does. :)
      
      Added "last_seen" info to the station popups (map_functions.inc)
      
      Also added (hopefully) a catch in get-map-info to find a "stalled" node
      polling run.
      Sometimes the node polling portion of the script never completes and it
      never gets a chance to unset the "currently_running" bit in the
      database.
      There is now a check so that if the "currently_running" bit is 1 and the
      time the script last polled the node is greater than 3 * the
      "node_polling_interval" (from the ini file), then the script will just
      go out and poll the nodes as normal.
      If it completes, it will unset the "currently_running" bit and will
      update the timestamp.
      
      These changes have all been suggested by N2MH. Thanks Mark! I finally
      got to it!
      058c1f19
  9. 14 Apr, 2018 2 commits