Changes between Version 11 and Version 12 of django_gheat


Ignore:
Timestamp:
Apr 14, 2011, 6:45:59 PM (14 years ago)
Author:
dennisw
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • django_gheat

    v11 v12  
    7575NOTE: that on this moment only the gheat_meting(lat, lng, signaal) are used for generating heatmaps, so make sure you at least put some data in those columns.
    7676
     77You can use one of the php scripts in the db/ folder to insert data into the database.
     78The csv_to_db.php inserts data from a csv, and the random_to_db.php inserts random points into your database. Make sure to edit the following lines:
     79{{{
     80// edit with personal settings
     81
     82$location = ' ';
     83
     84$username = ' ';
     85
     86$password = ' ';
     87
     88$database = ' ';
     89}}}
     90
     91If you will use the csv_to_db.php, also edit the following:
     92{{{
     93// csv to open
     94$file = ' .csv';
     95}}}
     96
     97These ways of inserting data will be temporarily, a python script is in the making.
     98
    7799== Prerender heatmap ==
    78100You can prerender a heatmap with the following command:
     
    92114}}}
    93115
     116== Display heatmap ==
     117To display the heatmap, you can run the webserver:
     118{{{
     119$ cd samples/persisted
     120$ ./manage.py runserver
     121}}}
     122Then browse to 'localhost/home/'.
     123
    94124== Troubleshooting ==
    95125If something is unclear or isn't working as it should, feel free to create a ticket.