Giter Site home page Giter Site logo

Comments (9)

FireflyJar avatar FireflyJar commented on August 15, 2024

I might give this a try, I don't understand much either but I already have a server running couple docker game server and wondering if I should also do emoncms on this machine to track my EVSE. I saw somewhere in instructions that it's not recommended to put on server with other stuff hosted sharing resources, but I wonder with Docker it would isolate it.

from emoncms-docker.

alexandrecuer avatar alexandrecuer commented on August 15, 2024

@FireflyJar : it is interesting, I guess EVSE is using MQTT
tell me if you manage to make it work. maybe the multi containers approach (followed by the emoncms-docker github repo) is more suitable because because on the multiservices docker image (the one I propose), the broker right now is not exposed to outside. So it is only accessible on the same network namespace :
cf https://docs.docker.com/engine/reference/run/#name---name

from emoncms-docker.

FireflyJar avatar FireflyJar commented on August 15, 2024

sure will do, not sure what MQTT is, I have an OpenEVSE https://openevse.dozuki.com/Guide/Services+-+EmonCMS/14?lang=en

Thanks

from emoncms-docker.

FireflyJar avatar FireflyJar commented on August 15, 2024

when i do : docker run --rm -it alexjunk:emoncms:0.0.3
it said: docker: invalid reference format.

what is --rm and -it ?

from emoncms-docker.

alexandrecuer avatar alexandrecuer commented on August 15, 2024

--rm is to remove after stopping the container
-it means interactive, you will see the log in the shell

it is not docker run --rm -it alexjunk:emoncms:0.0.3 but docker run --rm -it alexjunk/emoncms:0.0.3

you use linux, mac, windows ? if you are on arm 64 bits you should use the arm image : alexjunk/emoncms:0.0.3.arm64v8
I dont have image for arm 32 bits. On mac, it will work only if the processor is intel

normally you can do something like that for your mqtt problematic :

docker run --rm -p 8080:80 -p 8883:1883 -it alexjunk/emoncms:0.0.3

the output should be :

 * Starting MariaDB database server mysqld                               [ OK ] 
 * Starting Apache httpd web server apache2                                                                             * 
 * Starting network daemon: mosquitto                                                                           [ OK ] 
Starting redis-server: redis-server.
2023-06-22 22:37:34,327 INFO RPC interface 'supervisor' initialized
2023-06-22 22:37:34,328 INFO supervisord started with pid 360
2023-06-22 22:37:35,333 INFO spawned: 'emoncms_mqtt' with pid 371
2023-06-22 22:37:35,339 INFO spawned: 'service-runner' with pid 372
2023-06-22 22:37:35,343 INFO spawned: 'feedwriter' with pid 373
2023-06-22 22:37:36,495 INFO success: emoncms_mqtt entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-22 22:37:36,495 INFO success: service-runner entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-22 22:37:36,495 INFO success: feedwriter entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

you can reach emoncms on http://192.168.1.25:8080 if 192.168.1.25 is the IP address of the host machine

then to publish on the broker :

mosquitto_pub -h 192.168.1.25 -p 8883 -u "emonpi" -P "emonpimqtt2016" -t 'emon/test/t3' -m 15

you should see the emoncms inputs list being updated

from emoncms-docker.

FireflyJar avatar FireflyJar commented on August 15, 2024

Server is dual Intel Xeon running Linux Mint 21.1

docker run --rm -p 8080:80 -p 8883:1883 -it alexjunk/emoncms:0.0.3
worked for me,

I need to read up on logging in and setting it up, been a while. and if possible transfer existing data.

Thanks

from emoncms-docker.

FireflyJar avatar FireflyJar commented on August 15, 2024

seems to be working, I did find a way to sync the data from emoncms.org, transferring the data.
now trying to figure out how to get the apps that emoncms.org has that shows nice report.
image

from emoncms-docker.

alexandrecuer avatar alexandrecuer commented on August 15, 2024

Nice to hear :-)
If you want to modify as few parameters as possible, use -p 1883:1883 and not -p 8883:1883

from emoncms-docker.

FireflyJar avatar FireflyJar commented on August 15, 2024

I played with it and I managed to figure out how to to add the Emoncms App Module
https://github.com/emoncms/app

I see it there but when I click +New, to add an app, it does not show.

from emoncms-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.