99% success.
I decided to forget the Go/Gin error and restart reading the link that neilgl sent me. Slowly and methodically. Finally.
(neilgl, you could be a dentist, because you like pulling teeth..)
I just quit for today, as I am out of brain energy for March 7, 2024.
Results for today:
1. Got Arduino-Create-Agent (amd Intel) working on my arm64 machine. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2. Arduino cloud editor is willing to connect to my RPi5, but I can not figure out what port to give Arduino to look for the RPi5. ( Trying 192.168.1.136:8080...* connect to 192.168.1.136 port 8080 failed: Connection refused) etc etc
3. Stuck for now, but I am 99% of the way!!!
here is pic of the Arduino Connect Icon I wanted!
![Image]()
I decided to forget the Go/Gin error and restart reading the link that neilgl sent me. Slowly and methodically. Finally.
(neilgl, you could be a dentist, because you like pulling teeth..)
I just quit for today, as I am out of brain energy for March 7, 2024.
Results for today:
1. Got Arduino-Create-Agent (amd Intel) working on my arm64 machine. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2. Arduino cloud editor is willing to connect to my RPi5, but I can not figure out what port to give Arduino to look for the RPi5. ( Trying 192.168.1.136:8080...* connect to 192.168.1.136 port 8080 failed: Connection refused) etc etc
3. Stuck for now, but I am 99% of the way!!!
here is pic of the Arduino Connect Icon I wanted!

