https://github.com/ulrischa/badger_server_display Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} ulrischa / badger_server_display Public * Notifications * Fork 0 * Star 1 1 star 0 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights ulrischa/badger_server_display This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/u] Use Git or checkout with SVN using the web URL. [gh repo clone ulrisc] Work fast with our official CLI. Learn more about the CLI. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @ulrischa ulrischa Update README.md ... a543e9c Mar 1, 2023 Update README.md a543e9c Git stats * 7 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time README.md Update README.md March 1, 2023 21:32 txtsrv.py Create txtsrv.py March 1, 2023 21:28 View code Run Server on Pimoroni Badger 2040 w to display Text How does it work? Install Use Further development README.md Run Server on Pimoroni Badger 2040 w to display Text The Pimoroni Badger 2040 was already cool, but the wifi version is even cooler. Would it not be cool to have a server running on the badger? What would be possible? To try it out I just build a simple script that runs a webserver on the pico, displays the local adress on boot and then you can send a get request to show a text you like on the display. This setup is very basic but powerfull. You could use this get request from any other device or in your smart home setup. I use it from Node Red after a specific flow to show the status on the badger. How does it work? Well there is another cool library from pimoroni here on Github that makes this a simple task: phew! It has all you need to set up a webserver on the raspberry pico and so also on the badger 2040 w. Install 1. Set up the badger as described here 2. In Thonny load the phew! library by clicking Tools -> Manage packages and searching for micropython-phew 3. Replace wifi_ssid= "XXX" and wifi_pw = "XXX" in txtsrv.py with your wifi data 4. Connect the badger with your computer. Double click examples to go in that directory. Load the script txtsrv.py and the icon-txtsrv.jpg to the badger example directory with Thonny (upload to /examples) 5. Disconnect and boot again Use When badger is up and running you see a SRV icon. If you start that app the led is goes on. On the display the URL is shown where you can send the text. Further development The display is very basic -> can be improved The badger could run in access point mode if running in lan is not wanted About No description, website, or topics provided. Resources Readme Stars 1 star Watchers 1 watching Forks 0 forks Report repository Releases No releases published Packages 0 No packages published Languages * Python 100.0% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.