Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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]:~/`