{"id":15916209,"url":"https://github.com/andypiper/picow-enviroplus","last_synced_at":"2025-03-23T13:31:42.810Z","repository":{"id":162095755,"uuid":"636703588","full_name":"andypiper/picow-enviroplus","owner":"andypiper","description":"MicroPython code for the Pico Enviro+ Pack from Pimoroni","archived":false,"fork":false,"pushed_at":"2023-08-13T10:03:58.000Z","size":407,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T14:18:56.992Z","etag":null,"topics":["enviro","micropython","pimoroni","rpi-pico","sensors"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andypiper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-05T12:59:35.000Z","updated_at":"2024-09-29T18:21:52.000Z","dependencies_parsed_at":"2024-10-28T16:11:54.570Z","dependency_job_id":"7674795d-de16-4ae7-b897-8681fbed4798","html_url":"https://github.com/andypiper/picow-enviroplus","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"e8d92a7ca2725db77797c21fdfb65db06ad41092"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andypiper%2Fpicow-enviroplus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andypiper%2Fpicow-enviroplus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andypiper%2Fpicow-enviroplus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andypiper%2Fpicow-enviroplus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andypiper","download_url":"https://codeload.github.com/andypiper/picow-enviroplus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245108197,"owners_count":20562005,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["enviro","micropython","pimoroni","rpi-pico","sensors"],"created_at":"2024-10-06T18:01:21.336Z","updated_at":"2025-03-23T13:31:42.799Z","avatar_url":"https://github.com/andypiper.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pico W Enviro+ Pack sample\nThis is the [MicroPython](https://micropython.org) code that I'm running on the [Pico Enviro+ Pack from Pimoroni](https://shop.pimoroni.com/products/pico-enviro-pack).\n\n- requires Pimoroni's [pirate-branded MicroPython for Pico](https://github.com/pimoroni/pimoroni-pico) 🏴‍☠️️\n\nMy Enviro+ sits on top of a Pico W. I wanted it to show the text display of the current environmental parameters, and also to publish the information to my MQTT broker at the same time. The [sample code from Pimoroni](https://github.com/pimoroni/pimoroni-pico/tree/main/micropython/examples/pico_enviro) is either/or, so, this repository contains an unholy mashup of a couple of chunks of their code, until I get around to doing something better.\n\nRather than using the full Enviro self-provisioning code from the standalone products, this is using a lightly-modified version of the `network_manager` code from Pimoroni as well.\n\nIn addition, I thought I'd noodle around with using the vector-ish Hershey fonts instead of using the bitmap ones, which gave me a chance to tinker with [PicoGraphics](https://github.com/pimoroni/pimoroni-pico/tree/main/micropython/modules/picographics). I'm happy with the result!\n\n![vector fonts](screen.jpeg)\n\nI also modified the network code to enable setting the device name (new in MicroPython 1.20).\n\n- open `config.py.example` in Thonny to add your wifi details (and save it as `config.py` when you're done). You'll also need to add MQTT details in there.\n- for MQTT, you'll need to install `micropython-mqtt.simple` using Thonny's 'Tools' \u003e 'Manage Packages' (or using `mip` - to be documented)\n- transfer `config.py`, `main.py`, `network_manager.py` and the `lib` directory to your Pico.\n- for the PMS5003 particle sensor, requires the correct driver:\n\n`mip.install(\"https://raw.githubusercontent.com/pimoroni/pms5003-micropython/main/package.json\")`\n\nTested / running on MicroPython 1.20[.1] 👍🏻️\n\nNow if you'll excuse me, I'm off to [design 3D printed cases](https://www.printables.com/@AndyPiper) for Pimoroni products...\n\n## License\n\n[MIT](./LICENSE) (which matches the original Pimoroni code this is derived from)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandypiper%2Fpicow-enviroplus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandypiper%2Fpicow-enviroplus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandypiper%2Fpicow-enviroplus/lists"}