lightberryAPI + Raspberry Pi Pico W = LAN services hub
- lightberryAPI v1.2.7 - frozen module
- aht20.py - frozen module
- microHTTP v1.0.0 - frozen module
- Providing API + serving services data for web ui.
- Logging environment temperature and humidity.
- Serving React based frontend.
- Build in database supporting data sorting and querying.
- Database models serialization.
- Simple cache implementation.
- Checking services accessibility.
- Build (and flash rpi pico with) MicroPython firmware with modules described in
Requirements
section. - Build and prepare (described in README) web ui.
- Copy content of web ui
dist
to/files
directory. - Create and fill
lightberryAPI
config.
cp lightberry_config.template.json lightberry_config.json
- Create and fill database.
cp db.template.json db.json
- Flash Raspberry Pi Pico with this project files.
The main goals of the project was to:
- Use lightberryAPI in real case scenario.
- Build low power consumption device I can use to track LAN services.
- Design and 3D print case for device.
- minify
db.json
python3 tools/convert_db.py --db_path ./db.json --minify
- de-minify
db.json
python3 tools/convert_db.py --db_path ./db.json
packages in requirements.txt
are used for development
pip3 install -r requirements.txt
for flashing pico you can use rshell
pip3 install rshell==0.0.32
enter REPL
rshell
repl
flash
rshell -f commands/flash
clear all files
rshell -f commands/wipe