Installation issue

Hi Mitch, thanks for developing this plugin, just what I am looking for. However, getting stuck at the first hurdle! I'm trying to install on my Hoobs setup, I've already downloaded and installed the CMD4 plugin and then installed the AdvantageAir one.
I accessed the Terminal and followed the instructions but when I enter $config, I get an error messgae back stating ERROR: either your AdvantageAir system is inacessible or your IP address /var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh is invalid! - I thought this step was mean to ask for the ip address of my AA system? What am I doing wrong?

Hi @QLDRiddler,
Please try the following command
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh
Then enter your ip address of your AdvantageAir system

That took me one step further but when I entered the IP address of the AA
unit, it still came back as inaccessible or invalid. I've just tried
pinging the AA unit directly at xxx.xxx.xxx.xxx:2025/getSystemData and that
responds immediately with the JSON data.
On Tue, 16 Aug 2022 at 16:23, uswong @.***> wrote:

Hi @QLDRiddler https://github.com/QLDRiddler,
Please try the following command
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh
Then enter your ip address of your AdvantageAir system
—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1216196971,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2RODLYU2B264CHDKY6HFJLVZMXVBANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

that is a bit strange.
make sure that you are in your home directory, then try this command
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh "xxx.xxx.xxx.xxx"

Thanks for sticking with me here. One step forward, one step back - it now
tries to create the file but still doesnt seem to be able to access the
unit. Pasted below is a screengrab from the Hoobs terminal, followed by a
screen grab of a direct ping of the AA unit from a browser.
[image: image.png]
[image: image.png]
On Tue, 16 Aug 2022 at 16:50, uswong @.***> wrote:

that is a bit strange.
make sure that you are in your home directory, then try this command
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh
"xxx.xxx.xxx.xxx"
—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1216218058,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2RODL5WJ75MHRBEA6WS7B3VZM22FANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

For some reasons, I can't see your screen grab images.
can you please test the following on your terminal?
curl -s -g --max-time 15 --fail --connect-timeout 15 "http://xxx.xxx.xxx.xxx:2025/getSystemData"
If the command returned the Json file, then your ip address xxx.xxx.xxx.xxx must be correct.
If not, then there are two reasons for the inaccessible message.

one is wrong ip address.  you have rule that out, I think.
another reason is that your system is running quite slow and took more than 15 seconds.

to overcome the later, edit the line 802 in ConfigCreator.sh
myAirData=$(curl -s -g --max-time 15 --fail --connect-timeout 15 "http://${IPA}:2025/getSystemData")
change the number 15 to 60, to become the following:
myAirData=$(curl -s -g --max-time 60 --fail --connect-timeout 60 "http://${IPA}:2025/getSystemData")
For your reference, if everything is working well, you should see the following messages:
My installation is on Raspberry Pi and it looks like this:

Pinging the unit with the CURL command generated an immediate JSON response
so the bridge can obviously see the unit. I'm attaching teh screen grabs as
attachem,ent this time to see if that helps. Otherwise pasted below is the
line-by-line output from the Hoobs terminal when I try and run the
Configurator.
@.***:~ $
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh
"<IP_ADDRESS>"
In the process of creating the Cmd4 configuration file for your
AdvantageAir system(s).
It may take up to 2 minutes....
Fetching and processing data from your AdvantageAir system
(<IP_ADDRESS>)....
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh:
line 812: jq: command not found
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh:
line 817: jq: command not found
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh:
line 818: jq: command not found
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh:
line 820: jq: command not found
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh:
line 821: jq: command not found
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh:
line 822: jq: command not found
cat: cmd4Config.json.AAaccessories: No such file or directory
Cmd4 configuration file has now been created successfully:
cmd4Config_AA_.json.1660635646
This newly created config can be copied to Homebridge config.json
automatically
The existing Cmd4 configuration pertaining to AdvantageAir system(s) will
be overwritten by this new one
Do you want to proceed? (y/n)
y
Homebridge config.json:
ERROR: no Homebridge config.json found!
INFO:  the created cmd4Config_AA_.json.1660635646 was unable to be copied
to Homebridge-Cmd4 JASON Config Editor!
On Tue, 16 Aug 2022 at 17:21, uswong @.***> wrote:

For some reasons, I can't see your screen grab images.
can you please test the following on your terminal?
curl -s -g --max-time 15 --fail --connect-timeout 15 "
http://xxx.xxx.xxx.xxx:2025/getSystemData"
If the command returned the Json file, then your ip address
xxx.xxx.xxx.xxx must be correct.
If not, then there are two reasons for the inaccessible message.

one is wrong ip address. you have rule that out, I think.
another reason is that your system is running quite slow and took
more than 15 seconds.

to overcome the later, edit the line 802 in ConfigCreator.sh
myAirData=$(curl -s -g --max-time 15 --fail --connect-timeout 15 "http://
${IPA}:2025/getSystemData")
change the number 15 to 60, to become the following:
myAirData=$(curl -s -g --max-time 60 --fail --connect-timeout 60 "http://
${IPA}:2025/getSystemData")
For your reference, if everything is working well, you should see the
following messages:
My installation is on Raspberry Pi and it looks like this:
[image: image]
https://user-images.githubusercontent.com/96530237/184818009-011249be-7b58-4b78-afc6-a1052f2aa2c8.png
—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1216245683,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2RODL6GJUB5T5VZGKENJ5DVZM6OTANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

OK, your system is actually running fast, the max-time of 15 seconds is not the issue.
The issue is your jq installation.
try
jq -V
you should see a response something like this:
jq-1.6
if not, you have to install jq first

Raspbian/Hoobs:
sudo apt-get install jq

@uswong thanks for jumping on this one for me. I really dislike HOOBS haha if I remember correctly they restrict what commands and access the user has at the terminal with their image... It was a very long time ago I tried HOOBS and I had to do a whole heap of extra steps to use some basic commands. I do not think we have 100% confirmed any users have this working on HOOBS yet, I did have a user who had trouble getting set up before had UI integration and never heard back from them on if they had a win or not in the end.

haha... I never come across HOOBS.  I just googled it and this is what I got:
HOOBS is the number one solution for Homebridge.

HOOBS is the number one solution for Homebridge.

Yeah they would say that lol they are an early fork from homebridge-config-ui-x back in the day and use homebridge to create their own image/platform. It is designed for users who are not tech savvy to jump straight into the RPi and Homebridge world with no experience; this sounded great until I used it and found I could do nothing custom with it and requiring workarounds to elevate privileges.
The problem is they charge (with a mark up) for parts you could buy yourself and use a restricted version of what is a free image you could acquire; as you know. Anyway I should stop distracting from the point and my aim has always been to support HOOBS as well. @QLDRiddler I would suggest if you want a nicer experience with all your plug-ins (earlier updates, more support in the community, etc.) you should swap over to homebridge (but no pressure):
https://github.com/homebridge/homebridge-raspbian-image/wiki/How-to-migrate-from-HOOBS-to-Homebridge

@uswong I am not quite ready to roll out the new version of ConfigCreator just yet as I will have to do all the admin work for it; including grabbing screenshots to update the install instructions (the lengthy part). I have merged and tested it and it works as expected. What I can do in the mean time if @QLDRiddler is keen to give it a go, I could give some instructions on how to install it from 'git clone' so they can test it before it is rolled out.
@QLDRiddler did you want to give that a try? It would tell us if the new integration will get around any limitations applied by HOOBS...

Sure, happy to be an alpha/beta guinea pig, what could go wrong? 😷

From: Mitch Williams @.>
Sent: Tuesday, August 16, 2022 8:09:35 PM
To: mitch7391/homebridge-cmd4-AdvantageAir @.>
Cc: QLDRiddler @.>; Mention @.>
Subject: Re: [mitch7391/homebridge-cmd4-AdvantageAir] Installation issue (Issue #70)
@uswonghttps://github.com/uswong I am not quite ready to roll out the new version of ConfigCreator just yet as I will have to do all the admin work for it; including grabbing screenshots to update the install instructions (the lengthy part). I have merged and tested it and it works as expected. What I can do in the mean time if @QLDRiddlerhttps://github.com/QLDRiddler is keen to give it a go, I could give some instructions on how to install it from 'git clone' so they can test it before it is rolled out.
@QLDRiddlerhttps://github.com/QLDRiddler did you want to give that a try? It would tell us if the new integration will get around any limitations applied by HOOBS...
—
Reply to this email directly, view it on GitHubhttps://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1216434141, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2RODLZ7WHCRVUM3ROJUIU3VZNSF7ANCNFSM56UQCGDQ.
You are receiving this because you were mentioned.Message ID: @.***>

Give me a few secs to type out the instructions for you and worst case is it will not be any worse than what you have now. You will then just re-install the plug-in to revert.

Open your terminal.
Type:cd /tmp

Type:git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git

Type:cd homebridge-cmd4-AdvantageAir

Type:npm pack

Type:sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm

Open you plug-ins tab and it should now say you have v3.6.0 and try the ConfigCreator as you were before :)

To revert just re-install the plugin as you had done the first time. Not sure if HOOBS will let you do any of this but worth a shot!

Actually there will be slightly different steps for using the ConfiCreator now, so don't follow the steps on the Wiki again.

On the plug-in page, click SETTINGS for this plug-in and it will bring up a UI.
Scroll to the bottom and type in the name of your system (E-zone, Aircon, Riddler, etc.).
Type in your IP address.
Click SAVE.
You might need to launch the SETTINGS again.
At the top of the UI press Config Creator.
Hopefully everything worked!

Hey Mitch, I tested the above git clone procedure and got an error sh: husky: command not found. when I did npm pack command.

What I did to resolve the error was before the npm pack command, I have to do a npm i to install husky first, then everything worked.

Hi,
Install the dev dependencies
npm install --dev
I believe
John
On Wed, Aug 17, 2022 at 11:11 PM uswong @.***> wrote:

Hey Mitch, I tested the above git clone procedure and got an error sh:
husky: command not found. when I did npm pack command.
[image: image]
https://user-images.githubusercontent.com/96530237/185283936-9b234d96-18e2-460c-938e-9b6630803959.png
What I did to resolve the error was before the npm pack command, I have
to do a npm i to install husky first, then everything worked.
[image: image]
https://user-images.githubusercontent.com/96530237/185284184-2aa26558-aa50-46b1-b56b-64c2e8d4941a.png
[image: image]
https://user-images.githubusercontent.com/96530237/185284392-0589290b-50da-4859-8bea-ee6f49bdd7fe.png
[image: image]
https://user-images.githubusercontent.com/96530237/185284450-7163697a-9151-4edc-b538-226e18282d6a.png
—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1218996050,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSBCX5RWOTKJUVNALRVNY3VZWSVPANCNFSM56UQCGDQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***
com>

Hey @uswong I was not aware it would need husky installed to just do a npm pack... Just a npm install husky would suffice if that error holds you up, or similar to what John has said about; a npm install --include-dev should do.
@QLDRiddler sorry to pressure you, but did you get a chance to give this a go? Please let us know if you face any troubles or need further guidance.

Sorry, getting lots of errors in many steps and as I'm not
understanding what's being done, not sure what I need to do to resolve.
Could you perhaps give definitive insrutctions again as to what should be
required (inc the revised npm commands) and I'll give it another go. Is
there anything I should need to do beforehand to prepare a clean install
environment (delete the old plugin, remove tmp directories from the failed
upgrade etc?)
On Thu, 18 Aug 2022 at 20:08, Mitch Williams @.***>
wrote:

Hey @uswong https://github.com/uswong I was not aware it would need
husky installed to just do a npm pack... Just a npm install husky would
suffice if that error holds you up, or similar to what John has said about;
a npm install --include-dev should do.
@QLDRiddler https://github.com/QLDRiddler sorry to pressure you, but
did you get a chance to give this a go? Please let us know if you face any
troubles or need further guidance.
—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1219301847,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2RODL6PUUO6A2J6GZTY523VZYDP7ANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hey @QLDRiddler, completely understandable if the above got confusing and what we have asked you to do still might not actually work.
Just to reassure you that the steps you will be taking will not harm your setup in anyway. The directory we end up creating in ‘/tmp’ ends up getting deleted once you reboot your RPi. The extra installation of ‘husky’ or ‘include-dev’ does not cause any issues to your system and takes up barely any space.
Anyway, revised steps as requested:

Reboot your RPi to clear ‘/tmp’.
Open your terminal.
Type:cd /tmp

Type:git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git

Type:cd homebridge-cmd4-AdvantageAir

Type:npm pack

If you have an error here about husky not being installed. Use: npm install husky

Reattempt the npm pack.
If successful, type:sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm

Open you plug-ins tab and it should now say you have v3.6.0.
On the plug-in page, click SETTINGS for this plug-in and it will bring up a UI.
Scroll to the bottom and type in the name of your system (E-zone, Aircon, Riddler, etc.).
Type in your IP address.
Click SAVE.
You might need to launch the SETTINGS again.
At the top of the UI press Config Creator.
Hopefully everything worked!
If it did, then run the Check Configuration.

If at any stage of these steps that you get stuck or stopped by some sort of error, please capture a screenshot or copy the error for us so we can further help.

I followed the steps as directed (I did have to do the husky step as well)
but showing v3.5.1 as per the attached screen grab. Pasted below is the
response from install process. I noticed that it said that packages are
looking for funding, so I ran nnpm fund as sudo and have also pasted that
output. Sorry I can be of more technical assistance but more than willing
tp keep plugging away.
@.:/tmp/homebridge-cmd4-AdvantageAir $ npm pack
npm notice
npm notice 📦  @.
npm notice === Tarball Contents ===
npm notice 1.1kB  .eslintrc.json
npm notice 1.2kB  .github/ISSUE_TEMPLATE/bug-report.md
npm notice 954B   .github/ISSUE_TEMPLATE/feature-request.md
npm notice 1.6kB  .github/ISSUE_TEMPLATE/support-request.md
npm notice 949B   .github/pull_request_template.md
npm notice 61B    .husky/pre-commit
npm notice 44.8kB AdvAir.sh
npm notice 16.1kB CHANGELOG.md
npm notice 32.5kB ConfigCreator.sh
npm notice 1.1kB  LICENSE
npm notice 8.1kB  README.md
npm notice 2.0kB  config.schema.json
npm notice 242B   homebridge-ui/public/css/style.css
npm notice 74.3kB homebridge-ui/public/images/AdvAir.png
npm notice 6.6kB  homebridge-ui/public/index.html
npm notice 2.2kB  homebridge-ui/public/js/main.js
npm notice 29.6kB homebridge-ui/server.js
npm notice 383B   index.js
npm notice 3.0kB  package.json
npm notice === Tarball Details ===
npm notice name:          homebridge-cmd4-advantageair
npm notice version:       3.6.0
npm notice filename:      homebridge-cmd4-advantageair-3.6.0.tgz
npm notice package size:  110.8 kB
npm notice unpacked size: 226.7 kB
npm notice shasum:        675ad76acfca57b2edd9e44814cbd36f0c572b57
npm notice integrity:     sha512-eShtRMAGmaokK[...]V6NYs9EpCUwFg==
npm notice total files:   19
npm notice
homebridge-cmd4-advantageair-3.6.0.tgz
@.***:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install -g
./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm
[sudo] password for hoobs:
changed 16 packages, and audited 17 packages in 4s
51 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
@.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm fund
[sudo] password for hoobs:
@.
├─┬ https://github.com/chalk/chalk?sponsor=1
│ │ └── @.***
│ └── https://github.com/chalk/ansi-styles?sponsor=1
│     └── @.***
├─┬ https://opencollective.com/eslint
│ │ └── @.***
│ ├── https://github.com/sponsors/sindresorhus
│ │   └── @., @., @.,
@., @., @.,
@., @., @., @.,
@., @., @., @.,
@., @., @., @.,
@., @., @., @.,
@., @., @., @.
│ ├── https://github.com/sponsors/mysticatea
│ │   └── @., @.
│ └── https://github.com/sponsors/isaacs
│     └── @., @.
├── https://github.com/sponsors/typicode
│   └── @.***
├─┬ https://opencollective.com/mochajs
│ │ └── @.***
│ ├─┬ https://paulmillr.com/funding/
│ │ │ └── @.***
│ │ └── https://github.com/sponsors/jonschlinkert
│ │     └── @.***
│ └── https://github.com/chalk/supports-color?sponsor=1
│     └── @.***
├── https://opencollective.com/sinon
│   └── @.***
├── https://github.com/sponsors/feross
│   └── @.***
├── https://github.com/sindresorhus/execa?sponsor=1
│   └── @.***
├── https://github.com/sponsors/epoberezkin
│   └── @.***
└── https://github.com/chalk/wrap-ansi?sponsor=1
└── @.***
On Fri, 19 Aug 2022 at 11:57, Mitch Williams @.***>
wrote:

Hey @QLDRiddler https://github.com/QLDRiddler, completely
understandable if the above got confusing and what we have asked you to do
still might not actually work.
Just to reassure you that the steps you will be taking will not harm your
setup in anyway. The directory we end up creating in ‘/tmp’ ends up getting
deleted once you reboot your RPi. The extra installation of ‘husky’ or
‘include-dev’ does not cause any issues to your system and takes up barely
any space.
Anyway, revised steps as requested:

Reboot your RPi to clear ‘/tmp’.
Open your terminal.
Type:

cd /tmp

Type:

git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git

Type:

cd homebridge-cmd4-AdvantageAir

Type:

npm pack
If you have an error here about husky not being installed. Use:
npm install husky

Reattempt the npm pack.
7. If successful, type:
sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm

Open you plug-ins tab and it should now say you have v3.6.0.
On the plug-in page, click SETTINGS for this plug-in and it will
bring up a UI.
Scroll to the bottom and type in the name of your system (E-zone,
Aircon, Riddler, etc.).
Type in your IP address.
Click SAVE.
You might need to launch the SETTINGS again.
At the top of the UI press Config Creator.
Hopefully everything worked!
If it did, then run the Check Configuration.

If at any stage of these steps that you get stuck or stopped by some sort
of error, please capture a screenshot or copy the error for us so we can
further help.
—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220153752,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2RODL3OWHFY7PJZFFJND5DVZ3SXDANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

This is an interesting one @QLDRiddler... It looks like everything you have done has worked and is correct, but it is then not reflecting in the plug-in itself. My colleague @uswong says he is experiencing the same strange issue himself on his Homebridge RPi; I am not experiencing the issue and have tried it three times...
I would say at this point we will stop wasting your time by getting you to attempt it over and over. I will get my butt into gear tonight or tomorrow and push forward the release so you can install it the normal way (instead of our dev way). Sorry for all this inconvenience so far!
Also, the npm funding is just npm itself wanting people to fund projects (like a donate button); it will ask you about that every time you do an npm update, so just ignore that as it will not affect anything you are wanting to do.
I have also just dug up a very old HOOBS OS ZIP file download from back when they used to let you have the image for free (hopefully it lets me update for free too); I cannot believe they charge $10 for just the image download! I think it is fair time that I fired this up on my spare RPi3 and make sure I can get through the install myself and update any notes for future users.

Hi Mitch,
I've duplicated your success and others failures.
Your success is because you might have husky installed globally, or after
the 'git clone', you had done a ' npm install --include-dev' before the
'npm pack'. Husky is only for the commit hooks used during development.
I.e. running the test scripts.
I am not sure why at the bottom of the package.json file there is an
entry:
"prepare": "husky install"
If you delete that line and the comma from the end of the preceding line,
everything seems happy or do an:
npm install --include-dev
Before the "npm pack" command
So to be clear, following your steps add step 5B

Type:
git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git

Type:

cd homebridge-cmd4-AdvantageAir
5.B Type:
npm install --include-dev

The true fix might be removing the "prepare: husky install" from the
package.json.  How it got there, I'd have to look back in history. Another
reason not to delete history,  but that's the other conversation.
Ttyl,
John
On Fri, Aug 19, 2022 at 12:23 AM Mitch Williams @.***>
wrote:

This is an interesting one @QLDRiddler https://github.com/QLDRiddler...
It looks like everything you have done has worked and is correct, but it is
then not reflecting in the plug-in itself. My colleague @uswong
https://github.com/uswong says he is experiencing the same strange
issue himself on his Homebridge RPi; I am not experiencing the issue and
have tried it three times...
I would say at this point we will stop wasting your time by getting you to
attempt it over and over. I will get my butt into gear tonight or tomorrow
and push forward the release so you can install it the normal way (instead
of our dev way). Sorry for all this inconvenience so far!
Also, the npm funding is just npm itself wanting people to fund projects
(like a donate button); it will ask you about that every time you do an npm
update, so just ignore that as it will not affect anything you are wanting
to do.
I have also just dug up a very old HOOBS OS ZIP file download from back
when they used to let you have the image for free (hopefully it lets me
update for free too); I cannot believe they charge $10 for just the image
download! I think it is fair time that I fired this up on my spare RPi3 and
make sure I can get through the install myself and update any notes for
future users.
—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220234260,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSBCX45VIN3XGX2LHHOGWDVZ4D4FANCNFSM56UQCGDQ
.
You are receiving this because you commented.Message ID:
@.***>

Just to update you all, I tried the added step that John mentions and
whilst that took away the install errors, I'm still stuck on 3.5.1 of the
plugin :-(
@.:~ $ cd /tmp
@.:/tmp $ sudo git clone
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git
[sudo] password for hoobs:
Cloning into 'homebridge-cmd4-AdvantageAir'...
remote: Enumerating objects: 2194, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 2194 (delta 0), reused 0 (delta 0), pack-reused 2191
Receiving objects: 100% (2194/2194), 7.77 MiB | 8.85 MiB/s, done.
Resolving deltas: 100% (1249/1249), done.
@.:/tmp $ cd homebridge-cmd4-AdvantageAir
@.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install
--include-dev

@.*** prepare
husky install

husky - Git hooks installed
added 350 packages, and audited 351 packages in 14s
51 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
@.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm pack
npm notice
npm notice 📦  @.
npm notice === Tarball Contents ===
npm notice 1.1kB  .eslintrc.json
npm notice 1.2kB  .github/ISSUE_TEMPLATE/bug-report.md
npm notice 954B   .github/ISSUE_TEMPLATE/feature-request.md
npm notice 1.6kB  .github/ISSUE_TEMPLATE/support-request.md
npm notice 949B   .github/pull_request_template.md
npm notice 61B    .husky/pre-commit
npm notice 44.8kB AdvAir.sh
npm notice 16.1kB CHANGELOG.md
npm notice 32.6kB ConfigCreator.sh
npm notice 1.1kB  LICENSE
npm notice 8.1kB  README.md
npm notice 2.0kB  config.schema.json
npm notice 242B   homebridge-ui/public/css/style.css
npm notice 74.3kB homebridge-ui/public/images/AdvAir.png
npm notice 6.6kB  homebridge-ui/public/index.html
npm notice 2.2kB  homebridge-ui/public/js/main.js
npm notice 29.6kB homebridge-ui/server.js
npm notice 383B   index.js
npm notice 3.0kB  package.json
npm notice === Tarball Details ===
npm notice name:          homebridge-cmd4-advantageair
npm notice version:       3.6.0
npm notice filename:      homebridge-cmd4-advantageair-3.6.0.tgz
npm notice package size:  110.8 kB
npm notice unpacked size: 226.9 kB
npm notice shasum:        d7b26a48082ffeb75136f99b41bb43f1a68219e0
npm notice integrity:     sha512-vLiBc55HVr8Rt[...]H3AwXQi7KNHgA==
npm notice total files:   19
npm notice
homebridge-cmd4-advantageair-3.6.0.tgz
@.***:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install -g
./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm
changed 16 packages, and audited 17 packages in 3s
2 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
@.***:/tmp/homebridge-cmd4-AdvantageAir $
On Fri, 19 Aug 2022 at 15:11, John Talbot @.***> wrote:

Hi Mitch,
I've duplicated your success and others failures.
Your success is because you might have husky installed globally, or after
the 'git clone', you had done a ' npm install --include-dev' before the
'npm pack'. Husky is only for the commit hooks used during development.
I.e. running the test scripts.
I am not sure why at the bottom of the package.json file there is an
entry:
"prepare": "husky install"
If you delete that line and the comma from the end of the preceding line,
everything seems happy or do an:
npm install --include-dev
Before the "npm pack" command
So to be clear, following your steps add step 5B

Type:
git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git

Type:

cd homebridge-cmd4-AdvantageAir
5.B Type:
npm install --include-dev

The true fix might be removing the "prepare: husky install" from the
package.json. How it got there, I'd have to look back in history. Another
reason not to delete history, but that's the other conversation.
Ttyl,
John
On Fri, Aug 19, 2022 at 12:23 AM Mitch Williams @.***>
wrote:

This is an interesting one @QLDRiddler <https://github.com/QLDRiddler
...
It looks like everything you have done has worked and is correct, but it
is
then not reflecting in the plug-in itself. My colleague @uswong
https://github.com/uswong says he is experiencing the same strange
issue himself on his Homebridge RPi; I am not experiencing the issue and
have tried it three times...
I would say at this point we will stop wasting your time by getting you
to
attempt it over and over. I will get my butt into gear tonight or
tomorrow
and push forward the release so you can install it the normal way
(instead
of our dev way). Sorry for all this inconvenience so far!
Also, the npm funding is just npm itself wanting people to fund projects
(like a donate button); it will ask you about that every time you do an
npm
update, so just ignore that as it will not affect anything you are
wanting
to do.
I have also just dug up a very old HOOBS OS ZIP file download from back
when they used to let you have the image for free (hopefully it lets me
update for free too); I cannot believe they charge $10 for just the image
download! I think it is fair time that I fired this up on my spare RPi3
and
make sure I can get through the install myself and update any notes for
future users.
—
Reply to this email directly, view it on GitHub
<
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220234260
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ABSBCX45VIN3XGX2LHHOGWDVZ4D4FANCNFSM56UQCGDQ
.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220259717,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2RODLY4EBHC5OYBZSKUYGLVZ4JRRANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi,
I'm assuming you did step 6

Type:

sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm
After which you must restart Homebridge to see the updated plugin.
John
On Fri, Aug 19, 2022 at 3:22 AM QLDRiddler @.***> wrote:

Just to update you all, I tried the added step that John mentions and
whilst that took away the install errors, I'm still stuck on 3.5.1 of the
plugin :-(
@.:~ $ cd /tmp
@.:/tmp $ sudo git clone
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git
[sudo] password for hoobs:
Cloning into 'homebridge-cmd4-AdvantageAir'...
remote: Enumerating objects: 2194, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 2194 (delta 0), reused 0 (delta 0), pack-reused 2191
Receiving objects: 100% (2194/2194), 7.77 MiB | 8.85 MiB/s, done.
Resolving deltas: 100% (1249/1249), done.
@.:/tmp $ cd homebridge-cmd4-AdvantageAir
@.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install
--include-dev

@.*** prepare
husky install

husky - Git hooks installed
added 350 packages, and audited 351 packages in 14s
51 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
@.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm pack
npm notice
npm notice 📦 @.
npm notice === Tarball Contents ===
npm notice 1.1kB .eslintrc.json
npm notice 1.2kB .github/ISSUE_TEMPLATE/bug-report.md
npm notice 954B .github/ISSUE_TEMPLATE/feature-request.md
npm notice 1.6kB .github/ISSUE_TEMPLATE/support-request.md
npm notice 949B .github/pull_request_template.md
npm notice 61B .husky/pre-commit
npm notice 44.8kB AdvAir.sh
npm notice 16.1kB CHANGELOG.md
npm notice 32.6kB ConfigCreator.sh
npm notice 1.1kB LICENSE
npm notice 8.1kB README.md
npm notice 2.0kB config.schema.json
npm notice 242B homebridge-ui/public/css/style.css
npm notice 74.3kB homebridge-ui/public/images/AdvAir.png
npm notice 6.6kB homebridge-ui/public/index.html
npm notice 2.2kB homebridge-ui/public/js/main.js
npm notice 29.6kB homebridge-ui/server.js
npm notice 383B index.js
npm notice 3.0kB package.json
npm notice === Tarball Details ===
npm notice name: homebridge-cmd4-advantageair
npm notice version: 3.6.0
npm notice filename: homebridge-cmd4-advantageair-3.6.0.tgz
npm notice package size: 110.8 kB
npm notice unpacked size: 226.9 kB
npm notice shasum: d7b26a48082ffeb75136f99b41bb43f1a68219e0
npm notice integrity: sha512-vLiBc55HVr8Rt[...]H3AwXQi7KNHgA==
npm notice total files: 19
npm notice
homebridge-cmd4-advantageair-3.6.0.tgz
@.***:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install -g
./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm
changed 16 packages, and audited 17 packages in 3s
2 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
@.***:/tmp/homebridge-cmd4-AdvantageAir $
On Fri, 19 Aug 2022 at 15:11, John Talbot @.***> wrote:

Hi Mitch,
I've duplicated your success and others failures.
Your success is because you might have husky installed globally, or after
the 'git clone', you had done a ' npm install --include-dev' before the
'npm pack'. Husky is only for the commit hooks used during development.
I.e. running the test scripts.
I am not sure why at the bottom of the package.json file there is an
entry:
"prepare": "husky install"
If you delete that line and the comma from the end of the preceding line,
everything seems happy or do an:
npm install --include-dev
Before the "npm pack" command
So to be clear, following your steps add step 5B

Type:
git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git

Type:

cd homebridge-cmd4-AdvantageAir
5.B Type:
npm install --include-dev

The true fix might be removing the "prepare: husky install" from the
package.json. How it got there, I'd have to look back in history. Another
reason not to delete history, but that's the other conversation.
Ttyl,
John
On Fri, Aug 19, 2022 at 12:23 AM Mitch Williams @.***>
wrote:

This is an interesting one @QLDRiddler <https://github.com/QLDRiddler
...
It looks like everything you have done has worked and is correct, but
it
is
then not reflecting in the plug-in itself. My colleague @uswong
https://github.com/uswong says he is experiencing the same strange
issue himself on his Homebridge RPi; I am not experiencing the issue
and
have tried it three times...
I would say at this point we will stop wasting your time by getting you
to
attempt it over and over. I will get my butt into gear tonight or
tomorrow
and push forward the release so you can install it the normal way
(instead
of our dev way). Sorry for all this inconvenience so far!
Also, the npm funding is just npm itself wanting people to fund
projects
(like a donate button); it will ask you about that every time you do an
npm
update, so just ignore that as it will not affect anything you are
wanting
to do.
I have also just dug up a very old HOOBS OS ZIP file download from back
when they used to let you have the image for free (hopefully it lets me
update for free too); I cannot believe they charge $10 for just the
image
download! I think it is fair time that I fired this up on my spare RPi3
and
make sure I can get through the install myself and update any notes for
future users.
—
Reply to this email directly, view it on GitHub
<

https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220234260

,
or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/ABSBCX45VIN3XGX2LHHOGWDVZ4D4FANCNFSM56UQCGDQ

.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
<
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220259717
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/A2RODLY4EBHC5OYBZSKUYGLVZ4JRRANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220339978,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSBCXYAR33JQ3HQT6KQLR3VZ4Y5FANCNFSM56UQCGDQ
.
You are receiving this because you commented.Message ID:
@.***>

Hi Mitch,
I spent an hour figuring where the line
prepare: husky install
came from. It seems pull request #40. The line can be deleted as it is not
in my Cmd4 package.json
Ttyl,
John
On Fri, Aug 19, 2022 at 3:28 AM John Talbot @.***> wrote:

Hi,
I'm assuming you did step 6

Type:

sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm
After which you must restart Homebridge to see the updated plugin.
John
On Fri, Aug 19, 2022 at 3:22 AM QLDRiddler @.***>
wrote:

Just to update you all, I tried the added step that John mentions and
whilst that took away the install errors, I'm still stuck on 3.5.1 of the
plugin :-(
@.:~ $ cd /tmp
@.:/tmp $ sudo git clone
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git
[sudo] password for hoobs:
Cloning into 'homebridge-cmd4-AdvantageAir'...
remote: Enumerating objects: 2194, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 2194 (delta 0), reused 0 (delta 0), pack-reused 2191
Receiving objects: 100% (2194/2194), 7.77 MiB | 8.85 MiB/s, done.
Resolving deltas: 100% (1249/1249), done.
@.:/tmp $ cd homebridge-cmd4-AdvantageAir
@.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install
--include-dev

@.*** prepare
husky install

husky - Git hooks installed
added 350 packages, and audited 351 packages in 14s
51 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
@.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm pack
npm notice
npm notice 📦 @.
npm notice === Tarball Contents ===
npm notice 1.1kB .eslintrc.json
npm notice 1.2kB .github/ISSUE_TEMPLATE/bug-report.md
npm notice 954B .github/ISSUE_TEMPLATE/feature-request.md
npm notice 1.6kB .github/ISSUE_TEMPLATE/support-request.md
npm notice 949B .github/pull_request_template.md
npm notice 61B .husky/pre-commit
npm notice 44.8kB AdvAir.sh
npm notice 16.1kB CHANGELOG.md
npm notice 32.6kB ConfigCreator.sh
npm notice 1.1kB LICENSE
npm notice 8.1kB README.md
npm notice 2.0kB config.schema.json
npm notice 242B homebridge-ui/public/css/style.css
npm notice 74.3kB homebridge-ui/public/images/AdvAir.png
npm notice 6.6kB homebridge-ui/public/index.html
npm notice 2.2kB homebridge-ui/public/js/main.js
npm notice 29.6kB homebridge-ui/server.js
npm notice 383B index.js
npm notice 3.0kB package.json
npm notice === Tarball Details ===
npm notice name: homebridge-cmd4-advantageair
npm notice version: 3.6.0
npm notice filename: homebridge-cmd4-advantageair-3.6.0.tgz
npm notice package size: 110.8 kB
npm notice unpacked size: 226.9 kB
npm notice shasum: d7b26a48082ffeb75136f99b41bb43f1a68219e0
npm notice integrity: sha512-vLiBc55HVr8Rt[...]H3AwXQi7KNHgA==
npm notice total files: 19
npm notice
homebridge-cmd4-advantageair-3.6.0.tgz
@.***:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install -g
./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm
changed 16 packages, and audited 17 packages in 3s
2 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
@.***:/tmp/homebridge-cmd4-AdvantageAir $
On Fri, 19 Aug 2022 at 15:11, John Talbot @.***> wrote:

Hi Mitch,
I've duplicated your success and others failures.
Your success is because you might have husky installed globally, or
after
the 'git clone', you had done a ' npm install --include-dev' before the
'npm pack'. Husky is only for the commit hooks used during development.
I.e. running the test scripts.
I am not sure why at the bottom of the package.json file there is an
entry:
"prepare": "husky install"
If you delete that line and the comma from the end of the preceding
line,
everything seems happy or do an:
npm install --include-dev
Before the "npm pack" command
So to be clear, following your steps add step 5B

Type:
git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git

Type:

cd homebridge-cmd4-AdvantageAir
5.B Type:
npm install --include-dev

The true fix might be removing the "prepare: husky install" from the
package.json. How it got there, I'd have to look back in history.
Another
reason not to delete history, but that's the other conversation.
Ttyl,
John
On Fri, Aug 19, 2022 at 12:23 AM Mitch Williams @.***>
wrote:

This is an interesting one @QLDRiddler <https://github.com/QLDRiddler
...
It looks like everything you have done has worked and is correct, but
it
is
then not reflecting in the plug-in itself. My colleague @uswong
https://github.com/uswong says he is experiencing the same strange
issue himself on his Homebridge RPi; I am not experiencing the issue
and
have tried it three times...
I would say at this point we will stop wasting your time by getting
you
to
attempt it over and over. I will get my butt into gear tonight or
tomorrow
and push forward the release so you can install it the normal way
(instead
of our dev way). Sorry for all this inconvenience so far!
Also, the npm funding is just npm itself wanting people to fund
projects
(like a donate button); it will ask you about that every time you do
an
npm
update, so just ignore that as it will not affect anything you are
wanting
to do.
I have also just dug up a very old HOOBS OS ZIP file download from
back
when they used to let you have the image for free (hopefully it lets
me
update for free too); I cannot believe they charge $10 for just the
image
download! I think it is fair time that I fired this up on my spare
RPi3
and
make sure I can get through the install myself and update any notes
for
future users.
—
Reply to this email directly, view it on GitHub
<

https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220234260

,
or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/ABSBCX45VIN3XGX2LHHOGWDVZ4D4FANCNFSM56UQCGDQ

.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
<
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220259717
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/A2RODLY4EBHC5OYBZSKUYGLVZ4JRRANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220339978,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSBCXYAR33JQ3HQT6KQLR3VZ4Y5FANCNFSM56UQCGDQ
.
You are receiving this because you commented.Message ID:
@.***>

Yes, did that, you can see towards the bottom of my dump below and then I restarted but Hoobs still only thinks it has 3.5.1 installed.

From: John Talbot @.>
Sent: Friday, August 19, 2022 5:29:03 PM
To: mitch7391/homebridge-cmd4-AdvantageAir @.>
Cc: QLDRiddler @.>; Mention @.>
Subject: Re: [mitch7391/homebridge-cmd4-AdvantageAir] [Support] HOOBS Installation Issue (Issue #70)
Hi,
I'm assuming you did step 6

Type:

sudo npm install -g ./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm
After which you must restart Homebridge to see the updated plugin.
John
On Fri, Aug 19, 2022 at 3:22 AM QLDRiddler @.***> wrote:

Just to update you all, I tried the added step that John mentions and
whilst that took away the install errors, I'm still stuck on 3.5.1 of the
plugin :-(
@.:~ $ cd /tmp
@.:/tmp $ sudo git clone
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git
[sudo] password for hoobs:
Cloning into 'homebridge-cmd4-AdvantageAir'...
remote: Enumerating objects: 2194, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 2194 (delta 0), reused 0 (delta 0), pack-reused 2191
Receiving objects: 100% (2194/2194), 7.77 MiB | 8.85 MiB/s, done.
Resolving deltas: 100% (1249/1249), done.
@.:/tmp $ cd homebridge-cmd4-AdvantageAir
@.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install
--include-dev

@.*** prepare
husky install

husky - Git hooks installed
added 350 packages, and audited 351 packages in 14s
51 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
@.:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm pack
npm notice
npm notice 📦 @.
npm notice === Tarball Contents ===
npm notice 1.1kB .eslintrc.json
npm notice 1.2kB .github/ISSUE_TEMPLATE/bug-report.md
npm notice 954B .github/ISSUE_TEMPLATE/feature-request.md
npm notice 1.6kB .github/ISSUE_TEMPLATE/support-request.md
npm notice 949B .github/pull_request_template.md
npm notice 61B .husky/pre-commit
npm notice 44.8kB AdvAir.sh
npm notice 16.1kB CHANGELOG.md
npm notice 32.6kB ConfigCreator.sh
npm notice 1.1kB LICENSE
npm notice 8.1kB README.md
npm notice 2.0kB config.schema.json
npm notice 242B homebridge-ui/public/css/style.css
npm notice 74.3kB homebridge-ui/public/images/AdvAir.png
npm notice 6.6kB homebridge-ui/public/index.html
npm notice 2.2kB homebridge-ui/public/js/main.js
npm notice 29.6kB homebridge-ui/server.js
npm notice 383B index.js
npm notice 3.0kB package.json
npm notice === Tarball Details ===
npm notice name: homebridge-cmd4-advantageair
npm notice version: 3.6.0
npm notice filename: homebridge-cmd4-advantageair-3.6.0.tgz
npm notice package size: 110.8 kB
npm notice unpacked size: 226.9 kB
npm notice shasum: d7b26a48082ffeb75136f99b41bb43f1a68219e0
npm notice integrity: sha512-vLiBc55HVr8Rt[...]H3AwXQi7KNHgA==
npm notice total files: 19
npm notice
homebridge-cmd4-advantageair-3.6.0.tgz
@.***:/tmp/homebridge-cmd4-AdvantageAir $ sudo npm install -g
./homebridge-cmd4-advantageair-3.6.0.tgz --unsafe-perm
changed 16 packages, and audited 17 packages in 3s
2 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
@.***:/tmp/homebridge-cmd4-AdvantageAir $
On Fri, 19 Aug 2022 at 15:11, John Talbot @.***> wrote:

Hi Mitch,
I've duplicated your success and others failures.
Your success is because you might have husky installed globally, or after
the 'git clone', you had done a ' npm install --include-dev' before the
'npm pack'. Husky is only for the commit hooks used during development.
I.e. running the test scripts.
I am not sure why at the bottom of the package.json file there is an
entry:
"prepare": "husky install"
If you delete that line and the comma from the end of the preceding line,
everything seems happy or do an:
npm install --include-dev
Before the "npm pack" command
So to be clear, following your steps add step 5B

Type:
git clone https://github.com/mitch7391/homebridge-cmd4-AdvantageAir.git

Type:

cd homebridge-cmd4-AdvantageAir
5.B Type:
npm install --include-dev

The true fix might be removing the "prepare: husky install" from the
package.json. How it got there, I'd have to look back in history. Another
reason not to delete history, but that's the other conversation.
Ttyl,
John
On Fri, Aug 19, 2022 at 12:23 AM Mitch Williams @.***>
wrote:

This is an interesting one @QLDRiddler <https://github.com/QLDRiddler
...
It looks like everything you have done has worked and is correct, but
it
is
then not reflecting in the plug-in itself. My colleague @uswong
https://github.com/uswong says he is experiencing the same strange
issue himself on his Homebridge RPi; I am not experiencing the issue
and
have tried it three times...
I would say at this point we will stop wasting your time by getting you
to
attempt it over and over. I will get my butt into gear tonight or
tomorrow
and push forward the release so you can install it the normal way
(instead
of our dev way). Sorry for all this inconvenience so far!
Also, the npm funding is just npm itself wanting people to fund
projects
(like a donate button); it will ask you about that every time you do an
npm
update, so just ignore that as it will not affect anything you are
wanting
to do.
I have also just dug up a very old HOOBS OS ZIP file download from back
when they used to let you have the image for free (hopefully it lets me
update for free too); I cannot believe they charge $10 for just the
image
download! I think it is fair time that I fired this up on my spare RPi3
and
make sure I can get through the install myself and update any notes for
future users.
—
Reply to this email directly, view it on GitHub
<

https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220234260

,
or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/ABSBCX45VIN3XGX2LHHOGWDVZ4D4FANCNFSM56UQCGDQ

.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
<
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220259717
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/A2RODLY4EBHC5OYBZSKUYGLVZ4JRRANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220339978,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSBCXYAR33JQ3HQT6KQLR3VZ4Y5FANCNFSM56UQCGDQ
.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHubhttps://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220344606, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2RODL7N4NV4WTNQQE4C7QLVZ4ZT7ANCNFSM56UQCGDQ.
You are receiving this because you were mentioned.Message ID: @.***>

The true fix might be removing the "prepare: husky install" from the package.json.  How it got there, I'd have to look back in history. Another reason not to delete history,  but that's the other conversation.

Hey @ztalbot2000 this line would have been there from when you created the package.json when we rolled out the Homebridge UI work; I only touch it to update the version number. I will remove that line if it is not required. I was not aware that deleting a beta branch each time I am done with it was wiping the history of commits, as I figured that history would be merged into the master and when a new beta branch was created off the master it would contain that history and so forth.

After which you must restart Homebridge to see the updated plugin.

When I used the above steps, I do not need to restart Homebridge to see the plug-in update; never have and always found that neat. I do not believe that has been the issue and something else is going on here.

I spent an hour figuring where the line prepare: husky install came from. It seems pull request #40. The line can be deleted as it is not in my Cmd4 package.json

I just had a look at this PR and it only has changes to AdvAir.sh, no changes at all to package.json. Just had a very quick look at the history of commits for the package.json and it appears it was added by yourself in this commit.

@QLDRiddler thanks for giving this a real good crack, if you do not mind giving me a day to get things in check and we will roll out a version that you can just install/update the normal way. I would say at this stage any further attempts would be wasting your time and I do not want to do that. Sorry this has been a pain and thanks being so patient though!

Hi,
We are all learning here. It is all good.
I pretty much thought I had added the offending line to the package.json.
Only when we tried something different, did the issue arise.
So beta has the lint fixes, the branch b_daemonize standardizes the PORT/IP
of the test AirConServer and the package.json needs that 1 husky line
removed.
If you want I can merge it all to origin/master
Ttyl,
John
On Fri, Aug 19, 2022 at 4:52 AM Mitch Williams @.***>
wrote:

@QLDRiddler https://github.com/QLDRiddler thanks for giving this a real
good crack, if you do not mind giving me a day to get things in check and
we will roll out a version that you can just install/update the normal way.
I would say at this stage any further attempts would be wasting your time
and I do not want to do that. Sorry this has been a pain and thanks being
so patient though!
—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220423660,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSBCX3TYRZZZ4HJKFGT3YDVZ5DONANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hey @ztalbot2000 I might get you to hold off any merges just for now. I did the silly thing and added commits to the master without realising in your email that you meant you had done the lint fixes on my fork's beta; so now that is ahead 39 but behind 1. I think the easiest solution for me is to copy what you have done there over on the master branch manually.

Hi Mitch,
Yeah it's real tricky. It took me two hours to get beta the same as
master so I could make recent changes to beta.
The tree only shows a merge of"A check for jq" ahead of the beta branch.
The merge from beta to master then should be conflict free and the changes
are for linting AirConServer affecting commits only.
Either way, before any commit you always have to look over every line
being changed as a final code inspection.  Manually can cause some human
errors to creep in.
Ttyl,
John
On Fri, Aug 19, 2022 at 5:35 AM Mitch Williams @.***>
wrote:

Hey @ztalbot2000 https://github.com/ztalbot2000 I might get you to hold
off any merges just for now. I did the silly thing and added commits to the
master without realising in your email that you meant you had done the lint
fixes on my fork's beta; so now that is ahead 39 but behind 1. I think the
easiest solution for me is to copy what you have done there over on the
master branch manually.
—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220465235,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSBCXYPGDV6POJUTESFXRDVZ5IO5ANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi Mitch,
I just realized your 39 behind because you have not pulled beta from
GitHub where it is one behind and one ahead.
Ttyl,
John
On Fri, Aug 19, 2022 at 7:59 AM John Talbot @.***> wrote:

Hi Mitch,
Yeah it's real tricky. It took me two hours to get beta the same as
master so I could make recent changes to beta.
The tree only shows a merge of"A check for jq" ahead of the beta
branch. The merge from beta to master then should be conflict free and the
changes are for linting AirConServer affecting commits only.
Either way, before any commit you always have to look over every line
being changed as a final code inspection.  Manually can cause some human
errors to creep in.
Ttyl,
John
On Fri, Aug 19, 2022 at 5:35 AM Mitch Williams @.***>
wrote:

Hey @ztalbot2000 https://github.com/ztalbot2000 I might get you to
hold off any merges just for now. I did the silly thing and added commits
to the master without realising in your email that you meant you had done
the lint fixes on my fork's beta; so now that is ahead 39 but behind 1. I
think the easiest solution for me is to copy what you have done there over
on the master branch manually.
—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1220465235,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSBCXYPGDV6POJUTESFXRDVZ5IO5ANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

@QLDRiddler a quick question for you about HOOBS. I had an old early version of HOOBS 3 which had a terminal in the UI like homebridge does; I have upgraded to HOOBS 4 and this terminal now seems to be gone from the UI. HOOBS website says there is another web UI to access it (http://hoobs:9090) but this does not work for me. I found I can easily access the HOOBS terminal through SSH using the program 'Putty'. I am curious how you access the terminal when you are doing all of this on HOOBS?

Im running HOOBS 4.2.8 on a dedicated RPI v4 connected via ethernet cable
to my network. I access the Terminal via Chrome, typing in the IP address
of the box. That brings up the Hoobs dashboard from where I click 3 dots in
the top right corner which in turn brings up a menu of which one item is
Terminal.
On Sat, 20 Aug 2022 at 12:44, Mitch Williams @.***>
wrote:

@QLDRiddler https://github.com/QLDRiddler a quick question for you
about HOOBS. I had an old early version of HOOBS 3 which had a terminal in
the UI like homebridge does; I have upgraded to HOOBS 4 and this terminal
now seems to be gone from the UI. HOOBS website says there is another web
UI to access it (http://hoobs:9090) but this does not work for me. I
found I can easily access the HOOBS terminal through SSH using the program
'Putty'. I am curious how you access the terminal when you are doing all of
this on HOOBS?
—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1221215186,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2RODL6XIPXHVGGORMYXE43V2BA7LANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Interesting, my setup does not have the option for a terminal where the three dots are; my HOOBS v3 did before I upgraded it to v4.
Ok, using Putty to SSH into my newly set up HOOBS RPi and following my instructions above to install through 'git clone'; I have discovered a few things...
The 'husky' error aside, this installation method is working. When I navigate to /usr/lib/node_modules/homebridge-cmd4-advantageair and run cat package.json, I can see that the version of the plug-in is v3.6.0. Now here is the kicker for why HOOBS UI does not show this correctly. They do not use the Homebridge UI at all any more like back in HOOBS 3; they are using their own completely UI now and anything we have made for Homebridge UI does and will not work at all. Essentially meaning we no longer support HOOBS at this stage. This is frustrating to discover...
Anyway, what HOOBS UI shows for the plug-in is actually my GitHub page README, which due to me not officially publishing this yet, will continue to show v3.5.1 until then. @uswong I know this does not explain why you are not seeing it installed on your RPi...
As @QLDRiddler had found, the original instructions from the Wiki using the config=$(find / -name 'ConfigCreator.sh' 2>&1 | grep -v find | grep node_modules) does also error for me on HOOBS. It may be worth us discovering why in the meantime while we do not have HOOBS UI support as a work around as I do not see that to be a quick one to resolve.

Hey Mitch,
I only got it installed properly on my Mac using 'git clone' but not on my RPi. I am still scratch my head on that one.
If the homebridge-UI is not working for @QLDRiddler , one option is to continue to use v3.5.1 and run the script ConfigCreator.sh but manually copy the generated config file to Cmd4 JASON Config.  This option will only work if the jq issue reported earlier has been resolved.  If so, do the following:
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh "<IP_ADDRESS>"
Then answer "n" when asked Do you want to proceed? (y/n)
Then copy the entire content of file in the form of cmd4Config_AA_xxxxxxxx.json.yyyyyyyyy into Cmd4 JASON Config editor, and SAVE it.
Another option is for @QLDRiddler, if he does not mind to send us (via private email),  his "getSystemData" and we can generate the full config file needed.
Cheers,
Ung

@uswong I thought QLDRiddler was having issues with running the Config Creator from the the command line? It appears that I am also on my HOOBs setup.
I had forgot to suggest it but I had also thought to myself we can manually create QLDRiddler’s config for them and sent it back via email for them to copy/paste; assuming no other install issues exist…

/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh "<IP_ADDRESS>"
In the process of creating the Cmd4 configuration file for your
AdvantageAir system(s).
It may take up to 2 minutes....
Fetching and processing data from your AdvantageAir system
(<IP_ADDRESS>)....
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh:
line 812: jq: command not found

yes, @QLDRiddler managed to run ConfigCreator from his command line but run into the problem of jq command not found error.

@QLDRiddler if the side issue is that we are suspecting 'jq' is not installed properly; could I please get you to run the following command from your terminal?
curl -s http://<IP_ADDRESS>:2025/getSystemData | jq '.aircons.ac1.zones.z01.measuredTemp'

Please replace my IP address above with the IP address of your Advantage Air system. This command will run separate of cmd4 or our plug-in and just use 'jq' itself to parse the information directly from your Advantage Air system. If you do not have temperature sensors it will just return 0.0 but if you do have them it should return the value displayed on your tablet for zone 1 (most likely your constant zone).

That command completed successfully and returned a value of 22 (I'm a
frugal man and dont let the wife turn the heating up too much!!)
On Sat, 20 Aug 2022 at 16:54, Mitch Williams @.***>
wrote:

@QLDRiddler https://github.com/QLDRiddler if the side issue is that we
are suspecting 'jq' is not installed properly; could I please get you to
run the following command from your terminal?
curl -s http://<IP_ADDRESS>:2025/getSystemData | jq '.aircons.ac1.zones.z01.measuredTemp'
Please replace my IP address above with the IP address of your Advantage
Air system. This command will run separate of cmd4 or our plug-in and just
use 'jq' itself to parse the information directly from your Advantage Air
system. If you do not have temperature sensors it will just return 0.0
but if you do have them it should return the value displayed on your tablet
for zone 1 (most likely your constant zone).
—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1221246015,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2RODL4YLBKYXRV2HUIT7ZDV2B6KRANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

I was like that until we got solar panels @QLDRiddler last year lol thanks for confirming this! So we have confirmed that your ‘jq’ install is correct and working.
I think the issues still sit with our script working in HOOBS directories and file paths. I spent my whole day yesterday battling my own instal of HOOBS and will continue to do so until I have a success. I won’t get you to run anymore tests until then :) so please sit right until then and sorry this has been such a workaround!

No worries, I’m happy to help. I’ve got 10.7Kw of panels but there’s about 1 week of the year between the wife wanting the heating on because she’s too cold to needing the AC on because she’s too hot! I did run up a node-red project a couple of years back that pinged the Fronius inverter for its stats and rendered them into some charts on a screen. That’s when I first started investigating the json capabilities of the Advantage Air system to see if I could incorporate it into the dashboard - that then segued into an interest in homebridge which is how I ended up with Hoobs - and here we are!!!

From: Mitch Williams @.>
Sent: Sunday, August 21, 2022 12:39:26 PM
To: mitch7391/homebridge-cmd4-AdvantageAir @.>
Cc: QLDRiddler @.>; Mention @.>
Subject: Re: [mitch7391/homebridge-cmd4-AdvantageAir] [Support] HOOBS Installation Issue (Issue #70)
I was like that until we got solar panels @QLDRiddlerhttps://github.com/QLDRiddler last year lol thanks for confirming this! So we have confirmed that your ‘jq’ install is correct and working.
I think the issues still sit with our script working in HOOBS directories and file paths. I spent my whole day yesterday battling my own instal of HOOBS and will continue to do so until I have a success. I won’t get you to run anymore tests until then :) so please sit right until then and sorry this has been such a workaround!
—
Reply to this email directly, view it on GitHubhttps://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1221454305, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2RODL6B4H7UTXDOVNA4BDDV2GJF5ANCNFSM56UQCGDQ.
You are receiving this because you were mentioned.Message ID: @.***>

I love it lol it is funny how quickly an obsession can develop for this sort of stuff! I have not delved into node-red myself yet but it has always been the plan... This project took so much of my time a few years back (I knew nothing about coding and still kind of don't haha) and then as I have taken a bit of a step back recently while John and Ung Sing have helped take on a lot of the work for this project; I find that life is even busier as the years go by and I still have not delved into advance automations yet! One day!

@QLDRiddler just to give you a little update that we have had some success! We just need to finalise a few things before we can do the roll out; but just wanted to show you that I now have this working on my HOOBS RPi and we can get you sorted out soon :)

That’s awesome. Is the UI different on Hoobs to native Homebridge?

From: Mitch Williams @.>
Sent: Monday, August 22, 2022 8:37:14 PM
To: mitch7391/homebridge-cmd4-AdvantageAir @.>
Cc: QLDRiddler @.>; Mention @.>
Subject: Re: [mitch7391/homebridge-cmd4-AdvantageAir] [Support] HOOBS Installation Issue (Issue #70)
@QLDRiddlerhttps://github.com/QLDRiddler just to give you a little update that we have had some success! We just need to finalise a few things before we can do the roll out; but just wanted to show you that I now have this working on my HOOBS RPi and we can get you sorted out soon :)
[image]https://user-images.githubusercontent.com/40288237/185901520-aca3d8d1-8e09-4328-b7c6-c0ce06d03bd7.png
—
Reply to this email directly, view it on GitHubhttps://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1222170004, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2RODL7W4Q2QVUXPG574EY3V2NJ5VANCNFSM56UQCGDQ.
You are receiving this because you were mentioned.Message ID: @.***>

Hey @QLDRiddler sorry this has taken so long; I am currently on leave before starting a new job and life has been crazy busy trying to juggle this fix on the side. Ung Sing and I have put a lot of work into this and I think we are ready for you to beta test it :D
Here is a step by step of how to install the beta version through HOOBS UI and then how to run the ConfigCreator through your terminal. Sorry if I am over explaining things you already know how to do; it just saves some time on back and forth sometimes.

In your HOOBS UI dashboard, navigate to our plug-in.

Once you have the plug-in UI opened, click 'Versions' and then click the little arrow next to the beta. Note it will say the wrong beta version; I think this is a bug from HOOBS grabbing the wrong beta tag off my npm page. You will notice as it installs it will reference the correct beta tag v3.6.0-beta.2 and you can cross reference after on the right hand side.

Reboot HOOBS for good measure.

Open your terminal.

Copy and paste the following command:
config1=$(find /var/lib/hoobs -name ConfigCreator.sh 2>&1|grep -v find|grep -v System|grep -v cache|grep node_modules|grep cmd4-advantageair|grep ConfigCreator.sh)

Copy and paste the following command:
echo $config1

a) If it returns only one file path that looks like:
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh

Then continue with the following command:
$config1

Follow all prompts on your terminal and happy days.
b) If multiple file paths are found, copy and paste the following command:
config2=$(echo "${config1}"|cut -d" " -f1)

Copy and paste the following command:
echo $config2

If it returns only one file path that looks like:
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh

Then continue with the following command:
$config2

Follow all prompts on your terminal and happy days.

If you experience any errors or anything not detailed in the steps above, please let us know and we will try guide you further. We are pretty confident this will work based on our extensive testing. Fingers crossed!

Sorry to be the bearer of bad news but still no joy. Here's the screenshot
of the versions before I attempted the upgrade:
[image: image.png]
And here's the screengrab of processing:
[image: image.png]
In case that screengrab doesnt come through, the process failed with these
errors:
@.:~ $ config1=$(find /var/lib/hoobs -name ConfigCreator.sh
2>&1|grep -v find|grep -v System|grep -v cache|grep node_modules|grep
cmd4-advantageair|grep ConfigCreator.sh)
@.:~ $ echo $config1
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh
@.***:~ $ $config1
Please enter your AdvantageAir system IP address (xxx.xxx.xxx.xxx):
<IP_ADDRESS>
Please enter your second AdvantageAir system IP address (xxx.xxx.xxx.xxx)
if any. Just hit 'enter' if none:
In the process of creating the Cmd4 configuration file for your
AdvantageAir system(s).
It may take up to 2 minutes....
Fetching and processing data from your AdvantageAir system
(<IP_ADDRESS>)....
Cmd4 configuration file has now been created successfully:
cmd4Config_AA_MyPlace.json.1661491119
This newly created config can be copied to Homebridge config.json
automatically
The existing Cmd4 configuration pertaining to AdvantageAir system(s) will
be overwritten by this new one
Do you want to proceed? (y/n)
y
Homebridge config.json:
ERROR: no Homebridge config.json found!
INFO:  the created cmd4Config_AA_MyPlace.json.1661491119 was unable to be
copied to Homebridge-Cmd4 JASON Config Editor!
On Thu, 25 Aug 2022 at 14:05, Mitch Williams @.***>
wrote:

Hey @QLDRiddler https://github.com/QLDRiddler sorry this has taken so
long; I am currently on leave before starting a new job and life has been
crazy busy trying to juggle this fix on the side. Ung Sing and I have put a
lot of work into this and I think we are ready for you to beta test it :D
Here is a step by step of how to install the beta version through HOOBS UI
and then how to run the ConfigCreator through your terminal. Sorry if I
am over explaining things you already know how to do; it just saves some
time on back and forth sometimes.

In your HOOBS UI dashboard, navigate to our plug-in.

[image: image]
https://user-images.githubusercontent.com/40288237/186569673-1c069416-a99b-4e9e-ab35-03d0298212a8.png

Once you have the plug-in UI opened, click 'Versions' and then
click the little arrow next to the beta. Note it will say the wrong beta
version; I think this is a bug from HOOBS grabbing the wrong beta tag off
my npm page. You will notice as it installs it will reference the correct
beta tag v3.6.0-beta.2 and you can cross reference after on the right
hand side.

[image: image]
https://user-images.githubusercontent.com/40288237/186570169-0cf44354-a975-4131-a06b-a46d70c6cff4.png

Reboot HOOBS for good measure.
2.
Open your terminal.
3.
Copy and paste the following command:
config1=$(find /var/lib/hoobs -name ConfigCreator.sh 2>&1|grep -v find|grep -v System|grep -v cache|grep node_modules|grep cmd4-advantageair|grep ConfigCreator.sh)

Copy and paste the following command:
echo $config1

a) If it returns only one file path that looks like:
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh
Then continue with the following command:
$config1
Follow all prompts on your terminal and happy days.
b) If multiple file paths are found, copy and paste the following
command:
config2=$(echo "${config1}"|cut -d" " -f1)
Copy and paste the following command:
echo $config2
If it returns only one file path that looks like:
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/ConfigCreator.sh
Then continue with the following command:
$config2
Follow all prompts on your terminal and happy days.
If you experience any errors or anything not detailed in the steps above,
please let us know and we will try guide you further. We are pretty
confident this will work based on our extensive testing. Fingers crossed!
—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1226747616,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2RODL6A65SZ4QZQ57APPZ3V23WHJANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi @QLDRiddler, based on the script messages, I can see that you are still using the old version of the script.  Apparently you have not successfully installed the v3.6.0-beta.2 version.
The v3.6.0-beta.2 has a updated ConfigCreator.sh.
One option is to download the script from this link:
https://github.com/uswong/homebridge-cmd4-AdvantageAir/blob/master/ConfigCreator.sh
click on the copy button (red circled in the picture below) to copy the full content

Create a file called ConfigCreator.sh on your home drive using any editor of your choice and paste the entire content into it and save it,  then make the file executable by the following command:
chmod +x ConfigCreator.sh
then run the script:
./ConfigCreator
then follow the prompts.
If everything runs fine, it should look as below:

If not, please post the error messages.

Was just about to reply @uswong :p thanks for jumping on that one! I will edit your comment to include how to remove the old file and how to create the new one just in case.
Also side note @QLDRiddler, none of your screenshots work because you always reply via email and not via the GitHub website.

Oh wait disregard that Ung Sing, I see you are getting QLDRiddler to create the file on the Home drive... Just in case, the command to create the file is sudo nano ConfigCreator.sh.

Yes, I think it is best not to touch the directory of the v3.5.1 installation but create the file in the Home drive for now, so that there is no permission issues also when running the script.

Copied the script from the link provided, used sudo nano to create the file
and paste the script, ran the newly created ConfigCreator.sh, entered the
details but then it crapped out as per below:
@.:~ $ ls
cmd4Config_AA_Dutton.json       cmd4Config_AA_.json.1660633030
cmd4Config_AA_MyPlace.json.1661490720  cmd4Config_AA_MyPlace.json.1661491119
cmd4Config_AA_.json.1660632908  cmd4Config_AA_.json.1660635646
cmd4Config_AA_MyPlace.json.1661490811  ConfigCreator.sh
cmd4Config_AA_.json.1660632983  cmd4Config_AA_MyPlace.json.1660637396
cmd4Config_AA_MyPlace.json.1661490914
@.:~ $ ConfigCreator.sh
Please enter the name (default: Aircon) and IP address of your
AdvanatageAir system:
Name: Home
IP address (xxx.xxx.xxx.xxx): <IP_ADDRESS>
Please enter the name and IP address of your 2nd AdvantageAir System if
any. Just hit 'enter' if none:
Name:
Do you want to set up your "Fan" as "FanSwitch"? (y/n): n
INFO: fanSetup=fan
INFO: AdvAir.sh found:
/var/lib/hoobs/cmd4bridge/node_modules/homebridge-cmd4-advantageair/AdvAir.sh
INFO: This process may take up to 1 minute!
INFO: Fetching and processing data from your AdvantageAir system (Home
<IP_ADDRESS>)....
WARNING: No Homebridge config.json file located by the script!
Please enter the full path of your Homebridge config.json file,
otherwise just hit enter to abort copying "cmd4Config_AA_Home.json" to
Homebridge config.json.
The config.json path should be in the form of ///*/config.json

WARNING: No Homebridge config.json file specified
Copying of cmd4Config_AA_Home.json to Homebridge config.json was
aborted
INFO: Please copy/paste the cmd4Config_AA_Home.json into Cmd4 JASON Config
Editor manually
@.***:~ $
On Fri, 26 Aug 2022 at 16:04, Mitch Williams @.***>
wrote:

Oh wait disregard that Ung Sing, I see you are getting QLDRiddler to
create the file on the Home drive... Just in case, the command to create
the file is sudo nano ConfigCreator.sh.
—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1228090304,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2RODL6QQ77G47SHUYMVNJLV3BNALANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

The issue now is the config.json file required not found.  Can you locate the config.json file in your system?
ls -al /var/lib/hoobs/cmd4bridge
Do you see config.json file in that directory?
if not, that is something you need to find out.  Try the following commands, hopefully one of them will find your config.json file:
find /var/lib -name config.json | grep -v find | grep -v node_modules | grep -v cache | grep -v System | grep config.json
or
find /usr/lib -name config.json | grep -v find | grep -v node_modules | grep -v cache | grep -v System | grep config.json
or
find /usr/local/lib -name config.json | grep -v find | grep -v node_modules | grep -v cache | grep -v System | grep config.json

It should be located in /var/lib/hoobs/hoobs/config.json right?

It should be located in /var/lib/hoobs/hoobs/config.json right?

The script would have found it if it is there.

Disregard me again… I should stop jumping in lol mine might be there because I do not have a bridge setup; I will leave this to you Ung Sing, I am muddying the waters haha…

OK, there was a config.json file in /var/lib/hoobs/cmd4bridge so I added those details when promoted in the ConfigCreator process. Seemed to go OK and I got prompted to reboot but still showing as 3.5.1 in the versions :(

Anything in your accessories tab now @QLDRiddler..? :)

Nice! It still show v3.5.1 is because the v3.6.0.beta.2 was not installed successfully. That is ok.
can u do this command for me to check the validity of the config.json
cat /bar/lib/hoobs/cmd4bridge/config.json | more
if you see something like “platform”: “Cmd4” in there, then the script has done its job and your MyPlace accessories should have been created and you should see it in HOOBS and in HomeKit.
From here on, Mitch should be able to help you as he has tested it with his own HOBBS installation.

the command should be:
cat /var/lib/hoobs/cmd4bridge/config.json | more

Hi @QLDRiddler, would you be able to issue the following command and see what you get on your system?
find /var/lib/hoobs -name config.json 2>&1|grep -v find|grep -v System|grep -v cache|grep -v hassio|grep -v node_modules|grep config.json
If your config.json is in /var/lib/hoobs/cmd4bridge then the script should have found it.  Why it did not find it is a bit puzzle to me.

So the cat command produces a bunch of text which includes
{"platform":"cmd4AdvantageAir"}.
It does also include this:
{"platform":"Cmd4","name":"Cmd4","debug":false,"outputConstants":false,"statusMsg":true,"timeout":60000,"stateChangeResponseTime":0,"constants":[{"key"
but shouldnt there be } and ] symbols at the end of that string before the next "key" string starts?
Also confirming teh Find command did locate a ferw instances of config.json including one in cmd4bridge.
I can now see all my zones, temps etc in Accessories but theyre not showing up in my Apple Home app :-(
Finally, anyway of changing the name I gave my system during install? I clicked on the Config button on the plugin but that didnt have any info.

Finally, anyway of changing the name I gave my system during install? I clicked on the Config button on the plugin but that didnt have any info.

Do you mean the name you have to the ConfigCreator or your bridge? If you mean the former, you can run it all again or you can modify that ‘config.json’ from the terminal or HOOBS UI (click config on a plug-in and on the left should show your plugins and an ‘advanced’ section; modify it in there).

Also confirming teh Find command did locate a ferw instances of config.json including one in cmd4bridge.

Hi @QLDRiddler, Would u be able to post all the instances of the find commands? This is for me trying to understand better the directory structure of HOOBS installation.  I was expecting a single instances. Multiple instances is the reason it did not work at the first place.

First of all, apols for being such a doofus and not scanning the QR code to add to my Homekit, have done that now and all shows up.
I posted above the contents of the advanced config screen on the bridge, the only entry is "platform": "cmd4AdvantageAir" so no chance to change the name there. Is that possibly related to the }] situation I mentioned?
Here's the output from the Find command:

Try
cat /var/lib/hoobs/cmd4bridge/config.json
then you should see the full complete json file.
What you saw before was only part of config.json

Thanks for the output of the find command, I know now what I have to do to 0ick only the right one.  I will get u an updated version later tonight or tomorrow.

Hey Mitch and @QLDRiddler,
Please download an updated version of ConfigCreator.sh.
HOODS has multiple config.json files if you have created multiple bridges in it.  As such, I have to scan all the config.json file for "Cmd4" or "homebridge-cmd4" to get the correct config.json to use.
https://github.com/uswong/homebridge-cmd4-AdvantageAir/blob/master/ConfigCreator.sh
Please test it out.  @QLDRiddler should no longer need to input the full path to config.json.  It should also work for homebridge users too.

{"platform":"Cmd4","name":"Cmd4","debug":false,"outputConstants":false,"statusMsg":true,"timeout":60000,"stateChangeResponseTime":0,"constants":[{"key"
but shouldnt there be } and ] symbols at the end of that string before the next "key" string starts?

What you saw above was only part of config.json (in compact form) and that is why you see that the brackets are not balanced.  What you saw above was correct config.json file for the plugin but incomplete.....
Try
cat /var/lib/hoobs/cmd4bridge/config.json
then you should see the full complete config.json file and all the square and curly brackets are balanced.
If you rather want to see the config.json in an expanded form,  try the command below:
jq --indent 4 '.' /var/lib/hoobs/cmd4bridge/config.json

Hey Mitch and @QLDRiddler,
Please download an updated version of ConfigCreator.sh.
HOOBS has multiple config.json files if you have created multiple bridges in it. As such, I have to scan all the config.json files for "Cmd4" or "homebridge-cmd4" to get the correct config.json file to use.
https://github.com/uswong/homebridge-cmd4-AdvantageAir/blob/master/ConfigCreator.sh
Please test it out. @QLDRiddler should no longer need to input the full path to config.json. It should also work for homebridge users too.

Couple more questions for you:

Does your wonderful plugin allow the user to change the focus zone?
Can you change the fan labels from a % to Low, Medium and High?
When I'm in the Apple Home app it's grouping the temperature sensor controls in my "Air Conditioning" room together, I'm guessing that's by design? When I click into that temperature group, its calling out a couple of the controls as having low batteries? Does that literally mean I need to swap out the button batteries in those sensors? I havent seen that info on the main Advantage Air app.

Hey @QLDRiddler sorry for the late reply, I had an evening out planned last night; but you were in good hands with Ung Sing in my absence!

First of all, apols for being such a doofus and not scanning the QR code to add to my Homekit, have done that now and all shows up.

Easy mistake to make when we have given you so many things to do :p I am very glad it was just a simple thing like this and not something more major haha...

I posted above the contents of the advanced config screen on the bridge, the only entry is "platform": "cmd4AdvantageAir" so no chance to change the name there. Is that possibly related to the }] situation I mentioned?

I may not have described this as well while I was in an Uber last night as I did not have HOOBS in front of me. It looks like you went to the advanced section of 'cmd4-advantageair' but not the advanced section I meant. Here is where I meant:

This is the config that the 'ConfigCreator' has made for you and from here, you can now manually edit the displayName's of any of your accessories if you want to.

Does your wonderful plugin allow the user to change the focus zone?

I might need a little more information about your system, do you mean the 'constant zone' represented as a C in your Advantage Air app? Or do you my the 'myZone' represented as an M in some systems? If you mean the C, I believe only the installer can change this, but if you mean the M we have not added the support yet, but has been on my mind as a small feature that I keep forgetting about. I believe the M is one you can change around to whichever room you like at any given time (I do not have this feature in my e-zone system).

Can you change the fan labels from a % to Low, Medium and High?

This is a limitation imposed by Apple themselves for HomeKit; they only support fans that turn on/off or have % based speed. We have set up a conversion in our code to do the low/med/high/auto as 1-33% for low, 34-67% for medium, 68-99% for high and 100% for 'auto' or 'ezfan'. You can read about it all here in my Wiki if you are interested.

When I'm in the Apple Home app it's grouping the temperature sensor controls in my "Air Conditioning" room together, I'm guessing that's by design?

That is correct and how I like to keep mine so when I pull up the temperature status indicator on the home page it shows them in all one place and not scattered across rooms making you scroll down to see them all. You can change this by long pressing on the temperature sensor accessory, scrolling down and changing what room it lives in.

When I click into that temperature group, its calling out a couple of the controls as having low batteries?

Yes, this means you do have low batteries if the code is working properly; to be 100% sure cross reference with your Advantage Air app and check the zones tab to see if they have any errors on them. In our plug-in the default for 'no reading' is the 25.0deg value; so based on what you have shown me, the batteries have died and are no longer communicating to the control unit any more or they have somehow lost comms to the control unit itself and cannot get a read of value or battery. Please let us know if your Advantage Air app tells you they are reading fine.
I think I have answered all your questions? But please let me know if I have missed any. I just also wanted to thank you for your patience and help; I know we had a lot of kinks to iron out to get this working for you, but your hard work has ensured that the next HOOBS user will have a much smoother experience :) Please continue to raise issues for any bugs you find or features you would like to see!

Wow, such a comprehensive response. Thank you. Quick reply from me.
Yes, I did mean the feature M zone - I will look out for future updates if youre able to get this included.
I've gone into the tech setup on my AA panel to check the sensors and its reporting all is OK, as per the photo below, as is the zones tab of the app so not sure where the battery warning is coming from.

Yes, I did mean the feature M zone - I will look out for future updates if youre able to get this included.

I will talk with Ung Sing and we will look into adding it as one of the future updates :) should not be a hard one to implement.

I've gone into the tech setup on my AA panel to check the sensors and its reporting all is OK, as per the photo below, as is the zones tab of the app so not sure where the battery warning is coming from.

I am not terribly familiar with that Advantage Air UI design, is that the ‘zone10e’ that you have? If not, which app is it that you are using?
I have just pulled the battery out of one of my sensors to show you. For my temperature sensors, it will show here:

You can always swap the batteries around to be sure; it can take up to 15mins for the Advantage Air controller to recognise the new battery I have found. Otherwise we will have to try figure out what is going wrong for these two temperature sensors for you!

The photo was of the native tablet supplied with the system and directly
connected to the control unit. If you click on setup, there's an option for
Tech Setup that you access after entering a master PIN. Then lots of behind
the scenes goodies. I believe this Tech Setup option doesnt show in the
regular apps, only on the native tablet (which is running an OEM version of
Android). I have seen the battery warnings come up before in the Zones tab
on the apps but theyre all showing normally at the moment.
On Sat, 27 Aug 2022 at 16:58, Mitch Williams @.***>
wrote:

Yes, I did mean the feature M zone - I will look out for future updates if
youre able to get this included.
I will talk with Ung Sing and we will look into adding it as one of the
future updates :) should not be a hard one to implement.
I've gone into the tech setup on my AA panel to check the sensors and its
reporting all is OK, as per the photo below, as is the zones tab of the app
so not sure where the battery warning is coming from.
I am not terribly familiar with that Advantage Air UI design, is that the
‘zone10e’ that you have? If not, which app is it that you are using?
I have just pulled the battery out of one of my sensors to show you. For
my temperature sensors, it will show here:
[image: E8A5505A-56DC-4BC9-8DFB-0FB5004B338F]
https://user-images.githubusercontent.com/40288237/187018930-71c9e964-6f63-4f2d-99df-153a5d3609f8.jpeg
You can always swap the batteries around to be sure; it can take up to
15mins for the Advantage Air controller to recognise the new battery I have
found. Otherwise we will have to try figure out what is going wrong for
these two temperature sensors for you!
—
Reply to this email directly, view it on GitHub
https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1229137911,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2RODLY3HZXFLX5X7FUF5ODV3G4BXANCNFSM56UQCGDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

@QLDRiddler yep that makes sense, same for my 'e-zone' app in terms of what can accessed on the phone app vs the master control tablet; I just took my screenshot from my phone as it was easier for uploading a photo to GitHub. What I need to know to work out if we still need to help out the two temperature sensors is the following:

What is the name of the app you are using? Is it 'zone10e', 'MyAir', 'MyPlace', 'e-zone', etc.?
Can we get you to put some new batteries in those two zones that have the warnings, wait at least 15 minutes and let us know if they are still showing with an error? It looks like form what you have shown me on the master app that they should be healthy, but I am still unsure due to not knowing which app that is.

Closing this issue due to the latest version released covering all the work completed to get HOOBS working. Please continue to comment @QLDRiddler if you need further help with those temperature sensors or feel free to open another issue :)

