https://github.com/martindisch/weather-v3
Simple weather station with AM2302 sensor and SvelteKit web app
https://github.com/martindisch/weather-v3
am2302 raspberry-pi rust svelte sveltekit
Last synced: about 2 months ago
JSON representation
Simple weather station with AM2302 sensor and SvelteKit web app
- Host: GitHub
- URL: https://github.com/martindisch/weather-v3
- Owner: martindisch
- License: mit
- Created: 2022-12-19T11:15:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-28T20:51:33.000Z (over 1 year ago)
- Last Synced: 2025-07-14T20:43:58.187Z (12 months ago)
- Topics: am2302, raspberry-pi, rust, svelte, sveltekit
- Language: Svelte
- Homepage:
- Size: 781 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# weather-v3
This is the third iteration of my simple weather station using an AM2302
sensor, this time with a SvelteKit web app and SQLite.
The system has two parts:
- [Base station](weather-station/README.md) with sensor, taking regular
measurements and uploading them to the backend whenever it has connectivity
- [Backend and client](weather-app/README.md) for storing and interacting with
current and historical readings
What's cool about it?
- With Svelte and SvelteKit it's possible to develop incredibly lightweight
applications. In fact, this one doesn't even require JavaScript on the client
to work.
- SQLite's file-as-DB approach is perfect for this kind of application.
- The whole project is extremely minimal and simple. In terms of logic, it only
has 300+ lines of actual code for both the base station and backend + client.
Granted, it's a very basic use case with only a single page and going for a
full framework like SvelteKit is overkill, but I really wanted to try 1.0 now
that it's out and I couldn't be happier with it.
- All of the above makes for a really fast page and it does get a perfect
performance score on [PageSpeed Insights](https://pagespeed.web.dev).

## License
[MIT License](LICENSE)