kizniche / Mycodo

An environmental monitoring and regulation system
http://kylegabriel.com/projects/
GNU General Public License v3.0
2.95k stars 494 forks source link

this is deployable to Balena, and i2c is working! #1218

Closed nargetdev closed 1 year ago

nargetdev commented 2 years ago

I would imagine that this totally butchers the default install modality (i haven't actually tried) but it is one click deployable to any balena device.. which i'm personally quite stoked about.

This isn't really meant to be merged but I wanted to make available to check out.

kizniche commented 2 years ago

What do you mean I2C now works? It worked previously, did it not?

nargetdev commented 2 years ago

Ah, I must have misdiagnosed other troubles (probably influxdb disconnect). I know now to test simply i.e. Mycodo: Free Space input.

I think i was just excited seeing Mycodo more or less working w/ one-click deploy to balena devices.

In doing this I had to flatten the repository structure. This obviously is not desirable for merging.. but it works for me now including running on influx2.3, and I'm running docker-compose up natively on Mac OS X which is nice to have.

Do you think I should write a script to flatten the repo with symlinks on demand in an isolated balena-mycodo directory? i.e. without breaking normal install compatibility. I'll start moving in that direction unless you have some advice otherwise. (all because context: ../ is illegal in the balena ecosystem)

kizniche commented 2 years ago

Couldn't you leave everything in the docker directory and just move the docker-compose.yaml to the root directory?

nargetdev commented 1 year ago

I mentioned in the main Docker thread - I'm ditching Balena in favor of k3s which will be doable without mutilation of directory structure.