Kessil

Reefing and AI (Apex debugging)

phatduckk

Supporting Member
So I was messing with my tank setup recently. Adding new level sensors, cleaning/replacing opticals etc... spring cleaning type stuff.
I checked a bunch of stuff off my list then saw my auto water change virtual outlet (AWC_ENABLED) was set to off. So instead of debugging it myself I thought "I wonder if I can get AI to do this"...

Turns out your can....

1775756760201.png


I just copy/pasted my Apex code & handed it a copy of http://apex.local/cgi-bin/status.xml and it figured it out. Clearly I could have done this myself but I thought I'd experiment. I've always wanted a "bedugger" in the Apex code panel and I think I can make one now.

Anyways - if I get a bit of time im going to go ahead and see if I can make Chrome extension to add a debugger to apex.local (not sure its possible - but I think it is)

stay tuned
 

Attachments

  • 1775756702744.png
    1775756702744.png
    103.6 KB · Views: 15
Almost done

1775764592119.png


Quick explanation:
  • the line gutter (line numbers) turn red/green to reflect the current status of the outlet/probe being evaluated on that line
  • The entire line turns red/green to show you which line "won" and cause your output to be in its current state.

So breaking down the screenshot

CodeExplanation of colors in debugger
Set OFF# green gutter b/c this is now "off"
Set OFF # im dumb for having this twice
If RES_LV < 7.3 Then ON# gutter red bc LLS isn't reading < 7.3
If Rtn_lv > 7.9 Then ON# gutter red bc LLS isn't reading > 7.9
If Time 00:00 to 06:59 Then OFF# gutter red bc its currently not between midnight and 7am
If Time 07:01 to 23:59 Then OFF# gutter green bc the time is currently between 7am and midnight. The line is red because this line


Anyways - here's a demo of the work in progress
 
What colors can you differentiate? I can have my AI friend add that in a few minute. Just let me know what you want instead of green & red

I had AI do the whole thing. It whipped the whole thing up in mere minutes. Kinda nuts honestly
that is awesome.
Can it italize? Or underline or outline?
 
honestly the whole thing took me a few hours. No idea WTF they're doing over there at Neptune.

I'm tempted to see if I can replace fusion entirely. Its mostly a waste of time but might be worth the challenge
 
Welcome to vibe coding.

I don't speak code but ai tools like these have allowed me to make a ton of software tools I use all the time.

I used vscode co-pilot to help setup a bunch of local llm on my gaming computers when I want to build something, I'm now using my own hardware and private models that only cost the electric it takes to run the machine.
 
Back
Top