Robo-Tank DIY Aquarium Controller Forum
Robo-Tank v6.0 is Ready - Now v6.5 - Printable Version

+- Robo-Tank DIY Aquarium Controller Forum (https://www.robo-tank.ca/forum)
+-- Forum: Robo-Tank (https://www.robo-tank.ca/forum/forum-1.html)
+--- Forum: Current News and Design Ideas (https://www.robo-tank.ca/forum/forum-8.html)
+--- Thread: Robo-Tank v6.0 is Ready - Now v6.5 (/thread-1243.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21


RE: Robo-Tank v6.0 is Ready - Now v6.4 - loksik.lubos - 03-20-2022

after a long time I got on this forum and my only update is on V6 I can't update to V6.4. Installation on V6.4 ends with an error, it cannot connect to your server and I also miss your site


RE: Robo-Tank v6.0 is Ready - Now v6.4 - loksik.lubos - 03-20-2022

so I tried it once more the package was installed but after logging in my screen stays black


RE: Robo-Tank v6.0 is Ready - Now v6.4 - albinochicken89 - 03-20-2022

Same for me. I’ve cleared the cache a number of times, tried different browsers, and tried private browsing and still can’t get it to load the UI.


RE: Robo-Tank v6.0 is Ready - Now v6.4 - simonv92 - 03-20-2022

Hi Rob, I've updated my test setup to 6.4v. It seems to works just fine...
I've only 2 questions: Under Configure Ports - advanced mode there will be an option to run Robo-Tank with custom boards? so no name for any GPIO and all user settable...
Will you add support for more than 1 PCA9685 expander?
Thank you!

Simone


RE: Robo-Tank v6.0 is Ready - Now v6.4 - Rob F - 03-20-2022

(03-20-2022, 01:16 AM)gandalf Wrote: i can't re-run the update because it override my changes. if you tell me which file you fixed, i update only that

the errors are in the web page, probably related to the bad update lefting stale records in database, similiar to what happened to the dosing pumps. i think it's related to the pin mapping After setting the controller type to v2

for the queries, yes i've taken them from the code that's why i'm suggesting to save the update queries in an SQL files that the update procedure will run

Sorry if you're going to be editing files you'll have to figure out how to update and keep your changes and doing so could definitely affect future updates. This could be why things didn't update properly. As you've been using this with v2 controller you had to make lots of changes to pinsAvailable table, it's very important this doesn't change as it's all related to controller version selection.

Charts are stored in chartData folder. Also tables in database not being used yet.


RE: Robo-Tank v6.0 is Ready - Now v6.4 - Rob F - 03-20-2022

(03-20-2022, 09:40 AM)loksik.lubos Wrote: so I tried it once more the package was installed but after logging in my screen stays black

Could you try clearing your browser cache. 

The address in browser should look something like this normally.

http://192.168.1.16/dashboard.php

Remove the "dashboard.php" at the end and reload the page.


RE: Robo-Tank v6.0 is Ready - Now v6.4 - Rob F - 03-20-2022

(03-20-2022, 09:50 AM)albinochicken89 Wrote: Same for me. I’ve cleared the cache a number of times, tried different browsers, and tried private browsing and still can’t get it to load the UI.

Are you loading only your IP address without /dashboard.php at the end?

There's a log out issue, if browser logs you out but you continue to reload dashboard.php it'll be a black screen, this had me going in circles till I figured out why. The login screen is store in index.php and dashboard.php doesn't redirect if logged out.

If this doesn't work could you right click on page and click "inspect", a window will open with tabs at top, click "console". This is all output from the program, let me know what it says.


RE: Robo-Tank v6.0 is Ready - Now v6.4 - Rob F - 03-20-2022

(03-20-2022, 06:22 PM)simonv92 Wrote: Hi Rob, I've updated my test setup to 6.4v. It seems to works just fine...
I've only 2 questions: Under Configure Ports - advanced mode there will be an option to run Robo-Tank with custom boards? so no name for any GPIO and all user settable...
Will you add support for more than 1 PCA9685 expander?
Thank you!

Simone

Hi Simone, good to hear. I doubt I'll support custom boards at least not for some time as there's too much to do still. The advanced configure ports is what you use, just need to ignore the Robo-Tank name. It's very important to never change the name in the database, it's the "portName" field in pinsAvailable. When a user changes controller versions it looks at these names so it can reassign them to the corresponding pin.

You can connect multiple pca9685's, shouldn't be any limit just need to make sure you change the I2C address before connecting it.


RE: Robo-Tank v6.0 is Ready - Now v6.4 - gandalf - 03-21-2022

(03-20-2022, 07:15 PM)Rob F Wrote: Sorry if you're going to be editing files you'll have to figure out how to update and keep your changes and doing so could definitely affect future updates. This could be why things didn't update properly. As you've been using this with v2 controller you had to make lots of changes to pinsAvailable table, it's very important this doesn't change as it's all related to controller version selection.

Charts are stored in chartData folder. Also tables in database not being used yet.

wait, when i've updated to v6.4 i've updated from a stock version (6.0) not from my custom one. I've updated and then i've readded my customization, but the update didn't worked as expected, the pinout mapping after selecting controller v2 was bad, some stale records left in database and this broke the robo-tank service (probably because it was trying to read something not configured because the pin was changed)

What broke almost everything was the selection of v2 controller.


RE: Robo-Tank v6.0 is Ready - Now v6.4 - loksik.lubos - 03-21-2022

Rob I tried to clear the memory to delete the dashboard but it didn't help

Failed to load resource: the server responded with a status of 404 (Not Found)
style.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
bootstrap-slider.min.js:5 bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead.
(anonymous) @ bootstrap-slider.min.js:5
firstRun.js:2 startup running
firstRun.js:32 checkStartupWizard ----------
firstRun.js:182 totalDriverPins[0] = 23
firstRun.js:184 driverName[totalDriverPins-1] = Raspberry Pi
firstRun.js:185 driverName[totalDriverPins-1] = PCA9685
firstRun.js:186 driverName[totalDriverPins-1] = undefined
firstRun.js:187 totalDriverPins[0] = 23
firstRun.js:188 totalDriverPins[1] = 16
firstRun.js:189 totalDriverPins[2] = undefined
firstRun.js:190
firstRun.js:196 pinCount = 23
firstRun.js:200 arrayLoc = 22
firstRun.js:209 pinCount2 = 16
firstRun.js:210 arrayLoc = 38
firstRun.js:223 getDriverInfo--------------------------------------------------------------
firstRun.js:224 Array(39)
firstRun.js:225 Object
firstRun.js:226 23
firstRun.js:227 16
firstRun.js:228 undefined
firstRun.js:229 23
firstRun.js:230 16
firstRun.js:231 totalDrivers = 2
firstRun.js:232 totalDriverPins = 23,16
firstRun.js:233 Array(39)
firstRun.js:235 0 - Power Bar 2 - Outlet 3
firstRun.js:235 1 - Power Bar 2 - Outlet 2
firstRun.js:235 2 - Power Bar 2 - Outlet 4
firstRun.js:235 3 - Power Bar 2 - Outlet 6
firstRun.js:235 4 - Power Bar 1 - Outlet 1
firstRun.js:235 5 - Power Bar 1 - Outlet 2
firstRun.js:235 6 - Power Bar 2 - Outlet 5
firstRun.js:235 7 - Power Bar 2 - Outlet 7
firstRun.js:235 8 - Power Bar 2 - Outlet 8
firstRun.js:235 9 - Power Bar 1 - Outlet 5
firstRun.js:235 10 - Power Bar 1 - Outlet 4
firstRun.js:235 11 - Power Bar 2 - Outlet 1
firstRun.js:235 12 - Sensor Port 1
firstRun.js:235 13 - NOT USED
firstRun.js:235 14 - Sensor Port 3
firstRun.js:235 15 - Sensor Port 4
firstRun.js:235 16 - Sensor Port 6
firstRun.js:235 17 - Power Bar 1 - Outlet 3
firstRun.js:235 18 - Power Bar 1 - Outlet 6
firstRun.js:235 19 - Power Bar 1 - Outlet 7
firstRun.js:235 20 - Power Bar 1 - Outlet 8
firstRun.js:235 21 - Sensor Port 5
firstRun.js:235 22 - Sensor Port 2
firstRun.js:235 23 - PWM / Analog Port 1
firstRun.js:235 24 - PWM / Analog Port 2
firstRun.js:235 25 - PWM / Analog Port 3
firstRun.js:235 26 - PWM / Analog Port 4
firstRun.js:235 27 - PWM / Analog Port 5
firstRun.js:235 28 - PWM / Analog Port 6
firstRun.js:235 29 - PWM / Analog Port 7
firstRun.js:235 30 - PWM / Analog Port 8
firstRun.js:235 31 - Feeder Port
firstRun.js:235 32 - DC Port 7
firstRun.js:235 33 - DC Port 6
firstRun.js:235 34 - DC Port 5
firstRun.js:235 35 - DC Port 4
firstRun.js:235 36 - DC Port 3
firstRun.js:235 37 - DC Port 2
firstRun.js:235 38 - DC Port 1
firstRun.js:237 Array(39)
firstRun.js:238 Array(39)
firstRun.js:239 Array(39)
firstRun.js:240 Array(39)
firstRun.js:241 Array(39)
firstRun.js:242 Array(39)
firstRun.js:243 Array(39)
firstRun.js:244 Array(39)
php/getSystemSettings.php?_=1647884672989:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
firstRun.js:333 Object
firstRun.js:334 error
firstRun.js:263 getRTCstatus--------------------------------------------------------------
firstRun.js:265 Uncaught TypeError: Cannot read properties of undefined (reading 'enabled')
at Object.success (firstRun.js:265:41)
at fire (jquery-1.12.4.js:3232:31)
at Object.fireWith [as resolveWith] (jquery-1.12.4.js:3362:7)
at done (jquery-1.12.4.js:9840:14)
at XMLHttpRequest.callback (jquery-1.12.4.js:10311:8)
widgetsDs18b20.js:126 redrawTempWidget Empty----------------------
settingsMenu.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
DevTools failed to load source map: Could not load content for chrome-extension://pgjjikdiikihdfpoppgaidccahalehjh/webspeed.js.map: System error: net::ERR_BLOCKED_BY_CLIENT
DevTools failed to load source map: Could not load content for http://192.168.1.186/libraries/dygraph.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for http://192.168.1.186/libraries/bootstrap-slider.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE


RE: Robo-Tank v6.0 is Ready - Now v6.4 - Rob F - 03-21-2022

(03-21-2022, 05:18 AM)gandalf Wrote: wait, when i've updated to v6.4 i've updated from a stock version (6.0) not from my custom one. I've updated and then i've readded my customization, but the update didn't worked as expected, the pinout mapping after selecting controller v2 was bad, some stale records left in database and this broke the robo-tank service (probably because it was trying to read something not configured because the pin was changed)

What broke almost everything was the selection of v2 controller.

What records were left in the database? Changing versions shouldn't take anything out, it just rearranges some data in the pinsAvailable table and reboots the controller. Before you updated did you change anything on that table to make it work for v2? The stock versions would have needed some changes in database.


RE: Robo-Tank v6.0 is Ready - Now v6.4 - Rob F - 03-21-2022

(03-21-2022, 11:58 AM)loksik.lubos Wrote: Rob I tried to clear the memory to delete the dashboard but it didn't help

Sorry I don't know what to think of that, it looks like it's getting messed up here.

php/getSystemSettings.php?_=1647884672989:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)

I don't know why ?_=1647884672989 is at the end of file though.

What happens why you put this address in your browser?

http://192.168.1.186/php/getSystemSettings.php


RE: Robo-Tank v6.0 is Ready - Now v6.4 - loksik.lubos - 03-21-2022

When I enter this page, nothing will show me only http error 500


RE: Robo-Tank v6.0 is Ready - Now v6.4 - Rob F - 03-21-2022

Ok that's the problem, it should have returned something like this.

[{"systemSettingID":"1","userID":"1","configView":"0","tempCorF":"1","timeFormat":"1","outletSortID":"1","dcSortID":"1","scheduleTabSelected":"0","scheduleSortID":"2","scheduleSortOrder":"1","emailEnabled":"0","smtpServer":"smtp.office365.com","smtpPort":"587","smtpUser":"","smtpPass":"","smtpProvider":"0","autoUpdate":"0","version":"6.4","controllerVersion":"2","versionLatest":"6.4","supportID":"1062590678","db9_1":"0","db9_2":"0"}]

I don't think the server is running or you're not connected to the network. Are you able to log into the Pi SSH using putty or similar?


RE: Robo-Tank v6.0 is Ready - Now v6.4 - loksik.lubos - 03-21-2022

When I log in to your website, I don't see it, I get a time out message. It will be possible up to several times. This certainly caused me a problem downloading the package 6.0-6.4 from the server not found.
I tried to reinstall and I get a black screen without change


RE: Robo-Tank v6.0 is Ready - Now v6.4 - Rob F - 03-21-2022

I wonder if you have a bad internet connection, my website seems to be loading good and when I look at the stats people are browsing it as normal. I hate to say it but you might have to do a fresh install. You can try running the install script here without reformatting, it might sort it out but may need to reformat.

https://www.robo-tank.ca/forum/Thread-Robo-Tank-v6-0-is-Ready-Now-v6-4?pid=6596#pid6596


RE: Robo-Tank v6.0 is Ready - Now v6.4 - loksik.lubos - 03-21-2022

I tried to reinstall and also without success


RE: Robo-Tank v6.0 is Ready - Now v6.4 - Rob F - 03-21-2022

Oh wow, I've done at least 4 fresh installs before I released it so rather surprised. I will try it again right now. What Pi are you using?

Did you do a reformat as well?


RE: Robo-Tank v6.0 is Ready - Now v6.4 - Rob F - 03-21-2022

I just did a fresh install and it worked so it's a bit of a mystery right now. Can you try the following 3 commands in the Pi SSH terminal.

sudo systemctl stop robotank.service

cd /var/www/html/cpp

sudo ./robotank

After the last command you should get a bunch of data print to the terminal, let me know what you get.


RE: Robo-Tank v6.0 is Ready - Now v6.4 - Rob F - 03-22-2022

I might have an answer for the black screen syndrome. It messed me around again, I really need to clear this up.

Try typing this in your browser, replace IP with your correct one.

http://192.168.1.186/logout.php

Then go to the following and log back in and hopefully it loads.

http://192.168.1.186/