-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
create a new link to a page #108
Comments
It is a bit more work. But I suggest that I create a new branch and test this between us. But did you add an extra ADC converter to it? Because the analog output cannot be read directly. It so, it that device capable of 8 analog devices? If so, I will also add an extra section to configure the pins for the ADC board |
The template engine is described here: http://bottlepy.org/docs/dev/stpl.html#simpletemplate-syntax You can run python code in it, but that will be cashed with the data first time requested.. :( So that is not really working I am afraid |
i will try anyway |
I have tried this at home: http://rasp.io/wp-content/uploads/2016/06/RasPiO-Analog-Zero.pdf But it takes a bit of space... And I need a lot of GPIO pins to test everything :P |
Ok, created a new branch. 'feature/ph' . Check it out to test code for supporting the PH device. There are some assumptions done from my side and you have to do some extra steps to get it working. Make sure the software is not running during this update.
Clear browser cache and go to the interface. Now you should be able to add a PH device at the settings page. Use the analog port number as address. Add the sensor and cross your fingers :) The assumption I have done is that your setup is compatible with gpiozero. Your code does seems to use the same GPIO ports, so I am hoping that it will work directly out the box. |
Aie,
i run restart and have this like error :
|
i've entered 0 as adress but nothing appear .. |
Ok, try a new git pull and restart... Not sure if the error above will stop getting data from other sensors, but I will think so Also, did you run the install script? That should install gpiozero package |
yes the first time I did the install but the package was missing, I did it manually and the start was able to start at that time .. I have just restarted but it seems that there are still some errors .. I will check later and tell you what I see .. Anyway thank you very much for your time and your involvement in this feature :) |
Just did another commit... this should make it work :D One more try tonight? |
here are the last mistakes I have: I'm going to sleep but thank you in any case :) 2018-02-25 01: 51: 51,000 - INFO - terrariumWrapper - Starting TerrariumPI server at location: http://192.168.1.61:8090 ... |
Do a git pull and try again? We are getting close to the working code |
HEllo Yosh, this is the alert i have in screen :
|
New log after restart :
|
Ok, it looks like you have some mixed up code. All errors about hc-sr04 should be fixed, due to the fix in the master branch. So stop the program and remove all the *.pyc files and make sure you have the latest code. Because I did a small change yesterday late. So please update to latest version on the feature/ph branch. Remove the *.pyc files to make sure new .py files are used. And see what the output will be |
Just added some debug. Please do another git pull |
hum i have this :
|
Another try? Updated the code again. Now I hope the errors will be gone |
git pull and git ph/mesure ./install and reboot . i'm waiting ;) |
oh... the install script is not needed now.... that was only once... |
i've got a Current PH to 0.17 .. what's the difference ? |
I think the way the voltage is measured... so can you test with your working script what the output is of the variable I use a different library to read out the voltage. Could be that we have to invert the value |
ok I will look a little on my side what it is;) I come back to you for the rest .. thank you for your time for me |
found it... git pull again and it should be a better value :D your script returned millivolt values. Mine does volts. That is a small difference :D |
Absolutely PERFECT ! 🥇 |
Thanks! And cool that it works. I will update my own installation as well to test if it is still working for me. I guess it will. Then it will be merged to the master branch. The debug code will then also be removed. And maybe in the future I can do something with this on the environment part. For now it is just measurement. Also big thanks to you for testing this and giving feedback. Together we fixed it in 24 hours with sleeping in between :) 👍 |
Merged into master |
Hello,
I just placed my PH probe SKU SEN0161 and it works perfectly.
My python script tells me the good ph and everything is OK.
this is my script :
But how to call the python script in a page (tpl) so that it returns the value of the PH.
I created a new link in the menu on the left with the sensors and a new page called ph.tpl tpl but I'm looking for a moment, the code is not interpreted as if it was php.
I do not know this framework at all, would there be a trick, in the immediate future I would need to display the value of the ph on demand no need db storage or other .
in advance thank you for helping me;)
The text was updated successfully, but these errors were encountered: