• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-Temp2IOT

Scheduled Pinned Locked Moved Utilities
5 Posts 2 Posters 346 Views 2 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.
  • C Offline
    chrisfr1976
    last edited by Jan 10, 2025, 3:10 PM

    Hi,

    I have created a quick module to visualize outside temperatures from the Temp2IOT Sensor:

    MMM-Temp2IOT

    Screenshot MMM-Temp2IOT

    Get your own Sensor: Temp2IOT

    -1 iFrame on my mirror :)

    Regards, Chris.

    R 2 Replies Last reply Feb 14, 2025, 6:09 PM Reply Quote 1
    • R Offline
      rkorell @chrisfr1976
      last edited by rkorell Feb 14, 2025, 6:10 PM Feb 14, 2025, 6:09 PM

      @chrisfr1976 cool stuff - I like it and it works without any problem.

      Do you have a hint for me how I can disable the icons?
      The text is sufficient for me.
      I’ve tried a condition which never will be met: “condition > 100” but this doesn’t work.

      Good work - especially the code for the ESP board, thanks a LOT!

      Additional question: the api is posting a json record with Unix Startdate (“Thu Jan 1 00:00:00 1970”)?
      Is this correct?

      {
        "systemname": "tbd",
        "secure_counter": 0,
        "firmware": "2.3.06-b",
        "sensors": [
          {
            "name": "Sonne",
            "value": 0,
            "mean-1": {
              "value": "NaN",
              "count": 0,
              "period": 3600
            },
            "mean-24": {
              "value": "NaN",
              "count": 0,
              "period": 86400
            },
            "unit": "Celsius",
            "time": "Thu Jan  1 00:00:00 1970"
          },
          {
            "name": "Schatten",
            "value": 0,
            "unit": "Celsius",
            "time": "Thu Jan  1 00:00:00 1970"
          }
        ]
      }
      

      Warmest regards,
      Ralf

      C 1 Reply Last reply Feb 14, 2025, 8:30 PM Reply Quote 0
      • R Offline
        rkorell @chrisfr1976
        last edited by Feb 14, 2025, 6:39 PM

        @chrisfr1976
        have solved it by myself…
        Used @sdetweil 's tip with developer console and identified CSS classes for the icons.
        Have set

        .MMM-Temp2IOT .iconify {
            font-size: 0px; /* Symbole verschwinden lassen */
        }
        

        in custom.css -
        works :-)

        Warm regards,
        Ralf

        1 Reply Last reply Reply Quote 2
        • C Offline
          chrisfr1976 @rkorell
          last edited by Feb 14, 2025, 8:30 PM

          @rkorell
          Hi,

          my api has the correct time:

          {
            "systemname": "Temp2IoT",
            "secure_counter": 469,
            "firmware": "2.3.06-b",
            "sensors": [
              {
                "name": "Draußen ",
                "value": -0.1875,
                "mean-1": {
                  "value": "NaN",
                  "count": 0,
                  "period": 3600
                },
                "mean-24": {
                  "value": "NaN",
                  "count": 0,
                  "period": 86400
                },
                "unit": "Celsius",
                "time": "Fri Feb 14 21:26:53 2025"
              },
              {
                "name": "Schuppen",
                "value": 2.0625,
                "unit": "Celsius",
                "time": "Fri Feb 14 21:26:53 2025"
              }
            ]
          }
          

          But if the temperature is okay it doesn‘t matter for the module.

          The Temp2IOT project is not mine. But it is really great work.

          Regards, Chris.

          R 1 Reply Last reply Feb 15, 2025, 6:01 PM Reply Quote 0
          • R Offline
            rkorell @chrisfr1976
            last edited by rkorell Feb 15, 2025, 6:02 PM Feb 15, 2025, 6:01 PM

            @chrisfr1976 said in MMM-Temp2IOT:

            The Temp2IOT project is not mine. But it is really great work.

            OK, thought i was you :-) .

            I’ve found the root-cause for wrong date:
            Yesterday I’ve played primarily with the mirror-module to test if this works for me (yes, it works…).
            Today I’ve done the soldering part and connected the sensors.
            Now sensor data is transmitted and this seems to trigger attachment of time-marks.
            Now the json record contains correct timestamp.

            Regards,
            Ralf

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy