Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stanleynguyen/go-everywhere
A complete IoT system built entirely in Go
https://github.com/stanleynguyen/go-everywhere
arduino go golang internet-of-things iot raspberry-pi web-assembly
Last synced: 29 days ago
JSON representation
A complete IoT system built entirely in Go
- Host: GitHub
- URL: https://github.com/stanleynguyen/go-everywhere
- Owner: stanleynguyen
- Created: 2019-09-05T16:14:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-31T11:35:22.000Z (about 4 years ago)
- Last Synced: 2024-10-30T07:57:25.927Z (3 months ago)
- Topics: arduino, go, golang, internet-of-things, iot, raspberry-pi, web-assembly
- Language: JavaScript
- Homepage: https://blog.stanleynguyen.me/post/go-everywhere/
- Size: 39.1 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-everywhere
### Compiling apk
- [Download ndk-bundle](https://developer.android.com/ndk/downloads)
- `go get -u godoc.org/golang.org/x/mobile/cmd/gomobile`
- Run this command inside this project root```bash
ANDROID_HOME=$(pwd) gomobile build -ldflags "-X main.serverURL=" -o light.apk github.com/stanleynguyen/go-everywhere/mobo
```### Flash to arduino
```bash
tinygo flash -target arduino uno/main.go
```### Compiling binary for RPi
```bash
GOOS=linux GOARCH=arm GOARM=5 go build -o pi.out -ldflags "-X main.serverURL= -X main.pinNumber=" pi/main.go
```Then copy to pi with `scp pi.out [email protected]:~/`