Below you will find pages that utilize the taxonomy term “Raspberrypi”
Migrating a local LiteDB/C# application to SQLite/Python
Migrating my LAN page to Python
I've been using LiteDB and a C# backend to serve a local web page, where I've been keeping track of the weight of our three cats and two dogs. After migrating the backend to docker, I've been having issues that the database in not being updated correctly. The file is saved on the pi and volume shared to the container, but the changes are not being propagated to the actual file on the pi. Instead of finding out what is wrong and wasting time on that, I'd like to skip a few steps and move on from C#. It is not the best for the pi and was mostly an interesting exercise at the time.
An example project for creating a simple Flask UI for controlling crontabs
Controlling cronjobs with a Flask UI
Updated on 30.6.2024
While creating a proper readme for the project, I realized that it can
actually be used to control several cronjobs, I just hadn't used it in that
way.
It is somewhat limited by the script identifier and by having only three
options (schedule 1, schedule 2 or disabled), but I think these could be
resolved in a reasonable amount of time.
Creating a local website with LiteDB database and HTTP calls.
I've since moved away from LiteDB and created the backend using SQLite and Python
Hosting a Local Website on Raspberry Pi with Flask
Let's jump straight in. I wanted to keep things simple, so I decided to use a basic html, css and javascript setup with Python Flask. I used ChatGPT to generate a html file with the form that I wanted, some basic css and a javascript file. I refined them myself until I was happy with the look and functionality. My target is a tablet, so I didn't bother too much with the desktop experience.
Quick tutorial-like explanation how I setup a LiteDB database to my Raspberry Pi
Setting up LiteDB on a Raspberry Pi
If you want to skip the setup for my situation, press me. I am not an expert, but learning and experimenting myselfWhat's the point?
I finally got myself a model 3 b+ Raspberry Pi and as I've never worked with a NoSQL database before, I decided to try one out with it. My initial choice was running a MongoDB database inside a docker container.