-
Notifications
You must be signed in to change notification settings - Fork 964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add web server to portdunio linux version so the web gui can be served. Configuration doesn't need the CLI Interface anymore for the Linux Version #3265
Conversation
you can use the already build tar for the web folder
|
"typeindex": "cpp", | ||
"typeinfo": "cpp", | ||
"variant": "cpp" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats probably ok, but i'd prefer this in a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get corrected to orignal first
@@ -0,0 +1,2 @@ | |||
#!/usr/bin/env bash | |||
sudo apt -y install openssl libssl-dev libsdl2-dev libulfius-dev liborcania-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be included in the CI builder scripts on github, or the builds will fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes sorry didn't looked into the build pipline of Github. Then I first have to prepare a change for the build pipeline I guess. I think for native linux build the .github/actions/setup-base/action.yml would be the best place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's something we can do afterwards. i commented more like a todo item :-)
the runners are always picked up from master, you can't fix that here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding these packages to the Pi builder now.
Also please sign the CLA :-) |
…ebServer.h, ContentHandler.cpp, rp2040.ini, nrf52.ini, ContentHelper.cpp, Dockerfile, ContentHandler.h, esp32.ini, stm32wl5e.ini
…ot hadled by platformio
It would be nice if there was still a method to compile and run native on distros that don't package libulfias and liborcania. |
@@ -0,0 +1,2 @@ | |||
#!/usr/bin/env bash | |||
sudo apt -y install openssl libssl-dev libsdl2-dev libulfius-dev liborcania-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's something we can do afterwards. i commented more like a todo item :-)
the runners are always picked up from master, you can't fix that here
Fix Typo & VFS ref.
variants/portduino/platformio.ini
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure a straightforward way to fix this, but it would be nice if we could still compile on distros that don't package ulfius and orcania. Obviously that would mean no HTTP server support for those distros. Would the only way to pull that off be a different target for HTTP vs no HTTP support?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we can use the #if __has_include() preprocessor statements, which probably gets us most of the way there. I'll play with this more as I have time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request has been mentioned on Meshtastic. There might be relevant details there: https://meshtastic.discourse.group/t/authentication-on-the-tcp-server/14740/2 |
Added a Webserver and WebService Interface to the Linux Portdunio Version. It now can deliver the web meshtastice project dist content also in the native linux version. It interfaces to the phoneapi the same way the ESP32 version does but only with Linux libs to get rid of the hardware dependencys of the ESP32 libs. For building under Linux it needs some additional libs these can be installed with bin/prepare-native.sh. To configure the web server the config.yaml got additional settings, that can be changed as needed.
Webserver:
Port: 9001 # Port for Webserver & Webservices
RootPath: /home/marc/web # Root Dir of WebServer
The webserver RootPath has to point to the web/dist diretory of the https://github.com/meshtastic/web project, after it has been build.