FireMarshmellow/Spotlight_Storage
About
MIMOSA - short for "Mellow_Labs Inventory Management and Organization System Apparatus". Just like a refreshing mimosa, this system will make your life brighter and more organized!
Business & FinanceWhat you can do
- inventory management
- sort items in groups
- set up multible storage locations in different rooms, only wifi is needed.
Measured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalSpotlight Storage - The easy way to find your parts
Spotlight Storage is from Mellow Labs
On this repo you get a ready to install on windows docker container for the Spotlight_Storage storage system. Setup time is less then 10 minutes even for beginner users.
With this you can use any WS2812 or other led's that run WLED
Videos
The videos are not up to date and the content in them do not match the current Spotlight_Storage version. But they are a good starting point to see it working and how to setup the esp and ws2812 leds.
Hardware i used
Features
- inventory management
- search
- locate items
- sort items in groups
- set up multible storage locations in different rooms, only wifi is needed.
Install WLED on ESP devices
- Go to WLED installation page and select the latest release and intall it on the esp device.
- Put in your wifi data.
- Go to the ip address of your esp, to
Config -> LED Preferencesand set up your led's like in the video. - Make note of the esp ip address, you will need it later to put into your Spotlight_Storage settings.
Installation of Spotlight Storage with Installation.bat file
- Download this Repo as zip and extract it to the location you want to install Spotlight_Storage on your pc. (you can put it anywhere you want e.g. Downloads,Documents,Desktop,C it doesn's matter)
- Install and start the Docker Desktop https://www.docker.com/products/docker-desktop/
- Docker Desktop must be startet at least once before, to set it up for the next step.
- In the location where you have put the Spotlight_Storage folder, open that folder, then doubble click on the file
install.batand let the magic happen. - Now if everything is correct, it will start a terminal, open Docker Desktop when it is not allready running, build the Spotlight Storage V4-Container and start it.
- The terminal closes after 5 second automatically
- That's it, go to
localhost:5000in any browser, you can now enjoy the easy life with Spotlight Storage.
To get access to Spotlight Storage over other browsers in your network e.g. with your smartphone you need to find the ip address of your computer, mine is for example 192.168.1.20 and behind the ip adress you need to put in the port 5000 and this is what you put into the browser
http://yourcomputerip:5000Remove or turn off Spotlight Storage System with the
uninstall.bat, no data will be lost. It just turns off docker container and removes it. If you hitinstall.batafter theuninstall.batit will turn on docker container, build it and you can reach the same page and data as before.
Installation of Spotlight Storage with docker-compose
The easiest way to install Spotlight Storage is to use Docker Compose. Below are the steps to get started. Spotlight Storage requires Docker Compose version 2.x or higher.
Step 1: Download the required files
Create a new directory to hold the docker-compose.yml file.
mkdir Spotlight_Storage
cd Spotlight_Storage
Download the docker-compose.yml file.
wget -O docker-compose.yml https://raw.githubusercontent.com/FireMarshmellow/Spotlight_Storage/main/docker-compose.yml
or download the files manually from the repository.
Step 2: Start the application
From the directory where the docker-compose.yml file is located, run the following command:
docker compose up -d
Security
Spotlight Storage is meant for your home network. Out of the box it:
- blocks requests that other websites try to make through your browser, including DNS-rebinding tricks: it answers on IP addresses,
localhostand local names (*.local,*.lan,*.home.arpa, ...), and on other domain names only when you list them; - only fetches item images from public addresses, and only talks to WLED controllers on your local network;
- validates everything that is saved or imported, and cleans up uploaded images no item uses any more;
- serves all its scripts itself (no CDNs) under a strict Content-Security-Policy.
Settings for docker-compose.yaml (all optional):
| Variable | What it does |
|---|---|
SPOTLIGHT_ALLOWED_HOSTS |
Domain names you reach the app at, e.g. through a reverse proxy: spotlight.example.com. |
SPOTLIGHT_API_TOKEN |
Every API call must send this token. The web page asks for it once; Home Assistant and scripts send Authorization: Bearer <token> (or X-API-Key). Works together with a login. |
SPOTLIGHT_AUTH=basic + SPOTLIGHT_AUTH_USER + SPOTLIGHT_AUTH_PASSWORD |
Username/password login for the whole app (the browser shows a login box). |
SPOTLIGHT_AUTH=proxy + SPOTLIGHT_TRUSTED_PROXIES |
Sign in through a login proxy such as authentik, Pangolin or oauth2-proxy (e.g. for Google accounts). The proxy sends the user in SPOTLIGHT_AUTH_HEADER (default Remote-User); only requests from the trusted proxy addresses/networks count. SPOTLIGHT_AUTH_ALLOWED_USERS optionally limits who may sign in. |
SPOTLIGHT_ALLOW_PUBLIC_WLED=1 |
Allow WLED controllers on non-local addresses. |
SPOTLIGHT_MAX_LEDS |
Upper limit for the LED count a WLED controller reports. |
SPOTLIGHT_MAX_UPLOADS_MB |
Space for uploaded images (default 1024). |
Too many wrong passwords or tokens from one address are blocked for a few minutes. If the app is reachable by people you don't trust (shared network, port forwarding, reverse proxy), use a login or at least the API token, and HTTPS through your proxy.
The container runs as an unprivileged user with the waitress production server; the program files are read-only for it, and the compose file drops all unneeded Linux capabilities. Running without Docker needs Python 3.10 or newer (pip install -r requirements.txt, then waitress-serve --listen=0.0.0.0:5000 app:app). Run the tests with pip install -r requirements-dev.txt and pytest.
dependencies:
- python 3.6
Explore related projects
Loading…