Crates.io | hackdose-server |
lib.rs | hackdose-server |
version | 0.10.0 |
source | src |
created_at | 2022-11-12 22:15:47.407588 |
updated_at | 2023-02-10 06:40:19.579136 |
description | A server to control smart plugs using data from smart meters |
homepage | https://github.com/torfmaster/hackdose |
repository | |
max_upload_size | |
id | 713850 |
size | 77,066 |
This is the hackdose project, a project for making better user of your micro solar power plants. The idea is simple: If there is more solar energy than needed, store it in batteries (of devices you use everyday), or fridges, or just use it (e.g. run your dish washer). It is not my idea, but I didn't find an implementation for my needs (most importantly, inexpensive hardware).
What you basically need
The technical principle is easy: if you produce more energy than your house needs, your smart meter will know and tell hackdose. Hackdose will (under some conditions) turn on a smart plug with your charger (or whatever device you want to control).
This project is experimental. Use at your own risk. Risks may include
/energy
./day
showing a nice diagramYou can currently set up smart plugs (currently only HS-100) to prevent solar energy from escaping behind your smart meter. You can e.g. use this to charge your Laptop battery, your smart phone, or your E-bike.
You can either compile your yourself or check out one of the latest artifacts here.
rustup target add riscv64gc-unknown-linux-gnu
If you are using another architecture (e.g. arm), install an appropriate rust target
and set it up in install.sh
.
sudo apt install gcc-riscv64-linux-gnu
sudo apt install sshpass
I assume that you have a Mango PI Pro-Q.
You can use the deploy script install.sh
to deploy.
Put a hackdose.yaml
and an .env
(sample included) file in the server/profiles/<profile>
directory.
To deploy run:
PROFILE_NAME=test ./install.sh
This project is licensed under Apache 2.0 or MIT license.
Contributions are very welcome. Just file an issue (even if you just have an idea) or solve one.