Skip to content

Install Grott proxy server - #2046

Merged
mstormi merged 32 commits into
openhab:mainfrom
andrewfg:grott-proxy-install
Aug 19, 2025
Merged

Install Grott proxy server#2046
mstormi merged 32 commits into
openhab:mainfrom
andrewfg:grott-proxy-install

Conversation

@andrewfg

@andrewfg andrewfg commented Aug 12, 2025

Copy link
Copy Markdown
Contributor

Resolves #2043

Todos:

  • Add UI menu items for install/remove actions
  • Get username from caller script variable, and parse IPv4 address
  • Add test class, and pass on CI build
  • Live test install/remove on virtual machine
  • Live test install/remove on RPi5 clean install
  • Add doc to openhabian.md
  • Add doc to Growatt binding readme.md here

Signed-off-by: Andrew Fiddian-Green software@whitebear.ch

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg
andrewfg marked this pull request as draft August 12, 2025 16:51
andrewfg and others added 10 commits August 12, 2025 18:06
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg
andrewfg force-pushed the grott-proxy-install branch from 6dc7712 to 4b82839 Compare August 13, 2025 16:04
@andrewfg
andrewfg marked this pull request as ready for review August 13, 2025 16:09
@andrewfg

andrewfg commented Aug 13, 2025

Copy link
Copy Markdown
Contributor Author

@mstormi status update

  • the code is ready for your review
  • it passes the CI build tests
  • it installs and runs on an RPi VM on Windows
  • however don't know how to build an SD card image to test on a real RPi => perhaps you can advise?
  • initial tests failed due to non global python dependencies; now fixed
  • paho-mqtt is required for grott.py to load (even if mqtt is disabled in the conf)
  • sorry but I messed up the DCO sign off on the last commit
  • this function uses menu option 2F; you needed to scroll down but window now resized
  • added a one liner in the openhabian readme to describe this function
  • it is planned to add something to the growatt binding readme too

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@mstormi

mstormi commented Aug 13, 2025

Copy link
Copy Markdown
Contributor

Thanks! Will review as soon as I find time.

See action tab/builds for an image or trigger build there but that's overkill, I'm fine if the BATS test is.

DCO no worries

docs yeah dunno myself maybe add a single sentence in docs/openhabian.md in the section with nginx, FIND etc.

window size it's one of the number arguments at the end of the whiptail cmd eventually both rtfm I'm on the phone and don't recall atm.

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg

This comment was marked as resolved.

@andrewfg andrewfg changed the title [wip] Install Grott proxy server Install Grott proxy server Aug 13, 2025

@mstormi mstormi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for your work so far
sorry for the inconvenience but code style compliance makes up for a major part of the overall work so we're strict on that.

Comment thread functions/grott-install.bash Outdated
Comment thread functions/grott-install.bash Outdated
Comment thread functions/grott-install.bash Outdated
Comment thread functions/grott-install.bash Outdated
Comment thread functions/grott-install.bash Outdated
Comment thread functions/grott-install.bash Outdated
Comment thread functions/grott-install.bash Outdated
Comment thread functions/menu.bash Outdated
Comment thread functions/grott-install.bash Outdated
Comment thread functions/grott-install.bash Outdated
openhabian added 6 commits August 14, 2025 14:42
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
openhabian openhabian
wip
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg
andrewfg requested a review from mstormi August 14, 2025 16:51
@andrewfg

This comment was marked as outdated.

@mstormi

mstormi commented Aug 14, 2025

Copy link
Copy Markdown
Contributor

An openHABian system only has a single interface and doesn't do anything about it in oh config.

openhabian added 2 commits August 15, 2025 09:35
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg

This comment was marked as outdated.

@mstormi

mstormi commented Aug 15, 2025

Copy link
Copy Markdown
Contributor

=> So I think I have now fully addressed all of your issues.

Please no checklists type of report. Rather instead go through the review in GitHub and comment per-issue, otherwise it's too hard to keep track of which issue is still current

@andrewfg

Copy link
Copy Markdown
Contributor Author

go through the review in GitHub and comment per-issue

I have done that. (as well)

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
openhabian added 7 commits August 16, 2025 11:07
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg

Copy link
Copy Markdown
Contributor Author

@mstormi OK I am all finished now (hopefully) .. it passes all CI tests now (except DCO) plus also a live test on an RPi5 64 bit.

Comment thread build-image/openhabian.conf Outdated
Comment thread functions/packages.bash Outdated
Comment thread functions/packages.bash Outdated
Comment thread functions/packages.bash Outdated
Comment thread functions/packages.bash Outdated
Comment thread functions/packages.bash
Comment thread openhabian-setup.sh Outdated
Comment thread functions/packages.bash Outdated
Comment thread functions/packages.bash Outdated
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg
andrewfg requested a review from mstormi August 19, 2025 08:48
@andrewfg

Copy link
Copy Markdown
Contributor Author

@mstormi it is not directly related to this PR but while testing the menu I noticed that there is another whiptail dialog that has a sizing issue..

image

@mstormi

mstormi commented Aug 19, 2025

Copy link
Copy Markdown
Contributor

add your scroll comment and fix it while you're on it okay in this pr

ifc you find more open an own pr

@andrewfg

andrewfg commented Aug 19, 2025

Copy link
Copy Markdown
Contributor Author

fix it while you're on it okay in this pr

Ok. I am happy to fix it here. There are two ways to do it -- 1) widen the dialog, or 2) shorten the texts. => Do you prefer 1 or 2?

EDIT to be specific the problem is due to the overlong texts and caveats about the Java installations

@mstormi

mstormi commented Aug 19, 2025

Copy link
Copy Markdown
Contributor

Ok. I am happy to fix it here. There are two ways to do it -- 1) widen the dialog, or 2) shorten the texts. => Do you prefer 1 or 2?

EDIT to be specific the problem is due to the overlong texts and caveats about the Java installations

  1. please, it should not be more than 120 cols
    Maybe to replace "as Java provider" by "Java" is enough?

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg

Copy link
Copy Markdown
Contributor Author

shorten the texts

Ok. Done. It is ready to go again.

@mstormi mstormi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Nice 1st contricbution.
Thanks a lot for your efforts!

@mstormi
mstormi merged commit 3ada598 into openhab:main Aug 19, 2025
8 of 9 checks passed
@andrewfg

Copy link
Copy Markdown
Contributor Author

thanks a lot for your efforts

Thanks for your support.

@andrewfg
andrewfg deleted the grott-proxy-install branch December 14, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add script to install Grott proxy

2 participants