Authentication-Results: mail-b.sr.ht; dkim=pass header.d=gmail.com header.i=@gmail.com Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by mail-b.sr.ht (Postfix) with ESMTPS id 4942D11EF52 for <~qeef/damn-project@lists.sr.ht>; Wed, 14 Dec 2022 23:07:32 +0000 (UTC) Received: by mail-lf1-f45.google.com with SMTP id p36so12941629lfa.12 for <~qeef/damn-project@lists.sr.ht>; Wed, 14 Dec 2022 15:07:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=DuuVHiV00bQ68U4tmMO8bPk0oka64bBCnSQkFd13uh0=; b=hZDSEIc47wgXW7gQU40SUBDg/xizPLNCBlbzv5AOhNmF1yMyWzPqItNKQUpZh1eMdr bqydCehuibRR3cyaWqL6x2I6G56TlTPHvdttFFCRoaGInPnpYVyrVvBNh/Cdfr7evJfq gflgZhbBMrq1WCmo0zdKLn9epbrdTVwl/ms+PmNoWSz8Ulhg6qQNOb/MpPRrAt7/y9uc rxzW8zGeBrqEMvGrRHGWYlJoJREZAH7tPZ//nwNaslIKTeJnUcJG/8q1q5W8AL0vgtRa EmJ6Ozilejtpj9tVCmelhbVU0oDQMm3T97QFjnnRnI7d1BaMkZU4Ijm2/CF8LF/3bJbt J3aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=DuuVHiV00bQ68U4tmMO8bPk0oka64bBCnSQkFd13uh0=; b=AWq1QMZCcpb3NoG4iPVwKP5tGjLgnWBCZkPyu6fuXOmogRzyuLs0hUPBAFxfaxeCaj 1kHLtFkOPQ7vQUohqR+CLP9sutbKt7gcCxQ7tZtZidnm3+4u/lyTAmxI6AyhJNRW9P+S 4mAEMJYqGTQprWDhFYTfCr7zBRH/gvoQNjn/V/vpil+jTm7ozBfVQ2TKXQiGTHLO64DN 07YbtNsYssIn5fOkFJS/76guq2G9ctS/P02we3QP/tV0lt2jtYcSqksbZylCUq644CaN 68o0kMxUGJimFmWynPXWLTfPK/n5TptPisecyVxz4jbaLpbM8oXOBefxhXic2DbVgGPJ haXA== X-Gm-Message-State: ANoB5plJg7DW2gPQgjXcFDKy4ZjVjCPxaWnJc7J5Pp66e5Wzq0X2vmOs GE2YdyqWTX/5FXc3TJWroYM= X-Google-Smtp-Source: AA0mqf6G6Etld+Dzypsof35710BePDg8qQKYfekEz+b0sKydZfuEGdUomZsVJ7BE3tIisnTdbAECXg== X-Received: by 2002:a05:6512:15a1:b0:4b5:b22f:82bb with SMTP id bp33-20020a05651215a100b004b5b22f82bbmr8636902lfb.36.1671059250359; Wed, 14 Dec 2022 15:07:30 -0800 (PST) Received: from gmail.com (185-170-195-217.cust.centrio.cz. [217.195.170.185]) by smtp.gmail.com with ESMTPSA id b9-20020a056512060900b004b5478d8222sm969805lfe.184.2022.12.14.15.07.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 15:07:27 -0800 (PST) Date: Thu, 15 Dec 2022 00:07:25 +0100 From: Jiri Vlasak To: siiky Cc: ~qeef/damn-project@lists.sr.ht Subject: Re: SQLite as DB alternative Message-ID: References: <27ef17e6-7fe2-fe5e-5338-776207cd17e0@net-c.cat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27ef17e6-7fe2-fe5e-5338-776207cd17e0@net-c.cat> > For context, what prompted the email was that I'd like to use DAMN for > small (1 person) tasks and but feel it's overkill to use your public > instance. Feel free to use it, if it is not a problem that you need to be online to lock/unlock squares. You may set the priority to 0 to unlist the area. > So I'd like to run DAMN on my desktop/laptop but I'm not too keen on > having to setup Postgres+PostGIS (it's just overkill for this > usecase). You don't need to set up Postgres + PostGIS, if you can run docker and docker-compose. I have updated the damn-deploy repository, so the instructions in the damn-server README works now: git clone https://git.sr.ht/~qeef/damn-deploy cd damn-deploy sed -i '/POSTGRES_PASSWORD=.*/d' .env docker-compose -f http.yml up db However, running damn project on localhost for the purpose of personal maping is overkill, indeed. I think that the proper solution is to improve JOSM TODO plugin. Meanwhile, you may try to use divide_to_squares.py script [1] and the following workflow: 1. Create GeoJSON of area you want to map. 2. ./divide_to_squares.py area.geojson 3. Open squares.geojson in JOSM. 4. Ctrl + F -> put tmp to Search string -> Enter. 5. Add selected squares to TODO plugin. I do not say it is perfect. [1]: https://git.sr.ht/~qeef/py-geojson/tree/master/item/divide_to_squares.py