sailthru / relay

A self-tuning thermostat for distributed systems that minimizes the error between some metric and a target
Apache License 2.0
41 stars 5 forks source link

.relay.conf #1

Open bkiss opened 9 years ago

bkiss commented 9 years ago

Hi there,

Nice looking project, maybe this is what i have been waiting a long time ago... Please tell me if i'm wrong, i want to create a setup using 1 on/off relay for the heater (Natural Gas - Methane - 24kw ) and DHT22 or DS18B20 as sensor. And if it's working i want to integrate in pimatic home automation framework, already running.

I have installed relay, but i run:

relay --metric bash_echo_metric --warmer bash_echo_warmer --delay .1 --sendstats webui --target 20

i get :

Relay config file does not exist at /home/pi/.relay.conf!

I created the file, but he want's to read something from this file... Please help me with a sample file.

Thank you.

adgaudio commented 9 years ago

Hi @bkiss,

I noticed that you installed a different project due to my typo in the README. I apologize and thanks for the ticket! You should try:

    pip install relay.runner
    or
    pip install "relay.runner[webui]"  # requires ZeroMQ

rather than pip install relay, which points to someone else's project. Also, --sendstats webui will probably require you to start the node.js webserver manually unless you clone this repo directly from GitHub or try the "Quick Start with Docker" demo.

Secondly, your project sounds very interesting. I just checked out Pimatic and am intrigued by the "Smart Home Automation" webserver. Relay is written in Python and requires a scientific Python library called NumPy, so I don't know if it would fit on small embedded devices like a BeagleBone or Raspberry Pi. That said, if you do end up doing something with this, I'd love to hear about it!

bkiss commented 9 years ago

:) yeah, i analyse the code i have installed, and has nothing in common :) I try it right now. And it's working on Raspberry Pi. My only problem if i can to modify this in something like "Time Proportional Integral (TPI) " thermostat.

"TPI offers a more complex algorithm, which uses past information to estimate the correct steady state ratio of each room within six, ten-minute cycles per hour. During each one of these ten-minute periods, the algorithm has set a period of time with the heating on that is calculated to maintain thermal equilibrium. The ‘I’ (integral) part of the TPI control makes small, long-term adjustments to the process, varying the length of the heating times to keep the room temperature even more precisely on set-point."

For now i will analyse, and see what can i do with your project to fit my needs.

Thank you for your feedback, it helps me a lot :)