• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Armbian - MyC V2 - install

    Scheduled Pinned Locked Moved General Discussion
    40 Posts 3 Posters 3.6k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      JeeLet
      last edited by JeeLet

      hello Jkandasa

      account created on Transifex, waiting for approval!

      I'm going to test MyController version 1.5 on an odroid C2

      I continue my exploration ๐Ÿ˜‰

      here is a link for information that you may know http://learntohackit.com/intro/

      jkandasaJ 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @JeeLet
        last edited by

        @jeelet

        account created on Transifex, waiting for approval!

        I do not see a request. can you please send your transifex user id via chat?

        I'm going to test MyController version 1.5 on an odroid C2

        If you are new to MyController, I would recommend you start from MyController v2
        in v 1.x you do not see new features, will be addressed only critical issues in v1.x.

        here is a link for information that you may know http://learntohackit.com/intro/

        It is a new. I do not know that. Is that page maintained by you?

        1 Reply Last reply Reply Quote 0
        • J Offline
          JeeLet
          last edited by JeeLet

          "Your account is already activated." ๐Ÿ™‚

          I have my account on Transifex with my name JeeLet
          I've renewed my membership to the mycontrollerorg V2 group
          but this time the French is not in the list for the choice of the Language ??
          so I took Russian, it's fashionable. ๐Ÿ™‚

          and for the link of learntohackit, no it's not me
          only for information to pick

          jkandasaJ 1 Reply Last reply Reply Quote 0
          • J Offline
            JeeLet
            last edited by JeeLet

            for the reason of the test of the version 1.5

            • the pdf documentation is more detailed

            • more functionality, for example, the MyController time does not appear version V2
              ( maybe a mistake from my part


            I tested to test with Azul (java)
            https://docs.azul.com/core/zulu-openjdk/install/debian#install-from-azul-apt-repository

            sudo ./start.sh
            /usr/bin/java
            java version: 11.0.14.1
            Mycontroller.org server required java version 1.7 or later

            so I continue on version 2 ๐Ÿ™‚

            jkandasaJ 1 Reply Last reply Reply Quote 0
            • jkandasaJ Offline
              jkandasa @JeeLet
              last edited by

              @jeelet said in Armbian - MyC V2 - install:

              but this time the French is not in the list for the choice of the Language ??

              now, you are in French and Russian

              1 Reply Last reply Reply Quote 0
              • jkandasaJ Offline
                jkandasa @JeeLet
                last edited by

                @jeelet said in Armbian - MyC V2 - install:

                more functionality, for example, the MyController time does not appear version V2

                thanks, I will add those in V2

                1 Reply Last reply Reply Quote 0
                • J Offline
                  JeeLet
                  last edited by

                  text alternatif

                  a screenshot of the V2 version compared with the 1.5 version (a view given by the pdf, I did not install the v1.5)

                  and yes I have received the authorization for Transifex.

                  jkandasaJ 1 Reply Last reply Reply Quote 0
                  • jkandasaJ Offline
                    jkandasa @JeeLet
                    last edited by jkandasa

                    @jeelet said in Armbian - MyC V2 - install:

                    a screenshot of the V2 version compared with the 1.5 version (a view given by the pdf, I did not install the v1.5)

                    MyController v2 completely redesigned. Backend/ frontend changed completely.
                    We may not map the options 1:1, however we can achieve similar features in v2.

                    Approx Mapping:

                    v1 v2
                    Sensor Source
                    Sensor Variable Field
                    Variable Data repository
                    Rule Task
                    Timer Schedule
                    Operation Handler

                    Supported Providers as on Mar 2022:

                    v1 v2
                    MySensors MySensors
                    PhilipsHue PhilipsHue
                    MyController (native) System Monitoring
                    RFLink Tasmota
                    Weather Underground ESPHome
                    Generic

                    in v2, most of the graphs goes in to Chart Panel and Utilization Panel widgets
                    for now bullet graph, heatmap chart, MyController time, Sunrise and Sunset time not available in v2.

                    and yes I have received the authorization for Transifex.

                    +1

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      JeeLet
                      last edited by JeeLet

                      to avoid further errors.
                      which directory / command for the installation ?
                      yes this sentence translated in french is wrong " Pas dans mycontroller/executable"
                      thanks

                      create a directories to keep MyController server data and executable - arm64
                      - sudo mkdir -p /opt/apps/mycontroller/mc_home
                      - sudo mkdir -p /opt/apps/mycontroller/executable

                      create directories to keep image files to show it MyController dashboard
                      - sudo mkdir -p /opt/apps/mycontroller/mc_home/secure_share
                      - sudo mkdir -p /opt/apps/mycontroller/mc_home/insecure_share

                      download the bundle and extract on executable directory
                      - cd /opt/apps/mycontroller

                      what is the error ???

                      jkandasaJ 1 Reply Last reply Reply Quote 0
                      • jkandasaJ Offline
                        jkandasa @JeeLet
                        last edited by

                        @JeeLet said in Armbian - MyC V2 - install:

                        what is the error ???

                        I would say to keep the things simple, use as follows,

                        # create a directories to keep MyController server data and executable
                        sudo mkdir -p /opt/apps/mycontroller/mc_home
                        
                        # download the bundle and extract on mycontroller directory
                        sudo wget https://github.com/mycontroller-org/server/releases/download/master/mycontroller-server-master-linux-arm.tar.gz
                        
                        sudo tar xzf mycontroller-server-master-linux-arm.tar.gz  --strip-components=1 --directory /opt/apps/mycontroller
                        
                        # create directories to keep image files to show it MyController dashboard
                        sudo mkdir -p /opt/apps/mycontroller/mc_home/secure_share
                        sudo mkdir -p /opt/apps/mycontroller/mc_home/insecure_share
                        
                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          JeeLet
                          last edited by

                          thank you jkandasa

                          the installation procedure is updated ๐Ÿ˜‰

                          jkandasaJ 1 Reply Last reply Reply Quote 0
                          • jkandasaJ Offline
                            jkandasa @JeeLet
                            last edited by

                            Thanks @JeeLet !

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              JeeLet
                              last edited by JeeLet

                              I redo a clean installation.
                              by following the modification of the tuto .

                              there is an error message for the installation of influxdb

                               wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
                              Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
                              E: This command can only be used by root.
                              
                              

                              Fix โ€œWaning: apt-key is deprecated. Manage keyring files in trusted.gpg.d insteadโ€

                              "Even if this is a warning message, you can continue to use apt-key, but it will be removed in the next releases. So it will be a good idea to start using the new way."

                              "Solution:
                              ..... new way of adding GPG keys to the system and avoiding the above warning.
                              The following command will download a remote GPG key, encrypt it and save it..... "

                              see how we can solve the problem.

                              and maybe upgrade to version 2 of influxdata?

                              J 1 Reply Last reply Reply Quote 0
                              • J Offline
                                JeeLet @JeeLet
                                last edited by JeeLet

                                influxdb2
                                install with the new version of MyController
                                (this is a lot, influxdb2 and MyC v2.00
                                development/mycontroller-server-2.0.0-devel-linux-arm64.tar.gz)

                                install :https://portal.influxdata.com/downloads/

                                $ wget -q https://repos.influxdata.com/influxdata-archive_compat.key
                                
                                echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null
                                
                                ----influxdata-archive_compat.key: OK---
                                
                                $ echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list
                                
                                $ sudo apt update
                                
                                ----Atteintย :1 http://ports.ubuntu.com focal InRelease----
                                ----Rรฉception deย :7 https://repos.influxdata.com/debian stable/main----
                                
                                $ sudo apt install influxdb2 
                                
                                $ systemctl start influxdb.service
                                
                                $ sudo systemctl enable influxdb.service
                                
                                $ sudo /opt/apps/mycontroller/mcctl.sh start
                                
                                ------ start command issued to the MyController server -----
                                

                                but a mistake, Log MyController

                                hostId:}", "loggerConfig": {"Mode":"record_all","Encoding":"console","Level":{"Core":"info","WebHandler":"info","Storage":"info","Metric":"warn"},"EnableStacktrace":false}}
                                2023-03-25T18:43:25.873+0100	error	metric_influxdb	extra_v1/admin.go:42	error on calling api	{"error": "failed with status code. [status: 401 Unauthorized, statusCode: 401, body: {\"code\":\"unauthorized\",\"message\":\"unauthorized access\"}]"}
                                2023-03-25T18:43:25.873+0100	error	helper/server.go:112	error on getting metric database	{"error": "failed with status code. [status: 401 Unauthorized, statusCode: 401, body: {\"code\":\"unauthorized\",\"message\":\"unauthorized access\"}]"}
                                2023-03-25T18:43:25.873+0100	fatal	cmd/root.go:38	error on starting server	{"error": "failed with status code. [status: 401 Unauthorized, statusCode: 401, body: {\"code\":\"unauthorized\",\"message\":\"unauthorized access\"}]"}
                                2023-03-25T18:45:33.062+0100	info	helper/helper.go:29	welcome to MyController server :)
                                2023-03-25T18:45:33.065+0100	info	helper/helper.go:33	version information	{"versionInfo": "{version:2.0.0-devel, buildDate:2023-03-24T15:27:53+00:00, gitCommit:7e4cd9f569fbf1b0894465bcdc023fe98704aad6, goVersion:go1.20.2, compiler:gc, platform:linux, arch:arm64, 
                                

                                no connection to the web page ๐Ÿ™‚
                                xxx.x.x.x refused to connect. ๐Ÿ˜ž

                                text alternatif
                                influxDB is functional

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  JeeLet
                                  last edited by JeeLet

                                  I found the problem

                                  in the config file: mycontroller.yaml

                                  database: > metric: > disabled: true

                                  it must be "true".
                                  and it's ok, the MyC page is displayed

                                  but I find myself with the error

                                  "WARNING: Metrics database disabled"

                                  a future with influxdb2 ....
                                  Yes, I will have to open a new thread on the marriage between MyC and influxDB ๐Ÿ™‚

                                  text alternatif

                                  jkandasaJ 1 Reply Last reply Reply Quote 0
                                  • jkandasaJ Offline
                                    jkandasa @JeeLet
                                    last edited by

                                    @JeeLet can you show your metric configuration? hide credentials
                                    sample configuration: https://v2.mycontroller.org/docs/installation/advanced-installation/backend-configuration/#sample-of-cloud-influxdb-configuration

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      JeeLet
                                      last edited by JeeLet

                                      excuse me @jkandasa I gave up, a moment of tiredness.

                                      I started all over again.
                                      I started again with influxdb 1.xx .
                                      For influxdb2.xx I start again in the week with another OdroidC2 .

                                      it's not very good to want to test new versions at the same time, MyC2++ and influxDB2

                                      but now I can install influxDB2 without any problem ๐Ÿ™‚

                                      jkandasaJ 1 Reply Last reply Reply Quote 1
                                      • jkandasaJ Offline
                                        jkandasa @JeeLet
                                        last edited by

                                        @JeeLet I tried influxdb2 locally and work ok.

                                        once you setup influxdb2 in your host, setup a API TOKEN for mycontroller.
                                        Details are in https://docs.influxdata.com/influxdb/cloud/security/tokens/create-token/#manage-tokens-in-the-influxdb-ui

                                        metric database configuration will be looking like this,

                                        metric:
                                          disabled: false
                                          type: influxdb
                                          uri: http://192.168.122.1:8086
                                          token: uBykOQ_17_m-KMdBkWa_UiTNpBViQH***akY_Rec_49kV0gLg_zZZw==
                                          username:
                                          password:
                                          organization_name: myc_org
                                          bucket_name: myc
                                          batch_size:
                                          flush_interval: 5s
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          JeeLet
                                          last edited by JeeLet

                                          Thank you for the additional information.

                                          yes, influxDB2 is working well with MyC ๐Ÿ™‚

                                          but I have to put the parameter to true

                                          database: > metric: > disabled: true
                                          

                                          so that the web page opens, otherwise it's a black screen.

                                          with as result the message :
                                          "WARNING: Metrics database disabled

                                          weird

                                          it doesn't matter.
                                          now I look at influxdb2 how to use it with myC

                                          jkandasaJ 1 Reply Last reply Reply Quote 0
                                          • jkandasaJ Offline
                                            jkandasa @JeeLet
                                            last edited by

                                            @JeeLet can you share your database configuration?

                                            J 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            0

                                            Online

                                            594

                                            Users

                                            529

                                            Topics

                                            3.4k

                                            Posts
                                            Copyright ยฉ 2015-2025 MyController.org | Contributors | Localization