micropython-lib
log2ram
micropython-lib | log2ram | |
---|---|---|
20 | 50 | |
2,248 | 2,507 | |
1.1% | - | |
8.1 | 4.5 | |
5 days ago | 5 months ago | |
Python | Shell | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
micropython-lib
-
Reading BLE heart rate monitor from pico W with micropython
This is the current version of my code (excuse the mess it's become..), adapted from https://github.com/micropython/micropython-lib/blob/7128d423c2e7c0309ac17a1e6ba873b909b24fcc/micropython/bluetooth/aioble/examples/temp_client.py
- OSError: [Errno 12] ENOMEM
- 在 MicroPython 中使用 OpenAI API
- CUSTOM HID : Do I need to stick in C ?
-
Looking for BLE SoC
STM32WB55 running MicroPython sounds like it'd suit. Should be fine for the power budget and aioble gives you one of the best BLE libraries on any platform. Documentation is generally good, though BLE is a little light (with some good examples and an active Discord channel!).
-
Need immediate help with a library
Pico (non-W) doesn't have upip (or mip, as that replaces upip now) or urequests because it doesn't have internet access required by them. In theory, you can download urequests from: https://github.com/micropython/micropython-lib/blob/master/python-ecosys/urequests/urequests.py or build your own MP image with it enabled. I don't know if it'll work as you want it to but it's worth a try.
-
EsPiFF: An ESP32 in the Raspberry Pi form factor
Using SD-card on ESP8266 was more challenging. upip.install('sdcard') does not work.
But ChatGPT truly helped and suggested I find it in Github.
https://github.com/micropython/micropython-lib/blob/master/m...
-
using UPip with Micropython to install extra modules - is it feasible?
I don't think there's a mip list command or something like that. So your best bet is to look at the subdirectories in https://github.com/micropython/micropython-lib for a list of installable packages.
- Radio Transceiver with nrf24l01 using Rpi pico
-
Can MicroPython be used in production?
Do give it another try if you get a chance; I'd be genuinely interested in hearing about your experience. Be sure to check out the awesome list and micropython-lib if you're looking to fill gaps. There are still many holes but they're rapidly being filled in.
log2ram
-
Raspberry Pi 5
Reducing logging, logging to ram and writing to the sdcard once a day helps longevity a lot, especially with quality sd cards.
99% of the time it's the verbose logging of application servers that is the culprit of sdcard failures.
https://github.com/azlux/log2ram
- Pihole Regular Maintenance and Performance
- Using old MicroSD on RPi for PiHole, any issues?
-
Interesting M.2 devices for the HomeLabs
I always use this: https://github.com/azlux/log2ram
-
My remote Pi for my ADSB is going bad
If you've got other issues then it's quite likely that lots of small writes from logging and similar has worn out the SD card, mounting the SD card as read only or installing log2ram could prevent it happening to another SD card.
-
EsPiFF: An ESP32 in the Raspberry Pi form factor
> writing permanent its log files and swap partition
If this is the problem, the solutions are no swap and log2ram https://github.com/azlux/log2ram
I also noticed that Armbian logs to a ramdisk. I didn't investigate the implementation and if its contents survive a reboot.
The only real problems for me are that the SD card will eventually fail no matter what (I mean, much sooner than a SDD or HDD) and that there are basically no Pis at sale at a reasonable price. As a platform it is nearly dead.
-
Can My I5 2300(12GB RAM) Server Handle This Workload
For Pi-hole, I have an Rpi Zero with $10 Usb-to-Ethernet adapter, SD-card barely written (with Log2Ram) to avoid wear. Running about 3 years now almost unattended (besides security updates).
-
I finally found an use case for my Raspberry Pi Model B+
In addition to the other helpful suggestions you’ve received, look into using Log2Ram. It does what it sounds like, puts log writes in ram and then writes them to disk on a slower cadence that doesn’t work your SD card that much.
https://github.com/azlux/log2ram
-
Reduce disk writes for Ubuntu, save your USB stick
Log files are a bit trickier. I want these to stick around between reboots, so just storing them on a ramdisk wouldn't really work. Thankfully, log2ram solves this problem. Written primarily for Raspberry Pi machines, it works fine on x86-64 laptops. This stores /var/log in RAM but will sync the contents to disk from time to time, ideal for our needs.
- Dumb question….
What are some alternatives?
micropython-umqtt.simple2
zram-init - A wrapper script for the zram linux kernel module with zsh and openrc support
buzzer_music - RPI Pico / Micropython library to play music through one or more buzzers, can automatically replace chords with fast arpeggios to simulate polyphony with a single buzzer. Music can be easily taken from onlinesequencer.net
docker-pi-hole - Pi-hole in a docker container
pycopy-lib - Standard library of the Pycopy project, minimalist and light-weight Python language implementation
DietPi - Lightweight justice for your single-board computer!
trezor-firmware - :lock: Trezor Firmware Monorepo
yunohost - YunoHost is an operating system aiming to simplify as much as possible the administration of a server. This repository corresponds to the core code, written mostly in Python and Bash.
bleak - A cross platform Bluetooth Low Energy Client for Python using asyncio
folder2ram - mount those folders to ram without losing access to their counterpart on disk!
pycopy - Pycopy - a minimalist and memory-efficient Python dialect. Good for desktop, cloud, constrained systems, microcontrollers, and just everything.
rpi-clone - A shell script to clone a booted disk.