Skip to content
项目

关于

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!

商业与金融

这些数字如何统计

可以做什么

  • inventory management
  • sort items in groups
  • set up multible storage locations in different rooms, only wifi is needed.

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Spotlight Storage - The easy way to find your parts

Spotlight-stor

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.

Main video

Step by step video

Hardware i used

ESP32-C3

LEDs

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

  1. Go to WLED installation page and select the latest release and intall it on the esp device.
  2. Put in your wifi data.
  3. Go to the ip address of your esp, to Config -> LED Preferences and set up your led's like in the video.
  4. 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

  1. 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)
  2. Install and start the Docker Desktop https://www.docker.com/products/docker-desktop/
  3. Docker Desktop must be startet at least once before, to set it up for the next step.
  4. In the location where you have put the Spotlight_Storage folder, open that folder, then doubble click on the file install.bat and let the magic happen.
  5. 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.
  6. The terminal closes after 5 second automatically
  7. That's it, go to localhost:5000 in 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:5000

  • Remove 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 hit install.bat after the uninstall.bat it 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, localhost and 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

探索相关项目

加载中…