Code:
https://forum.arduino.cc/t/build-arduino-create-agent-on-raspberry-pi-4/623981To use Arduino Web Editor on a Raspberry Pi, the Arduino Create Agent must be built from source code. It is not very difficult but does assume familiarity with Linux command line mode.This should work on other Raspberry Pi's but but has only been tested on a Pi 4 running buster.sudo apt updateoksudo apt upgradeokIf the upgrade step, says to reboot, please do so. Then continue with the next step. Cut and paste the next step because it is too long to enter by hand.sudo apt install golang oksudo apt install libappindicator1oksudo apt install libappindicator3-0.1-cilerror:~ $ sudo apt install libappindicator3-0.1-cilReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneE: Unable to locate package libappindicator3-0.1-cilE: Couldn't find any package by glob 'libappindicator3-0.1-cil'sudo apt install libappindicator3-0.1-cil-devsame errorsudo apt install libappindicator3-1 oksudo apt install libappindicator3-dev oksudo apt install libgtk-3-0 libgtk-3-devokcd $HOME:~ $ go install github.com/arduino/arduino-create-agenterrorgo: 'go install' requires a version when current directory is not in a moduleTry 'go install github.com/arduino/arduino-create-agent@latest' to install the latest version:~ $ go install github.com/arduino/arduino-create-agent@latestokgo: downloading github.com/arduino/arduino-create-agent v0.0.0-20240305095006-b350f563ff25go: downloading fyne.io/systray v1.10.0go: downloading github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966go: downloading github.com/godbus/dbus/v5 v5.0.4export GOPATH=$(go env GOPATH)okexport PATH=$PATH:$(go env GOPATH)/binokcd $GOPATH/src/github.com/arduino/arduino-create-agenterror-path not found:~ $ cd $GOPATH/src/github.com/arduino/arduino-create-agentbash: cd: /home/debianisaac/go/src/github.com/arduino/arduino-create-agent: No such file or directorysearch finds:seqentially listed:/home/debianisaac/go/pkg/mod/github.com/arduino/arduino-create-agent@v0.0.0-20240305095006-b350f563ff25/.licenses/home/debianisaac/go/pkg/mod/github.com/arduino/arduino-create-agent@v0.0.0-20240305095006-b350f563ff25/.licenses/home/debianisaac/go/pkg/mod/cache/download/github.com/arduino/home/debianisaac/go/pkg/mod/cache/download/github.com/arduino/home/debianisaac/home/debianisaac/home/debianisaac/go/bin/home/debianisaac/go/binSo, looking at dates, the go/bin is the one I just did….So, cd /go/bin:~:~ $ cd go/bin:~/go/bin $ :~/go/bin $ lsarduino-create-agent hellogo build:~/go/bin $ go builderrorgo: go.mod file not found in current directory or any parent directory; see 'go help modules'search for go.modsequentially:/go/pkg/mod/github.com/godbus/dbus/v5@v5.0.4/go/pkg/mod/fyne.io/systray@v1.10.0/go/pkg/mod/github.com/arduino/arduino-create-agent@v0.0.0-20240305095006-b350f563ff25try:~ $ cd go/pkg/mod/github.com/godbus/dbus/v5@v5.0.4:~/go/pkg/mod/github.com/godbus/dbus/v5@v5.0.4 $ go buildok!:~ $ cp config.ini go/binerrorcp: cannot stat 'config.ini': No such file or directorysearch for config.ini--found it at: /go/pkg/mod/github.com/arduino/arduino-create-agent@v0.0.0-20240305095006-b350f563ff25/configI changed directory and listed all::~/go/pkg/mod/github.com/arduino/arduino-create-agent@v0.0.0-20240305095006-b350f563ff25/config $ lsArduinoCreateAgent.plist autostart.go config.go config.ininow, try cp (copy) again:~/go/pkg/mod/github.com/arduino/arduino-create-agent@v0.0.0-20240305095006-b350f563ff25/config $ cp config.ini /go/binsuccessThe previous steps should only be done once to build the Create Agent. The file is left in /home/pi/go/bin/.To launch the Create Agent just run from command line.$ ~/go/bin/ ./arduino-create-agent &results:~/go/bin $ ./arduino-create-agentINFO[0000] using config from default: /home/debianisaac/.config/ArduinoCreateAgent/config.ini INFO[0000] using additional config from config.ini INFO[0000] Version:x.x.x-dev INFO[0000] Hostname: raspberrypi INFO[0000] Garbage collection is on using Standard mode, meaning we just let Golang determine when to garbage collect. INFO[0000] You specified a serial port regular expression filter: usb|acm|com INFO[0000] Your serial ports: INFO[0000] {/dev/ttyACM0 0x1002 0x2341 DC5475CA1CCC} [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production. - using env:export GIN_MODE=release - using code:gin.SetMode(gin.ReleaseMode)[GIN-debug] GET / --> main.homeHandler (2 handlers)[GIN-debug] POST /upload --> main.uploadHandler (2 handlers)[GIN-debug] GET /socket.io/ --> main.(*WsServer).ServeHTTP-fm (2 handlers)[GIN-debug] POST /socket.io/ --> main.(*WsServer).ServeHTTP-fm (2 handlers)[GIN-debug] WS /socket.io/ --> main.(*WsServer).ServeHTTP-fm (2 handlers)[GIN-debug] WSS /socket.io/ --> main.(*WsServer).ServeHTTP-fm (2 handlers)[GIN-debug] GET /info --> main.infoHandler (2 handlers)[GIN-debug] POST /pause --> main.pauseHandler (2 handlers)[GIN-debug] POST /update --> main.updateHandler (2 handlers)[GIN-debug] GET /v2/*path --> main.loop.WrapH.func4 (2 handlers)[GIN-debug] POST /v2/*path --> main.loop.WrapH.func4 (2 handlers)[GIN-debug] PUT /v2/*path --> main.loop.WrapH.func4 (2 handlers)[GIN-debug] PATCH /v2/*path --> main.loop.WrapH.func4 (2 handlers)[GIN-debug] HEAD /v2/*path --> main.loop.WrapH.func4 (2 handlers)[GIN-debug] OPTIONS /v2/*path --> main.loop.WrapH.func4 (2 handlers)[GIN-debug] DELETE /v2/*path --> main.loop.WrapH.func4 (2 handlers)[GIN-debug] CONNECT /v2/*path --> main.loop.WrapH.func4 (2 handlers)[GIN-debug] TRACE /v2/*path --> main.loop.WrapH.func4 (2 handlers)[GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value.Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.[GIN-debug] Listening and serving HTTP on 127.0.0.1:8991ERRO[0000] Could not find HTTPS certificate. Using plain HTTP only. Note: above warningHowever, this time…..[size=150][color=#FF4080]SUCCESS!!![/color][/size]The Arduino icon should appear in the GUI tray (top right of screen). So wonderful! Three days to get that icon above b/c I am linux-deficient mentally…..Click on the icon then click on the "Go to Arduino Create" option to open a browser window at https://create.arduino.cc 11.I am very happy. So far………….Upon click, this window opens:Arduino Create opens https://create.arduino.cc/ on my browser.Arduino Cloud Create asks for my proxy address......But, when I try to add a device, the system can not find my connected Arduino R4 device….Reading the config.ini, maybe I need to set proxy?:~ $ hostname -I192.168.1.136 My internal IP: 192.168.1.136 so,https://www.golinuxcloud.com/set-up-proxy-http-proxy-environment-variable/export http_proxy=http://192.168.1.136:8080export https_proxy=https://192.168.1.136:8080but, connection refused….End of my energy for March 7, 2024.Results for today:1. Got Arduino-Create-Agent working on my arm64 machine.2. Arduino cloud editor is willing to connect to my RPi5, but I can not figure out what port to give Arduino to look for the RPi5. ( Trying 192.168.1.136:8080...* connect to 192.168.1.136 port 8080 failed: Connection refused) etc etc3. Stuck for now, but I am 99% of the way!!!debianisaac@raspberrypi:~ $ echo "$http_proxy"http://192.168.1.136:8080debianisaac@raspberrypi:~ $ echo "$https_proxy"https://192.168.1.136:8080 but I know there is no listening going on....... <sigh>
Statistics: Posted by shore — Thu Mar 07, 2024 4:42 pm