rcrum003 / HiveControl

Alternative software for use with HiveTool suite of software.
GNU General Public License v2.0
25 stars 13 forks source link

hivecontrol not showing weight in v1.93 #63

Closed ptegler closed 4 years ago

ptegler commented 5 years ago

hivecontrol -> calibrate = error graph is displaying zero weight reading hivetool is reading weight correctly both in calibrate and in graph

rcrum003 commented 5 years ago

You really shouldn’t be running both codesets on the same machine at the same time.

What image did you start with?

On Jul 8, 2019, at 10:29 PM, ptegler notifications@github.com wrote:

hivecontrol -> calibrate = error graph is displaying zero weight reading hivetool is reading weight correctly both in calibrate and in graph

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

ptegler commented 5 years ago

1.90 (while the screen lower left corner still read 1.6x something. If the browser page is all that starts the system..they are not running at the same time. Original install was via dnl, unzip local install... (is how I fixed the co.uk vs me.uk by editing the local copy I installed from.) Post your fix I did a full install from the script. Then the update to 1.93 via the systems command page

rcrum003 commented 5 years ago

the webpage is just a convenient way to see and manage the overall system. The system actually consists of many scripts and cron jobs that over lap with hivetool. You have to commit to one or the other code bases. We support their hardware and the ability to post to their website, in addition to ours.

The calibrate just helps give you the values. If you have already done it with the Hivetool code, use the same values in the config of HiveControl.

Can you go to a terminal prompt and show us the output of the following commands?

sudo cat /home/HiveControl/VERSION sudo crontab -l sudo cat /home/HiveControl/scripts/hiveconfig.inc

ptegler commented 5 years ago

yep.. looks like hivetools AND hivecontrol are both running.....

pi@italians:~ $ sudo cat /home/HiveControl/VERSION 1.93 pi@italians:~ $ sudo crontab -l

ptegler commented 5 years ago

this is the crontab left in place after installing hivecontrol, over the original hivetool image

rcrum003 commented 4 years ago

Run this command three times and post the results. /usr/bin/sudo /usr/bin/python /home/HiveControl/scripts/weight/HX711.py

ptegler commented 4 years ago

pi@italians:~ $ /usr/bin/sudo /usr/bin/python /home/HiveControl/scripts/weight/HX711.py 5997 pi@italians:~ $ /usr/bin/sudo /usr/bin/python /home/HiveControl/scripts/weight/HX711.py 5979 pi@italians:~ $ /usr/bin/sudo /usr/bin/python /home/HiveControl/scripts/weight/HX711.py 5929 pi@italians:~ $ /usr/bin/sudo /usr/bin/python /home/HiveControl/scripts/weight/HX711.py -292253 pi@italians:~ $

4th time was with 30lbs on it

rcrum003 commented 4 years ago

If it goes negative, then you might have your load cells installed upside down.

On Jul 10, 2019, at 3:34 PM, ptegler notifications@github.com wrote:

pi@italians:~ $ /usr/bin/sudo /usr/bin/python /home/HiveControl/scripts/weight/HX711.py 5997 pi@italians:~ $ /usr/bin/sudo /usr/bin/python /home/HiveControl/scripts/weight/HX711.py 5979 pi@italians:~ $ /usr/bin/sudo /usr/bin/python /home/HiveControl/scripts/weight/HX711.py 5929 pi@italians:~ $ /usr/bin/sudo /usr/bin/python /home/HiveControl/scripts/weight/HX711.py -292253 pi@italians:~ $

4th time was with 30lbs on it

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rcrum003/HiveControl/issues/63?email_source=notifications&email_token=AC7Q6KBAKXK3V2PYASP7DOTP6Y2TRA5CNFSM4H7A6WFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZUQBEY#issuecomment-510197907, or mute the thread https://github.com/notifications/unsubscribe-auth/AC7Q6KHMCPHZZ3DAKFMSRRDP6Y2TRANCNFSM4H7A6WFA.

ptegler commented 4 years ago

just did a new calibrate (because of the negative numbers) slope and intercept is the same as in hivetool hivecontrol still returns zero lbs

rcrum003 commented 4 years ago

What values do you have set for SLOPE/INTERCEPT?

ptegler commented 4 years ago

Hivcontrol: Zero/Intercept -4.18063 Calibration/Slope -0.00009954830

Hivetool: Slope -0.00009954830 Intercept -4.18063

all arrows are pointing down

ptegler commented 4 years ago

think it's fixed now! trying to the calibrate wizard was causing a reboot! I edited the crontab to comment out the hivetool... I noticed the pgio was using different paths (different files?) so commented that out at the top of the file and left the load at the bottom of the crontab. re-ran cal.... zero = 4961 slope now at -9329.6875 (big difference from above post) back in app... scale now reads the weight I have siting on it!

ptegler commented 4 years ago

suggestion.... comment (somewhere) that hivecontrol can no longer reside alongside hivetools orig installation.... and rewrite the cron files (as possible) or use the same path/version of the pigpiod file hivetool was using /usr/local/bin/pigpiod hivecontrol is using usr/bin/pigpiod

rcrum003 commented 4 years ago

We will write a script that over a certain version, we will comment out hivetool crontab.

BTW, we still send our data to hivetool.org http://hivetool.org/, so they aren’t losing anything.

Thanks for the suggestion.

On Jul 10, 2019, at 5:33 PM, ptegler notifications@github.com wrote:

suggestion.... comment (somewhere) that hivecontrol can no longer reside alongside hivetools orig installation.... and rewrite the cron files (as possible) or use the same path/version of the ppgio file hivetool was using /usr/local/bin/pigpiod hivecontrol is using usr/bin/pigpiod

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rcrum003/HiveControl/issues/63?email_source=notifications&email_token=AC7Q6KBJSNVRTHJY4MOXMPTP6ZISHA5CNFSM4H7A6WFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZUZWDQ#issuecomment-510237454, or mute the thread https://github.com/notifications/unsubscribe-auth/AC7Q6KAJV22CXBXOPBMKCG3P6ZISHANCNFSM4H7A6WFA.

ptegler commented 4 years ago

thanks for putting up with me :-) I'm fairly experienced (well VERY... 35+ years of coding and electronics design) I think the lack of 'flow' info as to how this is all laid out (same for hivetool) that is causing most of my issues. thanks again for all your work here!

rcrum003 commented 4 years ago

Going to close this out, since you have it working now.