Git Product home page Git Product logo

Comments (7)

riddik14 avatar riddik14 commented on June 23, 2024

esphome:
  name: sismografo
  platform: ESP8266
  board: esp01_1m

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
ota:

wifi:
  networks:
  - ssid: "wlan2"
    password: ""
  - ssid: "D0m0t1c4"
    password: ""
  ap:
    ssid: "sismografo"
    password: ""
#  manual_ip:
#    static_ip: 192.168.2.106
#    gateway: 192.168.2.1
#    subnet: 255.255.255.0

i2c:
  sda: GPIO4
  scl: GPIO5
ota:
switch:
  - platform: restart
    name: "riavvia sismografo"
binary_sensor:
  - platform: status
    name: "stato sismografo"

sensor:
  - platform: uptime
    id: uptime_seconds
  - platform: mpu6050
    address: 0x68
    accel_x:
      name: "MPU6050 Accel X"
    accel_y:
      name: "MPU6050 Accel Y"
    accel_z:
      name: "MPU6050 Accel z"
    gyro_x:
      name: "MPU6050 Gyro X"
    gyro_y:
      name: "MPU6050 Gyro Y"
    gyro_z:
      name: "MPU6050 Gyro z"
    temperature:
      name: "MPU6050 Temperature"
web_server:
  port: 80
text_sensor:
  - platform: template
    name: Uptime
    update_interval: 42s
    icon: mdi:clock-start
    lambda: |-
      int seconds = (id(uptime_seconds).state);
      int days = seconds / (24 * 3600);
      seconds = seconds % (24 * 3600);
      int hours = seconds / 3600;
      seconds = seconds % 3600;
      int minutes = seconds /  60;
      seconds = seconds % 60;
      if ( days ) {
        return { (String(days) +"d " + String(hours) +"h " + String(minutes) +"m "+ String(seconds) +"s").c_str() };
      } else if ( hours ) {
        return { (String(hours) +"h " + String(minutes) +"m "+ String(seconds) +"s").c_str() };
      } else if ( minutes ) {
        return { (String(minutes) +"m "+ String(seconds) +"s").c_str() };
      } else {
        return { (String(seconds) +"s").c_str() };
      }
  - platform: wifi_info
    ip_address:
      name: ESP IP Address
    ssid:
      name: ESP Connected SSID
    bssid:
      name: ESP Connected BSSID


mqtt:
  client_id: sismografo
  broker: mqtt.seismocloud.com
  port: 1883
  username: embedded
  password: embedded
  on_message:
      - topic: sismoggrafo/ronchideilegionari
        then:
        - logger.log: MQTT is connected!


from seismocloud-sensor-nodemcu.

Enrico204 avatar Enrico204 commented on June 23, 2024

Ciao! Lascio anche qui un commento così rimane traccia della nostra conversazione sul gruppo Telegram: per ora ti consiglio di mandare i dati direttamente al nostro server usando il firmware che è qui, prossimamente pubblicheremo della documentazione per accedere alle API (REST e MQTT) così da poter interfacciare eventualmente altri prodotti :-)

from seismocloud-sensor-nodemcu.

riddik14 avatar riddik14 commented on June 23, 2024

Ok

from seismocloud-sensor-nodemcu.

Boia11 avatar Boia11 commented on June 23, 2024

@riddik14 ma funziona questo codice per EspHome?

from seismocloud-sensor-nodemcu.

riddik14 avatar riddik14 commented on June 23, 2024

Il codice è proprio di seismocloud. Io ho fatto una alternativa con esphome

from seismocloud-sensor-nodemcu.

Boia11 avatar Boia11 commented on June 23, 2024

Il codice è proprio di seismocloud. Io ho fatto una alternativa con esphome

Perfetto quello che volevo sapere, trovo EspHome molto più comodo e versatile di programmare in Arduino IDE o VSCode.
Lo proverò nei prossimi giorni allora

from seismocloud-sensor-nodemcu.

riddik14 avatar riddik14 commented on June 23, 2024

Ma con esp home si leggi i dati del sensore ma per inviarlo a seismo cloud non puoi

from seismocloud-sensor-nodemcu.

Related Issues (4)

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.