Following...
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.
Ok so here is the first of probably many questions. I try to do things on my own without bothering people, but sometimes I don’t find the answer on google. Probably because I don’t know how to ask the question. I got everything installed. I’m working on getting the config.json file to work. I am stuck now on finding the port for the apex. When I do netstat -a on my Windows machine cmd prompt I get the IP address with http for the port.
I didn’t change the port from the default. Never had an issue with it.
Ok so here is the first of probably many questions. I try to do things on my own without bothering people, but sometimes I don’t find the answer on google. Probably because I don’t know how to ask the question. I got everything installed. I’m working on getting the config.json file to work. I am stuck now on finding the port for the apex. When I do netstat -a on my Windows machine cmd prompt I get the IP address with http for the port.
Awesome. So I can put my apex IP address in the code and leave port like this <port> then add my user name and password and it should work?
Awesome. So I can put my apex IP address in the code and leave port like this <port> then add my user name and password and it should work?
No, change <port> to 80
This config.json is killing me. I guess I’ll get it eventually. Persistence usually pays off and I learn new things in the process
Alright. So I have it setup now. Basic switches such as lights, pumps etc I can do now. Has anyone figured out how to make it do the feed cycle yet? That is the biggest thing I want to accept. So my wife can feed the fish without pushing buttons. I really appreciated the help and have enjoyed this project.
BTW, I could not figure out the call for FeedX so I ended up creating a virtual outlet that allows me to do the same. The catch is that I have to remember to turn it OFF or the feed will never stop. So if you can figure out the call for FeedA, let me know!
/usr/bin/curl -X POST --user <<username>>:<<password>> http://<<ip address>>:<<port>>/status.sht?Feed_state=0&Update=Update; sleep 1; /usr/bin/curl -X POST --user <<username>>:<<password>> http://<<ip address>>:<<port>>/status.sht?Feed_state=1&Update=Update
"on_cmd": "/usr/bin/curl -X POST --retry 5 --max-time 2 --retry-connrefused --fail --silent --show-error --user username:pw 'http://apex/status.sht?FeedSel=0&FeedCycle=Feed'",
"off_cmd": "/usr/bin/curl -X POST --retry 5 --max-time 2 --retry-connrefused --fail --silent --show-error --user username:pw http://apex/status.sht?FeedCycle=Feed%20Cancel",
"state_cmd": "/usr/bin/curl --retry 5 --max-time 2 --retry-connrefused --fail --silent --show-error http://apex/cgi-bin/status.xml | grep -i '<name>Feeding</name>' -A2 | grep -E -i 'ON'"
Set Off
If FeedA 000 Then On
If FeedB 000 Then On
If FeedC 000 Then On
If FeedD 000 Then On
Ok so here is the first of probably many questions. I try to do things on my own without bothering people, but sometimes I don’t find the answer on google. Probably because I don’t know how to ask the question. I got everything installed. I’m working on getting the config.json file to work. I am stuck now on finding the port for the apex. When I do netstat -a on my Windows machine cmd prompt I get the IP address with http for the port.