Thanks Mitch, I’m actually away this week so won’t get a chance to play until next weekend. However I did realise last night that turning zones on and off in the Apple Home app had no effect on the actual system. Suspecting this may have something to do with all the testing and changes we’ve made so when I do get back home I plan to uninstall everything and start from scratch with the new production version.

From: Mitch Williams @.>
Sent: Sunday, August 28, 2022 6:52:29 PM
To: mitch7391/homebridge-cmd4-AdvantageAir @.>
Cc: QLDRiddler @.>; Mention @.>
Subject: Re: [mitch7391/homebridge-cmd4-AdvantageAir] [Support] HOOBS Installation Issue (Issue #70)
Closing this issue due to the latest version released covering all the work completed to get HOOBS working. Please continue to comment @QLDRiddlerhttps://github.com/QLDRiddler if you need further help with those temperature sensors or feel free to open another issue :)
—
Reply to this email directly, view it on GitHubhttps://github.com/mitch7391/homebridge-cmd4-AdvantageAir/issues/70#issuecomment-1229409890, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2RODL5MT4WEG4MKJHPHJB3V3MSE3ANCNFSM56UQCGDQ.
You are receiving this because you were mentioned.Message ID: @.***>

No worries @QLDRiddler, it sounds like something is still not set right then. Please open a new issue if you face any problems and we will try our best to help you out.


SeaweedFS apps not works on the Windows

Hello,
I downloaded both SeaweedFS archives for Windows, unblocked and unpacked them, but nothing happens. Antimalwares and antiviruses didn't come up (I currently use Avira and Malwarebytes Anti-Malware), even Windows Defender didn't react as something suspicious, but there's just nothing, even when I run them from the administrator. Why, I really don't known.
Thank you in advanced.

SeaweedFS does not run on Windows to my knowledge. You may be able to get it to run under WSL in Windows, but I haven't tried that personally.

I tested https://github.com/seaweedfs/seaweedfs/releases/download/3.67/windows_amd64.zip and it works.

SeaweedFS does not run on Windows to my knowledge. You may be able to get it to run under WSL in Windows, but I haven't tried that personally.

At least 3.67 version works under windows almost well, except s3. ~2sec delay on every read/write. But warp benchmark shows better results than minio on same drive, filesystem, etc

SeaweedFS does not run on Windows to my knowledge. You may be able to get it to run under WSL in Windows, but I haven't tried that personally.

At least 3.67 version works under windows almost well, except s3. ~2sec delay on every read/write. But warp benchmark shows better results than minio on same drive, filesystem, etc

I stand corrected. Sorry for not double-checking this before answering.

I tested again and it don't works again. It's definitely not the antivirus, but I really don't know what it is. Maybe it's not enough to just unzip the downloaded archives and run the executable files because nothing happens after that. Or maybe you need to set something in Windows before that. @Chrislusf, maybe you know.

I do not quite understand what is the ask here. It's just an exe file to run.

The screenshots means nothing to me, although screen readers can help me to know what is in the images. But well, I understand that it just needs to run the executables and that's it. Now, why nothing is happening I really don't know. If you don't have a solution, maybe I should ask for help from someone who can sort of assess what's going on, and I'll let you know.

Dear @Chrislusf and all others,
You see, my problem is actually much simpler than it seems, but I really don't know how to solve it. Namely, SeaweedFS does not have a classic graphic-textual wizard that guides the user through the installation as with most other programs, but instead the command line/prompt, Power Shell or some similar must be used. However, please understand that I, as a blind computer user, manage very poorly with this, or rather, I do not know how to work with such interfaces and in these modes at all, because I am not a programmer and screen readers are very poorly adapted for such an environment. But since SeaweedFS is free and open source, this can certainly be fixed and I sincerely appreciate everyone's efforts because I think any good app or tool should be equally accessible and friendly to everyone; regardless of whether they are beginners, advanced users or developers.
Thanks for ewery help.

Understood your difficulty and challenges!
The "weed.exe" is just one portable command-line-only binary that does not require installation. Creating the toolsets to follow window's installation process is not a trivial task.
Maybe there should be a more generic software to solve this. Something that can install/uninstall/upgrade/run an executable binary.

Thank you for your understanding. Not a problem if the files are portable - I already use several such programs. But the trouble is that screen readers are mostly insufficiently adapted for such environments, and I don't have such technical knowledge. You don't have to agree with me, but I think it wouldn't be bad if there was a version with a slightly different interface in which everything would be covered with text and navigated using the keyboard only. Well, these are not a files that simply start and do something in the background. Maybe there are useful details in the documentation, it just needs to be expanded a bit.

I renamed the title of this issue because this is a my real (technical) problem which I mentioned it in the my last comment. Thanks for all help.


Authorization

Closes #62

It's looks straightforward to use. Rules would be db calls we'd write to validate if the user has the correct permissions?

@fergusmeiklejohn yeah you can easily call a DB from a Rule, the idea is that you can create multiple rules for different things, some rules are going to be global (applied to Authenticator when created) while others are maybe related to specific routes (e.g. a route to ensure you are the author of a comment before you delete it)

most rules will be predictable, isAdmin, isCreator.., but as long we can make a rule be anything that returns a boolean or something then that'll fit any use case

most rules will be predictable, isAdmin, isCreator.., but as long we can make a rule be anything that returns a boolean or something then that'll fit any use case

Exactly, that's the idea of the rules, some are most likely to be the same (e.g. role based) but then you can start having more custom needs, that's when rules come handy, for example, an internal app of a company may want to limit the access to only an IP range (their offices or VPN) or only in business hours and days.

@sergiodxa are there any docs about this ? I couldnt find it (even tho the tests look good / are helping)

@goldo I never documented it because I wanted to use it more before doing so, the API has been stable since this PR but I never really ended up using it that much to feel confident about it

@sergiodxa Ok I see thanks!  do you know anyone who might have did it ? (or use something else)


New Crowdin updates

:tada: This PR is included in version 0.24.2 :tada:
The release is available on:

v0.24.2
GitHub release

Your semantic-release bot :package::rocket: