Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other Temperature Sensors #1

Closed
wiesel24 opened this issue Sep 30, 2016 · 12 comments
Closed

Other Temperature Sensors #1

wiesel24 opened this issue Sep 30, 2016 · 12 comments

Comments

@wiesel24
Copy link

wiesel24 commented Sep 30, 2016

Is there any possibility to change the sensor type to DS18B20? So DHT sensors are sometimes hard to get in some countries. Would be nice if there is an easy way to change this. Also would be interesting adding a second or some more fans.

Thanks in advance
Regards
Dominik

@vitormhenrique
Copy link
Owner

vitormhenrique commented Oct 10, 2016

It should be implemented now. Please let me know if it works so I can close this.

@wiesel24
Copy link
Author

Hi,
Wow, thank you for your afford! I tried it but it didn't work. I edited the GetTemperature.py script to take a look and the correct ID of my DS18B20 sensor is in it. Sorry for not understanding the code, but it have a .py script that works and the temperature is displayed. So the temperature sensor is correctly installed. I don't get any output if I ran your script. I think that's the problem.

And sorry for begging, but it is also possible to address a second Fan in the Plugin?

Maybe you will find a solution.

Thank you!

Regards
Dominik

@vitormhenrique
Copy link
Owner

You should use GetTemperature1820.py instead of GetTemperature.py.
Manually copy the script on "~/.octoprint/plugins/OctoPrint-Enclosure/extras/" or any other place.

Make it executable
chmod +x ~/.octoprint/plugins/OctoPrint-Enclosure/extras/GetTemperature1820.py
Also the script is waiting for a argument, type
~/.octoprint/plugins/OctoPrint-Enclosure/extras/GetTemperature1820.py 1820

And see if the terminal print the temperature. Also please get the my updates from yesterday.

@DomLuu
Copy link

DomLuu commented Oct 13, 2016

Hallo Dominik

gehe davon aus du sprichst auch Deutsch (wegen deinem Nick). Ich habe Vitor gebeten den DS1820 zu implementieren, da ich mein eigenes Script dazu nicht eingebunden bekommen habe. Vitor hat entsprechend gleich alles in sein Plugin implementiert. Ich würde dir folgendes Vorgehen vorschlagen:

  1. Enclosure Plugin über Octopi zu deinstallieren.
  2. den Ordnerpfad per Console manuell zu erstellen: (mkdir ...) /.octoprint/plugins/OctoPrint-Enclosure/extras
  3. alle 3 Get..py Files manuell reinzukopieren (https://github.com/vitormhenrique/OctoPrint-Enclosure/tree/master/extras)
  4. alle Files ausführbar machen: chmod +x ~/.octoprint/plugins/OctoPrint-Enclosure/extras/GetTemperature1820.py
  5. wiringPi installieren (falls noch nicht vorhanden) / Achtung bei mir hat es einen zusätzlichen Eintrag in der /etc/rc.local benötigt (da muss ganz unten noch "dtoverlay=w1-gpio" rein
  6. Plugin NEU installieren
  7. Die Enclosure PluginSettings entsprechend anpassen

Funktioniert dein Sensor grundsätzlich? --> http://tutorials-raspberrypi.de/raspberry-pi-temperatur-mittels-sensor-messen/

Grüsse Dominik

@wiesel24
Copy link
Author

Hi Vitor, Hallo Dominik :-)

@vitor
Thank you everything worked perfect after your and dominik's advices!!! I don't want to be nervy but maybe if you got time some day maybe there is the possibility to add a second fan option to this superb plugin. I know you're doing this in your free time! Thank you for everything Vitor!

@dominik
Danke deiner tollen Anleitung habe ich es endlich hinbekommen. Lustig das du auch zufällig Dominik heißt ;-)
Vielleicht kann Vitor ja wirklich irgendwann einen 2 Fan dazu basteln im Interface.
Danke nochmals!

BG
Dominik

@vitormhenrique
Copy link
Owner

I'm current working on an alternative to OctopiPanel. After I finish that I can implement the second fan. You should be able to implement that fairly easily using my current code.

@vitormhenrique
Copy link
Owner

Dominik,
Just to let you know that I updated the code to enable control of 4 generic IO on rPi. You can now control up to 4 different things using the plugin.

@DomLuu
Copy link

DomLuu commented Dec 10, 2016 via email

@DomLuu
Copy link

DomLuu commented Dec 10, 2016 via email

@vitormhenrique
Copy link
Owner

vitormhenrique commented Dec 10, 2016 via email

@vitormhenrique
Copy link
Owner

I added the functionality to disable the IO when print is complete, you can also configure a delay if you want.
There is also a new functionality, a filament sensor, it will pause your print if you run out of filament.

@DomLuu
Copy link

DomLuu commented Jan 1, 2017 via email

vitormhenrique pushed a commit that referenced this issue Mar 28, 2019
vitormhenrique pushed a commit that referenced this issue Apr 28, 2021
Implement support for i2c gpio devices (GPIO outputs and temp/humidity inputs)
ademuri pushed a commit to ademuri/OctoPrint-Enclosure that referenced this issue Oct 7, 2021
Implement support for i2c gpio devices (GPIO outputs and temp/humidity inputs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants