Nice one! Ill keep an eye on your thread :)I’ll try to build one myself for my freshwater aquarium. If that works we could try adapting it to saltwater :)
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.
Nice one! Ill keep an eye on your thread :)I’ll try to build one myself for my freshwater aquarium. If that works we could try adapting it to saltwater :)
hmm.. i have never tried names with period. i cant think of any code that will break due to this.. but i have to test it outThis is the entry that I think I need to update using the reef-pi db command:
"8": {
"id": "8",
"name": "Doser Yellow 1.1ml h202 dj5",
"outlet": "8",
"on": false
Well I took the easy path and just deleted the ID 8, easy enough to re-create, so here is what I did:
sudo reef-pi db delete equipment 8
Then restarted reef-pi service and this time it started right up, so I assume I cannot use "." in the name/labels? I have a doser that is 1.1ml/min and was trying to use that in the name but I could do 1_1ml.
Here is the output from the journal...hmm.. i have never tried names with period. i cant think of any code that will break due to this.. but i have to test it out
http2: panic serving 10.99.99.146:52016: descriptor Desc{fqName: "equipment_doser_yellow_1.1ml_dj5_state", help: "Module:equipment Ite
m:Doser Yellow 1.1ml dj5-state", constLabels: {}, variableLabels: []} is invalid: "equipment_doser_yellow_1.1ml_dj5_state" is not a valid metric name
Aug 13 19:57:51 octopi reef-pi[12763]: goroutine 6080056 [running]:
Aug 13 19:57:51 octopi reef-pi[12763]: net/http.(*http2serverConn).runHandler.func1(0x2e68560, 0x33a3fc4, 0x35376c0)
Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/h2_bundle.go:5713 +0x11c
Aug 13 19:57:51 octopi reef-pi[12763]: panic(0x618bc8, 0x310d480)
Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/panic.go:969 +0x118
Aug 13 19:57:51 octopi reef-pi[12763]: github.com/prometheus/client_golang/prometheus.(*Registry).MustRegister(0x2d3f340, 0x310d468, 0x1, 0x1)
Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:403 +0x80
Aug 13 19:57:51 octopi reef-pi[12763]: github.com/prometheus/client_golang/prometheus/promauto.Factory.NewGauge(0x7aaff0, 0x2d3f340, 0x0, 0x0, 0x0, 0x0, 0x308a4e0, 0x26, 0x2edf380, 0x32, ...)
Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/pkg/mod/github.com/prometheus/[email protected]/prometheus/promauto/auto.go:297 +0xc0
Aug 13 19:57:51 octopi reef-pi[12763]: github.com/prometheus/client_golang/prometheus/promauto.NewGauge(...)
Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/pkg/mod/github.com/prometheus/[email protected]/prometheus/promauto/auto.go:191
Aug 13 19:57:51 octopi reef-pi[12763]: github.com/reef-pi/reef-pi/controller/telemetry.(*telemetry).EmitMetric(0x2dd8000, 0x6b03ad, 0x9, 0x2dc95e0, 0x1c, 0x0, 0x0)
Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/telemetry/telemetry.go:189 +0x510
Aug 13 19:57:51 octopi reef-pi[12763]: github.com/reef-pi/reef-pi/controller/modules/equipment.(*Controller).updateOutlet(0x2d09e60, 0x31f904f, 0x1, 0x2dc9540, 0x16, 0xbb8070, 0x1, 0x0, 0x0, 0x
0)
Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/modules/equipment/controller.go:83 +0xd8
Aug 13 19:57:51 octopi reef-pi[12763]: github.com/reef-pi/reef-pi/controller/modules/equipment.(*Controller).Update(0x2d09e60, 0x31f904f, 0x1, 0x31f904f, 0x1, 0x2dc9540, 0x16, 0xbb8070, 0x1, 0x
0, ...)
Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/modules/equipment/equipment.go:58 +0xcc
Aug 13 19:57:51 octopi reef-pi[12763]: github.com/reef-pi/reef-pi/controller/modules/equipment.(*Controller).UpdateEquipment.func1(0x31f904f, 0x1, 0x2f6a300, 0x0)
Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/modules/equipment/api.go:166 +0x4c
Aug 13 19:57:51 octopi reef-pi[12763]: github.com/reef-pi/reef-pi/controller/utils.JSONUpdateResponse(0x5d66c0, 0x2f6a300, 0x33a3d00, 0x7ab770, 0x2e68560, 0x32d4d00)
Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/utils/http_json.go:95 +0x124
Aug 13 19:57:51 octopi reef-pi[12763]: github.com/reef-pi/reef-pi/controller/modules/equipment.(*Controller).UpdateEquipment(0x2d09e60, 0x7ab770, 0x2e68560, 0x32d4d00)
Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/modules/equipment/api.go:168 +0x7c
Aug 13 19:57:51 octopi reef-pi[12763]: net/http.HandlerFunc.ServeHTTP(0x2f4c880, 0x7ab770, 0x2e68560, 0x32d4d00)
Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:2012 +0x34
Aug 13 19:57:51 octopi reef-pi[12763]: github.com/gorilla/mux.(*Router).ServeHTTP(0x2d2f7a0, 0x7ab770, 0x2e68560, 0x34acc80)
Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0xac
Aug 13 19:57:51 octopi reef-pi[12763]: github.com/reef-pi/reef-pi/controller/utils.(*auth).Authenticate.func1(0x7ab770, 0x2e68560, 0x34acc80)
Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/utils/auth.go:57 +0x294
Aug 13 19:57:51 octopi reef-pi[12763]: net/http.HandlerFunc.ServeHTTP(0x304eb70, 0x7ab770, 0x2e68560, 0x34acc80)
Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:2012 +0x34
Aug 13 19:57:51 octopi reef-pi[12763]: net/http.(*ServeMux).ServeHTTP(0xbf40b0, 0x7ab770, 0x2e68560, 0x34acc80)
Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:2387 +0x16c
Aug 13 19:57:51 octopi reef-pi[12763]: net/http.serverHandler.ServeHTTP(0x2d80120, 0x7ab770, 0x2e68560, 0x34acc80)
Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:2807 +0x88
Aug 13 19:57:51 octopi reef-pi[12763]: net/http.initALPNRequest.ServeHTTP(0x7aca10, 0x2f56dc0, 0x2cf7e00, 0x2d80120, 0x7ab770, 0x2e68560, 0x34acc80)
Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:3381 +0x5c
Aug 13 19:57:51 octopi reef-pi[12763]: net/http.(*http2serverConn).runHandler(0x35376c0, 0x2e68560, 0x34acc80, 0x3103430)
Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/h2_bundle.go:5720 +0x74
Aug 13 19:57:51 octopi reef-pi[12763]: created by net/http.(*http2serverConn).processHeaders
Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/h2_bundle.go:5454 +0x418
you are using grafana /prometheus? . is not allowed by prometheus, thats what causing the crash. im bit surprised though, this should not happen as we sanitize the metric name in code,. may be this version didnt had that fixHere is the output from the journal...
Code:http2: panic serving 10.99.99.146:52016: descriptor Desc{fqName: "equipment_doser_yellow_1.1ml_dj5_state", help: "Module:equipment Ite m:Doser Yellow 1.1ml dj5-state", constLabels: {}, variableLabels: []} is invalid: "equipment_doser_yellow_1.1ml_dj5_state" is not a valid metric name Aug 13 19:57:51 octopi reef-pi[12763]: goroutine 6080056 [running]: Aug 13 19:57:51 octopi reef-pi[12763]: net/http.(*http2serverConn).runHandler.func1(0x2e68560, 0x33a3fc4, 0x35376c0) Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/h2_bundle.go:5713 +0x11c Aug 13 19:57:51 octopi reef-pi[12763]: panic(0x618bc8, 0x310d480) Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/panic.go:969 +0x118 Aug 13 19:57:51 octopi reef-pi[12763]: github.com/prometheus/client_golang/prometheus.(*Registry).MustRegister(0x2d3f340, 0x310d468, 0x1, 0x1) Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:403 +0x80 Aug 13 19:57:51 octopi reef-pi[12763]: github.com/prometheus/client_golang/prometheus/promauto.Factory.NewGauge(0x7aaff0, 0x2d3f340, 0x0, 0x0, 0x0, 0x0, 0x308a4e0, 0x26, 0x2edf380, 0x32, ...) Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/pkg/mod/github.com/prometheus/[email protected]/prometheus/promauto/auto.go:297 +0xc0 Aug 13 19:57:51 octopi reef-pi[12763]: github.com/prometheus/client_golang/prometheus/promauto.NewGauge(...) Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/pkg/mod/github.com/prometheus/[email protected]/prometheus/promauto/auto.go:191 Aug 13 19:57:51 octopi reef-pi[12763]: github.com/reef-pi/reef-pi/controller/telemetry.(*telemetry).EmitMetric(0x2dd8000, 0x6b03ad, 0x9, 0x2dc95e0, 0x1c, 0x0, 0x0) Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/telemetry/telemetry.go:189 +0x510 Aug 13 19:57:51 octopi reef-pi[12763]: github.com/reef-pi/reef-pi/controller/modules/equipment.(*Controller).updateOutlet(0x2d09e60, 0x31f904f, 0x1, 0x2dc9540, 0x16, 0xbb8070, 0x1, 0x0, 0x0, 0x 0) Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/modules/equipment/controller.go:83 +0xd8 Aug 13 19:57:51 octopi reef-pi[12763]: github.com/reef-pi/reef-pi/controller/modules/equipment.(*Controller).Update(0x2d09e60, 0x31f904f, 0x1, 0x31f904f, 0x1, 0x2dc9540, 0x16, 0xbb8070, 0x1, 0x 0, ...) Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/modules/equipment/equipment.go:58 +0xcc Aug 13 19:57:51 octopi reef-pi[12763]: github.com/reef-pi/reef-pi/controller/modules/equipment.(*Controller).UpdateEquipment.func1(0x31f904f, 0x1, 0x2f6a300, 0x0) Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/modules/equipment/api.go:166 +0x4c Aug 13 19:57:51 octopi reef-pi[12763]: github.com/reef-pi/reef-pi/controller/utils.JSONUpdateResponse(0x5d66c0, 0x2f6a300, 0x33a3d00, 0x7ab770, 0x2e68560, 0x32d4d00) Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/utils/http_json.go:95 +0x124 Aug 13 19:57:51 octopi reef-pi[12763]: github.com/reef-pi/reef-pi/controller/modules/equipment.(*Controller).UpdateEquipment(0x2d09e60, 0x7ab770, 0x2e68560, 0x32d4d00) Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/modules/equipment/api.go:168 +0x7c Aug 13 19:57:51 octopi reef-pi[12763]: net/http.HandlerFunc.ServeHTTP(0x2f4c880, 0x7ab770, 0x2e68560, 0x32d4d00) Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:2012 +0x34 Aug 13 19:57:51 octopi reef-pi[12763]: github.com/gorilla/mux.(*Router).ServeHTTP(0x2d2f7a0, 0x7ab770, 0x2e68560, 0x34acc80) Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0xac Aug 13 19:57:51 octopi reef-pi[12763]: github.com/reef-pi/reef-pi/controller/utils.(*auth).Authenticate.func1(0x7ab770, 0x2e68560, 0x34acc80) Aug 13 19:57:51 octopi reef-pi[12763]: /Users/ranjib/gocode/src/github.com/reef-pi/reef-pi/controller/utils/auth.go:57 +0x294 Aug 13 19:57:51 octopi reef-pi[12763]: net/http.HandlerFunc.ServeHTTP(0x304eb70, 0x7ab770, 0x2e68560, 0x34acc80) Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:2012 +0x34 Aug 13 19:57:51 octopi reef-pi[12763]: net/http.(*ServeMux).ServeHTTP(0xbf40b0, 0x7ab770, 0x2e68560, 0x34acc80) Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:2387 +0x16c Aug 13 19:57:51 octopi reef-pi[12763]: net/http.serverHandler.ServeHTTP(0x2d80120, 0x7ab770, 0x2e68560, 0x34acc80) Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:2807 +0x88 Aug 13 19:57:51 octopi reef-pi[12763]: net/http.initALPNRequest.ServeHTTP(0x7aca10, 0x2f56dc0, 0x2cf7e00, 0x2d80120, 0x7ab770, 0x2e68560, 0x34acc80) Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:3381 +0x5c Aug 13 19:57:51 octopi reef-pi[12763]: net/http.(*http2serverConn).runHandler(0x35376c0, 0x2e68560, 0x34acc80, 0x3103430) Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/h2_bundle.go:5720 +0x74 Aug 13 19:57:51 octopi reef-pi[12763]: created by net/http.(*http2serverConn).processHeaders Aug 13 19:57:51 octopi reef-pi[12763]: /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/h2_bundle.go:5454 +0x418
I then changed the 1.1 to 1_1 and its all good now, this was running v4.1..I should always have a backup but this stuff rarely happens since you spoiled us with good code...:)
AND was easy to fix with the DB commands.
Yup I am using prometheus/grafna for sure, allows me to keep track of things and really is the dashboard that I use daily vs the reef-pi dashboard. Yeah I'm on a pretty old version, I'm kind of stubborn since if it works and I don't need any of the new features then I tend to stay put. I keep meaning to get my test unit up and working where I can run newer versions but just haven't spent the time to do it. Really wasn't an issue once I figured out what the issue was and gave me an opportunity to use the database command and it worked like a treat. :)you are using grafana /prometheus? . is not allowed by prometheus, thats what causing the crash. im bit surprised though, this should not happen as we sanitize the metric name in code,. may be this version didnt had that fix
@Schreiber wondering if Leviathan 1.1 ORP can be used as Ph. I have your original leviathan, it looks like the main difference is we don’t need to BYOBuckconverters?
Just went through the pain staking process of doing a clean install for the same thing to occur. I also has some issues getting ssh setup... kept giving me a password denied no matter what I did. Even changed keyboard types and tried connecting from my phone.... Im dying here.Tried upgrading an older version of reef-pi using "wget -c https://github.com/reef-pi/reef-pi/releases/download/5.3/reef-pi-5.3-pi0.deb" followed by "sudo dpkg -i reef-pi-5.3-pi0.deb" and when I run the
sudo systemctl status reef-pi.service command I get this
reef-pi.service - raspberry pi based reef tank controller
Loaded: loaded (/lib/systemd/system/reef-pi.service; disabled; vendor preset:
Active: inactive (dead)
lines 1-3/3 (END)
I tried rebooting and tried it again while running "sudo apt-get remove -y --purge reef-pi" first. Same result....
This has been touched on and off in the thread but Rob has a good document that walks you through setting things up and there is an initial script that you can run that walks you through the setup - https://docs.google.com/document/d/1t9majBpGlqKacDjkyEZ1HQNWsTRo3woZ/editJust went through the pain staking process of doing a clean install for the same thing to occur. I also has some issues getting ssh setup... kept giving me a password denied no matter what I did. Even changed keyboard types and tried connecting from my phone.... Im dying here.
Just frustrating because I have setup like 5-6 of these things and suddenly SSH doesn't seem to want to work. Wondering if its Mac related but I will give it a shotThis has been touched on and off in the thread but Rob has a good document that walks you through setting things up and there is an initial script that you can run that walks you through the setup - https://docs.google.com/document/d/1t9majBpGlqKacDjkyEZ1HQNWsTRo3woZ/edit
The configuration script can be used for non robotank installs also...
Highly recommended when starting out, should allow you to get things going pretty quickly. :)
What does the log says. That will indicate the exact error , we need thatTried upgrading an older version of reef-pi using "wget -c https://github.com/reef-pi/reef-pi/releases/download/5.3/reef-pi-5.3-pi0.deb" followed by "sudo dpkg -i reef-pi-5.3-pi0.deb" and when I run the
sudo systemctl status reef-pi.service command I get this
reef-pi.service - raspberry pi based reef tank controller
Loaded: loaded (/lib/systemd/system/reef-pi.service; disabled; vendor preset:
Active: inactive (dead)
lines 1-3/3 (END)
I tried rebooting and tried it again while running "sudo apt-get remove -y --purge reef-pi" first. Same result....
Which log file?What does the log says. That will indicate the exact error , we need that
That hysteresis is a UI bug if I remember correctly.Sorry for duplicate posts... I tried 5.2 and it worked. Going to do a setup for an RODI controller tomorrow so let me know which logs are needed and how to get them (tech idiot here) and I can help debug.
Also what value of Hysteresis should be acceptable for temperature? I have tried everything from decimal values to 100,000 so I figure its another annoying bug.... It won't let me control my temp unless I have a valid value and I can't find one...