Turns out there was a Sanitize function, it just was incomplete. Fixes and a test:
https://github.com/reef-pi/reef-pi/pull/1360
https://github.com/reef-pi/reef-pi/pull/1360
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
@Ranjib or @theatrus may know but I think you need to edit the database which I think you can do but I have not done it, just make a copy BEFORE doing any edits. Hopefully someone can chime in on how you you would do it.Yikes! You Guy's are smart. So, how do I edit this from the command line? I used to be a hardware Engineer so the software side is a bit challenging for me....
See my update about poking around the database on my prior posting. I will try to look at it later this evening but will be a few hours out, if you haven't corrected it by then.Thanks Tom, appreciate your help.
There is additional information on the troubleshooting webpage for how to do database edits see thisSee my update about poking around the database on my prior posting. I will try to look at it later this evening but will be a few hours out, if you haven't corrected it by then.
Hey guys. Looks like Rpi has recently announce a $4 arduino style board. The Pi pico. Do we foresee any use for this down the line?
Will they this time actually be willing to sell it instead of clamping down on it with orders limited to one and doubling the price with periphery bundles that were the only way to get it, like they did with the zero?Hey guys. Looks like Rpi has recently announce a $4 arduino style board. The Pi pico. Do we foresee any use for this down the line?
I think i might use it to make an auto top off.Hey guys. Looks like Rpi has recently announce a $4 arduino style board. The Pi pico. Do we foresee any use for this down the line?
Settings bucket has the Prometheus enabled/disabled option, set it to false and start reef-pi, then update the relevant equipment name and enable Prometheus againThere is additional information on the troubleshooting webpage for how to do database edits see this
Down towards the bottom you will see this section - Using reef-pi db command
Looks like the bucket you are after is the "equipment" bucket. Take a look at that page along with the one I previously linked to should provide enough information to change what you need and get it working. Remember to make a copy of the db before applying any edits, that way you can always go back.
:)
Do they stay stuck? Or is it a transient glitch?
1W is not going to give you guarantees, and it looks like a probe probably held the bus when it shouldn't have. The biggest risk is a probe remaining in that state, when it takes a power cycle to fix it. There is nothing to prevent that condition, especially with all the clone probes. While its not possible in stock reef-pi, putting the pull-up and the power on a switchable port, which resets the bus if it fails, is something that could be scripted on the Pi and only costs one GPIO and one P-channel FET.
I've heard this happening a few times and looked quite extensively for some code to reset the bus but yeah nothing. This hardware/code reset sounds really interesting, could you explain how it could be done? I would love to add this to my controller and I just happen to have one GPIO pin free. :)
The bare minimum would be something like this:
![]()
Sensor power and the pull-up are both controlled by a single PFET. In this design, you could actually skip the PFET and power it directly from a Pi pin, but not preferred. However, this runs the sensor at 3.3V, and some of the cheap sensors really run better at 5V... so this is the bells and whistles version:
![]()
In this case, a high signal on the Pi Pin will turn on the sensor, and pull-up the 1-wire line via R1.
R2 is to pull the PFET gate up to 5V, which will keep it switched off unless Q2 is turned on. When Q2 is turned on by the high signal from the Pi, the gate of Q1 goes low so it turns on, and R2 limits current to ground.
R3 and C1 are the extra bonus parts - R3 will make sure any charge is bled away from the sensor (it may latch in a very low current state and may take awhile to reset), and C1 is good practice to decouple the power line.
1Wire sensors can be powered parasitically, so it may be valuable to add a large value (100k+) pull-down on the 1Wire bus line at all times. In theory you could do so by simply setting the 1Wire pin as a low output on the Pi, but the kernel driver owns the pin so its not straight forward.
Rob, the SHT31-D I believe is the Adafruit breakout board part number. If you are looking for the part number for the digital chip, it's SHT31-DIS-P2.5KS. They're about 5 bucks on digikey. Careful, they are tiny. about 2.5 mm sq.I know reef-pi supports the SHT31-D but how about the SHT31? How important is the D? I can't find what that represents. Someone asked me about this sensor but I'm unsure, anyone know? I assume its ok but...
https://core-electronics.com.au/sht31-weather-proof-temperature-humidity-sensor.html
Rob, the SHT31-D I believe is the Adafruit breakout board part number. If you are looking for the part number for the digital chip, it's SHT31-DIS-P2.5KS. They're about 5 bucks on digikey. Careful, they are tiny. about 2.5 mm sq.
A real pain to solder. I had my reflow gun turned almost all the way down on the lowest airflow and it still wanted to blow it all around.
Basically a turn off and on, aka mimic an unplug. The pull-up power is also removed as 1-wire devices are supposed to work on a parasitic mode, powered only by a pull up. A lot of clone sensors can’t be powered like this, but in case a sensor is getting powered... (unlikely if it’s also holding the bus low).Wow that bells and whistle version looks great, thanks!
I can see when the sensor enable signal is high power makes it way to the sensor and I assume the script would control the signal from that GPIO but how does that reset the bus? Is there a line of code that will report if the bus isn't responding and act accordingly? Is the idea the sensor needs to be unplugged to reset the bus? That's what it looks like this does as the 1wire isn't pulled high anymore and no power to sensor.